/* ==========================================================================
   FiF Wear — Storefront
   ========================================================================== */

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--brand-black); color: #fff; font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; text-align: center; padding: 8px 12px; font-weight: 600;
}
[data-theme="dark"] .announce { background: #000; border-bottom: 1px solid var(--border); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg); color: var(--header-text);
  border-bottom: 1px solid var(--border); transition: background .3s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--header-text); }
.brand img { height: 40px; width: auto; }
.fif-logo { height: 32px; width: auto; display: block; }
.brand-text { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: .04em; line-height: 1; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
.nav-link {
  position: relative; padding: 10px 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--header-text); border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--accent); }
.nav-item { position: relative; }
.nav-item .mega {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s var(--ease); z-index: 120;
}
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.mega a:hover { background: var(--bg-alt); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); background: transparent; border: none; color: var(--header-text);
  font-size: 18px; position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--bg-alt); }
.cart-count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.hamburger { display: none; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; background: var(--overlay); z-index: 200; display: flex; justify-content: center; padding-top: 12vh;
}
.search-box { width: min(640px, 92vw); background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); height: max-content; }
.search-box input { font-size: 18px; padding: 14px 16px; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 190; }
.mobile-drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(320px, 84vw); background: var(--surface); z-index: 200;
  transform: translateX(-100%); transition: transform .28s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer-nav { padding: 10px; overflow-y: auto; flex: 1; }
.drawer-nav a { display: block; padding: 13px 12px; font-weight: 600; font-size: 15px; border-radius: var(--radius-sm); }
.drawer-nav a:hover { background: var(--bg-alt); }
.drawer-sub { padding-left: 14px; border-left: 2px solid var(--border); margin: 2px 0 6px 12px; }
.drawer-sub a { font-size: 14px; font-weight: 500; padding: 9px 12px; }

@media (max-width: 992px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-media { position: relative; aspect-ratio: 3/4; background: var(--bg-alt); overflow: hidden; display: block; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.pc-media img.pc-hover { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .pc-hover { opacity: 1; }
.product-card:hover .pc-base { transform: scale(1.04); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pc-off-tag { position: absolute; bottom: 10px; left: 10px; z-index: 2; background: var(--brand-black); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: var(--radius-sm); }
[data-theme="dark"] .pc-off-tag { background: #fff; color: #111; }
.pc-wish { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; color: var(--text); border: none; }
.pc-wish.active { color: var(--accent); }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.pc-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pc-rating .fa-star { color: var(--accent-2); font-size: 11px; }
.pc-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.pc-price .now { font-size: 17px; font-weight: 800; }
.pc-price .was { font-size: 13px; }
.pc-price .off { font-size: 12px; font-weight: 700; color: var(--success); }
.pc-cart { margin-top: auto; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: calc(100dvh - var(--chrome-h, 102px)); min-height: 480px; background: var(--bg-alt); }
.hero .swiper, .hero .swiper-wrapper, .hero .swiper-slide { height: 100%; }
.hero-slide { position: relative; height: 100%; overflow: hidden; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 620px; }
.hero-content .eyebrow { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.hero-content h1 { font-family: var(--font-display); font-size: clamp(42px, 7vw, 86px); line-height: .95; margin: 12px 0 14px; text-transform: uppercase; font-weight: 800; }
.hero-content p { font-size: 17px; max-width: 460px; margin: 0 0 26px; opacity: .95; }
/* Ken-burns zoom on active slide */
.hero-slide img { transform: scale(1.08); transition: transform 6s ease; }
.swiper-slide-active .hero-slide img { transform: scale(1); }
.hero .swiper-button-next, .hero .swiper-button-prev { color: #fff; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .5; width: 10px; height: 10px; }
.hero .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }
@media (max-width: 640px) { .hero { min-height: 460px; } .hero-slide .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)); } }

/* ---------- Promo banner ---------- */
.promo-banner { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); }
.promo-banner img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.promo-banner:hover img { transform: scale(1.03); }
.promo-full { border-radius: 0; display: block; overflow: hidden; }
.promo-full img { border-radius: 0; }
.promo-to-footer { margin-bottom: -1px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.cat-card { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cat-label { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7)); }
.cat-card .cat-label span { color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- USP strip ---------- */
.usp-strip { background: var(--bg-alt); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { display: flex; align-items: center; gap: 14px; padding: 26px 24px; border-right: 1px solid var(--border); }
.usp-item:last-child { border-right: none; }
.usp-item .usp-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent); box-shadow: var(--shadow-sm); }
.usp-item h4 { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.usp-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 900px) { .usp-strip { grid-template-columns: repeat(2, 1fr); } .usp-item:nth-child(2) { border-right: none; } .usp-item:nth-child(1), .usp-item:nth-child(2) { border-bottom: 1px solid var(--border); } }
@media (max-width: 480px) { .usp-strip { grid-template-columns: 1fr; } .usp-item { border-right: none; border-bottom: 1px solid var(--border); } .usp-item:last-child { border-bottom: none; } }

/* ---------- Carousel row (Swiper for product rows) ---------- */
.row-carousel { position: relative; }
.row-carousel .swiper { overflow: hidden; }
.row-carousel .swiper-slide { height: auto; }
.rc-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.rc-arrow:hover { background: var(--text); color: var(--bg); }
.rc-arrow.rc-prev { left: -14px; }
.rc-arrow.rc-next { right: -14px; }
.rc-arrow.swiper-button-disabled { opacity: .3; pointer-events: none; }
@media (max-width: 640px) { .rc-arrow { display: none; } }

/* ---------- Info page hero ---------- */
.page-hero { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--brand-black); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero .page-hero-inner { position: relative; z-index: 2; color: #fff; padding: 40px 20px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; margin: 0 0 8px; font-weight: 800; }
.page-hero p { font-size: 16px; opacity: .9; margin: 0; }
.breadcrumbs { font-size: 13px; color: var(--text-muted); padding: 16px 0; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding: 54px 0 40px; }
.footer-col h5 { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; color: #fff; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: color-mix(in srgb, var(--footer-text) 85%, transparent); }
.footer-col a:hover { color: #fff; }
.footer-brand p { font-size: 14px; max-width: 320px; opacity: .8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.footer-social a:hover { background: var(--accent); }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: var(--radius-pill); padding: 12px 16px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; flex-wrap: wrap; }
.pay-icons { display: flex; gap: 8px; font-size: 24px; opacity: .85; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ---------- Cart drawer ---------- */
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--surface); z-index: 210; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--border); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.cart-drawer-foot { border-top: 1px solid var(--border); padding: 18px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-alt); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); overflow: hidden; }
.qty-stepper button { width: 30px; height: 30px; background: transparent; border: none; color: var(--text); font-size: 15px; }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 600; font-size: 14px; }
