/* ═══════════════════════════════════
   REVTEX — MAIN STYLESHEET
   ═══════════════════════════════════ */

/* ── CSS Variables ── */
:root {
   --brand: #8B1A1A;
   --brand-dark: #6d1414;
   --bg: #ffffff;
   --bg-soft: #fdf6f0;
   --bg-card: #ffffff;
   --text: #1a1a1a;
   --text-muted: #666666;
   --text-light: #999999;
   --border: #f0f0f0;
   --border-mid: #e0e0e0;
   --nav-bg: #ffffff;
   --footer-bg: #1a1a1a;
   --footer-text: #cccccc;
   --input-bg: #ffffff;
   --chip-bg: #ffffff;
   --summary-bg: #fdf6f0;
   --shadow: rgba(0, 0, 0, 0.08);
   --card-text: #1a1a1a;
   --card-muted: #666666;
   --nav-text: #1a1a1a;
   --heading-text: #1a1a1a;
   --gift-label: #1a1a1a;
   --gift-sub: #999999;
}

[data-theme="dark"] {
   --brand: #e05555;
   --brand-dark: #c43c3c;
   --bg: #121212;
   --bg-soft: #1e1e1e;
   --bg-card: #1e1e1e;
   --text: #f0f0f0;
   --text-muted: #aaaaaa;
   --text-light: #777777;
   --border: #2e2e2e;
   --border-mid: #3a3a3a;
   --nav-bg: #1a1a1a;
   --footer-bg: #0d0d0d;
   --footer-text: #888888;
   --input-bg: #2a2a2a;
   --chip-bg: #2a2a2a;
   --summary-bg: #1e1e1e;
   --shadow: rgba(0, 0, 0, 0.3);
   --card-text: #ffffff;
   --card-muted: #bbbbbb;
   --nav-text: #ffffff;
   --heading-text: #ffffff;
   --gift-label: #ffffff;
   --gift-sub: #aaaaaa;
}

/* ── Reset ── */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Poppins', sans-serif;
   font-size: 14px;
   color: var(--text);
   background: var(--bg);
   transition: background 0.3s, color 0.3s;
}

/* ═══════════════════════════════════
   NAVBAR — DESKTOP (default)
   Row: Logo | Search | Icons
   ═══════════════════════════════════ */
.navbar {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 14px 24px;
   border-bottom: 1px solid var(--border);
   position: sticky;
   top: 0;
   background: var(--nav-bg);
   z-index: 100;
   transition: background 0.3s;
   flex-wrap: wrap;
   gap: 8px;
}

.navbar-brand {
   text-decoration: none;
   flex-shrink: 0;
}

.brand-name {
   font-size: 22px;
   font-weight: 600;
   color: var(--brand);
   letter-spacing: 1px;
   text-decoration: none;
}

/* Search — middle on desktop */
.search-form {
   display: flex;
   gap: 8px;
   flex: 1;
   max-width: 400px;
   margin: 0 24px;
   order: 0;
}

.search-input {
   flex: 1;
   padding: 8px 14px;
   border: 1px solid var(--border-mid);
   border-radius: 6px;
   font-family: inherit;
   font-size: 13px;
   outline: none;
   background: var(--input-bg);
   color: var(--text);
}

.search-input:focus {
   border-color: var(--brand);
}

.search-btn {
   padding: 8px 16px;
   background: var(--brand);
   color: white;
   border: none;
   border-radius: 6px;
   cursor: pointer;
   font-family: inherit;
   font-size: 13px;
}

/* Icons row */
.nav-icons {
   display: flex;
   align-items: center;
   gap: 16px;
   order: 0;
}

/* Desktop: icon + text */
.nav-icon {
   text-decoration: none;
   color: var(--nav-text);
   font-size: 13px;
   position: relative;
   display: inline-flex;
   align-items: center;
   gap: 5px;
   white-space: nowrap;
   height: auto;
   width: auto;
}

.nav-icon:hover {
   color: var(--brand);
}

.nav-icon-symbol {
   font-size: 15px;
}

.nav-icon-text {
   display: inline;
}

.cart-count {
   position: absolute;
   top: -8px;
   right: -10px;
   background: var(--brand);
   color: white;
   font-size: 10px;
   border-radius: 50%;
   width: 16px;
   height: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
}

/* Theme toggle */
.theme-toggle {
   background: none;
   border: 1.5px solid var(--border-mid);
   border-radius: 50%;
   width: 32px;
   height: 32px;
   cursor: pointer;
   font-size: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--nav-text);
   transition: background 0.2s, border-color 0.2s;
   flex-shrink: 0;
}

