/* =============================================
   BERTA FURNITURE & ACCESSORIES
   Color scheme: White + rgb(33, 41, 52)
   ============================================= */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:       rgb(33, 41, 52);
    --primary-light: rgb(50, 61, 76);
    --primary-dark:  rgb(20, 26, 34);
    --accent:        #e07b15;
    --accent-dark:   #c46a0e;
    --white:         #ffffff;
    --off-white:     #f5f7fa;
    --light:         #eef0f3;
    --border:        #dde0e6;
    --border-light:  #eaecf0;
    --text:          rgb(33, 41, 52);
    --text-muted:    #6b7685;
    --text-light:    #9aa3af;
    --shadow-sm:     0 1px 3px rgba(33,41,52,.07);
    --shadow:        0 4px 16px rgba(33,41,52,.10);
    --shadow-lg:     0 8px 32px rgba(33,41,52,.15);
    --radius:        5px;
    --radius-lg:     10px;
    --transition:    all 0.25s ease;
    --header-h:      66px;
    --sans:          'Inter', system-ui, -apple-system, sans-serif;
    --container:     1240px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* === LAYOUT === */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section    { padding-block: clamp(48px, 7vw, 80px); }
.section-sm { padding-block: clamp(32px, 5vw, 56px); }
.bg-light   { background: var(--off-white); }
.bg-primary { background: var(--primary); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--primary); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}
.section-title { margin-bottom: .75rem; color: var(--primary); }
.section-subtitle { color: var(--text-muted); max-width: 520px; margin-bottom: 2rem; font-size: .9375rem; }
.section-header { margin-bottom: clamp(28px, 4vw, 48px); }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-inline: auto; }
.section-header.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--sans); font-size: .875rem; font-weight: 600;
    letter-spacing: .03em; padding: .7rem 1.6rem;
    border-radius: var(--radius); border: 2px solid transparent;
    transition: var(--transition); white-space: nowrap; cursor: pointer;
    text-decoration: none;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary   { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn-accent    { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-sm  { padding: .5rem 1.1rem; font-size: .8125rem; }
.btn-lg  { padding: .85rem 2rem; font-size: .9375rem; }
.btn-full { width: 100%; justify-content: center; }


/* === TOP BAR === */
.top-bar { background: var(--primary-dark); color: rgba(255,255,255,.7); font-size: .8rem; padding: .45rem 0; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.top-bar-left  { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; min-width: 0; }
.top-bar-left a { display: flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.7); }
.top-bar-left a svg { width: 13px; height: 13px; flex-shrink: 0; }
.top-bar-left a:hover { color: var(--white); }
.top-bar-right { font-size: .75rem; color: rgba(255,255,255,.45); }

/* === HEADER === */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(20,26,34,.3);
}
.header-inner {
    display: flex; align-items: center; height: var(--header-h); gap: 1.5rem; min-width: 0;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo-img { height: 38px; width: auto; display: block; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: .04em; }
.logo-sub  { font-size: .62rem; font-weight: 400; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.main-nav > ul { display: flex; align-items: center; gap: .15rem; }
.main-nav a {
    display: block; padding: .5rem 1rem;
    font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.75);
    border-radius: var(--radius); transition: var(--transition);
    white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.main-nav a.active { color: var(--white); background: rgba(255,255,255,.12); font-weight: 600; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; margin-left: auto; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    width: 40px; height: 40px; justify-content: center; align-items: center;
    border-radius: var(--radius); transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger span {
    display: block; height: 2px; background: var(--white);
    border-radius: 2px; transition: var(--transition); transform-origin: center;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 15px; align-self: flex-start; margin-left: 3.5px; }
.hamburger span:nth-child(3) { width: 22px; }
.hamburger:hover span:nth-child(2),
.hamburger.open span:nth-child(2) { width: 22px; margin-left: 0; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
    position: fixed; inset: 0;
    background: var(--primary);
    z-index: 1000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-close {
    position: absolute; top: 1.1rem; right: 1.1rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: white;
    transition: background .2s, transform .25s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.mobile-menu-close svg { width: 18px; height: 18px; }
.mobile-menu-links {
    list-style: none; padding: 0; margin: 0;
    text-align: center; display: flex; flex-direction: column; gap: .1rem;
}
.mobile-menu-links li {
    opacity: 0; transform: translateY(22px);
    transition: opacity .35s ease, transform .35s ease;
}
.mobile-menu.open .mobile-menu-links li { opacity: 1; transform: none; }
.mobile-menu.open .mobile-menu-links li:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) { transition-delay: .12s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) { transition-delay: .18s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) { transition-delay: .24s; }
.mobile-menu-links a {
    display: block; padding: .75rem 3rem;
    font-size: clamp(1.65rem, 8.5vw, 2.4rem);
    font-weight: 800; letter-spacing: -.03em;
    color: rgba(255,255,255,.65);
    text-decoration: none; transition: color .2s;
    line-height: 1.2;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: var(--accent); }
.mobile-menu-footer {
    position: absolute; bottom: 2rem;
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    opacity: 0; transition: opacity .4s .28s ease;
}
.mobile-menu.open .mobile-menu-footer { opacity: 1; }
.mobile-menu-footer a {
    font-size: .78rem; color: rgba(255,255,255,.3);
    text-decoration: none; transition: color .2s;
}
.mobile-menu-footer a:hover { color: rgba(255,255,255,.6); }

/* === HERO === */
.hero {
    background: var(--primary);
    position: relative; overflow: hidden;
    min-height: min(72vh, 580px);
    display: flex; align-items: center;
}
.hero-bg-overlay {
    position: absolute; inset: 0;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: .12;
}
.hero-bg-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(33,41,52,.7) 60%, transparent 100%);
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
    width: 100%;
}
.hero-content {
    padding-block: clamp(60px, 10vw, 100px);
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8); font-size: .75rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.25rem; line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.hero p  { color: rgba(255,255,255,.68); font-size: clamp(.9rem, 1.4vw, 1.05rem); margin-bottom: 2rem; max-width: 480px; line-height: 1.75; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: flex-end; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero-showcase {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px; padding: 1.75rem;
    width: 100%; max-width: 380px;
    backdrop-filter: blur(8px);
}
.hero-showcase-label {
    font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.45); margin-bottom: 1.1rem;
    padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-showcase-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem;
}
.hero-showcase-item {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 1rem .85rem;
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    transition: background .2s;
}
.hero-showcase-item:hover { background: rgba(255,255,255,.1); }
.hero-showcase-icon {
    width: 38px; height: 38px;
    background: rgba(224,123,21,.2); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.hero-showcase-icon svg { width: 18px; height: 18px; }
.hero-showcase-item span { font-size: .75rem; color: rgba(255,255,255,.75); font-weight: 500; text-align: center; }
.hero-showcase-footer {
    display: flex; gap: .65rem;
}
.hero-showcase-stat {
    flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: .75rem .5rem; text-align: center;
}
.hero-showcase-stat strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-showcase-stat span { font-size: .67rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; }

/* === CATEGORIES OF THE MONTH === */
.cat-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 24px);
}
.cat-month-card {
    border-radius: var(--radius-lg); overflow: hidden;
    position: relative; display: flex; flex-direction: column;
    justify-content: flex-end; cursor: pointer; min-height: 190px;
    padding: 1.75rem 1.5rem; text-decoration: none;
    background: var(--primary);
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s, background .25s;
}
.cat-month-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--primary-light); }
.cat-month-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 70%);
    pointer-events: none;
}
.cat-month-deco {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    width: 80px; height: 80px; opacity: .13; pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.cat-month-deco svg { width: 100%; height: 100%; }
.cat-month-card:hover .cat-month-deco { opacity: .22; transform: translateY(-50%) scale(1.1); }
.cat-month-name { color: var(--white); font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.cat-month-count { color: rgba(255,255,255,.55); font-size: .78rem; }
.cat-month-arrow {
    position: absolute; right: 1.1rem; top: 1.1rem;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(.7); transition: all .25s;
}
.cat-month-arrow svg { width: 14px; height: 14px; }
.cat-month-card:hover .cat-month-arrow { opacity: 1; transform: scale(1); }

/* === PRODUCT CARDS === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(14px, 2vw, 22px);
}
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.product-image-wrap {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
    background: var(--off-white);
}
.product-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.04); }

.product-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.badge { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .52rem; border-radius: 3px; }
.badge-new  { background: var(--primary); color: var(--white); }
.badge-sale { background: var(--accent); color: var(--white); }


.product-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-sku  { font-size: .7rem; color: var(--text-light); margin-bottom: .2rem; font-family: monospace; }
.product-cat  { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.product-name { font-size: .9375rem; font-weight: 600; color: var(--primary); margin-bottom: .4rem; line-height: 1.35; flex: 1; }
.product-name a:hover { color: var(--accent); }
.product-desc { font-size: .8125rem; color: var(--text-muted); margin-bottom: .6rem; line-height: 1.5; }

.product-rating { display: flex; align-items: center; gap: .35rem; margin-bottom: .6rem; }
.stars { display: flex; gap: 1px; }
.stars svg { width: 12px; height: 12px; }
.star.filled  polygon { fill: #f59e0b; stroke: #f59e0b; }
.star.half    polygon { fill: none; stroke: #f59e0b; }
.star.empty   polygon { fill: none; stroke: var(--border); }
.rating-count { font-size: .72rem; color: var(--text-muted); }

.product-footer {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding-top: .75rem; border-top: 1px solid var(--border-light); margin-top: auto;
}
.product-price { display: flex; flex-direction: column; gap: .05rem; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.price-old     { font-size: .75rem; color: var(--text-light); text-decoration: line-through; }

/* === CATALOG / CATEGORY CARDS === */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem; }
.sidebar-card-head { background: var(--primary); color: var(--white); padding: .85rem 1.15rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-list { }
.sidebar-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1.15rem; border-bottom: 1px solid var(--border-light);
    font-size: .875rem; color: var(--text); transition: background .15s;
    cursor: pointer; text-decoration: none;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--off-white); color: var(--accent); }
