/* ==========================================================
   GoGift — Design System
   Palette: Orange (signature) + Black + White, glass cards,
   curved corners. Font: Poppins throughout.
   ========================================================== */

:root {
  /* Brand */
  --fp-orange: #FF7A1A;
  --fp-orange-light: #FFB877;
  --fp-orange-dark: #D9600A;
  --fp-black: #0E0E10;
  --fp-white: #FFFFFF;

  /* Surfaces */
  --fp-bg: #FAFAFA;
  --fp-bg-dark: #0E0E10;
  --fp-card-glass: rgba(255, 255, 255, 0.6);
  --fp-card-glass-dark: rgba(24, 24, 27, 0.55);
  --fp-border-glass: rgba(255, 122, 26, 0.18);

  /* Text */
  --fp-text: #17171A;
  --fp-text-soft: #6B6B72;
  --fp-text-dark: #F4F4F5;
  --fp-text-soft-dark: #B5B5BC;

  /* Radii + shadow (the "curve angles" signature) */
  --fp-radius-lg: 28px;
  --fp-radius-md: 18px;
  --fp-radius-sm: 12px;
  --fp-shadow: 0 8px 32px rgba(14, 14, 16, 0.08);
  --fp-shadow-orange: 0 10px 30px rgba(255, 122, 26, 0.25);

  --fp-nav-height: 72px;
  --fp-header-height: 64px;
}

[data-theme="dark"] {
  --fp-bg: var(--fp-bg-dark);
  --fp-text: var(--fp-text-dark);
  --fp-text-soft: var(--fp-text-soft-dark);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--fp-bg);
  color: var(--fp-text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--fp-nav-height) + 12px);
  transition: background .3s ease, color .3s ease;
}

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

/* ---------------- Glass card, the signature component ---------------- */
.fp-card {
  background: var(--fp-card-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--fp-border-glass);
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
[data-theme="dark"] .fp-card { background: var(--fp-card-glass-dark); }
.fp-card:hover { transform: translateY(-3px); box-shadow: var(--fp-shadow-orange); }

.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--fp-radius-md);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.fp-btn:active { transform: scale(0.97); }
.fp-btn-primary {
  background: linear-gradient(135deg, var(--fp-orange) 0%, var(--fp-orange-dark) 100%);
  color: #fff;
  box-shadow: var(--fp-shadow-orange);
}
.fp-btn-primary:hover { opacity: .92; }
.fp-btn-dark { background: var(--fp-black); color: #fff; }
.fp-btn-outline { background: transparent; border: 1.5px solid var(--fp-orange); color: var(--fp-orange); }

/* ---------------- Top header ---------------- */
.fp-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--fp-header-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--fp-card-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fp-border-glass);
}
[data-theme="dark"] .fp-header { background: var(--fp-card-glass-dark); }
.fp-header .fp-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.fp-header .fp-logo img { height: 34px; width: 34px; border-radius: 10px; object-fit: cover; }
.fp-header-icons { display: flex; align-items: center; gap: 16px; font-size: 20px; }
.fp-header-icons .fp-icon-btn { position: relative; color: var(--fp-text); }
.fp-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--fp-orange); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------------- Sidebar (full nav, slides in) ---------------- */
.fp-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(14,14,16,.5);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.fp-sidebar-overlay.active { opacity: 1; pointer-events: all; }

.fp-sidebar {
  position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
  background: var(--fp-white);
  z-index: 61;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 8px 0 30px rgba(0,0,0,.15);
  overflow-y: auto;
  padding: 20px 0 40px;
}
[data-theme="dark"] .fp-sidebar { background: #18181B; }
.fp-sidebar.active { left: 0; }
.fp-sidebar-header { padding: 0 20px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--fp-border-glass); margin-bottom: 10px; }
.fp-sidebar-header img { height: 40px; width: 40px; border-radius: 12px; object-fit: cover; }
.fp-sidebar a.fp-side-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; font-size: 15px; font-weight: 500;
  color: var(--fp-text); border-left: 3px solid transparent;
}
.fp-sidebar a.fp-side-link:hover, .fp-sidebar a.fp-side-link.active {
  background: rgba(255,122,26,.08); border-left-color: var(--fp-orange); color: var(--fp-orange-dark);
}
.fp-sidebar a.fp-side-link i { width: 20px; text-align: center; font-size: 17px; }
.fp-sidebar-divider { height: 1px; background: var(--fp-border-glass); margin: 10px 20px; }

