/* ============================================================
   THE BLISSBURRY — Main Stylesheet
   Brand: gold #c9a84c, deep black #0d0d0d, rich dark #1a1610
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --brand:       #c9a84c;
  --brand-dark:  #a8872e;
  --brand-light: #faf7ef;
  --brand-mid:   #f0e6c8;
  --black:       #0d0d0d;
  --gray:        #6b6b6b;
  --gray-light:  #f2f2f2;
  --white:       #ffffff;
  --success:     #16a34a;
  --danger:      #dc2626;
  --warning:     #d97706;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 2px 16px rgba(0,0,0,.10);
  --shadow-md:   0 4px 32px rgba(0,0,0,.18);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --nav-h:       70px;
  --transition:  .2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.6; }
a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }

/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

/* ---------- LAYOUT ---------- */
.container  { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3,1fr); } }
@media (max-width:  900px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:  680px) { .grid-3,.grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width:  480px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; transition: var(--transition);
  cursor: pointer;
}
.btn-primary       { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,168,76,.35); }
.btn-outline       { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-dark          { background: var(--black); color: #fff; }
.btn-dark:hover    { background: #333; }
.btn-danger        { background: var(--danger); color: #fff; }
.btn-danger:hover  { background: #b91c1c; }
.btn-sm   { padding: 7px 16px; font-size: .85rem; }
.btn-lg   { padding: 14px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- FLASH MESSAGES ---------- */
.flash { padding: 12px 20px; border-radius: var(--radius); color: #fff; margin-bottom: 16px; font-weight: 500; }
.flash-success { background: var(--success); }
.flash-error   { background: var(--danger); }
.flash-warning { background: var(--warning); }
.flash-info    { background: #3b82f6; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .9rem; color: var(--gray); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid #e0e0e0;
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: .95rem; transition: border-color var(--transition);
  background: var(--white); color: var(--black);
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.form-control:disabled { background: var(--gray-light); color: var(--gray); cursor: not-allowed; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .78rem; color: var(--gray); margin-top: 4px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- SITE HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #0d0d0d; box-shadow: 0 1px 0 rgba(201,168,76,.2);
  height: var(--nav-h);
}
.nav-inner {
  display: flex; align-items: center; height: var(--nav-h); gap: 20px;
}
.nav-logo { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.nav-logo .logo-name { font-family: var(--font-head); font-size: 1.4rem; color: var(--brand); font-weight: 700; white-space: nowrap; }
.nav-logo .logo-tag  { font-size: .62rem; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; }

.nav-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  border: 1.5px solid rgba(201,168,76,.3); border-radius: 40px;
  overflow: hidden; background: rgba(255,255,255,.06);
}
.nav-search input {
  flex: 1; padding: 9px 16px; border: none;
  background: transparent; font-size: .9rem; outline: none;
  font-family: var(--font-body); color: #fff;
}
.nav-search input::placeholder { color: rgba(255,255,255,.4); }
.nav-search button {
  padding: 9px 18px; background: var(--brand); color: #0d0d0d; font-size: 1rem; font-weight: 700;
}
.nav-search button:hover { background: var(--brand-dark); }

.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-btn {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding: 6px 10px;
  border-radius: var(--radius); color: rgba(255,255,255,.75);
  font-size: .7rem; font-weight: 500; transition: var(--transition);
  background: none; border: none;
}
.nav-btn:hover { background: rgba(201,168,76,.15); color: var(--brand); }
.nav-btn svg  { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-badge {
  position: absolute; top: 2px; right: 4px;
  background: var(--brand); color: #0d0d0d;
  font-size: .6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CATEGORY NAV BAR ---------- */
.cat-nav { background: #111; border-bottom: 1px solid rgba(201,168,76,.2); }
.cat-nav-inner {
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
  padding: 11px 16px; font-size: .82rem; font-weight: 500;
  white-space: nowrap; color: rgba(255,255,255,.6);
  transition: background var(--transition); border-bottom: 3px solid transparent;
}
.cat-link:hover, .cat-link.active {
  background: rgba(201,168,76,.12); color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Category nav scroll arrows — fade-to-dark gradient, no button chrome */
.cat-nav .container { position: relative; }
.cat-nav-arrow {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  width: 44px; border: none; cursor: pointer; color: var(--brand);
  align-items: center; background: none; transition: var(--transition);
  display: none; appearance: none; -webkit-appearance: none; padding: 0;
}
.cat-nav-arrow.is-visible { display: flex; }
.cat-nav-arrow svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.cat-nav-arrow:hover { color: #fff; }
.cat-nav-arrow-prev {
  left: 0; justify-content: flex-start; padding-left: 2px;
  background: linear-gradient(to right, #111 45%, rgba(17,17,17,0));
}
.cat-nav-arrow-next {
  right: 0; justify-content: flex-end; padding-right: 2px;
  background: linear-gradient(to left, #111 45%, rgba(17,17,17,0));
}

/* ---------- HERO BANNER ---------- */
.hero { background: #0d0d0d; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; min-height: 460px; gap: 40px;
  padding: 48px 0;
}
.hero-text h1 { color: var(--brand); margin-bottom: 16px; }
.hero-text p  { color: rgba(255,255,255,.6); font-size: 1.05rem; margin-bottom: 28px; max-width: 420px; }
.hero-image img { border-radius: var(--radius-lg); object-fit: cover; height: 400px; width: 100%; }
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0; }
  .hero-image { display: none; }
}

/* ---------- SECTION HEADER ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p  { color: var(--gray); max-width: 520px; margin: 0 auto; }

/* ---------- CATEGORY CARDS ---------- */
.cat-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 4/3;
  display: block; box-shadow: var(--shadow);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #fff; padding: 24px 14px 12px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
}
.cat-card-extra { display: none; }
#catGrid.show-extras .cat-card-extra { display: block; }

/* ---------- PRODUCT CARDS ---------- */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img {
  aspect-ratio: 1; overflow: hidden; background: var(--brand-light); display: block;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .05em;
}
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-cat  { font-size: .72rem; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.product-card-name { font-weight: 600; font-size: .92rem; margin-bottom: 10px; line-height: 1.35; flex: 1; }
.product-card-price { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--brand); }
.price-old     { font-size: .82rem; color: var(--gray); text-decoration: line-through; }
.product-card-footer { display: flex; gap: 8px; margin-top: auto; }
.product-card-footer .btn { flex: 1; font-size: .82rem; padding: 8px 10px; }

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery .main-img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-thumb { width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.product-thumb.active, .product-thumb:hover { border-color: var(--brand); }
.product-info-price { font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.product-info-old   { font-size: 1rem; color: var(--gray); text-decoration: line-through; }
.product-qty-wrap   { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.qty-large { display: flex; align-items: center; border: 1.5px solid #e0e0e0; border-radius: var(--radius); overflow: hidden; }
.qty-large button { width: 42px; height: 46px; background: var(--gray-light); font-size: 1.2rem; }
.qty-large button:hover { background: var(--brand-mid); }
.qty-large input  { width: 56px; height: 46px; text-align: center; border: none; border-left: 1.5px solid #e0e0e0; border-right: 1.5px solid #e0e0e0; font-size: 1rem; font-weight: 600; outline: none; font-family: var(--font-body); }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 140px; }
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- SHOP LAYOUT ---------- */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.shop-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); height: fit-content; }
.filter-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.filter-title { font-weight: 700; font-size: .82rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.filter-option {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: .88rem; padding: 5px 6px; border-radius: 6px; transition: background var(--transition);
}
.filter-option:hover { background: var(--brand-light); color: var(--brand); }
.filter-option input { accent-color: var(--brand); }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } .shop-sidebar { position: static; } }

/* ---------- CART DRAWER ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.48);
  z-index: 2000; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px,100vw); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 2001; box-shadow: -4px 0 40px rgba(0,0,0,.18);
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.cart-header h3 { font-size: 1.15rem; margin: 0; }
.cart-close { background: none; font-size: 1.4rem; color: var(--gray); padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.cart-close:hover { background: var(--gray-light); color: var(--black); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-item  { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: var(--radius); background: var(--gray-light); }
.cart-item-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.cart-item-name  { font-weight: 600; font-size: .9rem; margin-bottom: 4px; line-height: 1.3; }
.cart-item-price { color: var(--brand); font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
.qty-control { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 1.5px solid #ddd; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.qty-input { width: 36px; text-align: center; border: none; font-weight: 700; background: transparent; font-size: .9rem; font-family: var(--font-body); }
.cart-remove { color: var(--gray); font-size: .75rem; cursor: pointer; transition: color var(--transition); margin-left: 4px; }
.cart-remove:hover { color: var(--danger); }
.cart-footer { padding: 20px; border-top: 1px solid #eee; flex-shrink: 0; }
.cart-totals { margin-bottom: 16px; }
.cart-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .9rem; }
.cart-total-row.big { font-size: 1.1rem; font-weight: 700; color: var(--brand); border-top: 2px solid #eee; padding-top: 12px; margin-top: 6px; }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 500; border: 1.5px solid #e0e0e0;
  transition: var(--transition); background: var(--white);
}
.page-btn:hover, .page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- CHECKOUT PAGE ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.checkout-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1.5px solid #eee; font-family: var(--font-head); }
.payment-option { border: 2px solid #e0e0e0; border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color var(--transition), background var(--transition); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.payment-option:hover { border-color: var(--brand); background: var(--brand-light); }
.payment-option.selected { border-color: var(--brand); background: var(--brand-light); }
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ---------- STATUS BADGES ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 40px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-confirmed  { background: #dbeafe; color: #1e40af; }
.badge-processing { background: #ede9fe; color: #5b21b6; }
.badge-shipped    { background: #e0f2fe; color: #0369a1; }
.badge-delivered  { background: #dcfce7; color: #166534; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-paid       { background: #dcfce7; color: #166534; }
.badge-failed     { background: #fee2e2; color: #991b1b; }

/* ---------- ADMIN PANEL ---------- */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: #111; color: #fff;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.admin-logo .logo-name { font-family: var(--font-head); font-size: 1.25rem; color: var(--brand); display: block; }
.admin-logo .logo-tag  { font-size: .65rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; display: block; }
.admin-nav { padding: 12px 0; flex: 1; }
.admin-nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 20px; color: rgba(255,255,255,.65);
  font-size: .88rem; font-weight: 500; transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-link.active { background: rgba(201,168,76,.18); color: #fff; border-left-color: var(--brand); }
.admin-nav-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.admin-nav-section { padding: 16px 20px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.25); font-weight: 600; }

.admin-content { background: #f6f6f6; padding: 32px; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.admin-topbar h1 { font-size: 1.5rem; }

/* Stat Cards */
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
  border-left: 4px solid transparent;
}
.stat-card-label { font-size: .78rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.stat-card-value { font-size: 1.8rem; font-weight: 700; color: var(--black); line-height: 1; }
.stat-card-sub   { font-size: .8rem; color: var(--gray); }
.stat-card.brand { border-left-color: var(--brand); }
.stat-card.green { border-left-color: var(--success); }
.stat-card.blue  { border-left-color: #3b82f6; }
.stat-card.amber { border-left-color: var(--warning); }

/* Admin Cards */
.admin-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden;
}
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap; gap: 10px;
}
.admin-card-head h2 { font-size: 1rem; margin: 0; }
.admin-card-body { padding: 24px; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: #f8f8f8; padding: 12px 16px;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .07em;
  text-align: left; color: var(--gray); font-weight: 700;
  border-bottom: 1.5px solid #eee; white-space: nowrap;
}
.data-table td { padding: 14px 16px; font-size: .88rem; border-bottom: 1px solid #f2f2f2; vertical-align: middle; }
.data-table tr:last-child td { border: none; }
.data-table tbody tr:hover td { background: #fafafa; }

@media (max-width: 960px) { .admin-wrap { grid-template-columns: 1fr; } .admin-sidebar { height: auto; position: static; } .stat-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-cards { grid-template-columns: 1fr; } }

/* ---------- SITE FOOTER ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.65); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-name { font-family: var(--font-head); color: var(--brand); font-size: 1.5rem; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: .86rem; line-height: 1.75; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: .82rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); }
.footer-col a  { display: block; font-size: .85rem; margin-bottom: 9px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; font-size: .8rem; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,.5); font-size: 1.3rem; transition: color var(--transition); }
.footer-social a:hover { color: var(--brand); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- TOAST NOTIFICATIONS ---------- */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #1e1e1e; color: #fff; padding: 13px 20px;
  border-radius: var(--radius); font-size: .88rem;
  animation: slideUp .3s ease forwards;
  min-width: 240px; max-width: 360px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  pointer-events: all;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid #3b82f6; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- WHATSAPP FLOAT BUTTON ---------- */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  font-size: 1.6rem; transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }

/* ---------- UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.text-brand  { color: var(--brand); }
.text-muted  { color: var(--gray); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.mt-8  { margin-top: 8px; }  .mb-8  { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; } .mb-32 { margin-bottom: 32px; }
.mt-48 { margin-top: 48px; } .mb-48 { margin-bottom: 48px; }
.hidden  { display: none !important; }
.loading { opacity: .55; pointer-events: none; cursor: wait; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ============================================================
   RESPONSIVE MEDIA QUERIES
   Breakpoints:
     Mobile       : ≤ 480px
     Mobile-lg    : 481px – 640px
     Tablet       : 641px – 900px
     Desktop-sm   : 901px – 1100px
     Desktop      : > 1100px  (base styles above)
   ============================================================ */

/* ─────────────────────────────────────────────
   DESKTOP-SM  (901 – 1100px)
   Slight compression before full desktop
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container   { padding: 0 28px; }
  .nav-search  { max-width: 340px; }
  .admin-content { padding: 24px; }
}

/* ─────────────────────────────────────────────
   TABLET  (641 – 900px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  /* Typography */
  h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  h2 { font-size: clamp(1.25rem, 4vw, 1.8rem); }

  /* Layout */
  .container  { padding: 0 20px; }
  .section    { padding: 40px 0; }
  .section-sm { padding: 24px 0; }

  /* Header: collapse search bar */
  .nav-search { display: none; }

  /* Hero: single column */
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 0;
    text-align: center;
  }
  .hero-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-image  { display: none; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .section .grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* Product detail: stack */
  .product-detail { grid-template-columns: 1fr; gap: 32px; }

  /* Shop: full width */
  .shop-layout  { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }

  /* Checkout: single column */
  .checkout-layout { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }

  /* Admin panel: horizontal sidebar */
  .admin-wrap    { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-logo    { padding: 16px 20px; }
  .admin-nav     { display: flex; flex-wrap: wrap; padding: 8px 12px; }
  .admin-nav-link {
    padding: 8px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .admin-nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--brand);
  }
  .admin-content { padding: 20px; }
  .stat-cards    { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Toast */
  #toast-container { bottom: 16px; right: 16px; left: 16px; align-items: stretch; }
  .toast { min-width: unset; max-width: 100%; }
}

/* ─────────────────────────────────────────────
   MOBILE-LG  (481 – 640px)
───────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Nav */
  .nav-inner { gap: 10px; }
  .nav-logo .logo-name { font-size: 1.2rem; }
  .nav-logo .logo-tag  { display: none; }
  .nav-btn  { padding: 5px 7px; font-size: .65rem; }
  .nav-btn svg { width: 20px; height: 20px; }

  /* Cat nav */
  .cat-link { padding: 9px 12px; font-size: .78rem; }

  /* Hero */
  .hero-text h1 { font-size: 1.7rem; }
  .hero-text p  { font-size: .95rem; }
  .section-head { margin-bottom: 28px; }

  /* Product cards */
  .product-card-body { padding: 12px; }
  .product-card-name { font-size: .85rem; }
  .product-card-footer .btn { padding: 7px 8px; font-size: .78rem; }

  /* Cart drawer */
  .cart-drawer { width: 100vw; }
  .cart-item   { grid-template-columns: 60px 1fr; gap: 10px; padding: 10px; }
  .cart-item-img { width: 60px; height: 60px; }

  /* Checkout */
  .checkout-card { padding: 20px; }

  /* Buttons */
  .btn-lg { padding: 12px 24px; font-size: 1rem; }
}

/* ─────────────────────────────────────────────
   MOBILE  (≤ 480px)
───────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 56px; }

  /* Typography */
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }

  /* Layout */
  .container  { padding: 0 14px; }
  .section    { padding: 28px 0; }
  .section-sm { padding: 18px 0; }

  /* Nav: icon-only mode */
  .nav-inner { gap: 6px; }
  .nav-logo .logo-name { font-size: 1.1rem; }
  .nav-btn span:not(.nav-badge) { display: none; }
  .nav-btn { padding: 6px 8px; }

  /* Hero */
  .hero-inner { padding: 24px 0 20px; gap: 20px; }
  .hero-text  { text-align: center; }
  .hero-text h1 { font-size: 1.55rem; }
  .hero-text p  { font-size: .9rem; margin-bottom: 20px; }
  .btn-lg { width: 100%; }

  /* Grids: mostly single column */
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  /* Category cards */
  .cat-card { aspect-ratio: 3/2; }

  /* Product cards: 2-per-row compact grid */
  .products-grid,
  .section .grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card-body   { padding: 10px; }
  .product-card-cat    { display: none; }
  .product-card-name   { font-size: .82rem; margin-bottom: 6px; }
  .price-current       { font-size: .95rem; }
  .price-old           { font-size: .75rem; }
  .product-card-footer { flex-direction: column; gap: 6px; }
  .product-card-footer .btn { width: 100%; font-size: .8rem; padding: 8px; }

  /* Product detail page */
  .product-detail     { gap: 20px; }
  .product-thumbs     { gap: 7px; }
  .product-thumb      { width: 58px; height: 58px; }
  .product-actions    { flex-direction: column; }
  .product-actions .btn { min-width: unset; width: 100%; }
  .product-info-price { font-size: 1.4rem; }
  .product-qty-wrap   { gap: 10px; }

  /* Shop page */
  .shop-layout { gap: 16px; }
  .filter-card { padding: 14px; }

  /* Cart drawer: full screen */
  .cart-drawer   { width: 100vw; }
  .cart-header   { padding: 14px 16px; }
  .cart-items    { padding: 10px; gap: 8px; }
  .cart-item     { grid-template-columns: 56px 1fr; gap: 8px; padding: 8px; }
  .cart-item-img { width: 56px; height: 56px; }
  .cart-item-name  { font-size: .84rem; }
  .cart-item-price { font-size: .88rem; }
  .cart-footer     { padding: 14px 16px; }
  .cart-total-row  { font-size: .85rem; }
  .cart-total-row.big { font-size: 1rem; }

  /* Checkout */
  .checkout-card  { padding: 16px; }
  .checkout-title { font-size: 1rem; }
  .payment-option { padding: 12px; }

  /* Admin */
  .admin-content    { padding: 14px; }
  .admin-topbar h1  { font-size: 1.15rem; }
  .stat-cards       { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .stat-card-value  { font-size: 1.5rem; }
  .admin-card-head  { padding: 14px 16px; }
  .admin-card-body  { padding: 0; }
  /* Scrollable data table on mobile */
  .admin-card  { overflow-x: auto; }
  .data-table  { min-width: 600px; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .site-footer   { padding: 36px 0 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-social { justify-content: center; }

  /* Pagination */
  .pagination { gap: 4px; }
  .page-btn   { width: 34px; height: 34px; font-size: .8rem; }

  /* Toast */
  #toast-container { bottom: 12px; right: 10px; left: 10px; }
  .toast { font-size: .82rem; padding: 11px 14px; }

  /* WhatsApp button */
  .wa-float { width: 48px; height: 48px; font-size: 1.35rem; bottom: 16px; left: 16px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   TINY PHONES  (≤ 360px)
───────────────────────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  h1 { font-size: 1.35rem; }
  .nav-logo .logo-name { font-size: 1rem; }
  /* Drop to single column on very small screens */
  .products-grid,
  .section .grid-4 { grid-template-columns: 1fr; }
}