/* ============================================
   DigitalPassly — Premium Subscriptions & Books
   Light Theme Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand palette, taken from the logo: bright blue with a charcoal ink. */
  --primary: #1565FF;
  --primary-light: #4D88FF;
  --primary-dark: #0D3AC8;
  --accent: #1565FF;
  --accent-light: #a9c6fb;
  --accent-alt: #12a37f;
  --blue: #1565FF;

  /* Same blue as RGB channels, for rgba() tints — keeps the colour in one
     place instead of repeating literal channel values. */
  --primary-rgb: 21, 101, 255;

  /* Faint blue washes used for selected/hover surfaces. */
  --primary-wash: #eef4fe;
  --primary-wash-strong: #e3ecfd;

  /* Background shades */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: #f5f5f5;
  --bg-glass-hover: #eeeeee;
  --bg-header: #ffffff;

  /* Text */
  --text-primary: #1c2434;
  --text-secondary: #555555;
  --text-muted: #6B7280;
  --text-accent: #1565FF;

  /* Borders */
  --border-color: #e8e8e8;
  --border-hover: #d0d0d0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

  /* Layout */
  --container-width: 1400px;
  --header-height: 64px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-sm: 6px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Brand gradient */
  --gradient-brand: linear-gradient(135deg, #1565FF 0%, #0D3AC8 40%, #4D88FF 70%, #00BFFF 100%);
  --gradient-text: linear-gradient(135deg, #1565FF 0%, #0D47A1 35%, #2196F3 65%, #00BCD4 100%);
}

/* ---------- Gradient Text ---------- */
.gradient-text,
.section-title h2,
.hero h1,
.hero-slider h1 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer section titles keep white */
.footer h4 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.section-divider .line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-divider .label {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.header.hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Desktop nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.header-nav-link:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}
/* Logo + search + these links + the account/cart buttons need ~1200px; below
   that the links move into the hamburger menu instead of squeezing the search
   bar to nothing and clipping the logo. */
@media(max-width: 1199px) {
  .header-nav { display: none; }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--bg-glass);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Applied when an uploaded logo replaces the default icon glyph. */
.logo-icon-image {
  background: transparent;
  border-radius: 0;
  width: auto;
  height: 28px;
}

.logo-icon-image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo span {
  color: var(--text-primary);
}

.logo .logo-text-digital {
  color: var(--primary, #1565FF);
  font-weight: 800;
}

.logo .logo-text-passly {
  color: var(--text-primary);
  font-weight: 800;
}

/* Search bar */
.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.search-bar button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* Search Results */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 350px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.search-results.active { display: block; animation: fadeSlideDown 0.2s ease; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover { background: var(--bg-secondary); }

.search-result-item img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.search-result-item .sr-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-item .sr-info p {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.cart-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  transform: scale(0);
  transition: transform var(--transition-spring);
}

.cart-badge.show { transform: scale(1); }

.login-btn {
  padding: 8px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-transform: uppercase;
}

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

/* Auth Button (shown when logged out) */
.auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}
.auth-btn:hover { background: var(--primary-dark); }
.auth-btn:active { transform: scale(0.96); }
.auth-btn i { font-size: 0.8rem; }

/* User Menu (shown when logged in) */
.user-menu {
  display: none;
  align-items: center;
  position: relative;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.3s;
}
.user-menu-btn:hover {
  border-color: var(--primary);
  background: var(--primary-wash);
}
.user-avatar-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565FF, #00BFFF);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-name-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  overflow: hidden;
}
.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.user-dropdown-header .dd-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.user-dropdown-header .dd-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-primary);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover {
  background: var(--bg-secondary);
}
.user-dropdown a i, .user-dropdown button i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.user-dropdown .dd-divider {
  height: 1px;
  background: var(--border-color);
}
.user-dropdown .logout-btn {
  color: #dc2626;
}
.user-dropdown .logout-btn i { color: #dc2626; }
/* ---------- Mobile Navigation ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.mobile-nav {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 2001;
  padding: 20px 0;
  overflow-y: auto;
  transition: left var(--transition-normal);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active { left: 0; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.mobile-nav-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  border-left: 3px solid var(--primary);
  padding-left: 21px;
}

.mobile-nav-links a i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 20px;
}

/* ---------- Hero Carousel ---------- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide {
  min-width: 100%;
  position: relative;
}

/* Uploaded banner images. The ratio stays 3:1 at every width — matching the
   shape banners are designed at — so the slot never gets taller than the image
   and `contain` has nothing to letterbox. */
.hero-slide-image {
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
}

.hero-slide-image a {
  display: block;
  width: 100%;
  max-width: var(--container-width);
  padding: 0 20px;
}

.hero-slide-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

/* Text slides keep their own height via .hero-slide-content below. */
.hero-slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 40px 20px;
}

.hero-text-overlay {
  text-align: center;
  max-width: 650px;
}

.hero-text-overlay h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-text-overlay p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  /* No aspect-ratio override here: forcing a taller box than the image made the
     banner huge and cropped the sides off. */
  .hero-slide-content { min-height: 220px; }
  .hero-text-overlay h1 { font-size: 1.5rem; }
  .hero-text-overlay p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero-slide-content { min-height: 180px; }
  .hero-text-overlay h1 { font-size: 1.2rem; }
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.hero-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ---------- Categories Section ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.category-card.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  background: var(--primary);
  color: #fff !important;
}

.category-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.category-card:hover h3 { color: var(--text-primary); }

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.product-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  cursor: pointer;
  text-decoration: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

