/* ============================================================
   Main Stylesheet — ShopNova
   File: assets/css/style.css
   ============================================================ */

/* -------------------- RESET & BASE -------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #0f0e11;
    background: #faf9f6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* -------------------- CSS VARIABLES -------------------- */
:root {
    --ink:         #0f0e11;
    --ink2:        #2a2835;
    --muted:       #7c7a8a;
    --muted2:      #b5b3c1;
    --cream:       #faf9f6;
    --white:       #ffffff;
    --accent:      #e8401c;
    --accent2:     #ff6b45;
    --gold:        #c9a84c;
    --surface:     #f3f2ef;
    --surface2:    #eae9e5;
    --border:      #e0dfd9;
    --green:       #1a7a4a;
    --radius:      10px;
    --shadow:      0 2px 12px rgba(15,14,17,0.08);
    --shadow-lg:   0 8px 40px rgba(15,14,17,0.14);
    --transition:  0.22s cubic-bezier(.4,0,.2,1);

    /* Button-specific tokens */
    --btn-radius:      10px;
    --btn-radius-pill: 50px;
    --btn-font:        'DM Sans', sans-serif;
    --btn-weight:      600;
    --btn-shadow-primary:   0 4px 20px rgba(232,64,28,0.35);
    --btn-shadow-primary-h: 0 8px 28px rgba(232,64,28,0.5);
    --btn-shadow-dark:      0 4px 16px rgba(15,14,17,0.25);
    --btn-shadow-dark-h:    0 8px 24px rgba(15,14,17,0.35);
}

/* ==================== BUTTON SYSTEM ==================== */

/* ── Base ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--btn-radius);
    font-family: var(--btn-font);
    font-size: 14px;
    font-weight: var(--btn-weight);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition:
        background     var(--transition),
        color          var(--transition),
        border-color   var(--transition),
        box-shadow     var(--transition),
        transform      var(--transition),
        opacity        var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Ripple layer */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.18);
    opacity: 0;
    transition: opacity 0.18s;
    pointer-events: none;
}

.btn:active::after { opacity: 1; }
.btn:active        { transform: translateY(1px) scale(0.985); }

/* Disabled */
.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}

/* ── Sizes ──────────────────────────────────────────────── */
.btn--xs  { padding: 6px 14px;  font-size: 12px; border-radius: 7px; }
.btn--sm  { padding: 8px 18px;  font-size: 13px; border-radius: 8px; }
.btn--md  { padding: 11px 24px; font-size: 14px; }              /* default */
.btn--lg  { padding: 14px 32px; font-size: 15px; border-radius: 12px; }
.btn--xl  { padding: 17px 40px; font-size: 16px; border-radius: 14px; }

/* Full width */
.btn--full { width: 100%; }

/* Pill shape */
.btn--pill { border-radius: var(--btn-radius-pill) !important; }

/* Icon-only square */
.btn--icon {
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    gap: 0;
}
.btn--icon.btn--sm { width: 34px; height: 34px; padding: 7px; }
.btn--icon.btn--lg { width: 48px; height: 48px; padding: 13px; }

/* ── Primary (accent red) ───────────────────────────────── */
.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--btn-shadow-primary);
}

.btn--primary:hover:not(:disabled) {
    background: var(--accent2);
    border-color: var(--accent2);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-primary-h);
}

/* ── Secondary (dark ink) ───────────────────────────────── */
.btn--secondary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: var(--btn-shadow-dark);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--ink2);
    border-color: var(--ink2);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-dark-h);
}

/* ── Outline (border only, transparent bg) ──────────────── */
.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn--outline:hover:not(:disabled) {
    background: var(--surface);
    border-color: var(--ink2);
    color: var(--ink);
}

/* Outline accent variant */
.btn--outline-accent {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn--outline-accent:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--btn-shadow-primary);
}

/* ── Ghost (no border, subtle bg on hover) ──────────────── */
.btn--ghost {
    background: transparent;
    color: var(--ink2);
    border-color: transparent;
}

.btn--ghost:hover:not(:disabled) {
    background: var(--surface2);
    color: var(--ink);
}

/* Ghost white (for dark backgrounds) */
.btn--ghost-white {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.25);
}

.btn--ghost-white:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* ── Success ────────────────────────────────────────────── */
.btn--success {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 4px 16px rgba(26,122,74,0.3);
}

.btn--success:hover:not(:disabled) {
    background: #15924a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,122,74,0.4);
}

/* ── Danger ─────────────────────────────────────────────── */
.btn--danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 16px rgba(220,38,38,0.3);
}

.btn--danger:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,38,38,0.4);
}

