:root {
    --primary-bg: #fafafa;
    --surface: #ffffff;
    --primary-text: #2c2c2c;
    --muted-text: #6b7280;
    --primary-accent: #1a1a1a;
    --secondary-accent: #d4af37;
    --border: #e5e7eb;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    --primary-bg: #121212;
    --surface: #1a1a1a;
    --primary-text: #f1f1f1;
    --muted-text: #c7c7c7;
    --primary-accent: #f1f1f1;
    --secondary-accent: #d4af37;
    --border: #2a2a2a;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Global Rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--primary-text);
    background: var(--primary-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    background: var(--secondary-accent);
    color: #000;
    border: 1px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    background: transparent;
    color: var(--secondary-accent);
    border-color: var(--secondary-accent);
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--primary-accent);
    color: var(--secondary-accent);
    border-color: var(--primary-accent);
}

.btn-dark:hover {
    background: transparent;
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary-text);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}

body.dark-mode footer {
    background: #111;
    color: #f8f5f0;
}

body.dark-mode footer a {
    color: #f8f5f0;
}

body.dark-mode footer a:hover {
    color: var(--secondary-accent);
}

body.dark-mode .sale_box {
    background-color: var(--surface);
}

body.dark-mode .searchbar input {
    background: #1b1b1b;
    color: #f1f1f1;
    border-color: #2a2a2a;
}

body.dark-mode #searchClose {
  color: #fff;
}

body.dark-mode #searchClose:hover {
  color: var(--secondary-accent); 
}

/* Header / Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.nav_left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    height: 65px;
}

.nav_menu {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav_menu>li>a {
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav_menu>li>a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nav_icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    position: relative;
    padding: 8px;
    border-radius: 10px;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary-accent);
    color: #000;
    border-radius: 999px;
    font-size: 9px;
    padding: 2px 6px;
    border: 1px solid #00000022;
}

/* Mobile menu */
.nav_toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 22px;
}

@media (max-width: 991px) {
    .nav_toggle {
        display: block;
    }

    .nav_menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        display: none;
        flex-direction: column;
        padding: 12px;
    }

    .nav_menu.open {
        display: flex;
    }
}

/* Searchbar */
.searchbar {
    display: none;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.searchbar form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
}

.searchbar input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: #111;
}

.searchbar .close {
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    padding: 90px 0;
}

.hero_wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

.hero_title {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    margin: 0;
    color: var(--primary-accent);
}

.hero_lead {
    margin: 16px 0 28px;
    color: var(--muted-text);
    max-width: 56ch;
}

.hero_cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hero_img {
    border-radius: 30px;
    overflow: hidden;
}

.hero img {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero img:hover {
    transform: scale(1.2);
    opacity: 0.9;
}

@media (max-width: 991px) {
    .hero_wrap {
        grid-template-columns: 1fr;
    }
}

/* Featured Categories */
.cats {
    padding: 60px 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(22px, 2.8vw, 34px);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-cats {
    grid-template-columns: repeat(12, 1fr);
}

.cat-card {
    grid-column: span 6;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    min-height: 220px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cat-card-wide {
    grid-column: span 6;
}

.cat-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.cat-card p {
    margin: 0 0 12px;
    color: var(--muted-text);
    font-size: 14px;
}

.cat-card a {
    font-weight: 600;
    color: var(--secondary-accent);
}

.cat-card img {
    position: absolute;
    right: 6px;
    bottom: -8px;
    width: 170px;
    opacity: .95;
}

@media (max-width: 991px) {

    .cat-card,
    .cat-card-wide {
        grid-column: span 12;
    }
}

/* Products */
.products {
    padding: 70px 0;
}

.grid-products {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .grid-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .grid-products {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card_img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-card_body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.product-card_title {
    font-weight: 600;
    margin: 0;
}

.product-card_price {
    color: var(--secondary-accent);
    font-weight: 700;
}

.product-card_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-like {
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Promo (Video + Services) */
.promo {
    padding: 60px 0;
}

.promo_wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.promo video {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.service {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
}

.service h3 {
    margin: 6px 0;
}

.service hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.service p {
    margin: 0;
    color: var(--muted-text);
}

@media (max-width: 991px) {
    .promo_wrap {
        grid-template-columns: 1fr;
    }
}

/* Weekly Sale */
.sale {
    padding: 70px 0;
}

.sale_box {
    background: var(--primary-accent);
    color: #fff;
    border-radius: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 22px;
    align-items: center;
}

.sale_img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

.sale_title {
    margin: 0 0 6px;
    font-size: clamp(24px, 3.2vw, 40px);
    color: var(--secondary-accent);
}

.countdown {
    display: flex;
    gap: 16px;
    margin: 12px 0 18px;
}

.countdown div {
    text-align: center;
    font-weight: 700;
}

.countdown span {
    display: block;
    font-size: 22px;
    color: var(--secondary-accent);
}

.sale_cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sale_cta input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #0e0e0e;
    color: #fff;
}

@media (max-width: 991px) {
    .sale_box {
        grid-template-columns: 1fr;
    }

    .sale_img {
        width: 100%;
        height: 220px;
    }
}

/* Subscribe */
.subscribe {
    padding: 90px 0;
    background: url('imgs/subscribe_area.png') center/cover no-repeat, var(--primary-bg);
}

.subscribe .content {
    text-align: center;
}

.subscribe .small {
    color: var(--secondary-accent);
    letter-spacing: 1px;
    font-weight: 600;
}

.subscribe h2 {
    margin: 10px 0 24px;
    font-size: clamp(22px, 3vw, 40px);
}

.subscribe .form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.subscribe input[type="email"] {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary-text);
    min-width: 260px;
}

/* Footer */
footer {
    background: var(--primary-accent);
    color: #eaeaea;
    padding: 50px 0;
    margin-top: 40px;
}

.footer_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.footer h3 {
    margin: 0 0 10px;
    color: var(--secondary-accent);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin: 10px 0;
}

.footer a {
    color: #d6d6d6;
}

.footer a:hover {
    color: var(--secondary-accent);
}

.footer .newsletter form {
    display: flex;
    gap: 8px;
}

.footer .newsletter input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #0f0f0f;
    color: #fff;
}

.footer .newsletter button {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--secondary-accent);
    background: var(--secondary-accent);
    color: #000;
    font-weight: 600;
}

.footer .newsletter button:hover {
    background: transparent;
    color: var(--secondary-accent);
}

@media (max-width: 991px) {
    .footer_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .footer_grid {
        grid-template-columns: 1fr;
    }
}