/* ─── Design Tokens ────────────────────────────────────────────── */
:root {
  --ph-red:       #bc0000;
  --ph-red-dark:  #8f0000;
  --ph-red-light: #fef2f2;
  --ph-dark:      #161d33;
  --ph-dark-mid:  #1e2640;
  --ph-mid:       #2d3652;
  --ph-bg:        #f3f4f7;
  --ph-bg-light:  #f8f9fb;
  --ph-white:     #ffffff;
  --ph-border:    #e4e6ea;
  --ph-text:      #1a1d27;
  --ph-muted:     #6b7280;
  --ph-star:      #f59e0b;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --shadow-xs: 0 1px 4px rgba(22,29,51,.06);
  --shadow-sm: 0 2px 10px rgba(22,29,51,.08);
  --shadow:    0 4px 24px rgba(22,29,51,.11);
  --shadow-lg: 0 8px 48px rgba(22,29,51,.14);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ─── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ph-bg);
  color: var(--ph-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Bootstrap overrides ──────────────────────────────────────── */
.btn-danger, .btn-danger:focus {
  background: var(--ph-red);
  border-color: var(--ph-red);
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
}
.btn-danger:hover { background: var(--ph-red-dark); border-color: var(--ph-red-dark); }

.btn-outline-danger {
  border-color: var(--ph-red);
  color: var(--ph-red);
}
.btn-outline-danger:hover {
  background: var(--ph-red);
  border-color: var(--ph-red);
  color: #fff;
}

.btn-dark { background: var(--ph-dark); border-color: var(--ph-dark); }
.btn-dark:hover { background: var(--ph-dark-mid); border-color: var(--ph-dark-mid); }

.text-danger { color: var(--ph-red) !important; }
.bg-danger    { background: var(--ph-red) !important; }
.border-danger{ border-color: var(--ph-red) !important; }

/* ─── Announcement strip ───────────────────────────────────────── */
.top-strip {
  background: var(--ph-dark);
  font-size: 12.5px;
  letter-spacing: .01em;
  padding: 8px 0;
  overflow: hidden;
}
.top-strip a { color: #f0b419; text-decoration: underline; }

.ticker-wrap { overflow: hidden; }
.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Header ───────────────────────────────────────────────────── */
.store-header {
  background: var(--ph-white);
  border-bottom: 1px solid var(--ph-border);
  z-index: 1040;
}

.store-header .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ph-dark);
}
.store-header .navbar-brand span { color: var(--ph-red); }

.header-search-wrap { position: relative; flex: 1; max-width: 480px; }
.header-search-wrap input {
  border-radius: 50px;
  padding: 8px 44px 8px 18px;
  border: 2px solid var(--ph-border);
  font-size: 14px;
  background: var(--ph-bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.header-search-wrap input:focus {
  outline: none;
  border-color: var(--ph-red);
  box-shadow: 0 0 0 3px rgba(188,0,0,.1);
  background: #fff;
}
.header-search-wrap .search-btn {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: var(--ph-red);
  border: none;
  border-radius: 50px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}
.header-search-wrap .search-btn:hover { background: var(--ph-red-dark); }

.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  color: var(--ph-dark);
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.header-icon-btn i { font-size: 20px; }
.header-icon-btn:hover { color: var(--ph-red); }
.header-icon-btn .cart-count-badge {
  background: var(--ph-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  top: -4px; right: -4px;
}
.header-icon-btn-wrap { position: relative; }

/* Sub nav (category bar) */
.sub-nav {
  background: var(--ph-white);
  border-bottom: 1px solid var(--ph-border);
  font-size: 13.5px;
}
.sub-nav a {
  color: var(--ph-text);
  padding: 9px 14px;
  display: inline-block;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--ph-red); }
.sub-nav .free-shipping-badge {
  margin-left: auto;
  background: var(--ph-red-light);
  color: var(--ph-red);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  display: flex; align-items: center; gap: 5px;
}

/* ─── Hero Carousel ────────────────────────────────────────────── */
.hero-carousel .carousel-item {
  height: 460px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-carousel .carousel-item { height: 340px; }
}
.hero-carousel .carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.45);
}
.hero-carousel .carousel-caption {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  max-width: 720px;
  padding: 0 24px;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--ph-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.hero-carousel .carousel-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.15;
}
.hero-carousel .carousel-caption p {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 460px;
}
.hero-price { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.hero-price span { font-size: .9rem; font-weight: 400; opacity: .7; }

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 44px; height: 44px;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  transition: background var(--transition);
}
.hero-carousel .carousel-control-prev { left: 16px; }
.hero-carousel .carousel-control-next { right: 16px; }
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover { background: rgba(188,0,0,.5); }

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 28px; height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,.4);
  transition: background var(--transition), width var(--transition);
}
.hero-carousel .carousel-indicators .active { background: var(--ph-red); width: 44px; }