/* ── Gold / Premium ─────────────────────────────────────── */
.btn--gold {
    background: linear-gradient(135deg, #c9a84c 0%, #e8c96a 50%, #c9a84c 100%);
    background-size: 200% auto;
    color: #2a1f00;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(201,168,76,0.4);
    font-weight: 700;
}

.btn--gold:hover:not(:disabled) {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,168,76,0.55);
}

/* ── Soft tinted variants ───────────────────────────────── */
.btn--soft-primary {
    background: rgba(232,64,28,0.1);
    color: var(--accent);
    border-color: transparent;
}

.btn--soft-primary:hover:not(:disabled) {
    background: rgba(232,64,28,0.18);
    color: var(--accent);
}

.btn--soft-success {
    background: rgba(26,122,74,0.1);
    color: var(--green);
    border-color: transparent;
}

.btn--soft-success:hover:not(:disabled) { background: rgba(26,122,74,0.18); }

.btn--soft-danger {
    background: rgba(220,38,38,0.1);
    color: #dc2626;
    border-color: transparent;
}

.btn--soft-danger:hover:not(:disabled) { background: rgba(220,38,38,0.18); }

/* ── Loading state ──────────────────────────────────────── */
.btn--loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn--loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
    flex-shrink: 0;
}

.btn--loading.btn--outline::before,
.btn--loading.btn--ghost::before {
    border-color: rgba(0,0,0,0.2);
    border-top-color: var(--ink);
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ── Button group ───────────────────────────────────────── */
.btn-group {
    display: inline-flex;
    align-items: center;
}

.btn-group .btn {
    border-radius: 0;
    margin-left: -2px;
    position: relative;
    z-index: 0;
}

.btn-group .btn:first-child { border-radius: var(--btn-radius) 0 0 var(--btn-radius); margin-left: 0; }
.btn-group .btn:last-child  { border-radius: 0 var(--btn-radius) var(--btn-radius) 0; }
.btn-group .btn:hover,
.btn-group .btn:focus       { z-index: 1; }

/* ── Qty-specific button (used in cart / product pages) ─── */
.btn-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    transition: background var(--transition), border-color var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-qty:hover { background: var(--surface2); border-color: var(--ink2); }
.btn-qty:active { transform: scale(0.92); }

/* ── Remove / close button ──────────────────────────────── */
.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.btn-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ── Cart add button (product cards) ────────────────────── */
.btn-cart {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-cart:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232,64,28,0.3);
}

.btn-cart:active { transform: scale(0.97); }

/* ── View button (product cards) ────────────────────────── */
.btn-view {
    padding: 9px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    color: var(--ink2);
    font-size: 12px;
    font-weight: 500;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232,64,28,0.04);
}

/* Legacy aliases (keeps existing PHP files working) */
.btn-primary   { /* see .btn.btn--primary above */  }
.btn-ghost     { /* see .btn.btn--ghost-white above */ }

/* ==================== END BUTTON SYSTEM ==================== */


/* -------------------- HEADER -------------------- */
.header {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header__top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 32px;
    height: 68px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent2); }

/* Search */
.header__search {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition), background var(--transition);
}

.header__search:focus-within {
    border-color: var(--accent2);
    background: rgba(255,255,255,0.12);
}

.header__search-input {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--white);
    font-family: inherit;
}

.header__search-input::placeholder { color: rgba(255,255,255,0.4); }

.header__search-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    margin: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.header__search-btn:hover { background: var(--accent2); }

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.hdr-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: background var(--transition), color var(--transition);
}

.hdr-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cart-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition), transform var(--transition);
}

.cart-btn:hover { background: var(--accent2); transform: translateY(-1px); }

.cart-badge {
    background: #fff;
    color: var(--accent);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Nav Bar */
.header__nav {
    display: flex;
    align-items: center;
    padding: 0 32px;
    height: 44px;
    overflow-x: auto;
}

.header__nav::-webkit-scrollbar { display: none; }

.nav-link {
    padding: 0 18px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.active { color: #fff; border-bottom-color: var(--accent2); }
.nav-link.active { font-weight: 600; }

/* -------------------- HEADER DROPDOWN -------------------- */
.header__dropdown { position: relative; }

.header__dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1e1b2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    min-width: 200px;
    z-index: 999;
    overflow: hidden;
    list-style: none;
}

.header__dropdown.open .header__dropdown-menu { display: block; }

.header__dropdown-menu li a {
    display: block;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: background var(--transition), color var(--transition);
}

.header__dropdown-menu li a:hover {
    background: rgba(232,64,28,0.12);
    color: #fff;
}

.header__dropdown-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 4px 0;
}

/* -------------------- HAMBURGER -------------------- */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: var(--transition);
}