.theme-toggle:hover {
   background: var(--bg-soft);
   border-color: var(--brand);
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.hero {
   text-align: center;
   padding: 80px 24px;
   background: var(--bg-soft);
}

.hero h1 {
   font-size: 36px;
   font-weight: 600;
   color: var(--brand);
   margin-bottom: 12px;
}

.hero p {
   font-size: 16px;
   color: var(--text-muted);
   margin-bottom: 28px;
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn-primary {
   display: inline-block;
   padding: 12px 32px;
   background: var(--brand);
   color: #ffffff !important;
   text-decoration: none;
   border-radius: 6px;
   font-size: 14px;
   font-weight: 500;
   border: none;
   cursor: pointer;
   font-family: inherit;
}

.btn-primary:hover {
   background: var(--brand-dark);
}

.btn-full {
   width: 100%;
   padding: 12px;
   font-size: 15px;
   border-radius: 8px;
   margin-top: 4px;
}

.btn-outline {
   padding: 10px 24px;
   border: 1.5px solid var(--brand);
   color: var(--brand);
   background: var(--bg-card);
   border-radius: 6px;
   font-size: 14px;
   font-weight: 500;
   cursor: pointer;
   font-family: inherit;
   text-decoration: none;
   display: inline-block;
}

.btn-outline:hover {
   background: var(--bg-soft);
}

.btn-outline-sm {
   padding: 4px 12px;
   border: 1px solid var(--brand);
   color: var(--brand);
   border-radius: 4px;
   text-decoration: none;
   font-size: 12px;
}

.btn-outline-cancel {
   padding: 10px 20px;
   border: 1px solid var(--border-mid);
   color: var(--text-muted);
   border-radius: 6px;
   text-decoration: none;
   font-size: 14px;
}

.btn-cart {
   flex: 1;
   padding: 12px;
   border: 2px solid var(--brand);
   background: var(--bg-card);
   color: var(--brand);
   border-radius: 8px;
   font-size: 14px;
   font-weight: 500;
   cursor: pointer;
   font-family: inherit;
}

.btn-cart:disabled {
   border-color: #ccc;
   color: #ccc;
   cursor: not-allowed;
}

.btn-buy {
   flex: 1;
   border-radius: 8px;
   border: none;
   cursor: pointer;
   font-family: inherit;
}

.btn-wishlist {
   padding: 12px 16px;
   border: 1px solid var(--border-mid);
   background: var(--bg-card);
   color: var(--text-muted);
   border-radius: 8px;
   font-size: 14px;
   cursor: pointer;
   font-family: inherit;
}

.btn-wishlist:hover {
   border-color: var(--brand);
   color: var(--brand);
}

.btn-check {
   padding: 8px 16px;
   background: var(--text);
   color: var(--bg);
   border: none;
   border-radius: 6px;
   cursor: pointer;
   font-family: inherit;
   font-size: 13px;
}

.back-link {
   display: inline-block;
   margin-top: 24px;
   font-size: 13px;
   color: var(--brand);
   text-decoration: none;
}

/* ═══════════════════════════════════
   CARD ICON BUTTONS
   ═══════════════════════════════════ */
.card-link {
   text-decoration: none;
   color: inherit;
   display: block;
}

.card-actions {
   display: flex;
   gap: 8px;
   padding: 8px 10px 10px;
   justify-content: flex-end;
   align-items: center;
   margin-top: auto;
   border-top: 1px solid var(--border);
}

.icon-btn {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   border: none;
   cursor: pointer;
   font-size: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: transform 0.15s, opacity 0.15s;
   font-family: inherit;
   flex-shrink: 0;
}

.icon-btn:hover {
   transform: scale(1.12);
   opacity: 0.88;
}

.cart-icon-btn {
   background: var(--bg-card);
   color: var(--brand);
   border: 1.5px solid var(--brand);
}

.buy-icon-btn {
   background: var(--brand);
   color: #ffffff;
}

.wish-icon-btn {
   background: var(--bg-soft);
   color: var(--brand);
   border: 1.5px solid var(--border-mid);
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
footer {
   margin-top: 60px;
   padding: 40px 24px;
   background: var(--footer-bg);
   color: var(--footer-text);
}

.footer-content {
   max-width: 1100px;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   gap: 40px;
   flex-wrap: wrap;
}

.footer-brand .brand-name {
   color: #fff;
}

.footer-brand p {
   margin-top: 8px;
   font-size: 12px;
}

.footer-links {
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.footer-links a {
   color: #ccc;
   text-decoration: none;
   font-size: 13px;
}

/* ═══════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════ */

.about-page {
   max-width: 860px;
   margin: 0 auto;
   padding: 40px 24px;
}

.about-hero {
   text-align: center;
   padding: 48px 0 40px;
}

.about-hero-title {
   font-size: 36px;
   font-weight: 600;
   color: var(--text);
   margin: 0 0 12px;
}

.about-hero-sub {
   font-size: 16px;
   color: var(--text-light);
   margin: 0;
}

.about-content {
   display: flex;
   flex-direction: column;
   gap: 48px;
}

.about-section h2 {
   font-size: 20px;
   font-weight: 600;
   color: var(--text);
   margin: 0 0 16px;
   padding-bottom: 10px;
   border-bottom: 2px solid var(--border);
}

.about-section p {
   color: var(--text-light);
   line-height: 1.8;
   font-size: 15px;
   margin: 0;
}

.about-values {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}

.about-value-card {
   background: var(--card-bg);
   border: 1px solid var(--border);
   border-radius: 12px;
   padding: 24px 20px;
   text-align: center;
}

.about-value-icon {
   font-size: 28px;
   display: block;
   margin-bottom: 12px;
}

.about-value-card h3 {
   font-size: 15px;
   font-weight: 600;
   color: var(--text);
   margin: 0 0 8px;
}

.about-value-card p {
   font-size: 13px;
   color: var(--text-light);
   line-height: 1.6;
   margin: 0;
}

.about-contact-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
}

.about-contact-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 12px 20px;
   background: var(--card-bg);
   border: 1px solid var(--border);
   border-radius: 10px;
   color: var(--text);
   text-decoration: none;
   font-size: 14px;
   transition: border-color 0.2s, background 0.2s;
}

.about-contact-item:hover {
   border-color: var(--primary);
   background: var(--bg-subtle, var(--card-bg));
}

.about-contact-icon {
   display: flex;
   align-items: center;
   color: var(--primary);
   font-style: normal;
}

@media (max-width: 640px) {
   .about-values {
      grid-template-columns: 1fr;
   }

   .about-hero-title {
      font-size: 26px;
   }
}

.footer-contact {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.footer-contact-title {
   color: #fff;
   font-size: 13px;
   font-weight: 600;
   margin: 0 0 2px;
}

.footer-contact a {
   color: #ccc;
   text-decoration: none;
   font-size: 13px;
}

.footer-contact a:hover {
   color: #fff;
}

.footer-social {
   display: flex;
   gap: 14px;
   margin-top: 6px;
}

.footer-social a {
   color: #aaa;
   display: flex;
   transition: color 0.2s;
}

.footer-social a:hover {
   color: #fff;
}

.footer-copy {
   font-size: 12px;
   opacity: 0.6;
   align-self: flex-end;
}

/* ═══════════════════════════════════
   ALERTS
   ═══════════════════════════════════ */
.alert {
   padding: 10px 14px;
   border-radius: 8px;
   font-size: 13px;
   margin-bottom: 8px;
}

.alert-error {
   background: #FAECE7;
   color: #712B13;
   border: 1px solid #F5C4B3;
}

.alert-success {
   background: #EAF3DE;
   color: #27500A;
   border: 1px solid #C0DD97;
}

.alert-info {
   background: #E6F1FB;
   color: #0C447C;
   border: 1px solid #B5D4F4;
}

/* ═══════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════ */
.auth-page {
   min-height: 80vh;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 40px 16px;
   background: var(--bg-soft);
}

.auth-card {
   background: var(--bg-card);
   border-radius: 12px;
   border: 1px solid var(--border);
   padding: 40px;
   width: 100%;
   max-width: 420px;
   box-shadow: 0 2px 20px var(--shadow);
}

.auth-title {
   font-size: 22px;
   font-weight: 600;
   color: var(--text);
   margin-bottom: 6px;
   text-align: center;
}

.auth-sub {
   font-size: 13px;
   color: var(--text-muted);
   text-align: center;
   margin-bottom: 4px;
}

.auth-note {
   font-size: 12px;
   color: var(--text-light);
   text-align: center;
   margin-bottom: 24px;
}

.auth-form {
   margin-top: 24px;
   display: flex;
   flex-direction: column;
   gap: 16px;
}

.form-group {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.form-group label {
   font-size: 12px;
   font-weight: 500;
   color: var(--text-muted);
}

.form-input {
   padding: 10px 14px;
   border: 1px solid var(--border-mid);
   border-radius: 8px;
   font-family: inherit;
   font-size: 14px;
   outline: none;
   transition: border-color 0.2s;
   background: var(--input-bg);
   color: var(--text);
}

.form-input:focus {
   border-color: var(--brand);
}

.form-input:disabled {
   opacity: 0.6;
   cursor: not-allowed;
}

.form-input.input-readonly {
   background: var(--surface-alt, #f5f5f5);
   cursor: default;
   color: var(--text-muted, #666);
}

textarea.form-input {
   resize: vertical;
   min-height: 80px;
}

.otp-input {
   font-size: 22px;
   letter-spacing: 10px;
   text-align: center;
}

.remember-me-row {
   margin-bottom: 0;
}

.remember-me-label {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
   color: var(--text-light);
   cursor: pointer;
}

.auth-links {
   display: flex;
   justify-content: space-between;
   margin-top: 20px;
}

.auth-links a {
   font-size: 12px;
   color: var(--brand);
   text-decoration: none;
}

/* ═══════════════════════════════════
   SECTIONS + SAREE GRID
   ═══════════════════════════════════ */
.section {
   max-width: 1100px;
   margin: 40px auto;
   padding: 0 24px;
}

.section-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 20px;
}

.section-header h2 {
   font-size: 20px;
   font-weight: 600;
   color: var(--heading-text);
}

.section-sub {
   font-size: 13px;
   color: var(--text-light);
}

.see-all {
   font-size: 13px;
   color: var(--brand);
   text-decoration: none;
   font-weight: 500;
}

.saree-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 16px;
}

@media (min-width: 769px) {
   .saree-grid {
      grid-template-columns: repeat(4, 1fr);
   }
}

.saree-card {
   border-radius: 10px;
   overflow: hidden;
   border: 1px solid var(--border);
   background: var(--bg-card);
   transition: box-shadow 0.2s;
   display: flex;
   flex-direction: column;
}

.saree-card:hover {
   box-shadow: 0 4px 16px var(--shadow);
}

.saree-card.highlighted {
   border-color: var(--brand);
}

.card-image {
   position: relative;
   width: 100%;
   padding-top: 133%;
   background: var(--bg-soft);
   overflow: hidden;
}

.card-image img {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.no-image {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-light);
   font-size: 12px;
   background: var(--bg-soft);
}

.card-info {
   padding: 10px 12px 12px;
}

.card-product-id {
   display: block;
   font-size: 10px;
   font-family: monospace;
   color: var(--text-light);
   margin-bottom: 2px;
}

.card-name {
   font-size: 13px;
   font-weight: 600;
   color: var(--card-text);
   margin-bottom: 6px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.card-price {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap;
}

.price-current {
   font-size: 14px;
   font-weight: 600;
   color: var(--brand);
}

.price-original {
   font-size: 12px;
   color: var(--card-muted);
   text-decoration: line-through;
}

.badge-discount {
   position: absolute;
   top: 8px;
   left: 8px;
   background: var(--brand);
   color: white;
   font-size: 10px;
   font-weight: 600;
   padding: 2px 7px;
   border-radius: 4px;
   z-index: 1;
}

.badge-trending {
   position: absolute;
   top: 8px;
   right: 8px;
   background: #FF6B35;
   color: white;
   font-size: 10px;
   font-weight: 600;
   padding: 2px 7px;
   border-radius: 4px;
   z-index: 1;
}

.badge-featured {
   position: absolute;
   top: 8px;
   right: 8px;
   background: var(--brand);
   color: white;
   font-size: 10px;
   font-weight: 600;
   padding: 2px 7px;
   border-radius: 4px;
}

.badge-stock {
   font-size: 11px;
   color: #FF6B35;
   font-weight: 500;
   display: block;
   margin-top: 4px;
}

.trending-timer {
   font-size: 12px;
   font-weight: 600;
   color: #d97706;
   display: block;
   margin-top: 4px;
}

.badge-giftbox {
   position: absolute;
   top: 8px;
   left: 8px;
   background: #7c3aed;
   color: white;
   font-size: 10px;
   font-weight: 600;
   padding: 2px 7px;
   border-radius: 4px;
   z-index: 1;
}


.section-title-row {
   margin-bottom: 12px;
}

.section-title {
   font-size: 18px;
   font-weight: 600;
   color: var(--text);
}

/* ── Reminder banners ───────────────────────────────── */
.grid-full-row {
   grid-column: 1 / -1;
}

.reminder-banner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   padding: 14px 20px;
   border-radius: 10px;
   flex-wrap: wrap;
}

.trending-reminder {
   border: 2px solid #f59e0b;
   background: #fffbeb;
}

[data-theme="dark"] .trending-reminder {
   background: #2a2000;
   border-color: #d97706;
}

.giftbox-reminder {
   border: 2px solid #7c3aed;
   background: #faf5ff;
}

[data-theme="dark"] .giftbox-reminder {
   background: #1e0a3a;
   border-color: #7c3aed;
}

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

.reminder-text p {
   margin: 0;
   font-size: 14px;
   color: var(--text);
}

.reminder-badge {
   font-size: 13px;
   font-weight: 700;
   padding: 3px 12px;
   border-radius: 20px;
   white-space: nowrap;
}

.trending-badge {
   background: #f59e0b;
   color: #fff;
}

.giftbox-badge {
   background: #7c3aed;
   color: #fff;
}

/* ── Collections strip (homepage) ──────────────────── */
.collections-strip {
   display: flex;
   gap: 14px;
   overflow-x: auto;
   padding-bottom: 8px;
   scrollbar-width: thin;
}

.collections-strip::-webkit-scrollbar { height: 4px; }
.collections-strip::-webkit-scrollbar-thumb {
   background: var(--border);
   border-radius: 4px;
}

.collection-card {
   flex-shrink: 0;
   width: 140px;
   text-decoration: none;
   color: var(--text);
}

.collection-card-img {
   width: 140px;
   height: 140px;
   border-radius: 12px;
   background-color: var(--border);
   background-size: cover;
   background-position: center;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
   margin-bottom: 8px;
}

.collection-no-img {
   font-size: 32px;
   opacity: 0.4;
}

.collection-card-name {
   font-size: 13px;
   font-weight: 600;
   text-align: center;
   margin: 0;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.collection-card:hover .collection-card-img {
   opacity: 0.85;
}

/* ── Collection hero (view page) ────────────────────── */
.collection-hero {
   min-height: 200px;
   background-size: cover;
   background-position: center;
   position: relative;
   display: flex;
   align-items: flex-end;
   margin-bottom: 8px;
}

/* With photo — dark gradient overlay so text is readable */
.collection-hero--img .collection-hero-overlay {
   background: linear-gradient(transparent, rgba(0,0,0,0.65));
   width: 100%;
   padding: 24px 20px 20px;
   color: #fff;
}

.collection-hero--img .collection-hero-overlay h1 {
   font-size: 22px;
   font-weight: 700;
   margin: 0 0 4px;
}

.collection-hero--img .collection-hero-overlay p {
   font-size: 14px;
   margin: 0 0 4px;
   opacity: 0.85;
}

.collection-hero--img .collection-hero-overlay span {
   font-size: 12px;
   opacity: 0.7;
}

/* No photo — brand colour gradient, text directly */
.collection-hero--solid {
   background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
   align-items: center;
   justify-content: center;
}

.collection-hero-solid-text {
   padding: 32px 24px;
   text-align: center;
   color: #fff;
}

.collection-hero-solid-text h1 {
   font-size: 26px;
   font-weight: 700;
   margin: 0 0 6px;
}

.collection-hero-solid-text p {
   font-size: 14px;
   margin: 0 0 6px;
   opacity: 0.85;
}

.collection-hero-solid-text span {
   font-size: 12px;
   opacity: 0.7;
}

.reminder-link {
   font-size: 13px;
   font-weight: 600;
   white-space: nowrap;
   text-decoration: none;
   color: var(--brand);
}

.reminder-link:hover {
   text-decoration: underline;
}

.empty-msg {
   color: var(--text-light);
   font-size: 14px;
   grid-column: 1/-1;
   text-align: center;
   padding: 40px 0;
}

/* ═══════════════════════════════════
   GIFT BOX
   ═══════════════════════════════════ */
.gift-grid {
   display: flex;
   gap: 16px;
   flex-wrap: wrap;
}

.gift-card {
   border: 2px solid var(--brand);
   border-radius: 12px;
   width: 160px;
   text-align: center;
   background: var(--bg-card);
   display: flex;
   flex-direction: column;
}

.gift-card a {
   text-decoration: none;
   color: inherit;
   display: block;
   padding: 24px 16px;
}

.gift-price {
   font-size: 24px;
   font-weight: 700;
   color: var(--brand);
   margin-bottom: 8px;
}

.gift-label {
   font-size: 13px;
   font-weight: 600;
   color: var(--gift-label);
   margin-bottom: 4px;
}

.gift-sub {
   font-size: 11px;
   color: var(--gift-sub);
}

/* ═══════════════════════════════════
   CATALOG PAGE
   ═══════════════════════════════════ */
.catalog-header {
   max-width: 1100px;
   margin: 30px auto 0;
   padding: 0 24px;
}

.catalog-header h1 {
   font-size: 24px;
   font-weight: 600;
   color: var(--heading-text);
   margin-bottom: 16px;
}

.filter-chips {
   display: flex;
   gap: 8px;
   overflow-x: auto;
   padding-bottom: 8px;
   margin-bottom: 16px;
   scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
   display: none;
}

.chip {
   display: inline-block;
   padding: 6px 16px;
   border-radius: 20px;
   border: 1px solid var(--border-mid);
   font-size: 13px;
   color: var(--text-muted);
   text-decoration: none;
   white-space: nowrap;
   transition: all 0.2s;
   background: var(--chip-bg);
}

.chip:hover {
   border-color: var(--brand);
   color: var(--brand);
}

.chip.active {
   background: var(--brand);
   border-color: var(--brand);
   color: white;
}

.search-indicator {
   font-size: 13px;
   color: var(--text-muted);
   margin-bottom: 16px;
}

.search-indicator a {
   color: var(--brand);
   margin-left: 8px;
   text-decoration: none;
}

.empty-catalog {
   grid-column: 1/-1;
   text-align: center;
   padding: 60px 0;
   color: var(--text-light);
}

.empty-catalog p {
   margin-bottom: 16px;
   font-size: 15px;
}

/* ═══════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════ */
.product-page {
   max-width: 1100px;
   margin: 30px auto;
   padding: 0 24px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 40px;
}

.product-image-wrap {
   position: relative;
}

.product-image {
   border-radius: 12px;
   overflow: hidden;
   background: var(--bg-soft);
   aspect-ratio: 3/4;
}

.main-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.no-image-large {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-light);
   font-size: 16px;
}

.product-thumb-strip {
   display: flex;
   gap: 8px;
   margin-top: 10px;
   flex-wrap: wrap;
}

.product-thumb {
   width: 60px;
   height: 80px;
   border: 2px solid var(--border-mid);
   border-radius: 6px;
   overflow: hidden;
   cursor: pointer;
   padding: 0;
   background: none;
   flex-shrink: 0;
   transition: border-color 0.15s;
}

.product-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.product-thumb.active,
.product-thumb:hover {
   border-color: var(--brand);
}

.product-badges {
   position: absolute;
   top: 12px;
   left: 12px;
   display: flex;
   flex-direction: column;
   gap: 6px;
   align-items: flex-start;
}

/* badges inside .product-badges must participate in flex flow,
   not escape to absolute positioning */
.product-badges .badge-discount,
.product-badges .badge-trending {
   position: static;
}

.badge-offer {
   background: #FF6B35;
   color: white;
   font-size: 11px;
   font-weight: 600;
   padding: 3px 10px;
   border-radius: 4px;
   display: inline-block;
}

.product-name {
   font-size: 22px;
   font-weight: 600;
   color: var(--text);
   margin-bottom: 12px;
   line-height: 1.3;
}

.product-tags {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
   margin-bottom: 20px;
}

.tag {
   background: var(--bg-soft);
   border: 1px solid var(--border-mid);
   color: var(--brand);
   font-size: 12px;
   padding: 3px 10px;
   border-radius: 20px;
}

.product-price-block {
   margin-bottom: 20px;
   padding: 16px;
   background: var(--bg-soft);
   border-radius: 10px;
}

.price-main {
   font-size: 28px;
   font-weight: 700;
   color: var(--brand);
   display: block;
   margin-bottom: 4px;
}

.price-offer {
   font-size: 28px;
   font-weight: 700;
   color: #FF6B35;
   display: block;
   margin-bottom: 4px;
}

.price-struck {
   font-size: 16px;
   color: var(--text-light);
   text-decoration: line-through;
   margin-right: 8px;
}

.discount-pill {
   background: var(--brand);
   color: white;
   font-size: 12px;
   font-weight: 600;
   padding: 2px 8px;
   border-radius: 4px;
}

.offer-banner {
   background: #FF6B35;
   color: white;
   font-size: 12px;
   font-weight: 600;
   padding: 4px 10px;
   border-radius: 4px;
   display: inline-block;
   margin-bottom: 8px;
}

.stock-out {
   color: #E24B4A;
   font-weight: 500;
   font-size: 13px;
   margin-bottom: 16px;
}

.stock-low {
   color: #FF6B35;
   font-weight: 500;
   font-size: 13px;
   margin-bottom: 16px;
}

.stock-ok {
   color: #3B6D11;
   font-size: 13px;
   margin-bottom: 16px;
}

.product-actions {
   display: flex;
   gap: 10px;
   margin-bottom: 24px;
   flex-wrap: wrap;
}

.variant-strip {
   margin-bottom: 16px;
}

.variant-label {
   font-size: 12px;
   color: var(--text-light);
   margin-bottom: 8px;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.04em;
}

.variant-thumbs {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
}

.variant-thumb {
   width: 52px;
   height: 52px;
   border-radius: 6px;
   overflow: hidden;
   border: 2px solid var(--border);
   flex-shrink: 0;
   transition: border-color 0.15s;
}

.variant-thumb:hover {
   border-color: var(--brand);
}

.variant-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.variant-thumb-no-img {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--bg-soft);
   font-size: 18px;
}

.pincode-check {
   margin-bottom: 24px;
   padding: 16px;
   border: 1px solid var(--border);
   border-radius: 10px;
}

.pincode-label {
   font-size: 13px;
   font-weight: 500;
   color: var(--text-muted);
   margin-bottom: 10px;
}

.pincode-form {
   display: flex;
   gap: 8px;
}

.pincode-input {
   width: 140px;
}

.pincode-result {
   font-size: 13px;
   margin-top: 8px;
}

.pincode-result.success {
   color: #3B6D11;
}

.pincode-result.error {
   color: #E24B4A;
}

.product-details {
   border-top: 1px solid var(--border);
   padding-top: 16px;
}

.details-toggle {
   background: none;
   border: none;
   font-size: 14px;
   font-weight: 500;
   color: var(--text);
   cursor: pointer;
   padding: 0;
   font-family: inherit;
   width: 100%;
   text-align: left;
}

.details-content {
   display: none;
   margin-top: 14px;
}

.details-content p {
   font-size: 13px;
   color: var(--text-muted);
   line-height: 1.7;
   margin-bottom: 14px;
}

.details-list {
   list-style: none;
   padding: 0;
}

.details-list li {
   display: flex;
   justify-content: space-between;
   padding: 8px 0;
   border-bottom: 1px solid var(--border);
   font-size: 13px;
}

.details-list li span:first-child {
   color: var(--text-light);
}

.details-list li span:last-child {
   color: var(--text);
   font-weight: 500;
}

/* ═══════════════════════════════════
   CART PAGE
   ═══════════════════════════════════ */
.cart-page {
   max-width: 1100px;
   margin: 30px auto;
   padding: 0 24px;
}

.cart-title {
   font-size: 24px;
   font-weight: 600;
   margin-bottom: 24px;
   color: var(--heading-text);
}

.cart-empty {
   text-align: center;
   padding: 80px 0;
   color: var(--text-light);
}

.cart-empty p {
   font-size: 16px;
   margin-bottom: 20px;
}

.cart-layout {
   display: grid;
   grid-template-columns: 1fr 360px;
   gap: 32px;
   align-items: start;
}

.cart-item {
   display: grid;
   grid-template-columns: 24px 80px 1fr auto;
   gap: 16px;
   align-items: center;
   padding: 16px 0;
   border-bottom: 1px solid var(--border);
}

.cart-item.out-of-stock {
   opacity: 0.6;
}

.item-checkbox {
   width: 18px;
   height: 18px;
   accent-color: var(--brand);
   cursor: pointer;
}

.cart-item-image {
   width: 80px;
   height: 100px;
   border-radius: 6px;
   overflow: hidden;
   background: var(--bg-soft);
   flex-shrink: 0;
}

.cart-item-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.no-image-sm {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 10px;
   color: var(--text-light);
}

.cart-item-name {
   font-size: 14px;
   font-weight: 500;
   color: var(--text);
   margin-bottom: 6px;
}

.oos-badge {
   display: inline-block;
   background: #FAECE7;
   color: #993C1D;
   font-size: 11px;
   padding: 2px 8px;
   border-radius: 4px;
   margin-bottom: 4px;
}

.low-stock-warn {
   display: inline-block;
   color: #FF6B35;
   font-size: 11px;
   margin-bottom: 4px;
}

.no-coupon-badge {
   display: inline-block;
   background: #FAEEDA;
   color: #633806;
   font-size: 11px;
   padding: 2px 8px;
   border-radius: 4px;
   margin-left: 4px;
}

.cart-item-actions {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 8px;
}

.qty-control form {
   display: flex;
   align-items: center;
   gap: 8px;
}

.qty-btn {
   width: 28px;
   height: 28px;
   border: 1px solid var(--border-mid);
   background: var(--bg-card);
   border-radius: 4px;
   cursor: pointer;
   font-size: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: inherit;
   color: var(--text);
}

.qty-num {
   font-size: 14px;
   font-weight: 500;
   min-width: 20px;
   text-align: center;
   color: var(--text);
}

.item-total {
   font-size: 14px;
   font-weight: 600;
   color: var(--brand);
}

.cart-item-btns {
   display: flex;
   gap: 6px;
   align-items: center;
}

.btn-remove {
   background: none;
   border: none;
   color: var(--text-light);
   font-size: 12px;
   cursor: pointer;
   font-family: inherit;
   padding: 0;
   display: flex;
   align-items: center;
   gap: 3px;
}

.btn-remove:hover {
   color: #E24B4A;
}

.btn-wishlist-sm {
   background: none;
   border: none;
   color: var(--brand);
   font-size: 12px;
   cursor: pointer;
   font-family: inherit;
   padding: 0;
   display: flex;
   align-items: center;
   gap: 3px;
}

/* On small screens — icon only, hide text label */
@media (max-width: 480px) {
   .btn-label { display: none; }
   .btn-icon   { font-size: 16px; }
}

.cart-summary {
   background: var(--summary-bg);
   border-radius: 12px;
   padding: 24px;
   border: 1px solid var(--border);
}

.cart-summary h2 {
   font-size: 18px;
   font-weight: 600;
   margin-bottom: 20px;
   color: var(--heading-text);
}

.summary-row {
   display: flex;
   justify-content: space-between;
   font-size: 16px;
   font-weight: 600;
   margin-bottom: 20px;
   padding-bottom: 16px;
   border-bottom: 1px solid var(--border);
   color: var(--text);
}

.coupon-section {
   margin-bottom: 20px;
}

.coupon-section label {
   display: block;
   font-size: 12px;
   font-weight: 500;
   color: var(--text-muted);
   margin-bottom: 8px;
}

.coupon-form {
   display: flex;
   gap: 8px;
}

.coupon-disabled {
   opacity: 0.5;
   pointer-events: none;
}

.coupon-blocked-msg {
   font-size: 11px;
   color: #993C1D;
   margin-top: 6px;
   display: none;
}

.coupon-msg {
   font-size: 12px;
   margin-top: 6px;
}

.checkout-btn {
   display: block;
   text-align: center;
   margin-bottom: 12px;
   border-radius: 8px;
}

.continue-shopping {
   display: block;
   text-align: center;
   font-size: 13px;
   color: var(--brand);
   text-decoration: none;
}

/* ═══════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════ */
.checkout-page {
   max-width: 1100px;
   margin: 30px auto;
   padding: 0 24px;
}

.page-title {
   font-size: 24px;
   font-weight: 600;
   margin-bottom: 24px;
   color: var(--heading-text);
}

.section-label {
   font-size: 16px;
   font-weight: 600;
   color: var(--text);
   margin-bottom: 16px;
   padding-bottom: 8px;
   border-bottom: 1px solid var(--border);
}

.checkout-layout {
   display: grid;
   grid-template-columns: 1fr 360px;
   gap: 32px;
   align-items: start;
}

.checkout-form {
   display: flex;
   flex-direction: column;
   gap: 16px;
}

.checkout-summary {
   background: var(--bg-soft);
   border-radius: 12px;
   padding: 24px;
   border: 1px solid var(--border);
}

.summary-item {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   padding: 10px 0;
   border-bottom: 1px solid var(--border);
}

.summary-item-name {
   font-size: 13px;
   font-weight: 500;
   color: var(--text);
}

.summary-item-qty {
   font-size: 12px;
   color: var(--text-light);
   margin-top: 2px;
}

.summary-item-price {
   font-size: 14px;
   font-weight: 600;
   color: var(--brand);
}

.summary-total {
   display: flex;
   justify-content: space-between;
   margin-top: 16px;
   font-size: 16px;
   font-weight: 700;
   color: var(--text);
}

/* ═══════════════════════════════════
   ORDER PAGES
   ═══════════════════════════════════ */
.order-page {
   max-width: 1100px;
   margin: 30px auto;
   padding: 0 24px;
}

.order-header {
   display: flex;
   align-items: center;
   gap: 16px;
   margin-bottom: 24px;
   flex-wrap: wrap;
}

.order-header h1 {
   font-size: 24px;
   font-weight: 600;
   color: var(--heading-text);
}

.status-badge {
   padding: 4px 12px;
   border-radius: 20px;
   font-size: 12px;
   font-weight: 600;
   text-transform: uppercase;
}

.status-confirmed {
   background: #E6F1FB;
   color: #185FA5;
}

.status-preparing {
   background: #FAEEDA;
   color: #854F0B;
}

.status-transit {
   background: #EEEDFE;
   color: #534AB7;
}

.status-delivered {
   background: #EAF3DE;
   color: #3B6D11;
}

.status-hold {
   background: #FAEEDA;
   color: #854F0B;
}

.status-cancelled {
   background: #FCEBEB;
   color: #A32D2D;
}

.order-layout {
   display: grid;
   grid-template-columns: 1fr 320px;
   gap: 32px;
   align-items: start;
}

.order-item {
   display: flex;
   justify-content: space-between;
   padding: 12px 0;
   border-bottom: 1px solid var(--border);
}

.order-item-name {
   font-size: 14px;
   font-weight: 500;
   color: var(--text);
}

.order-item-meta {
   font-size: 12px;
   color: var(--text-light);
   margin-top: 4px;
}

.order-item-total {
   font-size: 14px;
   font-weight: 600;
   color: var(--brand);
}

.order-totals {
   margin-top: 16px;
   padding-top: 16px;
}

.total-row {
   display: flex;
   justify-content: space-between;
   font-size: 14px;
   padding: 6px 0;
   color: var(--text-muted);
}

.total-row.discount {
   color: #3B6D11;
}

.total-row.final {
   font-size: 16px;
   font-weight: 700;
   color: var(--text);
   border-top: 1px solid var(--border);
   margin-top: 8px;
   padding-top: 12px;
}

.status-timeline {
   background: var(--bg-soft);
   border-radius: 12px;
   padding: 20px;
   margin-bottom: 20px;
}

.timeline {
   display: flex;
   flex-direction: column;
   gap: 16px;
   margin-top: 12px;
}

.timeline-step {
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 13px;
   color: var(--text-light);
}

.timeline-step.done {
   color: #3B6D11;
}

.step-dot {
   width: 12px;
   height: 12px;
   border-radius: 50%;
   background: var(--border-mid);
   flex-shrink: 0;
}

.timeline-step.done .step-dot {
   background: #3B6D11;
}

.status-alert {
   margin-top: 12px;
   padding: 10px;
   background: #FCEBEB;
   border-radius: 6px;
   font-size: 13px;
   color: #A32D2D;
}

.delivery-info {
   background: var(--bg-soft);
   border-radius: 12px;
   padding: 20px;
}

.delivery-name {
   font-size: 15px;
   font-weight: 600;
   color: var(--text);
   margin-bottom: 6px;
}

.delivery-detail {
   font-size: 13px;
   color: var(--text-muted);
   margin-bottom: 4px;
}

.orders-list {
   display: flex;
   flex-direction: column;
   gap: 16px;
}

.order-card {
   border: 1px solid var(--border);
   border-radius: 12px;
   padding: 20px;
   background: var(--bg-card);
}

.order-card-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 12px;
}

.order-id {
   font-size: 15px;
   font-weight: 600;
   color: var(--text);
   display: block;
}

.order-date {
   font-size: 12px;
   color: var(--text-light);
   display: block;
   margin-top: 2px;
}

.order-card-body {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.order-amount {
   font-size: 18px;
   font-weight: 700;
   color: var(--brand);
}

.order-coupon-alert {
   margin-top: 12px;
   padding: 8px 12px;
   background: #EAF3DE;
   border-radius: 6px;
   font-size: 12px;
   color: #3B6D11;
}

/* ═══════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════ */
.account-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 16px;
   max-width: 600px;
}

.account-card {
   display: flex;
   align-items: center;
   gap: 16px;
   padding: 20px;
   border: 1px solid var(--border);
   border-radius: 12px;
   text-decoration: none;
   color: var(--text);
   background: var(--bg-card);
   transition: box-shadow 0.2s;
}

.account-card:hover {
   box-shadow: 0 4px 16px var(--shadow);
   border-color: var(--brand);
}

.account-card.logout:hover {
   border-color: #E24B4A;
}

.account-card-icon {
   font-size: 28px;
   width: 48px;
   height: 48px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--bg-soft);
   border-radius: 10px;
   flex-shrink: 0;
}

.account-card-info h3 {
   font-size: 15px;
   font-weight: 600;
   color: var(--text);
   margin-bottom: 4px;
}

.account-card-info p {
   font-size: 12px;
   color: var(--text-light);
}

.account-card.admin-card {
   border-color: var(--brand);
   background: var(--bg-soft);
}

.account-card.admin-card:hover {
   background: var(--brand);
   color: white;
}

.account-card.admin-card:hover .account-card-info h3,
.account-card.admin-card:hover .account-card-info p {
   color: white;
}

/* ═══════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════ */
.profile-card {
   display: flex;
   align-items: center;
   gap: 20px;
   background: var(--bg-soft);
   border: 1px solid var(--border);
   border-radius: 12px;
   padding: 24px;
   margin-bottom: 28px;
   max-width: 500px;
}

.profile-avatar {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   background: var(--brand);
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 28px;
   font-weight: 600;
   flex-shrink: 0;
}

.profile-info h2 {
   font-size: 18px;
   font-weight: 600;
   color: var(--text);
   margin-bottom: 4px;
}

.profile-phone {
   font-size: 13px;
   color: var(--text-muted);
   margin-bottom: 8px;
}

.profile-role {
   display: inline-block;
   background: #EAF3DE;
   color: #3B6D11;
   font-size: 11px;
   font-weight: 600;
   padding: 2px 10px;
   border-radius: 20px;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.profile-form-wrap {
   max-width: 500px;
}

/* ═══════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════ */
/* ── Admin Layout: sidebar + content grid ── */
.admin-page {
   max-width: 1280px;
   margin: 24px auto;
   padding: 0 24px;
   display: grid;
   grid-template-columns: 200px 1fr;
   gap: 0 28px;
   align-items: start;
}

/* ── Sidebar ── */
.admin-tabs {
   grid-column: 1;
   grid-row: 1 / 999;
   display: flex;
   flex-direction: column;
   gap: 2px;
   border-right: 2px solid var(--border);
   padding: 0 10px 24px 0;
   position: sticky;
   top: 72px;
   max-height: calc(100vh - 88px);
   overflow-y: auto;
   scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
   display: block;
   padding: 9px 12px;
   text-decoration: none;
   font-size: 14px;
   font-weight: 500;
   color: var(--text-muted);
   border-left: 3px solid transparent;
   border-radius: 0 6px 6px 0;
   white-space: nowrap;
   transition: background 0.15s, color 0.15s;
}

.admin-tab.active {
   color: var(--brand);
   border-left-color: var(--brand);
   background: var(--bg-soft);
}

.admin-tab:hover {
   color: var(--brand);
   background: var(--bg-soft);
}

/* ── Accordion groups ── */
.admin-tab-group {
   position: static;
}

.admin-tab-group > span.admin-tab {
   cursor: pointer;
   user-select: none;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

/* Accordion sub-items: hidden until .open */
.admin-tab-dropdown {
   display: flex;
   flex-direction: column;
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.25s ease;
   position: static;
   background: transparent;
   border: none;
   border-radius: 0;
   box-shadow: none;
   min-width: unset;
}

.admin-tab-group.open > .admin-tab-dropdown {
   max-height: 300px;
}

.admin-tab-dropdown-item {
   display: block;
   padding: 8px 12px 8px 24px;
   text-decoration: none;
   font-size: 13px;
   font-weight: 500;
   color: var(--text-muted);
   border-left: 3px solid transparent;
   border-radius: 0 6px 6px 0;
   white-space: nowrap;
   transition: background 0.15s, color 0.15s;
}

.admin-tab-dropdown-item:hover,
.admin-tab-dropdown-item.active {
   color: var(--brand);
   background: var(--bg-soft);
   border-left-color: var(--brand);
}

/* Mobile toggle button — hidden on desktop */
.sidebar-toggle {
   display: none;
}

/* ── Page-level horizontal tab bar (Products / Orders / Settings) ── */
.page-tab-bar {
   position: relative;
   display: flex;
   gap: 0;
   border-bottom: 2px solid var(--border);
   margin-bottom: 24px;
   overflow-x: auto;
   scrollbar-width: none;
}

.page-tab-bar::-webkit-scrollbar { display: none; }

.page-tab {
   padding: 10px 20px;
   font-size: 14px;
   font-weight: 500;
   color: var(--text-muted);
   background: none;
   border: none;
   cursor: pointer;
   white-space: nowrap;
   text-decoration: none;
   display: inline-block;
   margin-bottom: -2px;
   transition: color 0.15s;
   font-family: inherit;
}

.page-tab:hover { color: var(--brand); }

.page-tab.active { color: var(--brand); }

/* Animated slider underline — JS sets left + width */
.page-tab-slider {
   position: absolute;
   bottom: -1px;
   height: 3px;
   background: var(--brand);
   border-radius: 3px 3px 0 0;
   transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1),
               width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
   pointer-events: none;
}

.stats-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 16px;
   margin-bottom: 32px;
}

.stat-card {
   background: var(--bg-card);
   border: 1px solid var(--border);
   border-radius: 12px;
   padding: 20px;
   text-align: center;
}

.stat-card.highlight {
   background: var(--bg-soft);
   border-color: var(--brand);
}

.stat-number {
   font-size: 32px;
   font-weight: 700;
   color: var(--brand);
   margin-bottom: 6px;
}

.stat-label {
   font-size: 13px;
   color: var(--text-light);
}

.admin-section {
   margin-bottom: 32px;
}

.admin-section-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 16px;
}