/* ─── Feature Banners (3-up below hero) ───────────────────────── */
.feature-banner-row { background: var(--ph-white); }
.feature-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid var(--ph-border);
}
.feature-banner:last-child { border-right: none; }
.feature-banner-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ph-red-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ph-red);
  font-size: 22px;
}
.feature-banner-text strong { display: block; font-weight: 700; font-size: 14px; }
.feature-banner-text span { font-size: 12px; color: var(--ph-muted); }

/* ─── Section Headings ─────────────────────────────────────────── */
.section-head { margin-bottom: 28px; }
.section-head .eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ph-red);
  margin-bottom: 6px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0;
}
.section-head p { color: var(--ph-muted); margin: 6px 0 0; }
.section-head .view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.section-head .view-all:hover { gap: 8px; }

/* ─── Product Card ─────────────────────────────────────────────── */
.product-card {
  background: var(--ph-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ph-bg-light);
  aspect-ratio: 1 / 1;
}
.product-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.06); }

.product-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-new      { background: #10b981; color: #fff; }
.badge-sale     { background: var(--ph-red); color: #fff; }
.badge-digital  { background: #6366f1; color: #fff; }
.badge-hot      { background: #f59e0b; color: #fff; }

.product-card-wishlist {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--ph-muted);
  transition: color var(--transition), background var(--transition);
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
}
.product-card:hover .product-card-wishlist { opacity: 1; }
.product-card-wishlist:hover { color: var(--ph-red); background: #fff; }
.product-card-wishlist.wishlisted { opacity: 1; color: var(--ph-red); background: #fff; }
.product-card-wishlist-form { position: absolute; top: 10px; right: 10px; margin: 0; padding: 0; }

.product-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ph-muted);
  margin-bottom: 5px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ph-text);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-stars { display: flex; align-items: center; gap: 3px; margin-bottom: 8px; }
.product-stars .stars { color: var(--ph-star); font-size: 12px; letter-spacing: -.02em; }
.product-stars .review-count { font-size: 11px; color: var(--ph-muted); }

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  min-height: 36px;
  row-gap: 2px;
}
.price-current { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ph-text); }
.price-current.is-discounted { color: var(--ph-red); }
.price-original { font-size: 12px; color: var(--ph-muted); text-decoration: line-through; }
.price-discount { font-size: 11px; font-weight: 700; color: #10b981; }

.product-stock-tag {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.stock-in  { color: #10b981; }
.stock-out { color: #ef4444; }

.product-card-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
}
.product-card-actions .btn {
  flex: 1;
  font-size: 12.5px;
  padding: 7px 10px;
  font-weight: 600;
  border-radius: var(--r);
}

/* ─── Category Grid ────────────────────────────────────────────── */
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  height: 120px;
  padding: 0 10px 14px;
  border-radius: var(--r-lg);
  background: var(--ph-dark);
  color: #fff;
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
  transition: opacity var(--transition), transform var(--transition);
}
.category-tile:hover img { opacity: .55; transform: scale(1.06); }
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-tile-label {
  position: relative;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.category-tile-icon {
  position: relative;
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* ─── Promo Banners ────────────────────────────────────────────── */
.promo-banner {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  height: 190px;
  background: var(--ph-dark-mid);
  display: flex;
  align-items: center;
  padding: 24px;
  text-decoration: none;
  transition: transform var(--transition);
}
.promo-banner:hover { transform: translateY(-3px); }
.promo-banner img {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
  object-position: left center;
  opacity: .6;
}
.promo-banner-body { position: relative; }
.promo-banner-eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ph-star); margin-bottom: 5px; }
.promo-banner h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.25; }
.promo-banner-cta { font-size: 12px; font-weight: 700; color: var(--ph-red); text-transform: uppercase; letter-spacing: .05em; }

/* ─── Dark Banner CTA ──────────────────────────────────────────── */
.dark-banner {
  background: var(--ph-dark);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.dark-banner img {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 55%;
  object-fit: cover;
  object-position: left;
  opacity: .4;
}
.dark-banner-body {
  position: relative;
  padding: 48px 48px;
  max-width: 480px;
}
@media (max-width: 768px) {
  .dark-banner-body { padding: 32px 24px; max-width: 100%; }
  .dark-banner img { opacity: .15; width: 100%; }
}
.dark-banner .eyebrow-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.dark-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}
.dark-banner p { color: rgba(255,255,255,.65); margin-bottom: 24px; }
.dark-banner .price-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}
.dark-banner .price-big small { font-size: .9rem; opacity: .6; font-weight: 400; }

/* ─── Trust Icons ──────────────────────────────────────────────── */
.trust-bar { background: var(--ph-white); }
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 12px;
}
.trust-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ph-red-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--ph-red);
}
.trust-item strong { font-family: var(--font-display); font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.trust-item span { font-size: 12px; color: var(--ph-muted); }

/* ─── Testimonials ─────────────────────────────────────────────── */
.testimonial-card {
  background: var(--ph-white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  height: 100%;
}
.testimonial-stars { color: var(--ph-star); font-size: 14px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--ph-muted); line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--ph-muted); }

