/* ==========================================================================
   EDIN PUBLISHERS - E-COMMERCE STYLESHEET (VANILLA CSS)
   Amazon-Inspired Modern Bookstore Design System
   ========================================================================== */

:root {
  --primary-dark: #131921;
  --primary-nav: #232f3e;
  --accent-gold: #febd69;
  --accent-gold-hover: #f3a847;
  --accent-amber: #f0c14b;
  --accent-orange: #c45500;
  --link-color: #007185;
  --link-hover: #c45500;
  --bg-light: #f3f3f3;
  --card-bg: #ffffff;
  --text-dark: #0f1111;
  --text-muted: #565959;
  --border-color: #d5d9d9;
  --border-subtle: #e7e7e7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   PASSWORD AUTHENTICATION OVERLAY
   ========================================================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255,255,255,0.2);
  animation: authCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-card.shake {
  animation: authShake 0.4s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}

.auth-brand h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.auth-badge {
  background-color: rgba(196, 85, 0, 0.1);
  color: var(--accent-orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.auth-instruction {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 22px;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

.auth-input-group input {
  width: 100%;
  padding: 12px 42px 12px 40px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-group input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(19, 25, 33, 0.15);
}

.toggle-pass-btn {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
}

.toggle-pass-btn:hover {
  color: var(--text-dark);
}

.auth-error {
  background-color: #fde8e8;
  color: #c81e1e;
  border: 1px solid #f8b4b4;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.btn-auth-submit:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  border-color: #9c7e31;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.auth-footer-note {
  margin-top: 20px;
  font-size: 0.76rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lock-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.lock-btn:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Announcement Bar */
.announcement-bar {
  background-color: #0d1117;
  color: #f0f6fc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-right {
  color: var(--accent-gold);
}

/* Header */
.header {
  background-color: var(--primary-dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-sub {
  color: var(--accent-gold);
}

.brand-tagline {
  font-size: 0.7rem;
  color: #a0aab5;
  font-weight: 400;
}

/* Search Box */
.search-box {
  flex: 1;
  max-width: 600px;
  display: flex;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.search-box input {
  flex: 1;
  padding: 0 14px;
  border: none;
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  outline: none;
}

.search-btn {
  width: 48px;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  font-size: 1rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background-color: var(--accent-gold-hover);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: #ffffff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cart-btn:hover {
  border-color: #ffffff;
  background-color: rgba(255,255,255,0.05);
}

.cart-icon-wrapper {
  position: relative;
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--accent-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cart-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cart-label {
  font-size: 0.75rem;
  color: #ccc;
  line-height: 1;
}

.cart-subtotal {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.hamburger-btn {
  display: none;
  font-size: 1.3rem;
  color: #ffffff;
  padding: 8px;
}

/* Mobile Search Bar */
.mobile-search-bar {
  display: none;
  padding: 8px 16px 12px 16px;
}

.mobile-search-bar input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: none;
  outline: none;
}

.mobile-search-bar .search-btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sub Nav */
.sub-nav {
  background-color: var(--primary-nav);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sub-nav-container {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
}

.sub-nav-container::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

.cat-btn {
  color: #d1d5db;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.cat-btn:hover, .cat-btn.active {
  color: #ffffff;
  background-color: rgba(255,255,255,0.12);
}

.cat-btn.active {
  font-weight: 700;
  border-bottom: 2px solid var(--accent-gold);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #131921 0%, #1d2734 100%);
  color: #ffffff;
  padding: 24px 0 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #b0b8c4;
  max-width: 800px;
  margin-bottom: 20px;
}

/* Slab Discounts Bar */
.tier-banner {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(4px);
}

.tier-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.tier-item {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tier-item.highlight {
  border-color: var(--accent-gold);
  background: rgba(254, 189, 105, 0.1);
}

.tier-qty {
  font-size: 0.78rem;
  color: #d1d5db;
}

.tier-disc {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* Main Layout & Catalog */
.main-layout {
  padding-top: 24px;
  padding-bottom: 48px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-wrapper select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  font-family: var(--font-main);
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #b0b8c4;
}

.combo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent-orange);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Card Image Area */
.card-img-wrapper {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  background-color: #fafafa;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 8px;
}

.card-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-img-wrapper:hover .zoom-hint {
  opacity: 1;
}

/* Card Content */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.product-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pricing Display */
.price-container {
  background-color: #f8f9fa;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.base-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}

.mrp-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.amazon-price {
  font-size: 0.75rem;
  color: #777;
}

.active-slab-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Card Actions / Quantity System */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #f7f8f9;
  height: 36px;
  overflow: hidden;
}

.qty-btn {
  width: 38px;
  height: 100%;
  background-color: #e7e9ec;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background-color: #d0d5dc;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  color: var(--text-dark);
}

.add-to-cart-btn {
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px;
  text-align: center;
  transition: all 0.15s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}

.add-to-cart-btn:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  border-color: #9c7e31;
}

/* Cart Drawer / Side Modal */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: #ffffff;
  z-index: 201;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.drawer-header {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Empty Cart State */
.empty-cart-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  margin: auto;
}

.empty-cart-icon {
  font-size: 3.5rem;
  color: #ccc;
  margin-bottom: 16px;
}

.empty-cart-view h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-cart-view p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 300px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-nav);
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background-color: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
}

.cart-item-img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  background-color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-subtle);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 4px;
  padding-right: 20px;
}

.cart-item-pricing {
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.original-unit {
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.discounted-unit {
  font-weight: 800;
  color: var(--text-dark);
}

.item-slab-badge {
  display: inline-block;
  background-color: rgba(196, 85, 0, 0.1);
  color: var(--accent-orange);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  height: 28px;
}

.cart-qty-ctrl .qty-btn {
  width: 26px;
  height: 100%;
  font-size: 0.9rem;
}

.cart-qty-ctrl .qty-input {
  width: 32px;
  font-size: 0.82rem;
}

.cart-item-subtotal {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark);
}

.remove-item-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #999;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.remove-item-btn:hover {
  color: #dc3545;
}

/* Optional Add-ons Section */
.addons-card {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px;
}

.addons-header {
  margin-bottom: 10px;
}

.addons-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.addons-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.addons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  background-color: #ffffff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.addon-item:hover {
  border-color: #cbd5e1;
}

.addon-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-dark);
}

.addon-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.addon-name {
  font-weight: 600;
  color: var(--text-dark);
}

.addon-price {
  font-weight: 700;
  color: var(--accent-orange);
}

/* Order Summary Box */
.order-summary-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.order-summary-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.discount-text {
  color: #2e7d32;
  font-weight: 700;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 12px 0;
}

.total-row {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.total-text {
  color: #b12704;
  font-size: 1.25rem;
}

/* Shipping Notice Box */
.shipping-notice-box {
  background-color: #fff9e6;
  border: 1px solid #ffe58f;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 14px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.shipping-notice-box i {
  color: #d48806;
  font-size: 1.1rem;
  margin-top: 2px;
}

.shipping-notice-text {
  font-size: 0.78rem;
  color: #595959;
  line-height: 1.35;
}

.shipping-notice-text strong {
  color: #d48806;
  display: block;
  margin-bottom: 2px;
}

/* WhatsApp Button */
.btn-whatsapp {
  width: 100%;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
  transition: background-color 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
  border-left: 4px solid var(--accent-gold);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: #a0aab5;
  padding-top: 48px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 800;
}

.footer-desc {
  line-height: 1.5;
  font-size: 0.8rem;
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #b0b8c4;
}

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

.slab-info-list li {
  font-size: 0.8rem;
}

.footer-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.footer-info i {
  color: var(--accent-gold);
  margin-top: 3px;
}

.footer-bottom {
  background-color: #0b0e14;
  padding: 16px 0;
  text-align: center;
  font-size: 0.75rem;
  color: #778494;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .search-box {
    display: none;
  }

  .mobile-search-bar {
    display: flex;
  }

  .hamburger-btn {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .announcement-content {
    justify-content: center;
    text-align: center;
  }

  .announcement-right {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    display: none;
  }

  .cart-text {
    display: none;
  }

  .cart-btn {
    padding: 6px;
  }

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

  .product-card {
    padding: 10px;
  }

  .card-img-wrapper {
    height: 150px;
  }

  .product-title {
    font-size: 0.82rem;
    height: 2.3rem;
  }

  .product-author {
    font-size: 0.72rem;
  }

  .product-desc {
    display: none;
  }

  .base-price {
    font-size: 1.05rem;
  }

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

  .cart-drawer {
    max-width: 100%;
  }
}

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

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

.admin-body {
  background-color: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
}

.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-badge {
  background-color: rgba(225, 29, 72, 0.15) !important;
  color: #f43f5e !important;
}

.back-to-store-link {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
}

.back-to-store-link:hover {
  text-decoration: underline;
}

.admin-header {
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 900;
}

.admin-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-brand .admin-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.admin-subhead {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-user-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logged-in-user {
  font-size: 0.85rem;
  color: #cbd5e1;
  background-color: #0f172a;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #334155;
}

.admin-logged-in-user strong {
  color: #38bdf8;
}

/* Tabs */
.admin-nav-bar {
  background-color: #0f172a;
  border-bottom: 1px solid #334155;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}

.admin-tab-btn {
  background-color: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  background-color: #334155;
  color: #ffffff;
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.admin-main-content {
  padding-top: 24px;
  padding-bottom: 48px;
  flex: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid #334155;
  padding-bottom: 16px;
}

.panel-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.panel-header p {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Admin Filter Bar */
.admin-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.admin-filter-bar .search-box {
  display: flex;
  max-width: 400px;
}

.admin-filter-bar .search-box input {
  background-color: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.count-badge {
  background-color: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Admin Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  background-color: #1e293b;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background-color: #0f172a;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid #334155;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background-color: rgba(255,255,255,0.03);
}

.admin-table-img {
  width: 44px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #334155;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-combo {
  background-color: rgba(196, 85, 0, 0.2);
  color: #f97316;
}

.badge-cat {
  background-color: #334155;
  color: #cbd5e1;
}

.action-btn-group {
  display: flex;
  gap: 8px;
}

/* Admin Form Cards */
.admin-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 20px;
}

.admin-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.admin-form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

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

.form-group label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.btn-align-end {
  height: 42px;
}

/* Discount Slabs Grid */
.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.discount-slab-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.slab-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}

.slab-card-header h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1rem;
}

.slab-badge {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Form Helper Layouts */
.form-row {
  display: flex;
  gap: 12px;
}

.col-half { flex: 1; }
.col-third { flex: 1; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }

/* Buttons System */
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid #38bdf8;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  background-color: #334155;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid #475569;
}

.btn-secondary:hover {
  background-color: #475569;
}

.btn-danger {
  background-color: rgba(225, 29, 72, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(225, 29, 72, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-danger:hover {
  background-color: rgba(225, 29, 72, 0.4);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 1px solid #4ade80;
}

.btn-success:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-sm {
  font-size: 0.78rem;
  padding: 4px 10px;
}

.btn-admin-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

.admin-modal-content {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 580px;
  padding: 24px;
  color: #ffffff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #334155;
  padding-bottom: 12px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid #334155;
  padding-top: 16px;
}