.admin-section-header h2 {
   font-size: 18px;
   font-weight: 600;
   color: var(--heading-text);
}

.admin-table-wrap {
   overflow-x: auto;
   border: 1px solid var(--border);
   border-radius: 10px;
}

.admin-table {
   width: 100%;
   border-collapse: collapse;
   font-size: 13px;
}

.admin-table th {
   background: var(--bg-soft);
   padding: 12px 16px;
   text-align: left;
   font-weight: 600;
   color: var(--text-muted);
   border-bottom: 1px solid var(--border);
}

.admin-table td {
   padding: 12px 16px;
   border-bottom: 1px solid var(--border);
   color: var(--text);
   vertical-align: middle;
}

.admin-table tr:last-child td {
   border-bottom: none;
}

.admin-table tr:hover td {
   background: var(--bg-soft);
}

.row-inactive td {
   opacity: 0.5;
}

.product-link {
   color: var(--text);
   text-decoration: none;
   font-weight: 500;
}

.product-link:hover {
   color: var(--brand);
}

.price-cell {
   font-weight: 600;
   color: var(--brand);
}

.price-original-sm {
   font-size: 11px;
   color: var(--text-light);
   text-decoration: line-through;
}

.text-muted {
   color: var(--text-light);
   font-size: 12px;
}