/* ─── Brand Logos ──────────────────────────────────────────────── */
.brands-bar { background: var(--ph-white); border-top: 1px solid var(--ph-border); border-bottom: 1px solid var(--ph-border); }
.brand-logo-item {
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: center;
  opacity: .45;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
  border-right: 1px solid var(--ph-border);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
.brand-logo-item:last-child { border-right: none; }
.brand-logo-item:hover { opacity: 1; filter: none; }

/* ─── Newsletter ───────────────────────────────────────────────── */
.newsletter-bar {
  background: linear-gradient(135deg, var(--ph-dark) 0%, var(--ph-dark-mid) 100%);
}
.newsletter-form { display: flex; gap: 10px; max-width: 440px; }
.newsletter-form input {
  flex: 1;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 11px 20px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: var(--ph-red); }
.newsletter-form button {
  border-radius: 50px;
  background: var(--ph-red);
  border: none;
  color: #fff;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--ph-red-dark); }

/* ─── Footer ───────────────────────────────────────────────────── */
.store-footer {
  background: var(--ph-dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}
.store-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.store-footer .footer-brand span { color: var(--ph-red); }
.store-footer p { font-size: 13.5px; }
.store-footer h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.store-footer ul { padding: 0; margin: 0; list-style: none; }
.store-footer ul li { margin-bottom: 9px; }
.store-footer ul a {
  color: rgba(255,255,255,.6);
  font-size: 13.5px;
  transition: color var(--transition);
}
.store-footer ul a:hover { color: var(--ph-red); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--ph-red); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  margin-top: 44px;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
}

/* ─── Catalog Page ─────────────────────────────────────────────── */
.catalog-sidebar {
  background: var(--ph-white);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 80px;
}
.filter-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--ph-border); }
.filter-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ph-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.filter-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13.5px;
}
.filter-check-item input[type="checkbox"] {
  accent-color: var(--ph-red);
  width: 15px; height: 15px;
  cursor: pointer;
}
.filter-check-item .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ph-muted);
  background: var(--ph-bg);
  padding: 1px 7px;
  border-radius: 50px;
}
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input {
  flex: 1;
  border: 1.5px solid var(--ph-border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.price-range-inputs input:focus { border-color: var(--ph-red); }
.price-range-inputs span { font-size: 12px; color: var(--ph-muted); flex-shrink: 0; }

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--ph-border);
  border-radius: 2px;
  outline: none;
  margin: 10px 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ph-red);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(188,0,0,.3);
}