/* -------------------- MOBILE MENU -------------------- */
.header__mobile-menu {
    display: none;
    flex-direction: column;
    background: #1e1b2e;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px;
}

.header__mobile-menu.open { display: flex; }

.header__mobile-menu a {
    padding: 11px 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color var(--transition);
}

.header__mobile-menu a:last-child { border-bottom: none; }
.header__mobile-menu a:hover { color: var(--accent2); }

/* -------------------- PAGE LAYOUT -------------------- */
.page-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - 112px);
}

/* -------------------- SIDEBAR -------------------- */
.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 28px 0;
    position: sticky;
    top: 112px;
    height: calc(100vh - 112px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar__section { margin-bottom: 28px; }

.sidebar__label {
    display: block;
    padding: 0 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 8px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--ink2);
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.cat-item:hover {
    background: rgba(232,64,28,0.05);
    color: var(--accent);
    border-left-color: var(--accent);
}

.cat-item.active {
    background: rgba(232,64,28,0.08);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.cat-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.cat-item:hover .cat-item__icon { transform: scale(1.1); }

.cat-item__count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted2);
    background: var(--surface2);
    padding: 2px 7px;
    border-radius: 20px;
}

/* Sidebar Filters */
.price-slider-wrap { padding: 0 20px 8px; }

.price-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

input[type=range] { width: 100%; accent-color: var(--accent); }

.filter-checkboxes { padding: 0 20px; }

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink2);
    padding: 5px 0;
    cursor: pointer;
}

.filter-checkboxes input[type=checkbox] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

/* -------------------- MAIN CONTENT -------------------- */
.main { min-width: 0; padding: 28px 32px; }