.toggle-btn {
   padding: 4px 12px;
   border-radius: 20px;
   border: none;
   font-size: 12px;
   font-weight: 600;
   cursor: pointer;
   background: var(--border-mid);
   color: var(--text-muted);
}

.toggle-btn.active {
   background: #EAF3DE;
   color: #3B6D11;
}

.type-badge {
   padding: 2px 8px;
   border-radius: 4px;
   font-size: 11px;
   font-weight: 600;
}

.type-regular {
   background: #E6F1FB;
   color: #185FA5;
}

.type-trending {
   background: #FAEEDA;
   color: #854F0B;
}

.type-gift_box {
   background: #EEEDFE;
   color: #534AB7;
}

.status-filters {
   display: flex;
   gap: 6px;
   flex-wrap: wrap;
}

.product-form {
   background: var(--bg-card);
   border: 1px solid var(--border);
   border-radius: 12px;
   padding: 28px;
   margin-top: 16px;
}

.form-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 16px;
   margin-bottom: 20px;
}

.form-group.full-width {
   grid-column: 1/-1;
}

.toggles-row {
   grid-column: 1/-1;
   display: flex;
   gap: 24px;
   flex-wrap: wrap;
}

.toggle-label {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
   color: var(--text-muted);
   cursor: pointer;
}