.toggle-switch {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background: var(--ph-border);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-switch .slider:before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  left: 3px; top: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .slider { background: var(--ph-red); }
.toggle-switch input:checked + .slider:before { transform: translateX(18px); }

.catalog-toolbar {
  background: var(--ph-white);
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}
.sort-select {
  border: 1.5px solid var(--ph-border);
  border-radius: var(--r-sm);
  padding: 6px 30px 6px 10px;
  font-size: 13px;
  background: var(--ph-bg-light);
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--ph-red); }

.grid-toggle-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ph-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: var(--ph-bg-light);
  color: var(--ph-muted);
  font-size: 15px;
  transition: all var(--transition);
}
.grid-toggle-btn.active, .grid-toggle-btn:hover {
  border-color: var(--ph-red);
  background: var(--ph-red-light);
  color: var(--ph-red);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ph-red-light);
  color: var(--ph-red);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.active-filter-tag:hover { background: #fde2e2; }

/* ─── Mobile Bottom Nav ────────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  background: var(--ph-white);
  border-top: 1px solid var(--ph-border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -4px 20px rgba(22,29,51,.10);
}
@media (max-width: 767px) { .mobile-bottom-nav { display: block; } }

.mobile-nav-tabs {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.mobile-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ph-muted);
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
  position: relative;
}
.mobile-nav-tab i { font-size: 22px; }
.mobile-nav-tab.active, .mobile-nav-tab:hover { color: var(--ph-red); }
.mobile-nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ph-red);
}
.mobile-cart-badge {
  position: absolute;
  top: 2px; right: calc(50% - 16px);
  background: var(--ph-red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Add bottom padding to <main> on mobile so content clears nav */
@media (max-width: 767px) {
  main { padding-bottom: 64px; }
  .store-header { display: none !important; }
  .sub-nav      { display: none !important; }
  .mobile-header {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--ph-white);
    border-bottom: 1px solid var(--ph-border);
    padding: 10px 16px;
    align-items: center;
    gap: 12px;
  }
}

.mobile-header {
  display: none;
}

/* ─── Mobile Search Sheet ──────────────────────────────────────── */
.mobile-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(22,29,51,.4);
  backdrop-filter: blur(4px);
}
.mobile-search-sheet {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--ph-white);
  padding: 16px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  transform: translateY(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-search-overlay.open { display: block; }
.mobile-search-overlay.open .mobile-search-sheet { transform: translateY(0); }

/* ─── Utilities ────────────────────────────────────────────────── */
.section-padding { padding: 52px 0; }
.section-padding-sm { padding: 36px 0; }
.bg-white-section { background: var(--ph-white); }
.bg-light-section { background: var(--ph-bg-light); }

.products-grid { display: grid; gap: 16px; }
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1200px) { .products-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px)  { .products-grid-4, .products-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px)  { .products-grid-4, .products-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.hr-divider { height: 1px; background: var(--ph-border); }

/* ─── Skeleton loading ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--ph-border) 25%, #ebebeb 50%, var(--ph-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Flash alert ──────────────────────────────────────────────── */
.flash-alert {
  background: var(--ph-dark);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 0;
  border-radius: 0;
}
.flash-alert .btn-close { filter: invert(1) opacity(.7); }