/* ---------- Sold out ---------- */
.stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 52, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.stock-overlay span {
  background: #d13b3b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 4px;
  transform: rotate(-6deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* Dim the image but keep the name and price legible. */
.product-card.is-sold-out .product-image img {
  filter: grayscale(0.7);
}

.product-card.is-sold-out:hover .product-image img {
  transform: none;
}

.product-card.is-sold-out .buy-now-btn {
  background: var(--text-muted);
}

.product-card.is-sold-out .buy-now-btn:hover {
  background: var(--text-secondary);
  box-shadow: none;
}

.sr-out {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #d13b3b;
}

.badge-sale { background: var(--primary); }
/* Darkened from #f39c12: white on that was 2.19:1, effectively unreadable. */
.badge-hot { background: #c26f02; }
.badge-new { background: var(--accent-alt); }

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  transition: bottom var(--transition-normal);
}

.product-card:hover .product-actions { bottom: 0; }

.product-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-action-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.product-info {
  padding: 14px;
  text-align: center;
}

.product-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info h4 a { color: inherit; }
.product-info h4 a:hover { color: var(--primary); }

.product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.product-price .current-price { color: var(--primary); }

.product-price .original-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
  font-weight: 400;
}

/* ---------- Storefront cards (homepage grid + offers slider) ----------
   A separate grid class from .products-grid: that one is still used by the
   product page's related strip, which only ever holds 4 items and would leave
   a hole in a 5-up row. */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* Pills scroll sideways rather than wrapping, so the grid below keeps its
   position as categories are added. */
.pc-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.pc-filters::-webkit-scrollbar { display: none; }

.pc-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.pc-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pc-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Storefront card ---------- */
.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  transition: transform var(--transition-normal);
}

.pc-card:hover { transform: translateY(-4px); }

/* The stretched link carries the focus ring for the whole tile. */
.pc-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pc-thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.pc-card:hover .pc-thumb-inner { transform: scale(1.04); }

/* inset 15% keeps every logo in the same optical box whatever its aspect. */
.pc-thumb img {
  position: absolute;
  inset: 15%;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.pc-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.pc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 600;
  z-index: 5;
}

/* Promotions are solid and loud; notes are quiet chips on white. */
.pc-badge-flash {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
}

.pc-badge-new,
.pc-badge-hot,
.pc-badge-sale,
.pc-badge-popular,
.pc-badge-bestseller,
.pc-badge-limited {
  background: var(--bg-primary);
  color: var(--primary);
}

.pc-badge-bestseller,
.pc-badge-limited { color: var(--text-secondary); }

.pc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  text-align: left;
}

