/* ===================================================
   Samridhi Hub – Main Stylesheet
   Colors: Deep Purple #1a0533, Purple #6b2196, Gold #f59e0b
   =================================================== */

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

:root {
  --purple-dark: #1a0533;
  --purple: #6b2196;
  --purple-light: #9333ea;
  --purple-pale: #f8f4ff;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --text: #1a0533;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-light: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(107,33,150,.12);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Container ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── Announcement Bar ── */
.announcement-bar {
  background: linear-gradient(90deg, var(--purple-dark), var(--purple));
  color: white;
  text-align: center;
  padding: 9px 20px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .2px;
}

/* ── Navigation ── */
.site-header { position: sticky; top: 0; z-index: 1000; background: white; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.main-nav { padding: 0; }
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; }
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.nav-search {
  flex: 1;
  max-width: 500px;
  display: flex;
}
.nav-search form { display: flex; width: 100%; }
.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--purple); }
.search-btn {
  padding: 10px 18px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.search-btn:hover { background: var(--purple-dark); }
.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; position: relative; z-index: 10; }
.nav-icon-btn {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.2rem;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  z-index: 10;
}
.nav-icon-btn:hover { background: var(--purple-pale); color: var(--purple); }
.cart-btn { font-size: 1.1rem; }
.cart-count {
  background: var(--purple);
  color: white;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
  display: inline-block;
}
.nav-links {
  background: white;
  border-top: 2px solid var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 20px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--purple);
  color: white;
}
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); color: white; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(107,33,150,.3); }
.btn-secondary { background: var(--gold); color: var(--purple-dark); }
.btn-secondary:hover { background: #e08d00; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: white; }
.btn-outline-sm { background: transparent; color: var(--purple); border: 1.5px solid var(--purple); padding: 7px 16px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-outline-sm:hover { background: var(--purple); color: white; }
.btn-white { background: white; color: var(--purple-dark); border-color: white; }
.btn-white:hover { background: var(--purple-pale); }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, var(--purple-dark) 0%, #3d1065 50%, var(--purple) 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
}
.hero-slide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-content h1 { color: white; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hero-highlight { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-grid-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hi-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: white;
  transition: var(--transition);
}
.hi-card:hover { background: rgba(255,255,255,.2); transform: translateY(-4px); }
.hi-card span { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.hi-card p { font-size: .9rem; font-weight: 600; margin: 0; }

/* ── Trust ── */
.trust-section { background: white; border-bottom: 1px solid var(--border); }
.trust-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-item > span { font-size: 1.6rem; flex-shrink: 0; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { font-size: .9rem; color: var(--text); }
.trust-item small { font-size: .78rem; color: var(--text-muted); }

/* ── Sections ── */
.section-padded { padding: 60px 0; }
.bg-light { background: var(--gray-light); }
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--purple-dark); margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 1rem; margin-bottom: 16px; }

/* ── Categories ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.cat-card {
  background: white;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  color: inherit;
}
.cat-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--shadow); background: var(--purple-pale); }
.cat-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.cat-card h3 { font-size: .95rem; font-weight: 700; color: var(--purple-dark); margin-bottom: 4px; }
.cat-card p { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple); }
.product-card-link { display: block; text-decoration: none; color: inherit; flex: 1; }
.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-light);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.badge {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  z-index: 2;
}
.badge-sold-out { left: 10px; background: #374151; color: white; }
.badge-sale { left: 10px; background: #ef4444; color: white; }
.badge-digital { right: 10px; background: var(--purple); color: white; top: 10px; }
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,5,51,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-card-overlay { opacity: 1; }
.btn-quick-add, .btn-view {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-quick-add { background: white; color: var(--purple-dark); }
.btn-quick-add:hover { background: var(--gold); }
.btn-view { background: transparent; color: white; border: 1.5px solid white; }
.btn-view:hover { background: white; color: var(--purple-dark); }
.sold-out-text { color: white; font-size: .9rem; font-weight: 600; }
.product-card-info { padding: 14px 16px; }
.product-vendor { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-title { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-compare { text-decoration: line-through; color: var(--text-muted); font-size: .85rem; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--purple-dark); }
.price-sale { color: #ef4444; }
.digital-note { font-size: .75rem; color: var(--purple); margin-top: 4px; }
.product-card-actions { padding: 0 16px 16px; }
.btn-add-cart {
  width: 100%;
  padding: 9px;
  background: var(--purple-pale);
  color: var(--purple);
  border: 2px solid var(--purple);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-add-cart:hover { background: var(--purple); color: white; }
.btn-sold-out { width: 100%; padding: 9px; background: var(--border); color: var(--text-muted); border: none; border-radius: 8px; font-size: .9rem; cursor: not-allowed; }

/* ── Digital Banner ── */
.digital-banner {
  background: linear-gradient(135deg, var(--purple-dark), #2d1060, var(--purple));
  padding: 60px 0;
  color: white;
}
.digital-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.digital-banner-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.digital-banner-text p { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 24px; line-height: 1.7; }
.digital-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .8px;
  margin-bottom: 14px;
}
.digital-books-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-thumb { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.3); aspect-ratio: 3/4; }
.book-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Newsletter ── */
.newsletter-section {
  background: var(--purple-pale);
  padding: 60px 0;
}
.newsletter-inner { text-align: center; }
.newsletter-inner h2 { font-size: 1.8rem; font-weight: 800; color: var(--purple-dark); margin-bottom: 8px; }
.newsletter-inner p { color: var(--text-muted); margin-bottom: 24px; }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--purple); }
.newsletter-form .btn { border-radius: 0 var(--radius) var(--radius) 0; border: none; }