/* -------------------- ALERTS -------------------- */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.alert--success { background: #dcfce7; color: #15803d; border-left: 4px solid #16a34a; }
.alert--error   { background: #fee2e2; color: #b91c1c; border-left: 4px solid #dc2626; }
.alert--warning { background: #fef9c3; color: #92400e; border-left: 4px solid #d97706; }
.alert--info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #2563eb; }

/* -------------------- HERO -------------------- */
.hero {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(125deg, #0f0e11 0%, #1e1b2e 40%, #2d1b4e 100%);
    padding: 52px 48px;
    margin-bottom: 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,64,28,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,64,28,0.2);
    border: 1px solid rgba(232,64,28,0.4);
    color: var(--accent2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 480px;
}

.hero__title em { font-style: normal; color: var(--accent2); }

.hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    max-width: 380px;
    font-weight: 300;
    line-height: 1.7;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-val {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.hero__stat-label { font-size: 12px; color: rgba(255,255,255,0.45); }

/* -------------------- PROMO STRIP -------------------- */
.promo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.promo-card {
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.promo-card.c1 { background: linear-gradient(135deg,#fff5f5,#ffe4de); border: 1px solid #f5c5bb; }
.promo-card.c2 { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border: 1px solid #bbf0cc; }
.promo-card.c3 { background: linear-gradient(135deg,#fffbeb,#fef3c7); border: 1px solid #f0d98a; }

.promo-card__icon { font-size: 32px; flex-shrink: 0; }
.promo-card__text h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.promo-card__text p { font-size: 12px; color: var(--muted); }

/* -------------------- SECTION HEADER -------------------- */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sec-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.sec-sub { font-size: 13px; color: var(--muted); }

.sec-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.sec-link:hover { gap: 8px; }

/* -------------------- PRODUCT CARDS -------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pcard {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pcard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232,64,28,0.2);
}

.pcard__img {
    position: relative;
    height: 200px;
    background: var(--surface);
    overflow: hidden;
}

.pcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pcard:hover .pcard__img img { transform: scale(1.07); }

.pcard__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

.pcard__badge.new-badge { background: var(--green); }

.pcard__wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    border: none;
}

.pcard:hover .pcard__wishlist { opacity: 1; }

.pcard__body { padding: 14px 16px; }

.pcard__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 5px;
}

.pcard__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
}

.pcard__rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.stars { color: #f59e0b; font-size: 12px; }
.rating-count { font-size: 11px; color: var(--muted); }

.pcard__price { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pcard__price .now { font-size: 18px; font-weight: 700; color: var(--accent); }
.pcard__price .was { font-size: 12px; color: var(--muted2); text-decoration: line-through; }

.pcard__actions { display: flex; gap: 8px; }

/* Horizontal product card (for deals) */
.pcard-h { display: flex; flex-direction: row; }
.pcard-h .pcard__img { width: 160px; height: auto; flex-shrink: 0; }
.pcard-h .pcard__img img { height: 100%; }
.pcard-h .pcard__body { flex: 1; }

/* -------------------- DEAL BANNER -------------------- */
.deal-banner {
    background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
    border-radius: var(--radius);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.deal-banner::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(232,64,28,0.12);
}

.deal-banner__fire { font-size: 52px; }

.deal-banner__text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.deal-banner__text p { font-size: 14px; color: rgba(255,255,255,0.55); }

.countdown { display: flex; gap: 12px; margin-left: auto; }

.count-box {
    text-align: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 64px;
}

.count-box span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.count-box small {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -------------------- DEALS GRID -------------------- */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* -------------------- TRUST / WHY US -------------------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.trust-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.trust-card__icon { font-size: 32px; margin-bottom: 12px; display: block; }
.trust-card h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.trust-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* -------------------- BADGE -------------------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge--success   { background: #dcfce7; color: #15803d; }
.badge--warning   { background: #fef9c3; color: #92400e; }
.badge--danger    { background: #fee2e2; color: #b91c1c; }
.badge--info      { background: #dbeafe; color: #1e40af; }
.badge--secondary { background: #f1f5f9; color: #475569; }

/* -------------------- TABLE -------------------- */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead { background: var(--ink); color: #fff; }
thead th { padding: 14px 16px; font-size: 13px; text-align: left; font-weight: 600; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
tbody td { padding: 12px 16px; font-size: 14px; color: #374151; }

/* -------------------- CARD -------------------- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* -------------------- FORMS -------------------- */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,64,28,0.1);
}

.form-control.is-invalid { border-color: var(--accent); }
.form-error { font-size: 12px; color: var(--accent); margin-top: 4px; }

textarea.form-control { resize: vertical; min-height: 100px; }

/* -------------------- BREADCRUMB -------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    padding: 14px 0;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb span { color: var(--muted2); }

/* -------------------- EMPTY STATE -------------------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state__icon  { font-size: 56px; margin-bottom: 16px; }
.empty-state__title { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.empty-state__text  { font-size: 14px; margin-bottom: 24px; }

/* -------------------- FOOTER -------------------- */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.55);
    padding: 56px 32px 0;
}

.footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}

.footer__logo span { color: var(--accent2); }

.footer__desc { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }

.newsletter {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
}

.newsletter input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: #fff;
}

.newsletter input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter button {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    transition: background var(--transition);
    cursor: pointer;
    border: none;
}

.newsletter button:hover { background: var(--accent2); }

.footer__col h5 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
}

.footer__col ul li { margin-bottom: 10px; }

.footer__col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}

.footer__col ul a:hover { color: #fff; }

.footer__bottom {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

.footer__socials { display: flex; gap: 12px; }

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background var(--transition);
}

.social-btn:hover { background: var(--accent); }

/* -------------------- SHOP PAGE -------------------- */
.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shop-breadcrumb a { color: var(--accent); font-weight: 500; transition: opacity var(--transition); }
.shop-breadcrumb a:hover { opacity: 0.75; }
.shop-breadcrumb span { color: var(--muted2); }

.shop-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-sort-select {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.shop-sort-select:focus { border-color: var(--accent); }

.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}

.shop-empty__icon  { font-size: 56px; margin-bottom: 16px; }
.shop-empty__title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.shop-empty__text  { font-size: 14px; margin-bottom: 24px; }

/* -------------------- PAGINATION -------------------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink2);
    background: var(--white);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* -------------------- SCROLLBAR -------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* -------------------- ANIMATIONS -------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeUp 0.5s ease both; }
.pcard:nth-child(1) { animation: fadeUp 0.4s 0.05s ease both; }
.pcard:nth-child(2) { animation: fadeUp 0.4s 0.10s ease both; }
.pcard:nth-child(3) { animation: fadeUp 0.4s 0.15s ease both; }
.pcard:nth-child(4) { animation: fadeUp 0.4s 0.20s ease both; }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1100px) {
    .trust-grid    { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .page-wrap   { grid-template-columns: 1fr; }
    .sidebar     { display: none; }
    .promo-strip { grid-template-columns: 1fr; }
    .deals-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header__search    { display: none; }
    .hdr-btn           { display: none; }
    .cart-btn          { display: none; }
    .header__dropdown  { display: none; }
    .header__hamburger { display: flex; }
    .header__nav       { display: none; }
}

@media (max-width: 600px) {
    .header__top    { padding: 0 16px; gap: 10px; }
    .main           { padding: 20px 16px; }
    .hero           { padding: 36px 24px; }
    .hero__title    { font-size: 30px; }
    .hero__stats    { gap: 20px; }
    .trust-grid     { grid-template-columns: 1fr 1fr; }
    .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer         { padding: 40px 16px 0; }
    .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .footer__inner { grid-template-columns: 1fr; }
    .hero          { padding: 30px 20px; }
    .hero__title   { font-size: 26px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}