.form-actions {
   display: flex;
   gap: 12px;
   align-items: center;
   padding-top: 16px;
   border-top: 1px solid var(--border);
}

.status-form {
   display: flex;
   flex-direction: column;
   gap: 16px;
   max-width: 400px;
}

/* ═══════════════════════════════════
   WISHLIST PAGE
   ═══════════════════════════════════ */
.wishlist-select-all {
   margin-bottom: 16px;
}

.bulk-bar {
   display: none;
   align-items: center;
   justify-content: space-between;
   background: #1a1a1a;
   color: white;
   padding: 12px 16px;
   border-radius: 8px;
   margin-bottom: 16px;
   flex-wrap: wrap;
   gap: 12px;
}

#selected-count {
   font-size: 14px;
   font-weight: 500;
}

.bulk-actions {
   display: flex;
   gap: 8px;
   align-items: center;
}

.btn-remove-bulk {
   padding: 6px 14px;
   background: #E24B4A;
   color: white;
   border: none;
   border-radius: 6px;
   font-size: 12px;
   cursor: pointer;
   font-family: inherit;
}

.btn-deselect {
   padding: 6px 14px;
   background: transparent;
   color: white;
   border: 1px solid rgba(255, 255, 255, 0.3);
   border-radius: 6px;
   font-size: 12px;
   cursor: pointer;
   font-family: inherit;
}