.sidebar-item.active { background: var(--off-white); color: var(--accent); font-weight: 600; }
.sidebar-item .count { font-size: .72rem; color: var(--text-light); background: var(--light); padding: .15rem .5rem; border-radius: 100px; }

/* Category page full grid */
.categories-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--gap, 22px); }

.category-card-full {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: block; transition: box-shadow .25s, transform .25s;
    text-decoration: none;
}
.category-card-full:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.category-card-full .cat-body { padding: 1.25rem; }
.category-card-full .cat-body h3 { font-size: 1rem; margin-bottom: .35rem; }
.category-card-full .cat-body p  { font-size: .8125rem; color: var(--text-muted); margin-bottom: .85rem; line-height: 1.55; }
.cat-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cat-link svg { width: 13px; height: 13px; transition: transform .2s; }
.category-card-full:hover .cat-link svg { transform: translateX(4px); }

/* === PRODUCTS PAGE TOOLBAR === */
.products-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem; padding: .75rem 1rem;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    flex-wrap: wrap;
}
.products-count { font-size: .875rem; color: var(--text-muted); }
.products-count strong { color: var(--text); }
.sort-select {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .4rem .85rem; font-family: var(--sans); font-size: .85rem;
    color: var(--text); background: var(--white); cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--accent); }