/* ---------------- Bottom nav (5 buttons, mobile-first) ---------------- */
.fp-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: var(--fp-nav-height);
  display: flex; align-items: center; justify-content: space-around;
  background: var(--fp-card-glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--fp-border-glass);
  border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.06);
}
[data-theme="dark"] .fp-bottom-nav { background: var(--fp-card-glass-dark); }
.fp-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: var(--fp-text-soft);
  width: 20%;
}
.fp-nav-item i { font-size: 20px; }
.fp-nav-item.active { color: var(--fp-orange); }
.fp-nav-item.fp-nav-center {
  margin-top: -26px;
  background: linear-gradient(135deg, var(--fp-orange), var(--fp-orange-dark));
  color: #fff; width: 52px; height: 52px; border-radius: 50%;
  justify-content: center; box-shadow: var(--fp-shadow-orange);
}
.fp-nav-item.fp-nav-center i { font-size: 22px; }
.fp-nav-item.fp-nav-center span { display: none; }

@keyframes fpNavPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.fp-nav-item.fp-pop i { animation: fpNavPop .35s cubic-bezier(.34,1.56,.64,1); }
.fp-nav-item.fp-nav-center.fp-pop { animation: fpNavPop .35s cubic-bezier(.34,1.56,.64,1); }

/* ---------------- Category animated cards (2-image crossfade) ---------------- */
.fp-cat-card {
  position: relative; border-radius: var(--fp-radius-md); overflow: hidden;
  width: 100%; height: 0; padding-top: 100%; cursor: pointer; background: #f4f4f5;
}
.fp-cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 1.2s ease-in-out;
}
.fp-cat-card img.fp-cat-img-2 { opacity: 0; }
.fp-cat-card.fp-swap img.fp-cat-img-1 { opacity: 0; }
.fp-cat-card.fp-swap img.fp-cat-img-2 { opacity: 1; }
.fp-cat-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 4px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  color: #fff; font-weight: 600; font-size: 10px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- Hero / ad slider ---------------- */
.fp-slider { position: relative; border-radius: var(--fp-radius-lg); overflow: hidden; }
.fp-slider-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.fp-slider-slide { min-width: 100%; }
.fp-slider-slide img { width: 100%; height: var(--fp-ad-height, 120px); object-fit: cover; }
.fp-slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.fp-slider-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.fp-slider-dots span.active { background: var(--fp-orange); width: 20px; border-radius: 4px; }

/* ---------------- Product image gallery (swipe L/R) ---------------- */
.fp-gallery { position: relative; border-radius: var(--fp-radius-lg); overflow: hidden; touch-action: pan-y; }
.fp-gallery-track { display: flex; transition: transform .35s ease; }
.fp-gallery-slide { min-width: 100%; aspect-ratio: 1/1; }
.fp-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.fp-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.fp-gallery-arrow.left { left: 10px; } .fp-gallery-arrow.right { right: 10px; }

/* ---------------- Product detail page: stacked on mobile, side-by-side on desktop ---------------- */
.fp-product-layout { display: block; }
@media (min-width: 992px) {
  .fp-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .fp-product-info-col { margin-top: 0 !important; position: sticky; top: calc(var(--fp-header-height) + 20px); }
}

/* ---------------- Announcement bar ---------------- */
.fp-announce-bar {
  background: var(--fp-orange); color: #fff; font-size: 11px; padding: 6px 16px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px;
}
.fp-announce-links a { color: #fff; opacity: .9; text-decoration: none; }
.fp-announce-links { display: none; }
@media (min-width: 768px) { .fp-announce-links { display: block; } }

/* ---------------- Redesigned main header ---------------- */
.fp-header-main { display: block; height: auto; padding: 10px 16px; }
.fp-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-logo { display: flex; align-items: center; gap: 8px; }
.fp-logo img { height: 38px; width: 38px; border-radius: 10px; object-fit: cover; }
.fp-logo-name { display: block; font-weight: 800; font-size: 17px; line-height: 1.1; color: var(--fp-text); }
.fp-logo-tagline { display: none; font-size: 10px; color: var(--fp-text-soft); }
@media (min-width: 640px) { .fp-logo-tagline { display: block; } }

.fp-header-search-desktop { display: none; flex: 1; max-width: 480px; }
.fp-header-search-mobile { display: block; margin-top: 8px; }
@media (min-width: 992px) {
  .fp-header-search-desktop { display: block; }
  .fp-header-search-mobile { display: none; }
  .fp-menu-btn { display: none; }
}

.fp-header-icons-labeled { display: flex; align-items: center; gap: 6px; }
.fp-header-account-link { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--fp-text); position: relative; padding: 4px 8px; }
.fp-header-account-link i { font-size: 18px; }
.fp-icon-label { display: none; white-space: nowrap; }
@media (min-width: 992px) {
  .fp-header-account-link { flex-direction: row; gap: 6px; }
  .fp-icon-label { display: inline; font-size: 12px; font-weight: 500; }
}
.fp-header-account-link .fp-badge { position: static; margin-left: 2px; }
.fp-mobile-only-icon { display: flex; }
@media (min-width: 992px) { .fp-mobile-only-icon { display: none; } }