.wishlist-card-wrap {
   position: relative;
   border-radius: 10px;
   overflow: hidden;
   border: 1px solid var(--border);
   background: var(--bg-card);
   display: flex;
   flex-direction: column;
}

.wishlist-checkbox-wrap {
   position: absolute;
   top: 8px;
   right: 8px;
   z-index: 10;
   background: var(--bg-card);
   border-radius: 4px;
   padding: 2px;
   box-shadow: 0 1px 4px var(--shadow);
}

.wishlist-checkbox {
   width: 18px;
   height: 18px;
   accent-color: var(--brand);
   cursor: pointer;
   display: block;
}

.wishlist-actions {
   display: flex;
   gap: 6px;
   padding: 10px;
   border-top: 1px solid var(--border);
   align-items: center;
   margin-top: auto;
}

.w-full {
   width: 100%;
}

.btn-sm {
   padding: 7px 10px;
   font-size: 12px;
   border-radius: 6px;
}

.btn-primary.btn-sm {
   display: block;
   text-align: center;
   border: none;
   cursor: pointer;
   font-family: inherit;
   width: 100%;
}

.btn-cart.btn-sm {
   width: 100%;
}

.oos-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.45);
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 13px;
   font-weight: 600;
}

/* ═══════════════════════════════════
   TOAST
   ═══════════════════════════════════ */