/* No results */
.no-results { text-align: center; padding: 4rem 2rem; }
.no-results svg { width: 56px; height: 56px; color: var(--light); margin: 0 auto 1rem; }
.no-results h3 { color: var(--text-muted); font-weight: 500; margin-bottom: .4rem; }

/* === PRODUCT DETAIL === */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }

.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.main-image-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--off-white); margin-bottom: .75rem; }
.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.thumb-strip { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumb {
    width: 68px; height: 68px; border-radius: var(--radius); overflow: hidden;
    border: 2px solid transparent; cursor: pointer; transition: border-color .2s; background: var(--off-white);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }

.product-info .product-cat { margin-bottom: .35rem; }
.product-info h1 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin-bottom: .5rem; }
.product-info .sku { font-size: .78rem; color: var(--text-muted); font-family: monospace; margin-bottom: .75rem; }
.price-wrap { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.price-main { font-size: 1.85rem; font-weight: 800; color: var(--primary); }
.price-was  { font-size: .95rem; color: var(--text-light); text-decoration: line-through; }
.price-save { font-size: .8rem; background: var(--accent); color: var(--white); padding: .18rem .55rem; border-radius: 3px; font-weight: 700; }

.option-label { font-size: .82rem; font-weight: 600; margin-bottom: .45rem; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-bottom: 1.25rem; }
.specs-table tr { border-bottom: 1px solid var(--border-light); }
.specs-table td { padding: .6rem .25rem; }
.specs-table td:first-child { color: var(--text-muted); width: 42%; }
.specs-table td:last-child { font-weight: 500; color: var(--text); }

.detail-actions { display: flex; gap: .6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; min-width: 160px; justify-content: center; }

/* Delivery strip */
.detail-meta { background: var(--off-white); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .82rem; display: flex; flex-direction: column; gap: .5rem; }
.detail-meta-row { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.detail-meta-row svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* === TABS === */
.tabs { display: flex; border-bottom: 2px solid var(--border); gap: 0; margin-bottom: 1.75rem; }
.tab-btn {
    padding: .65rem 1.25rem; font-size: .875rem; font-weight: 500;
    color: var(--text-muted); border-bottom: 2px solid transparent;
    margin-bottom: -2px; background: none; cursor: pointer; transition: color .2s, border-color .2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 600; }
.tab-btn:hover { color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.tab-panel ul { padding-left: 1.25rem; color: var(--text-muted); line-height: 1.8; }
.tab-panel li { list-style: disc; margin-bottom: .25rem; font-size: .9rem; }

/* === PAGE HERO (inner pages) === */
.page-hero {
    background: var(--primary);
    padding-block: clamp(40px, 6vw, 72px);
    position: relative; overflow: hidden;
}
.page-hero::after { content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.03); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.6); max-width: 520px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); padding-block: .85rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 10px; height: 10px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* === ABOUT PAGE === */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* About collage */
.about-collage { position: relative; padding: 1.5rem 1.5rem 1.5rem 0; }
.about-collage-main {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-collage-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.about-collage-accent {
    position: absolute; bottom: 0; right: 0;
    width: 52%; border-radius: var(--radius-lg); overflow: hidden;
    border: 4px solid var(--white); box-shadow: var(--shadow-lg);
}
.about-collage-accent img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.about-collage-badge {
    position: absolute; top: 0; right: 0;
    background: var(--accent); color: var(--white);
    border-radius: var(--radius-lg); padding: 1rem 1.25rem;
    text-align: center; line-height: 1.1; box-shadow: var(--shadow);
}
.about-collage-badge strong { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.about-collage-badge span   { font-size: 1.75rem; font-weight: 800; }

.about-text h2 { margin-bottom: 1rem; }
.about-text p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: .9375rem; }

.browse-cats-sidebar { max-width: 320px; }
.browse-cat-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 1rem; border-bottom: 1px solid var(--border);
    color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.browse-cat-item:first-child { border-top: 1px solid var(--border); }
.browse-cat-item:hover { background: var(--off-white); color: var(--accent); }
.browse-cat-item .cat-count-pill { background: var(--primary); color: var(--white); font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 100px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-item span   { font-size: .78rem; color: rgba(255,255,255,.55); display: block; margin-top: .25rem; }

/* === CONTACT PAGE === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.contact-detail-row { display: flex; gap: .9rem; }
.contact-icon { width: 42px; height: 42px; border-radius: var(--radius); background: var(--off-white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; color: var(--accent); }
.contact-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem; }
.contact-value { font-size: .9rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.contact-value a:hover { color: var(--accent); }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-card h3 { margin-bottom: .35rem; }
.form-card > p { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-group label .req { color: var(--accent); }
.form-control {
    width: 100%; padding: .65rem .9rem;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-family: var(--sans); font-size: .9rem; color: var(--text);
    background: var(--white); outline: none; resize: vertical;
    transition: border-color .2s;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { min-height: 120px; }
.form-success { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 1rem; color: #15803d; font-size: .875rem; margin-top: 1rem; text-align: center; }

/* Map placeholder */
.map-box { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--off-white); height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: var(--text-muted); margin-top: 1.5rem; }
.map-box svg { width: 40px; height: 40px; color: var(--accent); }
.map-box p { font-size: .85rem; text-align: center; max-width: 240px; line-height: 1.5; }

/* === SEARCH PAGE === */
.search-form-lg {
    display: flex; align-items: center; gap: .5rem;
    background: var(--white); border: 2px solid var(--border);
    border-radius: var(--radius); padding: .4rem .4rem .4rem 1.1rem;
    margin-bottom: 2rem; transition: border-color .2s;
}
.search-form-lg:focus-within { border-color: var(--primary); }
.search-form-lg input { flex: 1; border: none; background: none; font-size: .95rem; font-family: var(--sans); color: var(--text); outline: none; }
.search-form-lg button { display: flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border-radius: var(--radius); background: var(--primary); color: var(--white); font-size: .875rem; font-weight: 500; transition: background .2s; }
.search-form-lg button:hover { background: var(--primary-light); }
.search-form-lg button svg { width: 15px; height: 15px; }

/* === WISHLIST PAGE === */
.wishlist-empty { text-align: center; padding: 5rem 2rem; }
.wishlist-empty svg { width: 64px; height: 64px; color: var(--light); margin: 0 auto 1.25rem; }
.wishlist-empty h2 { margin-bottom: .6rem; }
.wishlist-empty p { color: var(--text-muted); margin-bottom: 1.75rem; }

.wishlist-remove {
    position: absolute; top: .6rem; right: .6rem;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--white); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.wishlist-remove svg { width: 13px; height: 13px; color: var(--text-muted); }
.wishlist-remove:hover { border-color: #fca5a5; }
.wishlist-remove:hover svg { color: #dc2626; }

/* === FOOTER === */
.site-footer { background: var(--primary); color: rgba(255,255,255,.65); }

.footer-top { background: var(--primary-dark); padding-block: 1.5rem; }
.footer-top-inner { }
.footer-contact-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: .15rem; color: var(--accent); }
.footer-contact-item .label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .1rem; }
.footer-contact-item span, .footer-contact-item a { font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.4; display: block; }
.footer-contact-item a:hover { color: var(--white); }

.footer-main { padding-block: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 2.5rem; }

.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }

/* Newsletter */
.footer-newsletter p { font-size: .85rem; margin-bottom: 1rem; line-height: 1.6; }
.newsletter-form { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.newsletter-form input {
    flex: 1; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius); background: rgba(255,255,255,.07);
    color: var(--white); font-family: var(--sans); font-size: .875rem; outline: none;
    transition: border-color .2s; min-width: 0;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.35); }