/* ---------------- Secondary nav row (desktop) ---------------- */
.fp-secondary-nav { display: none; }
@media (min-width: 992px) {
  .fp-secondary-nav {
    display: flex; align-items: center; gap: 24px; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--fp-border-glass);
  }
  .fp-cat-dropdown-btn {
    background: var(--fp-orange); color: #fff; padding: 10px 16px; border-radius: 10px;
    font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  }
  .fp-secondary-links { display: flex; gap: 20px; }
  .fp-secondary-links a { font-size: 13px; font-weight: 500; color: var(--fp-text); white-space: nowrap; }
  .fp-secondary-links a:hover { color: var(--fp-orange); }
}

/* ---------------- Hero section ---------------- */
.fp-hero-carousel { overflow: hidden; border-radius: var(--fp-radius-lg); }
.fp-hero-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.fp-hero-slide { min-width: 100%; border-radius: 0; }
.fp-hero { background: linear-gradient(135deg, #FFF3E9, #FFE4CC); border-radius: var(--fp-radius-lg); padding: 30px 24px; position: relative; overflow: hidden; }
.fp-hero-tag { display: inline-block; background: #fff; color: var(--fp-orange-dark); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.fp-hero h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.fp-hero h1 span { color: var(--fp-orange); }
.fp-hero p { font-size: 13px; color: var(--fp-text-soft); max-width: 420px; margin-bottom: 18px; }
.fp-hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.fp-hero-image { display: none; }
@media (min-width: 768px) {
  .fp-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px; }
  .fp-hero-content { flex: 1; }
  .fp-hero h1 { font-size: 38px; }
  .fp-hero-image { display: block; flex: 0 0 380px; }
  .fp-hero-image img { width: 100%; border-radius: 20px; }
}
.fp-hero-trust { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: var(--fp-text-soft); }
.fp-hero-trust span { display: flex; align-items: center; gap: 6px; }
.fp-hero-trust i { color: var(--fp-orange); }

/* ---------------- Circular categories ---------------- */
.fp-cat-circle-row { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: none; }
.fp-cat-circle-row::-webkit-scrollbar { display: none; }
.fp-cat-circle { flex: 0 0 auto; width: 78px; text-align: center; text-decoration: none; }
.fp-cat-circle-img { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: #f4f4f5; margin: 0 auto 8px; border: 1px solid var(--fp-border-glass); }
.fp-cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-cat-circle-label { font-size: 11px; font-weight: 600; color: var(--fp-text); line-height: 1.2; }

/* ---------------- Trust strip ---------------- */
.fp-trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #FFF6EE; border-radius: var(--fp-radius-md); padding: 16px; margin: 20px 0; }
@media (min-width: 768px) { .fp-trust-strip { grid-template-columns: repeat(4, 1fr); } }
.fp-trust-item { display: flex; align-items: center; gap: 10px; }
.fp-trust-item i { font-size: 22px; color: var(--fp-orange); flex-shrink: 0; }
.fp-trust-item strong { display: block; font-size: 12px; }
.fp-trust-item span { display: block; font-size: 10px; color: var(--fp-text-soft); }

/* ---------------- Shop-style product card ---------------- */
.fp-shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .fp-shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .fp-shop-grid { grid-template-columns: repeat(5, 1fr); } }
.fp-shop-scroll-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.fp-shop-scroll-row::-webkit-scrollbar { display: none; }
.fp-shop-scroll-row .fp-shop-card { flex: 0 0 180px; }

/* New Arrivals: 2 rows x 10 columns, scrolls sideways as one unit */
.fp-shop-scroll-grid-2row {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: 180px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.fp-shop-scroll-grid-2row::-webkit-scrollbar { display: none; }

/* Swipe hint: a fading edge + arrow that shows a row can be dragged sideways */
.fp-scroll-wrap { position: relative; }
.fp-scroll-hint {
  position: absolute;
  top: 0; right: 0; bottom: 6px;
  width: 46px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 4px;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--fp-bg, #fff) 75%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s ease;
}
.fp-scroll-hint i { color: var(--fp-orange); font-size: 16px; animation: fpHintBounce 1.4s ease-in-out infinite; }
.fp-scroll-wrap.scrolled .fp-scroll-hint { opacity: 0; }
@keyframes fpHintBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

.fp-shop-card { position: relative; background: #fff; border-radius: var(--fp-radius-md); border: 1px solid var(--fp-border-glass); overflow: hidden; }
.fp-shop-card-img { display: block; position: relative; width: 100%; height: 0; padding-top: 100%; background: #f9f9f9; }
.fp-shop-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-wishlist-heart { position: absolute; top: 8px; right: 8px; z-index: 2; background: #fff; border: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: pointer; font-size: 13px; }
.fp-shop-card-body { padding: 10px 12px 14px; }
.fp-shop-card-name { display: block; font-size: 13px; font-weight: 600; color: var(--fp-text); text-decoration: none; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-shop-card-rating { font-size: 11px; color: #FFB020; margin-bottom: 6px; }
.fp-shop-card-rating span { color: #aaa; }
.fp-shop-card-price { font-size: 14px; font-weight: 800; color: var(--fp-text); margin-bottom: 10px; }
.fp-shop-card-btn { width: 100%; padding: 9px; font-size: 12px; }

/* ---------------- Promo banner pair ---------------- */
.fp-promo-pair { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0; }
@media (min-width: 768px) { .fp-promo-pair { grid-template-columns: 1fr 1fr; } }
.fp-promo-banner { border-radius: var(--fp-radius-lg); padding: 24px; color: #fff; min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
.fp-promo-banner h3 { font-size: 18px; margin: 0 0 10px; }
.fp-promo-banner.dark { background: var(--fp-black); }
.fp-promo-banner.orange { background: linear-gradient(135deg, var(--fp-orange), var(--fp-orange-dark)); }

/* ---------------- Testimonials ---------------- */
.fp-testimonial-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.fp-testimonial-row::-webkit-scrollbar { display: none; }
.fp-testimonial-card { flex: 0 0 260px; background: #fff; border: 1px solid var(--fp-border-glass); border-radius: var(--fp-radius-md); padding: 18px; }
.fp-testimonial-card i.fp-quote-icon { color: var(--fp-orange); font-size: 20px; }
.fp-testimonial-card p { font-size: 13px; color: var(--fp-text-soft); margin: 10px 0 14px; line-height: 1.6; }
.fp-testimonial-author { display: flex; align-items: center; gap: 10px; }
.fp-testimonial-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.fp-testimonial-author strong { display: block; font-size: 12px; }
.fp-testimonial-author span { display: block; font-size: 11px; color: var(--fp-text-soft); }

/* ---------------- Newsletter bar ---------------- */
.fp-newsletter-bar { background: linear-gradient(135deg, var(--fp-orange), var(--fp-orange-dark)); border-radius: var(--fp-radius-lg); padding: 22px 24px; color: #fff; display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
@media (min-width: 768px) { .fp-newsletter-bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.fp-newsletter-form { display: flex; gap: 8px; }
.fp-newsletter-form input { flex: 1; padding: 12px 14px; border-radius: 12px; border: none; font-family: 'Poppins', sans-serif; font-size: 13px; }
.fp-newsletter-form button { background: var(--fp-black); color: #fff; border: none; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* ---------------- Footer grid ---------------- */
.fp-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (min-width: 768px) { .fp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }

/* ---------------- Utility ---------------- */
.fp-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fp-section-title { font-size: 18px; font-weight: 700; margin: 22px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.fp-grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .fp-grid-products { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 992px) {
  .fp-grid-products { grid-template-columns: repeat(6, 1fr); }
  .fp-bottom-nav, .fp-header .fp-menu-btn { display: none; }
  body { padding-bottom: 20px; }

  /* Sidebar becomes a permanent docked panel instead of a slide-in overlay */
  .fp-sidebar {
    left: 0 !important;
    top: var(--fp-header-height);
    height: calc(100% - var(--fp-header-height));
    box-shadow: none;
    border-right: 1px solid var(--fp-border-glass);
  }
  .fp-sidebar-overlay { display: none !important; }
  .fp-header, footer, .fp-container {
    margin-left: 280px;
  }
  .fp-header { width: calc(100% - 280px); }
}
@media (min-width: 1400px) { .fp-grid-products { grid-template-columns: repeat(8, 1fr); } }

/* fixed-size product card so every tile matches regardless of image/name length */
.fp-prod-card { display: flex; flex-direction: column; height: 100%; }
.fp-prod-card .fp-prod-thumb { position: relative; width: 100%; height: 0; padding-top: 100%; overflow: hidden; flex-shrink: 0; background: #f4f4f5; }
.fp-prod-card .fp-prod-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-prod-card .fp-prod-info { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.fp-prod-card .fp-prod-name {
  font-size: 12px; font-weight: 600; color: var(--fp-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em; line-height: 1.3;
}
/* ---------------- Generic 2-image crossfade (used by product cards AND category cards) ---------------- */
.fp-multi-img { position: relative; }
.fp-swap-img-1, .fp-swap-img-2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease-in-out; }
.fp-swap-img-2 { opacity: 0; }
.fp-multi-img.fp-swap .fp-swap-img-1 { opacity: 0; }
.fp-multi-img.fp-swap .fp-swap-img-2 { opacity: 1; }

.fp-discount-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--fp-orange); color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.fp-prod-strike { font-size: 10px; color: var(--fp-text-soft); text-decoration: line-through; margin-left: 4px; }

.fp-prod-card .fp-prod-price { font-size: 13px; font-weight: 800; color: var(--fp-orange-dark); margin-top: 4px; }

/* ---------------- Dense square product grid (Featured / Latest Arrivals on home) ---------------- */
.fp-grid-dense { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (min-width: 992px) { .fp-grid-dense { grid-template-columns: repeat(10, 1fr); gap: 8px; } }
.fp-dense-card { position: relative; display: block; width: 100%; height: 0; padding-top: 100%; border-radius: var(--fp-radius-sm); overflow: hidden; background: #f4f4f5; }
.fp-dense-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-dense-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 3px; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.fp-dense-price { color: #fff; font-size: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .fp-dense-price { font-size: 11px; } }

/* ---------------- Category scroll row (8 visible mobile / 12 desktop, slide for more) ---------------- */
.fp-cat-scroll-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fp-cat-scroll-row::-webkit-scrollbar { display: none; }
.fp-cat-scroll-row .fp-cat-card { flex: 0 0 calc((100% - 7*6px) / 8); min-width: calc((100% - 7*6px) / 8); }
@media (min-width: 992px) { .fp-cat-scroll-row .fp-cat-card { flex: 0 0 calc((100% - 11*6px) / 12); min-width: calc((100% - 11*6px) / 12); } }

/* ---------------- Live search bar (under header) ---------------- */
.fp-search-bar-wrap { position: relative; padding: 10px 16px 4px; }
.fp-search-bar-wrap input {
  width: 100%; padding: 12px 16px 12px 42px; border-radius: 14px; border: 1px solid var(--fp-border-glass);
  font-family: 'Poppins', sans-serif; font-size: 13px; background: #FAFAFA;
}
.fp-search-bar-wrap i.fp-search-icon { position: absolute; left: 30px; top: 22px; color: var(--fp-text-soft); }
.fp-search-dropdown {
  display: none; position: absolute; left: 16px; right: 16px; top: 56px; z-index: 60;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); max-height: 400px; overflow-y: auto;
}
.fp-search-dropdown.active { display: block; }
.fp-search-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--fp-text); border-bottom: 1px solid #f5f5f5; }
.fp-search-item img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.fp-search-section-label { padding: 8px 14px 4px; font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; }
.fp-search-chip { display: inline-block; padding: 6px 12px; background: #FFF6EE; color: var(--fp-orange-dark); border-radius: 999px; font-size: 12px; margin: 4px 4px 0 0; text-decoration: none; }

.fp-quick-add {
  position: absolute; bottom: 6px; right: 6px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: var(--fp-orange); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer;
}
.fp-quick-add:active { transform: scale(0.9); }

/* horizontal scroll rows (Featured, etc.) need a fixed card width since flex items don't shrink to a grid cell */
.fp-scroll-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.fp-scroll-row::-webkit-scrollbar { display: none; }
.fp-scroll-row .fp-prod-card { min-width: 130px; width: 130px; flex: 0 0 auto; }

/* ---------------- VPN block screen ---------------- */
.fp-vpn-block {
  position: fixed; inset: 0; z-index: 999; background: var(--fp-black);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px;
}
.fp-vpn-block i { font-size: 48px; color: var(--fp-orange); margin-bottom: 16px; }
.fp-vpn-block h2 { margin: 0 0 10px; }
.fp-vpn-block p { color: #ccc; max-width: 420px; margin-bottom: 20px; }

/* ---------------- Fade/slide-up entrance animation ---------------- */
@keyframes fpFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fp-animate-up { animation: fpFadeUp .5s ease both; }