.toast {
   position: fixed;
   bottom: 24px;
   left: 50%;
   transform: translateX(-50%) translateY(100px);
   background: #1a1a1a;
   color: white;
   padding: 12px 24px;
   border-radius: 8px;
   font-size: 14px;
   font-weight: 500;
   z-index: 9999;
   opacity: 0;
   transition: transform 0.3s ease, opacity 0.3s ease;
   white-space: nowrap;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.toast.show {
   transform: translateX(-50%) translateY(0);
   opacity: 1;
}

.toast.success::before {
   content: "✓ ";
   color: #7ED858;
}

.toast.error::before {
   content: "✕ ";
   color: #E24B4A;
}

/* ═══════════════════════════════════
   HOME EXTRAS
   ═══════════════════════════════════ */
.empty-home {
   text-align: center;
   padding: 80px 24px;
   color: var(--text-light);
}

.empty-home h2 {
   font-size: 24px;
   color: var(--text);
   margin-bottom: 12px;
}

.empty-home p {
   margin-bottom: 24px;
}

/* ═══════════════════════════════════
   TABLET (≤768px)
   Row 1: Logo + Icons (icon only)
   Row 2: Search full width
   ═══════════════════════════════════ */
@media (max-width: 768px) {

   /* Navbar layout */
   .navbar {
      padding: 10px 16px;
      gap: 0;
      row-gap: 8px;
   }

   .navbar-brand {
      flex: 1;
      order: 1;
   }

   .nav-icons {
      order: 2;
      gap: 2px;
   }

   .search-form {
      order: 3;
      width: 100%;
      margin: 0;
      max-width: 100%;
      flex: none;
   }

   /* Icons only — hide text */
   .nav-icon-text {
      display: none;
   }

   .nav-icon-symbol {
      font-size: 20px;
   }

   .nav-icon {
      width: 40px;
      height: 40px;
      justify-content: center;
      gap: 0;
   }

   /* Layout */
   .hero {
      padding: 50px 16px;
   }

   .hero h1 {
      font-size: 26px;
   }

   .section {
      padding: 0 16px;
      margin: 24px auto;
   }

   .saree-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
   }

   .product-page {
      grid-template-columns: 1fr;
      padding: 0 16px;
      margin: 20px auto;
   }

   .cart-page {
      padding: 0 16px;
   }

   .cart-layout {
      grid-template-columns: 1fr;
   }

   .cart-item {
      grid-template-columns: 20px 70px 1fr;
      gap: 10px;
   }

   .cart-item-actions {
      grid-column: 1/-1;
      flex-direction: row;
      justify-content: flex-start;
      padding-top: 8px;
      border-top: 1px solid var(--border);
      margin-top: 8px;
   }

   .cart-summary {
      order: -1;
   }

   .checkout-page {
      padding: 0 16px;
   }

   .checkout-layout {
      grid-template-columns: 1fr;
   }

   .checkout-summary {
      order: -1;
   }

   .order-page {
      padding: 0 16px;
   }

   .order-layout {
      grid-template-columns: 1fr;
   }

   /* Admin: single-column layout on mobile */
   .admin-page {
      grid-template-columns: 1fr;
      padding: 0 16px;
   }

   .stats-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   /* Sidebar becomes a slide-in overlay */
   .admin-tabs {
      grid-column: 1;
      grid-row: auto;
      position: fixed;
      top: 0;
      left: -260px;
      width: 250px;
      height: 100dvh;
      max-height: 100dvh;
      background: var(--bg-card);
      border-right: 2px solid var(--border);
      box-shadow: 4px 0 24px rgba(0,0,0,0.18);
      z-index: 900;
      padding: 20px 10px 32px;
      overflow-y: auto;
      transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 0;
   }

   .admin-tabs.sidebar-open {
      left: 0;
   }

   /* Hamburger button */
   .sidebar-toggle {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 14px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-main);
      cursor: pointer;
      margin-bottom: 18px;
      grid-column: 1 / -1;
   }

   /* Dim overlay behind sidebar */
   .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.35);
      z-index: 899;
   }

   .sidebar-overlay.active {
      display: block;
   }


   .form-grid {
      grid-template-columns: 1fr;
   }

   .form-group.full-width {
      grid-column: 1;
   }

   .toggles-row {
      grid-column: 1;
      flex-direction: column;
      gap: 12px;
   }

   .catalog-header {
      padding: 0 16px;
   }

   .account-grid {
      grid-template-columns: 1fr 1fr;
   }

   .auth-card {
      padding: 28px 20px;
   }

   .gift-grid {
      justify-content: center;
   }

   /* Touch targets */
   .btn-primary,
   .btn-cart,
   .btn-wishlist,
   .chip,
   .qty-btn,
   .btn-remove,
   .toggle-btn,
   .btn-outline-sm,
   .btn-check,
   .icon-btn,
   .theme-toggle {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
   }

   .item-checkbox,
   .wishlist-checkbox {
      width: 22px;
      height: 22px;
   }

   .chip {
      padding: 8px 16px;
      font-size: 13px;
   }
}