.newsletter-form button {
    padding: .6rem 1.1rem; background: var(--accent); color: var(--white);
    border-radius: var(--radius); font-size: .875rem; font-weight: 600;
    transition: background .2s; white-space: nowrap; flex-shrink: 0;
}
.newsletter-form button:hover { background: var(--accent-dark); }

.footer-social { display: flex; gap: .5rem; }
.footer-social a {
    width: 34px; height: 34px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55); transition: var(--transition);
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.08); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.1rem; }
.footer-bottom-inner { display: flex; justify-content: center; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

/* === BACK TO TOP === */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 42px; height: 42px; border-radius: var(--radius);
    background: var(--primary); border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .3s;
    z-index: 990; box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary-light); }
.back-to-top svg { width: 17px; height: 17px; stroke: var(--white); }

/* === TOAST === */
.toast {
    position: fixed; bottom: 4.5rem; right: 1.5rem;
    background: var(--primary); color: var(--white);
    padding: .7rem 1.1rem; border-radius: var(--radius);
    font-size: .875rem; box-shadow: var(--shadow-lg); z-index: 1100;
    transform: translateY(12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s; max-width: 260px;
    border-left: 3px solid var(--accent);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* === MISC === */
.divider { border: none; border-top: 1px solid var(--border); margin-block: 2rem; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .about-intro   { grid-template-columns: 1fr; }
    .about-collage { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .detail-grid  { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .catalog-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-contact-bar { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .top-bar-right { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-contact-bar { grid-template-columns: 1fr 1fr; }
    .cat-month-grid { grid-template-columns: 1fr; }
    .products-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 1.75rem; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .products-grid-3 { grid-template-columns: 1fr; }
    .products-grid-4 { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-contact-bar { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .detail-actions { flex-direction: column; }
    .top-bar-left a[href^="mailto"] { display: none; }
}

@media print {
    .site-header, .site-footer, .back-to-top { display: none; }
}