.pc-cat {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pc-name {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.pc-name a { color: inherit; text-decoration: none; }

/* Stretched hit area: the whole card is clickable, but only the name is a link. */
.pc-name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
}

.pc-name a:focus-visible { outline: none; }

.pc-desc {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Stock state sits at the far right of the row, whether or not a sold count
   precedes it. */
.pc-meta > :last-child:not(:only-child) { margin-left: auto; }

.pc-left.is-low { color: var(--accent); }

.pc-chip-out {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--primary-wash);
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
}

/* Pushed to the bottom so prices line up across cards whose text runs short. */
.pc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 8px;
  row-gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.pc-from {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pc-now {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.pc-cur {
  margin-right: 1px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.pc-was {
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  text-decoration: line-through;
}

/* The old .product-card.is-sold-out rules target .product-image, which this
   card does not use. */
.pc-card.is-sold-out .pc-thumb-inner { filter: grayscale(0.85); opacity: 0.85; }
.pc-card.is-sold-out:hover .pc-thumb-inner { transform: none; }

/* ---------- Product Slider ---------- */
.product-slider-container {
  position: relative;
  overflow: hidden;
}

.product-slider {
  display: flex;
  gap: 20px;
  /* Cards size to their own content instead of all stretching to match the
     tallest one, which left empty space below the shorter cards. */
  align-items: flex-start;
  transition: transform 0.5s ease;
  cursor: grab;
}

.product-slider:active { cursor: grabbing; }

/* Fixed width, not just a minimum: the square image scales to whatever width
   the card ends up with, so an unbounded card grows tall as well as wide.
   240 + the 20px gap is the step size initProductSlider scrolls by. */
.product-slider .product-card {
  width: 240px;
  flex: 0 0 240px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.slider-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

/* ---------- Why Choose Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon { transform: scale(1.1); }

.feature-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Cart Sidebar ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  z-index: 3001;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-header h3 i { color: var(--primary); }

.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
}

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

.cart-empty i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.3; }
.cart-empty p { font-size: 0.9rem; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  animation: fadeSlideDown 0.3s ease;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

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

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info .cart-item-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: capitalize;
  margin-bottom: 4px;
}

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

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cart-item-qty {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--primary-wash-strong);
  border: 1px solid #ffdddd;
  color: var(--primary);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
  transition: all var(--transition-fast);
}

.cart-item-remove:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cart-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-subtotal span:first-child { font-size: 0.95rem; color: var(--text-secondary); }
.cart-subtotal span:last-child { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

.checkout-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--text-primary);
  color: #ccc;
  border-top: 3px solid var(--primary);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0 30px;
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo span { color: #fff; }
.footer-brand .logo-icon { background: var(--primary); }
/* Image logos in the footer: no blue box behind them. */
.footer-brand .logo-icon-image { background: transparent; border-radius: 0; }

.footer-brand p {
  color: #aaa;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 8px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
  color: #aaa;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul a::before {
  content: '\203A';
  color: var(--primary);
  font-weight: bold;
}

.footer-col ul a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: #777; font-size: 0.82rem; }

.payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-methods span { color: #777; font-size: 0.78rem; }

.payment-icons { display: flex; gap: 6px; }

.payment-icon {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s ease, fadeOutRight 0.4s ease forwards;
  animation-delay: 0s, 2.5s;
}

.toast i { font-size: 1.05rem; }
.toast.success { border-left: 3px solid var(--accent-alt); }
.toast.success i { color: var(--accent-alt); }
.toast.error { border-left: 3px solid var(--primary); }
.toast.error i { color: var(--primary); }

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* ---------- Floating WhatsApp ---------- */
/* Sits above the scroll-to-top button, which occupies bottom: 30px. */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 30px;
  z-index: 901;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 13px;
  border-radius: 30px;
  background: #25d366;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-normal);
}

.wa-float i { font-size: 1.35rem; }

.wa-float:hover {
  background: #1eb855;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
}

/* Draws the eye without being a constant distraction. */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { opacity: 0.7; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* On narrow screens the label would crowd the layout, so show only the icon.
   Kept low and tight to the edge so it overlaps as little content as possible;
   the scroll-to-top button moves up to sit above it. */
@media (max-width: 640px) {
  .wa-float {
    bottom: 20px;
    right: 14px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .wa-float span { display: none; }
  .wa-float i { font-size: 1.4rem; }

  /* Stacked above WhatsApp rather than beside it, so neither covers content.
     44px is the minimum comfortable tap target. */
  .scroll-top {
    bottom: 78px;
    right: 14px;
    width: 44px;
    height: 44px;
  }
}

/* =====================================
   PRODUCT DETAIL PAGE STYLES
   ===================================== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--header-height);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.breadcrumb a {
  color: var(--blue);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }

.product-detail {
  padding: 30px 0 60px;
}

/* Two columns: content on the left, sticky order box on the right. */
.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

/* ---------- Hero card ---------- */
.pd-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.pd-hero-image {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-hero-image img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

.pd-hero-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
}

.pd-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pd-hero-body {
  /* Centred because this block is short — the image sets the row height. */
  align-self: center;
}

.pd-hero-body h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pd-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-price-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.pd-price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-price-value .pd-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1rem;
  font-weight: 400;
}

.pd-price-value .pd-discount-pct {
  background: var(--primary-wash-strong);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Stock line under the price on the product page. */
.pd-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

.pd-stock.is-in {
  color: #0c7a5f;
  background: #e8f7f2;
  border: 1px solid #bfe8dc;
}

.pd-stock.is-out {
  color: #a82c2c;
  background: #fdeeee;
  border: 1px solid #f5cccc;
}

/* ---------- Tabs ---------- */
.pd-tabs {
  margin-top: 22px;
}

.pd-tab-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pd-tab {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 11px 18px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pd-tab:hover { border-color: var(--border-hover); color: var(--text-primary); }

.pd-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pd-tab-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.pd-tab-panel.active { display: block; }

.pd-tab-panel h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.pd-description p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pd-description p:last-child { margin-bottom: 0; }
.pd-empty { color: var(--text-muted); font-style: italic; }

/* ---------- Reviews ---------- */
.pd-rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.pd-rating-summary strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pd-rating-summary small { color: var(--text-muted); font-size: 0.82rem; }

.pd-stars { color: #f39c12; font-size: 0.85rem; letter-spacing: 1px; }

.pd-review {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.pd-review:last-child { border-bottom: none; padding-bottom: 0; }

.pd-review header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pd-review header strong { font-size: 0.9rem; color: var(--text-primary); }

.pd-review p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- FAQ ---------- */
.pd-faq {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.pd-faq:last-child { margin-bottom: 0; }

.pd-faq summary {
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background: var(--bg-secondary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pd-faq summary::-webkit-details-marker { display: none; }

.pd-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
}

.pd-faq[open] summary::after { content: '\2212'; }

.pd-faq p {
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ---------- Order box ---------- */
.pd-order-box {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.pd-offer-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--primary-wash);
  border-bottom: 1px solid var(--border-color);
}

.pd-offer-strip i { color: var(--primary); font-size: 1rem; }
.pd-offer-strip strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.pd-offer-strip span { font-size: 0.75rem; color: var(--text-secondary); }

.pd-order-body { padding: 18px; }

.pd-order-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.pd-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.pd-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pd-plan:hover { border-color: var(--border-hover); }

.pd-plan.selected {
  border-color: var(--primary);
  background: var(--primary-wash);
}

.pd-plan-check { color: var(--border-hover); font-size: 1.05rem; flex-shrink: 0; }
.pd-plan.selected .pd-plan-check { color: var(--primary); }

.pd-plan-text { flex: 1; min-width: 0; }
.pd-plan-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pd-plan-text small { font-size: 0.75rem; color: var(--text-muted); }

.pd-plan-pkg {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1px 7px;
  border-radius: 20px;
  margin: 2px 0;
}

.pd-plan.selected .pd-plan-pkg {
  background: #fff;
  border-color: var(--primary-light);
  color: var(--primary);
}

.pd-plan-pricing { text-align: right; flex-shrink: 0; }
.pd-plan-pricing strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}
.pd-plan-pricing s { font-size: 0.72rem; color: var(--text-muted); }
.pd-plan-pricing em {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  font-style: normal;
  color: var(--accent-alt);
}

.pd-order-summary {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-bottom: 16px;
}

.pd-order-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
}

.pd-order-row dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.pd-order-row dd { font-size: 0.88rem; color: var(--text-primary); font-weight: 600; }

.pd-order-total dd {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.pd-btn-order,
.pd-btn-addcart {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.pd-btn-order {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  margin-bottom: 10px;
}

.pd-btn-order:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.pd-btn-addcart {
  background: var(--bg-card);
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
}

.pd-btn-addcart:hover { background: var(--text-primary); color: #fff; }

.pd-btn-chat {
  width: 100%;
  padding: 13px;
  margin-top: 10px;
  border-radius: var(--border-radius);
  background: #25d366;
  border: 2px solid #25d366;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.pd-btn-chat:hover {
  background: #1eb855;
  border-color: #1eb855;
  color: #fff;
}

.pd-btn-chat i { font-size: 1.15rem; }

/* Sold-out order box: buttons inert, plans no longer selectable. */
.pd-btn-order:disabled,
.pd-btn-addcart:disabled {
  background: var(--text-muted);
  border-color: var(--text-muted);
  color: #fff;
  cursor: not-allowed;
}

.pd-btn-order:disabled:hover,
.pd-btn-addcart:disabled:hover {
  background: var(--text-muted);
  border-color: var(--text-muted);
  transform: none;
}

.pd-order-box.is-sold-out .pd-plans {
  opacity: 0.55;
  pointer-events: none;
}

.pd-order-box.is-sold-out .pd-offer-strip {
  background: #f4f5f7;
}

.pd-order-box.is-sold-out .pd-offer-strip i { color: var(--text-muted); }

.pd-secure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 12px 0;
}

.pd-assurances {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.pd-assurances li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 5px 0;
}

.pd-assurances i { color: var(--accent-alt); font-size: 0.75rem; margin-top: 3px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
  .pd-order-box { position: static; }

  /* Single column: hero first, then the order box, with the
     Description / Reviews / FAQ tabs last. Flattening .pd-main lets the
     hero and the tabs be ordered independently of each other. */
  .pd-main { display: contents; }
  .pd-hero { order: 1; }
  .pd-order-box { order: 2; }
  .pd-tabs { order: 3; margin-top: 0; }
}

@media (max-width: 640px) {
  .pd-hero {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }
  .pd-hero-image { max-width: 200px; margin: 0 auto; }
  .pd-hero-body h1 { font-size: 1.3rem; }
  .pd-tab { min-width: 0; flex: 1; padding: 10px 12px; font-size: 0.8rem; }
  .pd-tab-panel { padding: 18px; }
}

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ---------- Responsive ---------- */
/* Storefront grid steps down 5 → 4 → 3 → 2, matching the tile widths the
   card's 4:3 thumbnail was sized against. */
@media (max-width: 1100px) {
  .pc-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .menu-toggle { display: flex; }
  .search-bar {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 10px 16px 14px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
  }
  .search-bar.mobile-active { display: block; }
  .login-btn { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 10px; }
  .product-info h4 { font-size: 0.8rem; }
  .pc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
  .pc-body { padding: 12px; }
  .pc-cat { font-size: 0.6875rem; }
  .pc-name { font-size: 0.875rem; }
  .pc-pill { padding: 6px 12px; font-size: 0.75rem; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .cart-sidebar { width: 100%; right: -100%; }
}

@media (max-width: 480px) {
  :root { --header-height: 58px; }
  .logo { font-size: 1.2rem; }
  .logo-icon:not(.logo-icon-image) { width: 32px; height: 32px; font-size: 0.9rem; }
  /* Wide wordmark needs width headroom, so trim surrounding header spacing. */
  .logo-icon-image { height: 24px; max-width: 160px; }
  .header-inner { gap: 10px; }
  .header-left { gap: 10px; }
  .header-actions { gap: 8px; }
  .auth-btn { padding: 8px 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-actions { bottom: 0; background: transparent; }
  .product-action-btn { width: 32px; height: 32px; font-size: 0.75rem; }
  .pc-grid { gap: 10px; }
  .pc-body { padding: 10px; }
  /* Blurb is the first thing to go when the card gets this narrow. */
  .pc-desc { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .features-grid { grid-template-columns: 1fr; }
  .pd-info h1 { font-size: 1.2rem; }
}

/* ===== Buy Now Button ===== */
.buy-now-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  /* Rendered as an <a>, so the link defaults need overriding. */
  text-decoration: none;
  box-sizing: border-box;
}

.buy-now-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* ===== Customer Reviews Gallery ===== */
.reviews-gallery {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}
.reviews-track {
  display: flex;
  gap: 16px;
  animation: reviewScroll 30s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes reviewScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.review-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
@media(max-width:600px) {
  .review-card { width: 170px; }
  .review-card img { height: 220px; }
}
.review-caption {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #555;
  text-align: center;
  font-weight: 500;
}

/* Lightbox */
.review-lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; cursor: pointer;
}
.review-lightbox-inner {
  position: relative; max-width: 600px; width: 100%; cursor: default;
}
.review-lightbox-inner img {
  width: 100%; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.review-lb-close {
  position: absolute; top: -12px; right: -12px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: #fff; color: #333;
  font-size: 1rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.review-lb-close:hover { background: #f0f0f0; }

/* ===== Support CTA Card ===== */
.support-section-wrap {
  width: 100%;
}
.support-card {
  background: linear-gradient(135deg, #1a6ef5 0%, #0d47c2 60%, #0a3699 100%);
  border-radius: 0;
  padding: 80px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.support-card::after {
  content: 'DigitalPassly';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 9rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  letter-spacing: 10px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.support-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 16px;
}
.support-heading {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.2;
}
.support-desc {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.4);
}
.support-btn-wa {
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(6px);
}
.support-btn-wa:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.support-btn-wa i { font-size: 1.2rem; }
@media(max-width:600px) {
  .support-card { padding: 60px 24px; }
  .support-heading { font-size: 2rem; }
  .support-desc { font-size: 0.9rem; }
  .support-btn { padding: 14px 28px; font-size: 0.9rem; }
  .support-card::after { font-size: 4rem; }
}

/* ===== How to Order ===== */
.hto-header { text-align: center; margin-bottom: 40px; }
.hto-title { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.hto-subtitle { color: #777; margin-top: 8px; font-size: 1rem; }
.hto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.hto-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.hto-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  color: var(--primary);
  margin: 0 auto 10px;
  background: #fff;
  position: relative;
  z-index: 2;
}
.hto-line {
  position: absolute;
  top: 26px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: #d0d8e8;
  z-index: 1;
}
.hto-line-last { display: none; }
.hto-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.hto-step p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}
@media(max-width:768px) {
  .hto-steps { grid-template-columns: 1fr; gap: 24px; }
  .hto-line { display: none; }
  .hto-step { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 0; }
  .hto-num { margin: 0; flex-shrink: 0; }
  .hto-step h3 { margin-bottom: 4px; }
}

/* ── DigitalPassly extras ── */
.hidden{display:none!important}
/* Cart drawer uses inline style right: for animation */
.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:3000;opacity:0;visibility:hidden;transition:all .3s ease}
.cart-overlay.active{opacity:1;visibility:visible}
/* FAQ */
.faq-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.faq-item{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--border-radius);overflow:hidden;transition:border-color .2s}
.faq-item.open,.faq-item:hover{border-color:var(--primary)}
.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;font-size:.95rem;font-weight:600;color:var(--text-primary);background:none;border:none;cursor:pointer;text-align:left;gap:16px;font-family:inherit}
.faq-ico{width:28px;height:28px;flex-shrink:0;border-radius:var(--border-radius-sm);background:var(--bg-secondary);border:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;font-size:.85rem;font-style:normal;transition:all .2s}
.faq-item.open .faq-ico{background:var(--primary);border-color:transparent;color:#fff;transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease,padding .2s;padding:0 22px}
.faq-item.open .faq-a{max-height:400px;padding:0 22px 18px}
.faq-a p{font-size:.88rem;color:var(--text-secondary);line-height:1.75}
.faq-a a{color:var(--primary)}
/* Support card */
.support-card{background:linear-gradient(135deg,#1565FF 0%,#38BEFF 100%);border-radius:var(--border-radius-lg);padding:60px 40px;text-align:center;max-width:700px;margin:0 auto}
.support-card h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;color:#fff;margin-bottom:16px;font-family:'Manrope',sans-serif}
.support-card p{color:rgba(255,255,255,.85);max-width:520px;margin:0 auto 32px}
.btn-wa{display:inline-flex;align-items:center;gap:8px;padding:14px 32px;background:#fff;color:#1a1a1a;font-weight:700;font-size:1rem;border-radius:var(--border-radius-sm);border:none;cursor:pointer;transition:all .2s;text-decoration:none}
.btn-wa:hover{background:rgba(255,255,255,.9);transform:translateY(-2px)}
/* Page hero for inner pages */
.page-hero{background:linear-gradient(135deg,#1565FF 0%,#38BEFF 100%);padding:60px 0;margin-top:var(--header-height)}
.page-hero h1{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;color:#fff;text-align:center;font-family:'Manrope',sans-serif}
.page-hero p{color:rgba(255,255,255,.85);text-align:center;margin-top:12px;max-width:560px;margin-left:auto;margin-right:auto}
/* Filter bar */
.filter-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:32px;padding:16px;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--border-radius);box-shadow:var(--shadow-sm)}
.fb-search{display:flex;align-items:center;gap:8px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:50px;padding:8px 16px;flex:1;min-width:180px}
.fb-search input{background:none;border:none;color:var(--text-primary);font-size:.88rem;outline:none;width:100%;font-family:inherit}
.fb-search input::placeholder{color:var(--text-muted)}
.filter-pills{display:flex;flex-wrap:wrap;gap:8px}
.fp{padding:6px 16px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:50px;font-size:.8rem;font-weight:600;color:var(--text-secondary);cursor:pointer;white-space:nowrap;transition:all .2s;font-family:inherit}
.fp:hover{border-color:var(--primary);color:var(--primary)}
.fp.active{background:var(--primary);border-color:var(--primary);color:#fff}
/* Cart & checkout pages */
.cart-page,.checkout-page{padding:40px 0 80px}
.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:32px;align-items:start}
.cil{display:flex;flex-direction:column;gap:16px}
.cpi{display:grid;grid-template-columns:70px 1fr auto;gap:16px;align-items:center;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--border-radius);padding:16px;transition:box-shadow .2s}
.cpi:hover{box-shadow:var(--shadow-card-hover)}
.cpi-img{width:70px;height:70px;border-radius:var(--border-radius-sm);background:var(--bg-secondary);display:flex;align-items:center;justify-content:center;font-size:2rem}
.cpi-name{font-weight:700;font-size:.95rem;margin-bottom:3px;color:var(--text-primary)}
.cpi-var{font-size:.78rem;color:var(--text-muted)}
.cpi-price{font-size:1.1rem;font-weight:800;color:var(--primary);text-align:right}
.cart-sum{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);padding:24px;position:sticky;top:calc(var(--header-height) + 16px);box-shadow:var(--shadow-card)}
.cart-sum h3{font-size:1rem;font-weight:700;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border-color)}
.cs-line{display:flex;justify-content:space-between;font-size:.88rem;padding:6px 0;color:var(--text-secondary)}
.cs-line.total{font-size:1.05rem;font-weight:800;color:var(--text-primary);padding-top:16px;margin-top:8px;border-top:1px solid var(--border-color)}
.checkout-layout{display:grid;grid-template-columns:1fr 360px;gap:32px;align-items:start}
.form-section{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);padding:28px;margin-bottom:20px;box-shadow:var(--shadow-card)}
.form-section h3{font-size:1rem;font-weight:700;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;gap:8px}
.fg{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fg-full{grid-column:1/-1}
.fgrp{display:flex;flex-direction:column;gap:6px}
.fgrp label{font-size:.8rem;font-weight:600;color:var(--text-secondary)}
.fi{padding:10px 14px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--border-radius-sm);color:var(--text-primary);font-size:.9rem;width:100%;outline:none;font-family:inherit;transition:border-color .2s,box-shadow .2s}
.fi:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(21,101,255,.1)}
.fi::placeholder{color:var(--text-muted)}
textarea.fi{resize:vertical;min-height:100px}
.pay-methods{display:flex;flex-direction:column;gap:12px}
.pay-opt{border:2px solid var(--border-color);border-radius:var(--border-radius);padding:16px;cursor:pointer;transition:all .2s}
.pay-opt:hover{border-color:var(--primary)}
.pay-opt.sel{border-color:var(--primary);background:var(--primary-wash)}
.pay-opt label{display:flex;align-items:center;gap:14px;cursor:pointer}
.pay-opt input[type=radio]{accent-color:var(--primary)}
.po-icon{font-size:1.5rem;width:36px;text-align:center}
.po-name{font-weight:700;font-size:.9rem;margin-bottom:2px;color:var(--text-primary)}
.po-desc{font-size:.78rem;color:var(--text-muted)}
/* Responsive */
@media(max-width:1100px){.cart-layout,.checkout-layout{grid-template-columns:1fr}.cart-sum{position:static}}
@media(max-width:768px){.fg{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.footer-main{grid-template-columns:1fr}}

/* ── buy-now-btn (product card CTA button) ── */
.buy-now-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-family: inherit;
  text-decoration: none;
}
.buy-now-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), .3);
  transform: translateY(-1px);
}
/* Menu toggle shows wherever the desktop nav links are hidden */
@media (max-width: 1199px) {
  .menu-toggle { display: flex !important; }
}
/* Animation helpers */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOutRight {
  to { opacity: 0; transform: translateX(20px); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── DigitalPassly hero fix ── */
.hero { overflow: hidden; background: #1565FF; }
.hero-carousel { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform 0.6s cubic-bezier(0.77,0,0.175,1); }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 60px 20px;
}
.hero-text-overlay {
  max-width: 700px;
  text-align: center;
  color: #fff;
}
.hero-text-overlay h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.hero-text-overlay p {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero-dot.active { background: #fff; border-color: #fff; }

/* ── Product card image height fix ── */
.product-image {
  display: block;
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary, #f5f5f5);
  cursor: pointer;
  text-decoration: none;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }

/* buy-now-btn */
.buy-now-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 10px 16px;
  background: var(--primary, #1565FF);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;
  font-family: inherit;
}
.buy-now-btn:hover {
  background: #0D3AC8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21,101,255,0.3);
}

/* Support card */
.support-card {
  background: linear-gradient(135deg, #1565FF 0%, #38BEFF 100%);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.support-card h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: #fff; margin-bottom: 16px; font-family: 'Manrope',sans-serif; }
.support-card p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 32px; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: #fff; color: #1a1a1a !important;
  font-weight: 700; font-size: 1rem; border-radius: 8px;
  text-decoration: none !important; transition: all 0.2s; border: none; cursor: pointer;
}
.btn-wa:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-primary,#fff); border: 1px solid var(--border-color,#e8e8e8); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover, .faq-item.open { border-color: var(--primary,#1565FF); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; font-size: .95rem; font-weight: 600; color: var(--text-primary,#1a1a1a); background: none; border: none; cursor: pointer; text-align: left; gap: 16px; font-family: inherit; }
.faq-ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; background: var(--bg-secondary,#f5f5f5); border: 1px solid var(--border-color,#e8e8e8); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-style: normal; transition: all 0.2s; }
.faq-item.open .faq-ico { background: var(--primary,#1565FF); border-color: transparent; color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s; padding: 0 22px; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 18px; }
.faq-a p { font-size: .88rem; color: var(--text-secondary,#666); line-height: 1.75; margin: 0; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 88px; right: 30px; z-index: 901; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 13px; border-radius: 30px; background: #25d366; color: #fff !important; font-size: .88rem; font-weight: 700; text-decoration: none !important; box-shadow: 0 6px 20px rgba(37,211,102,.35); transition: all 0.3s; }
.wa-float i { font-size: 1.35rem; }
.wa-float:hover { background: #1eb855; transform: translateY(-2px); }
@media(max-width:640px){.wa-float{bottom:20px;right:14px;width:48px;height:48px;padding:0;justify-content:center;border-radius:50%}.wa-float span{display:none}}

/* Cart items */
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; text-align: center; color: #999; gap: 12px; }
.cart-empty i { font-size: 2.5rem; opacity: 0.4; }
.cart-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e8e8e8; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: .88rem; font-weight: 700; margin: 0 0 4px; color: #1a1a1a; }
.cart-item-variant { font-size: .75rem; color: #999; margin-bottom: 6px; }
.cart-item-price { font-size: .9rem; font-weight: 700; color: #1565FF; margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid #e8e8e8; background: #f5f5f5; border-radius: 4px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: #1565FF; color: #fff; border-color: #1565FF; }
.cart-item-qty { width: 26px; text-align: center; font-size: .85rem; font-weight: 700; }
.cart-item-remove { width: 30px; height: 30px; border: none; background: #fff0f0; color: #e74c3c; border-radius: 6px; font-size: .75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.cart-item-remove:hover { background: #e74c3c; color: #fff; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .95rem; font-weight: 600; }
.checkout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: #1565FF; color: #fff; border: none; border-radius: 10px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.checkout-btn:hover { background: #0D3AC8; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e8e8e8; }
.cart-header h3 { font-family: 'Manrope',sans-serif; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.cart-close { width: 34px; height: 34px; border-radius: 50%; background: #f5f5f5; border: 1px solid #e8e8e8; color: #1a1a1a; font-size: .85rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.cart-close:hover { background: #1565FF; border-color: #1565FF; color: #fff; }

/* Toast */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.15); font-size: .88rem; font-weight: 600; border-left: 4px solid #1565FF; animation: slideInRight 0.3s ease; }
.toast.success { border-left-color: #27ae60; }
.toast.error { border-left-color: #e74c3c; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* Stock overlay */
.stock-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; }
.stock-overlay span { background: #e74c3c; color: #fff; padding: 6px 18px; border-radius: 20px; font-size: .85rem; font-weight: 700; }

/* Scroll top */
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: #1565FF; color: #fff; border: none; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(21,101,255,.35); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 900; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: #0D3AC8; transform: translateY(-2px); }
@media(max-width:640px){.scroll-top{bottom:80px}}

/* ── Support CTA — PixelSub exact ── */
#support-cta { padding: 0; }
.support-card {
  background: linear-gradient(135deg, #1565FF 0%, #0D3AC8 60%, #0a3699 100%) !important;
  border-radius: 0 !important;
  padding: 80px 40px !important;
  text-align: center !important;
  color: #fff !important;
  position: relative !important;
  overflow: hidden !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.support-card::before {
  content: '' !important;
  position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.support-card::after {
  content: 'DigitalPassly' !important;
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 9rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  letter-spacing: 10px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.support-tag {
  display: inline-block !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  opacity: 0.75 !important;
  margin-bottom: 16px !important;
  color: #fff !important;
}
.support-heading {
  font-size: 3rem !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  color: #fff !important;
  line-height: 1.2 !important;
  font-family: 'Manrope', sans-serif !important;
}
.support-desc {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  opacity: 0.88 !important;
  margin-bottom: 36px !important;
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #fff !important;
}
.support-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 36px !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  cursor: pointer !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
}
.support-btn-wa {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  backdrop-filter: blur(6px) !important;
}
.support-btn-wa:hover {
  background: rgba(255,255,255,0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}
.support-btn-wa i { font-size: 1.2rem !important; }
@media(max-width:600px){
  .support-heading { font-size: 2rem !important; }
  .support-card { padding: 60px 20px !important; }
  .support-card::after { font-size: 4rem !important; }
}

/* ============================================
   ANIMATIONS — Global scroll-reveal + micro
   ============================================ */

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInBounce {
  0%   { opacity: 0; transform: translateY(50px); }
  60%  { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes headerSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Header entrance ---------- */
.header {
  animation: headerSlideDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ---------- Logo shimmer on hover ---------- */
.logo:hover .logo-icon-image img {
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

/* ---------- Scroll-reveal base ---------- */
.anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim.anim-left {
  transform: translateX(-40px);
}
.anim.anim-right {
  transform: translateX(40px);
}
.anim.anim-scale {
  transform: scale(0.85);
}
.anim.anim-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.anim-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-stagger.anim-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.anim-stagger.anim-visible > *:nth-child(1)  { transition-delay: 0.05s; }
.anim-stagger.anim-visible > *:nth-child(2)  { transition-delay: 0.1s; }
.anim-stagger.anim-visible > *:nth-child(3)  { transition-delay: 0.15s; }
.anim-stagger.anim-visible > *:nth-child(4)  { transition-delay: 0.2s; }
.anim-stagger.anim-visible > *:nth-child(5)  { transition-delay: 0.25s; }
.anim-stagger.anim-visible > *:nth-child(6)  { transition-delay: 0.3s; }
.anim-stagger.anim-visible > *:nth-child(7)  { transition-delay: 0.35s; }
.anim-stagger.anim-visible > *:nth-child(8)  { transition-delay: 0.4s; }
.anim-stagger.anim-visible > *:nth-child(9)  { transition-delay: 0.45s; }
.anim-stagger.anim-visible > *:nth-child(10) { transition-delay: 0.5s; }
.anim-stagger.anim-visible > *:nth-child(n+11) { transition-delay: 0.55s; }

/* ---------- Card hover lift ---------- */
.product-card,
.book-card,
.faq-item,
.how-step {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease !important;
}
.product-card:hover,
.book-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

/* ---------- Button press ---------- */
.btn, .cta-btn, .add-cart-btn, .checkout-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease !important;
}
.btn:active, .cta-btn:active, .add-cart-btn:active, .checkout-btn:active {
  transform: scale(0.96) !important;
}

/* ---------- Hero entrance ---------- */
.hero, .hero-slider {
  animation: fadeIn 1s ease both;
}
.hero h1, .hero-slider h1 {
  animation: fadeInUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.hero p, .hero-slider p {
  animation: fadeInUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.hero .btn, .hero-slider .btn, .hero a, .hero-slider a.btn {
  animation: fadeInUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ---------- Section title entrance ---------- */
.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-title.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cart badge bounce ---------- */
.cart-badge.show {
  animation: slideInBounce 0.4s ease both;
}

/* ---------- Nav link underline animation ---------- */
.header-nav-link {
  position: relative;
}
.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}
.header-nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float, .wa-float {
  animation: float 3s ease-in-out infinite;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim { opacity: 1; transform: none; }
  .anim-stagger > * { opacity: 1; transform: none; }
}

/* =====================================================================
   UI polish (ui-ux-pro-max audit)
   Readability, keyboard focus, contrast and mobile layout fixes.
   ===================================================================== */

/* Hero headline: the blue gradient text vanished on the blue hero. */
.hero h1,
.hero-slider h1 {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 18px rgba(4, 18, 60, 0.35);
}

/* Visible keyboard focus everywhere (base styles remove outlines). */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.footer a:focus-visible,
.hero a:focus-visible,
.hero-slider a:focus-visible { outline-color: #fff; }

/* Contrast: grey text that fell below 4.5:1. */
.hto-subtitle,
.hto-step p { color: #5F6672; }
.footer-bottom p { color: #9AA3B2; }
.payment-methods > span { color: #9AA3B2; }
.payment-methods .payment-icon { color: #B4BCC8; }
.wa-float { background: #128C4E; box-shadow: 0 6px 20px rgba(18, 140, 78, 0.35); }
.wa-float:hover { background: #0E7740; }

/* Tiny badge text was 10px. */
.pc-badge { font-size: 0.6875rem; }

/* Six feature cards: 3 x 2 instead of 5 + 1 orphan. */
@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: compact two-column feature cards instead of six tall cards. */
@media (max-width: 480px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-card { padding: 16px 12px; }
  .feature-card h3 { font-size: 0.9rem; }
  .feature-card p { font-size: 0.78rem; }
}

/* Mobile how-to-order: title above description, number on the left. */
@media (max-width: 768px) {
  .hto-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: start;
  }
  .hto-num { grid-row: 1 / span 2; }
  .hto-step h3,
  .hto-step p { grid-column: 2; margin: 0; }
}

/* Mobile footer: payment badges wrap neatly under a centred label. */
@media (max-width: 768px) {
  .payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .payment-icons { flex-wrap: wrap; justify-content: center; }
  .payment-icon { white-space: nowrap; }
}

/* Reduced motion: section titles must not stay hidden. */
@media (prefers-reduced-motion: reduce) {
  .section-title { opacity: 1; transform: none; }
}

/* =====================================================================
   Responsive header: the logo shrinks instead of sliding under the
   Login / cart buttons on narrow phones (320–420px).
   ===================================================================== */
.header-actions { flex-shrink: 0; }
@media (max-width: 960px) {
  .header-left { min-width: 0; flex: 1 1 auto; }
  .header-left .logo { min-width: 0; flex: 0 1 auto; }
  .header .logo-icon-image { height: auto; min-width: 0; max-width: 100%; }
  .header .logo-icon-image img { width: auto; height: auto; max-height: 28px; max-width: 100%; display: block; }
}
@media (max-width: 480px) {
  .header .logo-icon-image img { max-height: 24px; }
}
/* Very narrow phones: Login becomes an icon button, the cart keeps its size. */
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .header-left { gap: 6px; }
  .header-actions { gap: 6px; }
  .menu-toggle { width: 36px; height: 40px; flex-shrink: 0; }
  /* Same box as the cart button next to it. */
  .auth-btn { width: 40px; height: 40px; padding: 0; gap: 0; justify-content: center; font-size: 0; border-radius: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); }
  .auth-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
  .auth-btn i { font-size: 1.1rem; }
  .header .user-name-text { display: none; }
  .cart-btn { width: 40px; height: 40px; border-radius: 10px; }
}
/* Bigger tap areas on touch screens (visuals unchanged). */
.hero-dot { position: relative; }
.hero-dot::after { content: ''; position: absolute; inset: -12px; }
@media (max-width: 960px) {
  .header .logo { padding: 8px 0; }
}
/* Special Offers slider: it must be a real scroll container, otherwise the
   arrows (and swiping) have nothing to scroll. */
.product-slider {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px;
}
.product-slider::-webkit-scrollbar { display: none; }
@media (hover: none) {
  .product-slider { scroll-snap-type: x mandatory; scroll-padding: 0 2px; }
  .product-slider .product-card { scroll-snap-align: start; }
}
.slider-nav.is-off { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
  .slider-nav { width: 44px; height: 44px; }
}

/* =====================================================================
   Professional polish layer (ui-ux-pro-max)
   One consistent system for headings, surfaces, depth and rhythm.
   Brand blue is kept; everything below only refines it.
   ===================================================================== */
:root {
  --ink: #0f1b33;
  --surface-line: #e6eaf2;
  --shadow-soft: 0 1px 2px rgba(15, 27, 51, .05), 0 4px 16px rgba(15, 27, 51, .06);
  --shadow-lift: 0 2px 4px rgba(15, 27, 51, .06), 0 18px 40px rgba(15, 27, 51, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
body { color: var(--ink); background: #fff; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 5000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--primary); color: #fff; font-weight: 700;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* Header: frosted, thin, calm */
.header {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--surface-line);
}
.header-nav-link { font-weight: 600; color: #3a4660; }
.header-nav-link::after { bottom: 0; }
.search-bar input { background: #f3f6fc; border-color: transparent; }
.search-bar input:hover { border-color: var(--surface-line); }
.search-bar input:focus { background: #fff; border-color: var(--primary); }
.auth-btn, .cart-btn { border-radius: 10px; }
.auth-btn { box-shadow: 0 2px 8px rgba(var(--primary-rgb), .28); }
.cart-btn { background: #f3f6fc; border-color: transparent; }

/* Hero: sit inside the page with rounded edges */
.hero { background: transparent; padding: 8px 0 0; }
.hero-carousel { max-width: calc(var(--container-width) - 40px); margin: 0 auto; border-radius: 20px; box-shadow: var(--shadow-lift); }
@media (max-width: 768px) { .hero-carousel { border-radius: 14px; margin: 0 12px; } }

/* Trust strip */
.trust-strip { padding: 22px 0 6px; }
.trust-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--surface-line);
  transition: border-color .25s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.trust-item:hover { border-color: rgba(var(--primary-rgb), .35); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.trust-item > i {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--primary-wash); color: var(--primary);
}
.trust-item strong { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.trust-item span { display: block; font-size: .8rem; color: #5b6578; line-height: 1.3; margin-top: 2px; }
@media (max-width: 900px) { .trust-strip-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .trust-strip-inner { gap: 8px; }
  .trust-item { padding: 10px; gap: 10px; }
  .trust-item > i { width: 34px; height: 34px; font-size: .9rem; }
  .trust-item strong { font-size: .82rem; }
  .trust-item span { font-size: .72rem; }
}

/* Section rhythm and headings */
.section { padding: 72px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }
.section-title { margin-bottom: 36px; }
.section-title h2 {
  font-size: clamp(1.6rem, 2.4vw + .6rem, 2.35rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  background: none; -webkit-text-fill-color: var(--ink); color: var(--ink);
}
.section-title h2::after {
  content: ''; display: block; width: 44px; height: 4px; border-radius: 4px;
  margin: 14px auto 0; background: var(--gradient-brand);
}
.section-title p { color: #5b6578; font-size: 1.02rem; margin-top: 10px; }
.section-divider .label {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
  padding: 6px 18px; border-radius: 999px; background: var(--primary-wash);
}
.section-divider .line { background: var(--surface-line); }
#best-sellers, #why-choose-us { background: #f6f8fc !important; }

/* Categories */
.categories-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.category-card { border-radius: 14px; border-color: var(--surface-line); padding: 18px 10px; }
.category-card:hover { box-shadow: var(--shadow-soft); }
.category-card h3 { font-size: .82rem; font-weight: 700; color: #3a4660; }
.category-icon { border-radius: 12px; background: var(--primary-wash); color: var(--primary); }

/* Filter chips */
.pc-filters { gap: 8px; justify-content: center; }

/* Product cards: real depth, clear price */
.pc-card, .product-card {
  border-color: var(--surface-line); border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s !important;
}
.pc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(var(--primary-rgb), .25); }
.pc-body { padding: 16px 18px 18px; }
.pc-cat { font-size: .72rem; font-weight: 700; letter-spacing: .09em; color: var(--primary); }
.pc-name { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.pc-desc { font-size: .8rem; color: #5b6578; }
.pc-meta { color: #5b6578; }
.pc-now { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.pc-badge { border-radius: 999px; padding: 3px 10px; box-shadow: 0 2px 6px rgba(15, 27, 51, .15); }

/* How to order: no inline gradient clash */
#how-to-order { background: linear-gradient(180deg, #f6f8fc 0%, #eaf1ff 100%) !important; }
.hto-title { font-size: clamp(1.6rem, 2.4vw + .6rem, 2.35rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hto-subtitle { color: #5b6578; }

/* Feature cards */
.feature-card {
  border-radius: 16px; border: 1px solid var(--surface-line); box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* FAQ */
.faq-item { border-radius: 14px; border-color: var(--surface-line); box-shadow: var(--shadow-soft); }
.faq-q { min-height: 56px; }
.faq-ico { background: var(--primary-wash); border-color: transparent; color: var(--primary); }
.faq-list .faq-item:hover, .faq-item.open { border-color: rgba(var(--primary-rgb), .45); }

/* Support card */
.support-card { border-radius: 24px !important; box-shadow: var(--shadow-lift); }

/* Footer */
.footer { background: #0b1426; border-top: 0; }
.footer-brand p { color: #a8b3c7; }
.footer-col a { color: #b6c0d2; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }

/* Floating buttons: smaller, quieter */
.wa-float { animation: none; border-radius: 999px; }
.scroll-top { box-shadow: var(--shadow-soft); }

@media (prefers-reduced-motion: reduce) {
  .trust-item, .pc-card, .feature-card { transition: none; }
  .trust-item:hover, .pc-card:hover, .feature-card:hover { transform: none; }
}

/* Inner pages: product detail + book cards share the same surface language */
.pd-hero, .pd-tabs, .pd-tab-panel { border-color: var(--surface-line); box-shadow: var(--shadow-soft); }
.pd-hero { border-radius: 18px; }
.pd-price-value { font-weight: 800; letter-spacing: -.01em; }
.book-card { border-radius: 16px; border-color: var(--surface-line); box-shadow: var(--shadow-soft); }
.book-card:hover { box-shadow: var(--shadow-lift) !important; }