/* ═══════════════════════════════════
   MOBILE (≤480px)
   ═══════════════════════════════════ */
@media (max-width: 480px) {
   .navbar {
      padding: 8px 12px;
   }

   .brand-name {
      font-size: 18px;
   }

   .nav-icons {
      gap: 0;
   }

   .nav-icon {
      width: 34px;
      height: 34px;
   }

   .nav-icon-symbol {
      font-size: 18px;
   }

   .cart-count {
      width: 14px;
      height: 14px;
      font-size: 9px;
      top: -6px;
      right: -6px;
   }

   .theme-toggle {
      width: 28px;
      height: 28px;
      font-size: 13px;
   }

   .hero {
      padding: 40px 12px;
   }

   .hero h1 {
      font-size: 22px;
   }

   .saree-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
   }

   .section {
      padding: 0 12px;
      margin: 16px auto;
   }

   .card-name {
      font-size: 11px;
   }

   .price-current {
      font-size: 12px;
   }

   .icon-btn {
      width: 30px;
      height: 30px;
      font-size: 14px;
   }

   .product-page {
      padding: 0 12px;
   }

   .product-name {
      font-size: 16px;
   }

   .price-main {
      font-size: 22px;
   }

   .cart-item {
      grid-template-columns: 18px 60px 1fr;
      gap: 8px;
   }

   .cart-item-image {
      width: 60px;
      height: 75px;
   }

   .auth-page {
      padding: 20px 12px;
   }

   .auth-card {
      padding: 24px 16px;
   }

   .auth-title {
      font-size: 18px;
   }

   .order-card-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
   }

   .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
   }

   .stat-number {
      font-size: 24px;
   }

   .admin-table {
      font-size: 12px;
   }

   .admin-table th,
   .admin-table td {
      padding: 8px 10px;
   }

   .account-grid {
      grid-template-columns: 1fr;
   }

   footer {
      padding: 24px 12px;
      margin-top: 32px;
   }

   .footer-content {
      flex-direction: column;
      gap: 20px;
   }

   .bulk-bar {
      flex-direction: column;
      align-items: flex-start;
   }

   .pincode-form {
      flex-direction: column;
   }

   .pincode-input {
      width: 100%;
   }

   .profile-card {
      flex-direction: column;
      text-align: center;
   }

   /* ═══════════════════════════════════
   BANNER SLIDER
   ═══════════════════════════════════ */
   .banner-section {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: var(--bg-soft);
   }

   .banner-slider {
      position: relative;
      width: 100%;
   }

   .banner-slide {
      display: none;
      position: relative;
      width: 100%;
   }

   .banner-slide.active {
      display: block;
   }

   .banner-link {
      display: block;
      text-decoration: none;
   }

   .banner-img {
      width: 100%;
      height: 380px;
      object-fit: cover;
      display: block;
   }

   .banner-text {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 24px 40px;
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
   }

   .banner-text h2 {
      color: white;
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 6px;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
   }

   .banner-text p {
      color: rgba(255, 255, 255, 0.88);
      font-size: 14px;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
   }

   .banner-dots {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 10;
   }

   .banner-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: background 0.2s;
   }

   .banner-dot.active {
      background: white;
   }

   /* Tablet */
   @media (max-width: 768px) {
      .banner-img {
         height: 240px;
      }

      .banner-text {
         padding: 16px 20px;
      }

      .banner-text h2 {
         font-size: 20px;
      }
   }

   /* Mobile */
   @media (max-width: 480px) {
      .banner-img {
         height: 160px;
      }

      .banner-text {
         padding: 12px 16px;
      }

      .banner-text h2 {
         font-size: 16px;
      }

      .banner-text p {
         font-size: 12px;
      }
   }
}