@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
    --primary-color: #088178;
    --primary-hover: #066e67;
    --text-dark: #222;
    --text-light: #465b52;
    --bg-light: #E3E6F3;
    --white: #fff;
    --border-light: #cce7d0;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.12);
    --transition-fast: 0.3s ease;
    --dropdown-bg: #ffffff;
    --card-bg: #ffffff;
    --faq-bg: #ffffff;
    --faq-question-bg: #f8f8f8;
    --border-color: #e1e1e1;
    --text-heading: #222;
    --text-body: #555;
    --input-bg: #ffffff;
    --container-bg: #ffffff; 
}
body.dark-theme {
    --text-dark: #ffffff;
    --text-light: #d1d1d1;
    --bg-light: #1a1a1a;
    --white: #121212;
    --dropdown-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --faq-bg: #1e1e1e;
    --faq-question-bg: #2a2a2a;
    --border-color: #333;
    --text-heading: #ffffff;
    --text-body: #d1d1d1;
    --input-bg: #1e1e1e;
    --container-bg: #1e1e1e;

    background-color: #121212;
    color: #ffffff;
}
/* reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan', sans-serif;
}
html , body{
    width: 100%;
    height: 100%;
   overflow-x: hidden;
}
/* base typography */
h1{
    font-size: 50px;
    line-height: 64px;
    color: var(--text-dark);
}

h2{
    font-size: 46px;
    line-height: 54px;
    color: var(--text-light);
}

/* added missing heading style */
h3{
    font-size: 28px;
    line-height: 36px;
    color: var(--text-dark);
    font-weight: 700;
}

h4{
    font-size: 20px;
    color: var(--text-dark);
}

h6{
    font-size: 12px;
    font-weight: 700;
}

p{
    font-size: 16px;
    color: var(--text-light);
    margin: 15px 0 20px;
}

/* layout helpers */
.section-p1{
    padding: 40px 80px;
}

.section-m1{
    margin: 40px 0;
}

/* buttons */
button.normal{
    font-size: 14px;
    font-weight: 600;
    padding: 15px 30px;
    color: #000;
    background-color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-fast);
    min-height: 44px;
}

button.white{
    font-size: 13px;
    font-weight: 600;
    padding: 11px 18px;
    color: var(--white);
    background-color: transparent;
    cursor: pointer;
    border: 1px solid var(--white);
    outline: none;
    transition: var(--transition-fast);
    min-height: 44px;
}

.btn-hover{
    transition: var(--transition-fast);
}

.btn-hover:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* global page styles */
html{
    scroll-behavior: smooth;
}

body{
    width: 100%;
    overflow-x: hidden;
    background: var(--white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

/* accessibility */
:focus-visible{
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* media */
img{
    max-width: 100%;
    display: block;
    user-select: none;
}

/* reusable product button styles */
.pro button{
    border: 1px solid #ccc;
    background: var(--white);
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    margin: 4px;
    transition: var(--transition-fast);
    min-height: 44px;
}

.pro button:hover{
    background: var(--primary-color);
    color: var(--white);
}

.pro span{
    font-weight: 600;
}

.pro p{
    margin-top: 10px;
    font-size: 14px;
}

/* responsive utilities */
@media(max-width:1024px){
    .section-p1{
        padding: 30px 20px;
    }

    h1{
        font-size: 38px;
        line-height: 46px;
    }

    h2{
        font-size: 32px;
        line-height: 40px;
    }

    h3{
        font-size: 24px;
        line-height: 32px;
    }
}
body.dark-theme {
    --text-dark: #f8f6f6;
    --text-light: #2c2b2b; 
    --bg-light: #1a1a1a;
    --white: #121212;

    background-color: #121212;
    color: #ffffff;
}
body {
    transition: background-color 0.3s ease,
                color 0.3s ease;
}
.theme-toggle-item button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #444;
}

body.dark-theme label,
body.dark-theme .form-group,
body.dark-theme p,
body.dark-theme a {
    color: var(--text-light);
}
body.dark-theme footer {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme footer a {
    color: #d1d1d1;
}

body.dark-theme footer p,
body.dark-theme footer h1,
body.dark-theme footer h2,
body.dark-theme footer h3,
body.dark-theme footer h4 {
    color: #ffffff;
}
/* Navbar dark mode */
body.dark-theme nav,
body.dark-theme .navbar {
  background-color: #1a1a1a;
}

body.dark-theme nav a,
body.dark-theme .navbar a {
  color: #e0e0e0;
}

/* navbar count badges: keep the number readable in dark mode
   (the nav-link color rule above must not bleed into the badge) */
body.dark-theme #cart-badge,
body.dark-theme #wishlist-badge,
body.dark-theme #cart-count {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Buttons in dark mode */
body.dark-theme .btn,
body.dark-theme button:not(#theme-toggle) {
  background-color: #088178;
  color: #ffffff;
  border: 1px solid #066b63;
}

body.dark-theme .btn:hover,
body.dark-theme button:not(#theme-toggle):hover {
  background-color: #066b63;
}
body.dark-theme .order-tracking,
body.dark-theme .order-card,
body.dark-theme .order-box,
body.dark-theme .track-box,
body.dark-theme .order-content {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
}
body.dark-theme h3 {
    color:#000 ! important;
}
body.dark-theme .toast-container,
body.dark-theme .toast,
body.dark-theme .toast-item,
body.dark-theme [class*="toast"] {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

body.dark-theme .toast-item p,
body.dark-theme .toast-item span,
body.dark-theme .toast p,
body.dark-theme .toast span {
    color: #ffffff !important;
}
body.dark-theme #product1 h2,
body.dark-theme #new-arrivals h2,
body.dark-theme #recently-viewed h2 {
    color: #ffffff !important;
}
body.dark-theme #blog-header h3 {
    color: #ffffff !important;
}
body.dark-theme #blog-header h1,
body.dark-theme #blog-header p {
    color: #ffffff !important;
}
#about-app h1 a {
    color: #1a73e8 !important;
    text-decoration: underline;
}

body.dark-theme #about-app h1 a {
    color: #5b9cf6 !important;
}
/* Dropdown button override - must be after button rule */
body.dark-theme #profile-dropdown button {
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-theme #profile-dropdown button:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: none !important;
}

body.dark-theme #profile-dropdown {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}