/* ── Collection Page ── */
.collection-page { padding: 40px 20px; }
.collection-header { text-align: center; margin-bottom: 32px; }
.collection-header h1 { font-size: 2rem; font-weight: 800; color: var(--purple-dark); margin-bottom: 8px; }
.collection-count { color: var(--text-muted); font-size: .9rem; }
.collection-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active { background: var(--purple); color: white; border-color: var(--purple); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  background: white;
}
.page-btn.active, .page-btn:hover { background: var(--purple); color: white; border-color: var(--purple); }

/* ── Product Detail ── */
.product-detail { padding: 32px 20px; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--purple); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-main-image { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--gray-light); position: relative; }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.sold-out-overlay, .digital-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--purple-dark);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
}
.digital-badge-overlay { background: var(--purple); }
.product-thumbnails { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); }
.thumb.active, .thumb:hover { border-color: var(--purple); }
.product-title-lg { font-size: 1.6rem; font-weight: 800; color: var(--purple-dark); margin: 8px 0 16px; line-height: 1.3; }
.product-price-lg { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.price-compare-lg { text-decoration: line-through; color: var(--text-muted); font-size: 1.1rem; }
.price-current-lg { font-size: 1.8rem; font-weight: 800; color: var(--purple-dark); }
.price-current-lg.price-sale { color: #ef4444; }
.price-badge { background: #ef4444; color: white; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.digital-info-box {
  background: var(--purple-pale);
  border: 1.5px solid var(--purple);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .9rem;
}
.digital-info-box p:first-child { font-weight: 700; color: var(--purple); margin-bottom: 4px; }
.stock-info { margin-bottom: 20px; }
.stock-badge { padding: 5px 14px; border-radius: 20px; font-size: .85rem; font-weight: 600; display: inline-block; }
.stock-badge.in { background: #dcfce7; color: #166534; }
.stock-badge.low { background: var(--gold-light); color: #92400e; }
.stock-badge.out { background: #fee2e2; color: #991b1b; }
.product-variants { margin-bottom: 20px; }
.variant-group { margin-bottom: 14px; }
.variant-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}
.variant-btn.active, .variant-btn:hover { border-color: var(--purple); background: var(--purple-pale); color: var(--purple); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-control button { padding: 8px 16px; background: var(--gray-light); border: none; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.qty-control button:hover { background: var(--purple); color: white; }
.qty-control input { width: 50px; text-align: center; border: none; font-size: 1rem; font-weight: 600; padding: 8px 0; outline: none; }
.product-actions-main { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.btn-add-to-cart { flex: 1; min-width: 160px; justify-content: center; }
.product-meta-info { font-size: .88rem; color: var(--text-muted); margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.product-meta-info a { color: var(--purple); }
.trust-mini { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); padding: 14px 0; border-top: 1px solid var(--border); }

/* ── Tabs ── */
.product-description-section { margin-top: 0; padding-top: 32px; border-top: 1px solid var(--border); }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn.active { color: var(--purple); border-bottom-color: var(--purple); }
.tab-content { line-height: 1.8; color: var(--text); font-size: .95rem; }
.tab-content p, .tab-content ol, .tab-content ul { margin-bottom: 12px; }
.tab-content ol, .tab-content ul { padding-left: 20px; }

/* ── Related Products ── */
.related-products { margin-top: 48px; }
.related-products h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; color: var(--purple-dark); }

/* ── Cart Page ── */
.cart-page { padding: 40px 20px; }
.cart-page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 28px; color: var(--purple-dark); }
.cart-page-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; color: var(--text); font-size: .95rem; }
.digital-tag { font-size: .75rem; background: var(--purple-pale); color: var(--purple); padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-qty button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: white; cursor: pointer; font-size: 1rem; transition: var(--transition); }
.cart-item-qty button:hover { background: var(--purple); color: white; border-color: var(--purple); }
.cart-item-qty span { font-weight: 600; font-size: .95rem; }
.cart-item-right { text-align: right; flex-shrink: 0; }
.cart-item-price { font-size: 1.05rem; font-weight: 700; color: var(--purple-dark); display: block; margin-bottom: 8px; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.cart-item-remove:hover { background: #fee2e2; color: #dc2626; }
.cart-summary-box {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
}
.cart-summary-box h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; color: var(--text); }
.summary-row.total-row { border-top: 2px solid var(--purple-dark); margin-top: 8px; padding-top: 12px; font-size: 1.1rem; }
.cart-trust { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.cart-trust p { font-size: .82rem; color: var(--text-muted); margin-bottom: 4px; }

/* ── Checkout ── */
.checkout-container { padding: 40px 20px; }
.page-title { font-size: 2rem; font-weight: 800; color: var(--purple-dark); margin-bottom: 28px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-section { background: white; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.checkout-section h2 { font-size: 1.15rem; font-weight: 700; color: var(--purple-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(107,33,150,.08); }
.form-hint { font-size: .8rem; color: var(--purple); margin-top: 4px; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.payment-option.selected, .payment-option:hover { border-color: var(--purple); background: var(--purple-pale); }
.pm-icon { font-size: 1.4rem; }
.pm-badge { margin-left: auto; background: var(--gold-light); color: var(--gold); padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; }
.payment-details { background: var(--gray-light); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: .9rem; color: var(--text-muted); }
.stripe-card-placeholder { background: white; border: 1.5px dashed var(--border); border-radius: 8px; padding: 20px; margin-top: 10px; text-align: center; color: var(--text-muted); font-size: .85rem; }
.btn-place-order { width: 100%; justify-content: center; font-size: 1.05rem; padding: 14px; margin-top: 8px; }
.order-summary { background: white; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); position: sticky; top: 80px; }
.order-summary h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.checkout-item-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checkout-item-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.checkout-item-info { flex: 1; font-size: .88rem; }
.checkout-item-price { font-weight: 700; flex-shrink: 0; }
.order-totals { padding-top: 14px; }
.total-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.total-final { border-top: 2px solid var(--purple-dark); margin-top: 8px; padding-top: 12px; font-size: 1.05rem; }
.secure-checkout-notice { background: var(--purple-pale); border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-size: .82rem; color: var(--text-muted); }
.secure-checkout-notice p { margin-bottom: 4px; }
.loading-spinner { text-align: center; padding: 30px; color: var(--text-muted); }

/* ── Track Order Page ── */
.track-form-box { background: white; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 24px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.order-track-result { background: white; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.order-track-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.order-track-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--purple-dark); margin: 0; }
.status-badge { padding: 5px 14px; border-radius: 20px; color: white; font-size: .8rem; font-weight: 700; }
.order-track-info { margin-bottom: 20px; }
.oti-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-light); font-size: .9rem; }
.order-status-steps { display: flex; gap: 0; margin: 24px 0; overflow-x: auto; }
.status-step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 80px; position: relative; }
.status-step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.status-step.done::after { background: var(--purple); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: white; position: relative; z-index: 1; margin-bottom: 6px; }
.status-step.done .step-dot { background: var(--purple); border-color: var(--purple); }
.status-step.current .step-dot { background: white; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(107,33,150,.2); }
.status-step span { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.status-step.done span { color: var(--purple); }
.downloads-section { margin: 20px 0; padding: 20px; background: #f0fdf4; border-radius: 12px; }
.downloads-section h3 { margin: 0 0 14px; color: #166534; }
.download-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #dcfce7; }
.download-item:last-child { border-bottom: none; }
.download-item p { font-size: .8rem; color: #6b7280; margin-top: 4px; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.order-items-list { margin-top: 20px; }
.order-items-list h3 { margin-bottom: 12px; }
.order-item-row { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--gray-light); font-size: .9rem; }
.order-item-row span:first-child { flex: 1; }

/* ── Cart Drawer ── */
.cart-drawer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.cart-drawer.open { pointer-events: all; }
.cart-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open .cart-drawer-content { transform: translateX(0); }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-drawer-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--purple-dark); margin: 0; }
.cart-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); padding: 6px; border-radius: 6px; transition: var(--transition); }
.cart-close:hover { background: var(--gray-light); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-drawer-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--gray-light); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cart-drawer-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-drawer-item-info { flex: 1; font-size: .88rem; }
.cart-drawer-item-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cart-drawer-item-price { color: var(--purple); font-weight: 600; }
.cart-drawer-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 4px 6px; border-radius: 4px; }
.cart-drawer-item-remove:hover { color: #dc2626; background: #fee2e2; }

/* ── Toast ── */
#toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--purple-dark); color: white; padding: 12px 20px; border-radius: 10px; font-size: .9rem; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: slideInRight .3s ease; max-width: 300px; pointer-events: all; }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Footer ── */
.site-footer { background: var(--purple-dark); color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.3rem; font-weight: 800; color: white; }
.footer-logo .logo-icon { font-size: 1.8rem; }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { font-size: 1.3rem; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.1); transition: var(--transition); }
.footer-social a:hover { background: rgba(255,255,255,.2); }
.footer-col h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; margin-bottom: 20px; }
.footer-col h5 { color: white; font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.footer-col .newsletter-form { display: flex; gap: 0; }
.footer-col .newsletter-form input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: white; border-radius: 8px 0 0 8px; padding: 9px 14px; font-size: .88rem; }
.footer-col .newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.footer-col .newsletter-form button { background: var(--gold); color: var(--purple-dark); border: none; border-radius: 0 8px 8px 0; padding: 9px 16px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .85rem; }
.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-icons span { background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 6px; font-size: .78rem; }

/* ── Static Pages ── */
.static-page { padding: 60px 20px; max-width: 900px; }
.static-page h1 { font-size: 2rem; font-weight: 800; color: var(--purple-dark); margin-bottom: 24px; }
.static-page h2 { font-size: 1.3rem; font-weight: 700; color: var(--purple-dark); margin: 24px 0 10px; }
.static-page p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.static-page ul, .static-page ol { padding-left: 24px; line-height: 2; color: var(--text-muted); margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
details { margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 600; color: var(--purple-dark); padding: 12px 0; border-bottom: 1px solid var(--border); }
details p { padding: 12px 0; color: var(--text-muted); font-size: .9rem; }

/* ── Search Page ── */
.search-bar-lg { display: flex; gap: 12px; margin-bottom: 24px; max-width: 600px; }
.search-bar-lg input { flex: 1; padding: 12px 18px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1rem; outline: none; }
.search-bar-lg input:focus { border-color: var(--purple); }

/* ── Admin CSS ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--purple-dark), #2d1060);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 24px;
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 12px;
}
.sidebar-logo span:first-child { font-size: 1.8rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.75);
  font-size: .93rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.12); color: white; }
.nav-item span { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-main { flex: 1; background: var(--gray-light); min-width: 0; }
.admin-topbar {
  background: white;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-page-title { font-size: 1.4rem; font-weight: 800; color: var(--purple-dark); margin: 0; }
.admin-content { padding: 28px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-slide { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content h1 { font-size: 2rem; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-page-grid { grid-template-columns: 1fr; }
  .digital-banner-inner { grid-template-columns: 1fr; }
  .digital-books-preview { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 12px 16px; }
  .mobile-menu-btn { display: block; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; padding: 12px; }
  .admin-sidebar { display: none; }
  .admin-topbar { padding: 14px 20px; }
  .admin-content { padding: 16px; }
  .nav-search { max-width: 200px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-info { padding: 10px 12px; }
  .product-title { font-size: .85rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .hero-grid-icons { display: none; }
}
