/* ==========================================================
   Filosophie — Theme Stylesheet
   ========================================================== */

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1D1D1D;
  background: #fff;
}

html { margin: 0; padding: 0; }

/* ── Global type scale ─────────────────────────────────── */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
}
h3, .h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
}
h4, .h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Paragraphs */
p { font-family: 'Inter', sans-serif; margin: 0; }
.par-1 { font-size: 18px; line-height: 1.5; }
.par-2 { font-size: 16px; line-height: 1.5; }
.par-3 { font-size: 14px; line-height: 1.5; }
.par-4 { font-size: 12px; line-height: 1.5; }

/* Captions */
.cap-1 { font-family: 'Inter', sans-serif; font-size: 20px; line-height: 1.3; }
.cap-2 { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.3; }
.cap-3 { font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.3; }
.cap-4 { font-family: 'Inter', sans-serif; font-size: 12px; line-height: 1.3; }

html, body { height: auto !important; min-height: 100%; }

/* #container: flex column so footer sticks to bottom */
#container {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

main { flex: 1 !important; padding: 0 !important; }


#content, #column-left, #column-right { padding-bottom: 0 !important; }

/* Non-home page padding */
#product-info, #account-account, #account-login, #account-register,
#checkout-cart, #checkout-checkout, #product-category,
#product-search, #product-special { padding-bottom: 80px; }

/* Alert */
#alert {
  z-index: 9999; position: fixed;
  top: 30%; left: 50%; width: 400px; margin-left: -200px;
  height: 0; overflow: visible;
}
#alert .alert { margin-bottom: 15px; }

/* Hide legacy chrome */
#top { display: none !important; }

/* Old footer override */
footer { position: static !important; bottom: auto !important; background: #fff !important; border: none !important; padding: 0 !important; }
footer > .container { display: none !important; }

/* ==========================================================
   HEADER
   ========================================================== */
#site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
}

.filo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #1D1D1D;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s;
}
.filo-icon-btn:hover { color: #26A6B3; }
.filo-icon-btn svg { display: block; flex-shrink: 0; }
.filo-icon-btn .iconify { display: block; flex-shrink: 0; }

/* ── Icon badge wrapper ── */
.filo-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filo-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 50px;
  background: #D41717;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

/* Cart icon wrap — positions badge over the icon link */
.filo-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.filo-cart-icon-wrap .filo-badge {
  top: 2px;
  right: 2px;
}

.filo-lang { display: inline-flex; align-items: center; }
.filo-lang .dropdown > a {
  display: inline-flex; align-items: center;
  padding: 10px 8px; color: #1D1D1D;
  font-size: 12px; text-decoration: none;
}
.filo-lang .dropdown > a:hover { color: #26A6B3; }
.filo-lang .dropdown-menu {
  min-width: 200px;
  font-size: 14px;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.10) !important;
  padding: 24px !important;
}
.filo-lang .dropdown-menu .dropdown-item {
  padding: 10px 0 !important;
  color: #1D1D1D !important;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
}
.filo-lang .dropdown-menu .dropdown-item:last-child { border-bottom: none; }
.filo-lang .dropdown-menu .dropdown-item:hover { background: none !important; color: #26A6B3 !important; }

.filo-account-wrap { position: relative; display: inline-flex; }
.filo-dropdown {
  display: none;
  position: absolute; right: 0; top: 100%;
  background: #fff; border: 1px solid #E5E7EB;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 24px; min-width: 200px;
  list-style: none; margin: 0; z-index: 300;
  flex-direction: column; gap: 0;
  /* bridge gap so mouse can move from button to dropdown */
  padding-top: 16px;
}
/* invisible bridge between button and dropdown */
.filo-account-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 12px;
  display: none;
}
.filo-account-wrap:hover::after { display: block; }
.filo-account-wrap:hover .filo-dropdown { display: flex; }
.filo-dropdown li a {
  display: block; padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: #1D1D1D;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
  transition: color .15s;
}
.filo-dropdown li:last-child a { border-bottom: none; }
.filo-dropdown li a:hover { color: #26A6B3; background: none; }

.filo-cart-wrap { position: relative; display: inline-flex; align-items: center; }
.filo-cart-wrap .btn,
.filo-cart-wrap .btn-lg {
  background: none !important; border: none !important;
  padding: 10px !important; color: #1D1D1D !important;
  font-size: 13px !important; line-height: 1 !important;
  box-shadow: none !important;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
}
.filo-cart-wrap .btn:hover { color: #26A6B3 !important; }
.filo-cart-wrap .btn i { font-size: 18px !important; }
.filo-cart-wrap .dropdown-menu { right: 0 !important; left: auto !important; min-width: 300px; z-index: 300; }

#main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  overflow: visible;
  flex-wrap: nowrap;
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 768px) {
  .filo-main-nav { display: flex !important; }
  .filo-mobile-toggle { display: none !important; }
  #filo-mobile-nav { display: none !important; }
}

/* Mobile: hide nav, show hamburger */
@media (max-width: 767px) {
  .filo-main-nav { display: none !important; }
  .filo-mobile-toggle { display: inline-flex !important; }
}
#main-nav > a,
#main-nav > .relative > a:first-child {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.24px;
  color: #1D1D1D; text-decoration: none;
  padding: 8px 8px; white-space: nowrap; transition: color .2s;
  display: inline-flex; align-items: center; gap: 4px;
}
#main-nav a:hover { color: #26A6B3; }
#main-nav .relative { position: relative; display: inline-flex; align-items: center; }

/* Dropdown submenu */
#main-nav .relative > div {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 24px;
  width: 300px;
  z-index: 300;
  display: none;
  flex-direction: column;
  gap: 0;
}
#main-nav .relative:hover > div { display: flex; }
#main-nav .relative > div a {
  display: block !important;
  padding: 10px 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #1D1D1D !important;
  white-space: nowrap;
  border-bottom: 1px solid #F3F4F6;
  text-decoration: none;
  transition: color .15s;
}
#main-nav .relative > div a:last-child { border-bottom: none !important; }
#main-nav .relative > div a:hover { color: #26A6B3 !important; background: none !important; }

/* ==========================================================
   HERO
   ========================================================== */

/* Strip Bootstrap module chrome inside the carousel layer */
#filo-hero-carousel h3 { display: none !important; }

/* Carousel container and all descendants fill 100% height */
#filo-hero-carousel,
#filo-hero-carousel > div,
#filo-hero-carousel .carousel,
#filo-hero-carousel .carousel-inner,
#filo-hero-carousel .carousel-item { height: 100% !important; }

/* Override Bootstrap .container max-width so image fills full hero width */
#filo-hero-carousel .container,
#filo-hero-carousel .container-fluid,
#filo-hero-carousel .container-sm,
#filo-hero-carousel .container-md,
#filo-hero-carousel .container-lg,
#filo-hero-carousel .container-xl,
#filo-hero-carousel .container-xxl {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
}

/* Collapse Bootstrap's row/col grid → single full-bleed image per slide */
#filo-hero-carousel .carousel-item .row {
  margin: 0 !important;
  height: 100% !important;
  flex-wrap: nowrap !important;
  display: flex !important;
}
#filo-hero-carousel .carousel-item [class*="col-"] {
  padding: 0 !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
}
/* Hide extra columns — only first image shown per slide */
#filo-hero-carousel .carousel-item [class*="col-"]:not(:first-child) {
  display: none !important;
}
/* Anchor wrapping the image must also fill full height */
#filo-hero-carousel .carousel-item a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
#filo-hero-carousel .carousel-item img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
}

#filo-hero-carousel .carousel-item a,
#filo-hero-carousel .carousel-item > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Hero text */
#filo-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #FAFAFA;
  max-width: 420px;
  margin: 0;
}

@media (max-width: 767px) {
  #filo-hero-title { font-size: 32px !important; }
}

#filo-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 400px;
}

#filo-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #FAFAFA;
  margin: 0;
}

#filo-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 59px;
  padding: 16px 30px;
  border-radius: 100px;
  background: #fff;
  color: #1D1D1D;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.32px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,.16);
  transition: opacity .2s;
  white-space: nowrap;
  box-sizing: border-box;
}
#filo-hero-cta:hover { opacity: .88; color: #1D1D1D; }

@media (max-width: 767px) {
  #filo-hero-cta { width: 100%; max-width: 400px; }
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.filo-section {
  padding: 80px 48px;
  width: 100%;
  box-sizing: border-box;
}

.filo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.filo-h2 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-size: 40px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em !important;
  color: #1D1D1D !important;
  margin: 0 !important;
}

.filo-viewall {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #1D1D1D;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.28px;
}
.filo-viewall:hover { color: #26A6B3; }

/* ==========================================================
   PRODUCT GRID (home page best-sellers via featured/special module)
   ========================================================== */

/* Hide module headings — section title already in home.twig */
.filo-product-grid h3 { display: none !important; }

/* Hide any carousel controls/indicators that bleed in from banner modules */
.filo-product-grid .carousel-control-prev,
.filo-product-grid .carousel-control-next,
.filo-product-grid .carousel-indicators { display: none !important; }

/* Hide non-product modules (banner/brand modules have no .filo-product-card)
   but never hide the special section wrapper */
.filo-product-grid > div:not(:has(.filo-product-card)):not(:has(.filo-special-section)) { display: none !important; }

/* The module wraps products in .row > .col — override Bootstrap's flex row
   with a 4-col CSS grid */
.filo-product-grid .row,
.filo-special-section .row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Each col cell — strip Bootstrap padding and margin */
.filo-product-grid .col,
.filo-product-grid [class*="col-"],
.filo-special-section .col,
.filo-special-section [class*="col-"] {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  flex: none !important;
  width: auto !important;
}


/* Responsive: 2 cols on tablet, 1 col on mobile */
@media (max-width: 1024px) {
  .filo-product-grid .row,
  .filo-special-section .row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .filo-product-grid .row,
  .filo-special-section .row { grid-template-columns: 1fr !important; }
}

/* ==========================================================
   LOOKBOOK (New Arrivals)
   ========================================================== */
.filo-lookbook {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  height: 756px;
  background: linear-gradient(135deg, #3a3028, #1e1e1e);
}

.filo-lookbook-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-size: 40px !important;
  line-height: 1.3 !important;
  color: #FAFAFA !important;
  margin: 0 0 8px !important;
}

.filo-lookbook-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0;
  letter-spacing: 0.28px;
}

@media (max-width: 1280px) { .filo-lookbook { height: 620px; } }
@media (max-width: 1024px) { .filo-lookbook { height: 520px; } }
@media (max-width: 767px)  { .filo-lookbook { height: 420px; } }

/* ==========================================================
   PERKS
   ========================================================== */
.filo-perks {
  background: #f8f8f8;
  padding: 40px 48px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.filo-perk {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.filo-perk svg { display: block; }

.filo-perk-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #1D1D1D;
  margin: 0;
}

.filo-perk-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #495A69;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================
   CATEGORIES CIRCLE ROW
   ========================================================== */
.filo-cat-scroll {
  display: flex;
  gap: 64px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.filo-cat-scroll::-webkit-scrollbar { display: none; }

.filo-cat-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
  scroll-snap-align: start;
  /* Exactly 4 per row: (container - 3 gaps) / 4 */
  width: calc((100% - 3 * 64px) / 4);
  min-width: 180px;
}

.filo-cat-circle-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.filo-cat-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.filo-cat-circle-item:hover .filo-cat-circle-img img { transform: scale(1.05); }

.filo-cat-circle-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1D1D1D;
  margin: 0;
  letter-spacing: 0.28px;
  text-align: center;
  transition: color .2s;
}
.filo-cat-circle-item:hover .filo-cat-circle-name { color: #26A6B3; }

/* ==========================================================
   REVIEWS
   ========================================================== */
.filo-reviews-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.filo-reviews-row::-webkit-scrollbar { display: none; }

.filo-rev-btn {
  width: 38px;
  height: 38px;
  border-radius: 99px;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow .2s, transform .2s;
  box-sizing: border-box;
}
.filo-rev-btn:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transform: scale(1.06);
}

.filo-review-card {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  border-radius: 24px;
  padding: 24px;
  width: 402px;
  min-width: 402px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filo-review-top { display: flex; gap: 16px; align-items: center; }

.filo-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 18px;
  color: #FAFAFA;
  letter-spacing: 0.32px;
}

.filo-reviewer {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #1D1D1D;
  margin: 0 0 4px;
}

.filo-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.filo-review-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: #495A69;
  line-height: 1.6; margin: 0;
  letter-spacing: 0.28px;
}

/* ==========================================================
   NEWSLETTER + FOOTER  (both live in footer.twig)
   ========================================================== */

#site-footer {
  background: #fff;
}

/* ── Newsletter ─────────────────────────────────────────── */
.filo-newsletter {
  display: flex;
  width: 100%;
  min-height: 180px;
}
.filo-newsletter-left {
  flex: 1;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  min-height: 180px;
}
.filo-newsletter-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filo-newsletter-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-size: 40px !important;
  line-height: 1.3 !important;
  color: #fff !important;
  margin: 0 !important;
}
.filo-newsletter-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.28px;
}
.filo-newsletter-right {
  flex: 1;
  background: #f5f6fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 180px;
}
.filo-newsletter-form {
  display: flex;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.16);
  width: 100%;
  max-width: 520px;
}
.filo-newsletter-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #495A69;
  background: #fff;
  min-height: 64px;
}
.filo-newsletter-btn {
  background: #26A6B3;
  border: none;
  width: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.filo-newsletter-btn:hover { background: #1e8f9b; }

/* ── Footer body ────────────────────────────────────────── */
.filo-footer-inner {
  padding: 80px 48px 32px;
}
.filo-footer-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.filo-footer-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.filo-footer-logo { height: 40px; width: auto; }
.filo-footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: #1D1D1D;
  text-decoration: none;
  line-height: 1.3;
}
.filo-footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.filo-footer-socials a {
  color: #1D1D1D;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
}
.filo-footer-socials a:hover { color: #26A6B3; }

.filo-footer-cols {
  flex: 3;
  display: flex;
  gap: 24px;
  min-width: 0;
}
.filo-footer-col {
  flex: 1;
  min-width: 0;
}
.filo-footer-col-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #1D1D1D;
  margin: 0 0 24px;
}
.filo-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.filo-footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #495A69;
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.5;
  letter-spacing: 0.28px;
  transition: color .2s;
  display: block;
}
.filo-footer-links a:hover { color: #1D1D1D; }

/* Contact rows with icon */
.filo-footer-contact-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.filo-footer-contact-row svg { flex-shrink: 0; }
.filo-footer-contact-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ── Footer bottom bar ──────────────────────────────────── */
.filo-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 16px;
}
.filo-footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #495A69;
  letter-spacing: 0.28px;
  margin: 0;
}
.filo-footer-payments {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================
   SEARCH OVERLAY
   ========================================================== */
#filo-search-overlay {
  background: rgba(255,255,255,0.97);
}

.filo-search-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #495A69;
  text-decoration: none;
  background: #fff;
  transition: border-color .2s, color .2s, background .2s;
}
.filo-search-chip:hover {
  border-color: #26A6B3;
  color: #26A6B3;
  background: #f0fbfc;
}

#filo-search-results-grid .filo-product-card {
  width: 100%;
  gap: 8px;
}
#filo-search-results-grid .filo-card-image-wrap {
  border-radius: 12px;
}
#filo-search-results-grid .filo-card-body {
  gap: 4px;
  padding: 0;
}
#filo-search-results-grid .filo-card-name {
  font-size: 13px;
  line-height: 1.3;
}
#filo-search-results-grid .filo-card-cat {
  font-size: 11px;
}
#filo-search-results-grid .filo-card-price {
  font-size: 13px;
}

/* ==========================================================
   CATEGORY PAGE
   ========================================================== */

#product-category {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.filo-breadcrumb-bar {
  padding: 16px 0 8px;
}

.filo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filo-breadcrumb-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #495A69;
  text-decoration: none;
  transition: color .2s;
}
.filo-breadcrumb-link:hover { color: #1D1D1D; }

.filo-breadcrumb-sep {
  font-size: 13px;
  color: #aaa;
}

.filo-breadcrumb-current {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #1D1D1D;
}

/* ── Page Header ────────────────────────────────────────── */
.filo-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.filo-cat-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-size: 40px !important;
  line-height: 1.3 !important;
  color: #1D1D1D !important;
  margin: 0 !important;
}

/* ── Filter / Sort Controls ─────────────────────────────── */
.filo-cat-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filo-filter-dropdown-wrap {
  position: relative;
}

.filo-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1D1D1D;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s;
}
.filo-filter-btn:hover { border-color: #1D1D1D; }

.filo-filter-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 8px 0;
  min-width: 180px;
  z-index: 300;
}
.filo-filter-dropdown-wrap:hover .filo-filter-menu { display: block; }

.filo-filter-menu-item {
  display: block;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #495A69;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.filo-filter-menu-item:hover,
.filo-filter-menu-item.active {
  background: #f9f9f9;
  color: #1D1D1D;
}

/* ── Active Filter Chips ────────────────────────────────── */
.filo-active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filo-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #d1d5db;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #1D1D1D;
  background: #fff;
}
.filo-filter-chip strong { font-weight: 500; }

.filo-chip-remove {
  color: #9ca3af;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: color .2s;
}
.filo-chip-remove:hover { color: #1D1D1D; }

.filo-clear-filters {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #495A69;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.filo-clear-filters:hover { color: #1D1D1D; }

.filo-clear-icon { font-size: 14px; }

/* ── Product Count ──────────────────────────────────────── */
.filo-product-count {
  margin-bottom: 24px;
}
.filo-product-count p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #495A69;
  margin: 0;
}

/* ── Product Grid ───────────────────────────────────────── */
.filo-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 1200px) {
  .filo-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .filo-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  #product-category { padding: 0 20px 60px; }
  .filo-cat-title { font-size: 28px !important; }
}
@media (max-width: 480px) {
  .filo-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Product Card ───────────────────────────────────────── */
/* Figma spec: W 318, H 419, vertical auto-layout, gap 16   */
.filo-product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Image: W 318, H 318, corner-radius 24, clip content */
/* ── Square IMAGE only — wrap is forced square via padding-bottom:100%.
   The img fills the wrap. Name + price sit below, outside this square. ── */
.filo-card-image-wrap {
  display: block !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 100% !important;   /* forces square: height = width */
  position: relative !important;
  border-radius: 24px;
  overflow: hidden !important;
  background: #f5f5f5;
  flex-shrink: 0;
}

.filo-card-img-link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.filo-card-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  transition: transform .4s ease;
}
.filo-card-image-wrap:hover .filo-card-img { transform: scale(1.05); }

/* Subtle dark scrim on hover so white buttons stay legible */
.filo-card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  border-radius: inherit;
  transition: background .3s ease;
  pointer-events: none;
  z-index: 1;
}
.filo-card-image-wrap:hover::after {
  background: rgba(0,0,0,0.08);
}

/* ── Quick action buttons (heart + eye) top-right on hover ── */
.filo-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 3;
}
.filo-card-image-wrap:hover .filo-card-actions {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

/* Quick button — white circle, dark icon; teal on hover / active */
.filo-quick-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #1D1D1D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  flex-shrink: 0;
  text-decoration: none;
}
.filo-quick-btn:hover,
.filo-quick-btn--active {
  background: #26A6B3;
  color: #fff;
  box-shadow: 0 4px 14px rgba(38,166,179,.35);
  transform: scale(1.08);
}
.filo-quick-btn .iconify { pointer-events: none; }

/* ── Add to Cart bar — slides up from image bottom on hover ── */
.filo-card-atc-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 12px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 3;
}
.filo-card-image-wrap:hover .filo-card-atc-wrap {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Add to Cart button — outlined pill default, teal filled on hover */
.filo-card-atc-btn {
  display: block;
  width: 100%;
  padding: 11px 0;
  border-radius: 100px;
  border: 1.5px solid #1D1D1D;
  background: #fff;
  color: #1D1D1D;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
  white-space: nowrap;
}
.filo-card-atc-btn:hover {
  background: #26A6B3;
  border-color: #26A6B3;
  color: #fff;
  box-shadow: 0 4px 16px rgba(38,166,179,.3);
}

/* Text block: fill width, hug height, vertical gap 10 */
.filo-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Category label — Color/Info/--info-text (#0B72EB) */
.filo-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #0B72EB;
  letter-spacing: 0.24px;
  line-height: 1.4;
}

/* Product name — Color/Text/--text-primary (#1D1D1D) */
.filo-card-name {
  margin: 0;
  line-height: 1.25;
}
.filo-card-name a {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #1D1D1D;
  text-decoration: none;
  transition: color .2s;
}
.filo-card-name a:hover { color: #26A6B3; }

/* Price row */
.filo-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sale price — Color/Danger/--danger (#D41717) */
.filo-price-new {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #D41717;
  letter-spacing: 0.32px;
  line-height: 1.4;
}

/* Original price — strikethrough, muted */
.filo-price-old {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
  letter-spacing: 0.24px;
  line-height: 1.4;
}

/* ── Pagination ─────────────────────────────────────────── */
.filo-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filo-pagination-wrap .pagination {
  margin: 0;
}

/* ── Sub-categories ─────────────────────────────────────── */
.filo-subcat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.filo-subcat-card {
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1D1D1D;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.filo-subcat-card:hover { border-color: #26A6B3; background: #f0fbfc; color: #26A6B3; }

/* ── No Results ─────────────────────────────────────────── */
.filo-no-results {
  padding: 60px 0;
  text-align: center;
}
.filo-no-results p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #495A69;
  margin-bottom: 24px;
}
.filo-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: #1D1D1D;
  color: #fff;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}
.filo-btn-primary:hover { background: #26A6B3; color: #fff; }

/* ==========================================================
   PRODUCT DETAIL PAGE
   ========================================================== */

/* ── Accordion ─────────────────────────────────────────── */
.filo-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}

.filo-accordion-item {
  border-bottom: 1px solid #e5e7eb;
}
.filo-accordion-item:last-child { border-bottom: none; }

.filo-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.filo-accordion-btn:hover { background: #fafafa; }

.filo-acc-icon {
  flex-shrink: 0;
  transition: transform .25s ease;
  color: #1D1D1D;
}
.filo-acc-closed-icon { transform: rotate(180deg); }

.filo-accordion-body {
  padding: 0 24px 24px;
}
.filo-acc-open { display: block !important; }

/* ── Option chips (radio/checkbox) ─────────────────────── */
.filo-option-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1D1D1D;
  margin-bottom: 8px;
  letter-spacing: 0.26px;
}

.filo-radio-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #495A69;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}
.filo-radio-chip:hover { border-color: #1D1D1D; color: #1D1D1D; }
.filo-radio-chip.filo-chip-active {
  border-color: #26A6B3;
  background: #f0fbfc;
  color: #26A6B3;
}

/* ── Form inputs ────────────────────────────────────────── */
.filo-select,
.filo-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1D1D1D;
  background: #fff;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.filo-select:focus, .filo-input:focus { border-color: #26A6B3; }

/* ── Related section ────────────────────────────────────── */
.filo-related { border-top: 1px solid #f0f0f0; padding-top: 48px; }

/* ==========================================================
   WISHLIST PAGE
   ========================================================== */

/* Selected row highlight */
.filo-wish-row-selected {
  background: rgba(38,166,179,.04);
  border-radius: 12px;
}

/* Custom checkbox */
.filo-checkbox-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.filo-checkbox-ui:hover { border-color: #26A6B3; }

.filo-wish-check:checked + .filo-checkbox-ui {
  background: #26A6B3;
  border-color: #26A6B3;
}

.filo-wish-check:checked + .filo-checkbox-ui::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* ==========================================================
   BREADCRUMB / OTHER PAGES (legacy override)
   ========================================================== */
.breadcrumb {
  margin: 0 0 20px;
  padding: 8px 0;
  border: none;
  background: transparent;
}

#cookie {
  position: fixed; bottom: 0; left: 0;
  width: 100%; height: 150px;
  z-index: 9999; opacity: 0.95;
  background: #343a40; color: #ecf0f1;
}
#cookie div { font-size: 16px; color: #fff; }

.rating .fa-star { color: #FC0; font-size: 15px; }
.price { color: #444; }
.price-new { font-weight: 600; }
.price-old { color: #dc512c; text-decoration: line-through; }
.price-tax { color: #999; font-size: 12px; display: block; }
label { font-size: 12px; font-weight: normal; }
div.required .col-form-label:before,
div.required .form-label:before { content: "* "; color: #F00; font-weight: bold; }
@media (min-width: 768px) { .col-form-label { text-align: right; } }

/* ==========================================================
   AUTH PAGES (Login / Register / Forgotten)
   ========================================================== */

.filo-auth-card {
  width: 100%;
  max-width: 540px;
  border: 1.5px dashed #26A6B3;
  border-radius: 24px;
  padding: 40px 48px 44px;
  background: #fff;
}

.filo-auth-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 36px;
  color: #1D1D1D;
  margin: 0 0 28px;
  letter-spacing: 0.72px;
  text-align: center;
}

/* Tabs */
.filo-auth-tabs {
  display: flex;
  border-bottom: 1.5px solid #E5E7EB;
  margin-bottom: 28px;
}

.filo-auth-tab {
  flex: 1;
  padding: 10px 0 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 20px;
  color: #9ca3af;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.4px;
  text-decoration: none;
  display: block;
}

.filo-auth-tab:hover { color: #1D1D1D; }

.filo-auth-tab-active {
  color: #1D1D1D !important;
  border-bottom-color: #26A6B3 !important;
}

/* Fields */
.filo-auth-field { position: relative; }

.filo-auth-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1D1D1D;
  margin-bottom: 7px;
}

.filo-required { color: #D41717; }

.filo-auth-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1D1D1D;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.filo-auth-input:focus { border-color: #26A6B3; }

/* Password visibility toggle */
.filo-password-wrap { position: relative; }

.filo-password-wrap .filo-auth-input { padding-right: 44px; }

.filo-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filo-pw-toggle:hover { color: #495A69; }

/* Submit button */
.filo-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  background: #26A6B3;
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.3px;
}

.filo-auth-btn:hover { background: #1e8f9b; }
.filo-auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Modal */
.filo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.filo-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.filo-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: #9ca3af; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.filo-modal-close:hover { color: #1D1D1D; background: #f3f4f6; }

.filo-modal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  color: #1D1D1D;
  margin: 0 0 8px;
  letter-spacing: 0.56px;
  text-align: center;
}

.filo-modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #495A69;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* OTP boxes */
.filo-otp-box {
  width: 48px;
  height: 56px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1D1D1D;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.filo-otp-box:focus { border-color: #26A6B3; }

/* ==========================================================
   CHECKOUT PAGE
   ========================================================== */

/* ── Flat-style checkout field classes ── */
.filo-co-field { position: relative; }

.filo-co-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1D1D1D;
  margin-bottom: 6px;
}

.filo-co-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1D1D1D;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.filo-co-input:focus { border-color: #26A6B3; box-shadow: none; }
.filo-co-input.filo-input-error { border-color: #D41717; }
textarea.filo-co-input { -webkit-appearance: none; appearance: none; }

.filo-co-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23495A69' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.filo-co-error {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #D41717;
  margin-top: 4px;
}

/* Checkout page layout */
#checkout-checkout {
  max-width: 1440px;
  margin: 0 auto;
}

/* ── Legacy checkout classes (used by shipping_address.twig when logged in) ── */
.filo-checkout-section {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 20px;
  padding: 28px 32px;
}

.filo-checkout-section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: #1D1D1D;
  margin: 0 0 20px;
  letter-spacing: 0.44px;
}

.filo-checkout-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #495A69;
  margin-bottom: 6px;
  letter-spacing: 0.24px;
}

.filo-checkout-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1D1D1D;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.filo-checkout-input:focus { border-color: #26A6B3; }
.filo-checkout-input.filo-input-error { border-color: #D41717; }

.filo-checkout-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23495A69' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.filo-field-error {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #D41717;
  margin-top: 4px;
}

.filo-checkout-field { position: relative; }

.filo-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

/* Checkbox native input hidden */
.filo-checkbox-native {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.filo-checkbox-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
  cursor: pointer;
}
.filo-checkbox-wrap:hover .filo-checkbox-ui { border-color: #26A6B3; }

.filo-checkbox-native:checked + .filo-checkbox-ui {
  background: #26A6B3;
  border-color: #26A6B3;
}

.filo-checkbox-native:checked + .filo-checkbox-ui::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Place Order button */
#button-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  background: #26A6B3;
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 12px;
  box-sizing: border-box;
}
#button-confirm:hover:not(:disabled) { background: #1e8f9b; }
#button-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

/* Address cards (logged-in shipping/payment selection) */
.filo-address-card {
  display: block;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.filo-address-card:hover { border-color: #26A6B3; }
.filo-address-card-active { border-color: #26A6B3; background: #f0fbfc; }

.filo-address-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: #1D1D1D;
  margin: 0 0 4px;
}
.filo-address-line {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #495A69;
  margin: 0 0 2px;
}
.filo-address-radio-ui {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  transition: border-color 0.15s, background 0.15s;
  position: relative; flex-shrink: 0;
}
.filo-address-card-active .filo-address-radio-ui {
  border-color: #26A6B3; background: #26A6B3;
}
.filo-address-card-active .filo-address-radio-ui::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* ==========================================================
   SUCCESS PAGE
   ========================================================== */

#common-success { background: #fff; }

/* ==========================================================
   MOBILE RESPONSIVENESS — comprehensive breakpoints
   ========================================================== */

/* ── Announcement bar ─────────────────────────────────── */
@media (max-width: 767px) {
  /* Shrink announcement text on mobile */
  #container > div:first-child span {
    font-size: 11px !important;
    letter-spacing: 0.1px !important;
  }
}

/* ── Header ───────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Tighten header padding */
  #site-header .max-w-\[1440px\] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    height: 60px !important;
    gap: 8px !important;
  }

  /* Logo smaller */
  #site-header img[alt] {
    height: 32px !important;
  }

  /* Compact icon buttons */
  .filo-icon-btn {
    padding: 8px !important;
  }

  /* Mobile nav drawer: full-width, column */
  #filo-mobile-nav {
    padding: 16px !important;
    gap: 0 !important;
  }
  #filo-mobile-nav a {
    display: block !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
    color: #1D1D1D !important;
    font-family: 'Inter', sans-serif !important;
  }
  /* Mobile nav: flatten dropdown children inline */
  #filo-mobile-nav .filo-menu-group { display: block !important; }
  #filo-mobile-nav .filo-menu-dropdown {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 0 16px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-width: 0 !important;
  }
  #filo-mobile-nav .filo-menu-dropdown a {
    font-size: 13px !important;
    color: #495A69 !important;
    border-bottom: none !important;
  }

  /* Account dropdown: reposition to not overflow screen */
  .filo-dropdown {
    right: -8px !important;
    min-width: 160px !important;
  }
}

/* ── Hero ─────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
  #filo-hero-wrap {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }
}
@media (max-width: 767px) {
  #filo-hero-wrap {
    margin-left: 12px !important;
    margin-right: 12px !important;
    border-radius: 16px !important;
    height: clamp(320px, 72vw, 480px) !important;
  }

  /* Hero text: stack vertically, smaller */
  #filo-hero-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 20px 24px !important;
  }

  #filo-hero-title {
    font-size: 26px !important;
    max-width: 100% !important;
    line-height: 1.25 !important;
  }

  #filo-hero-right {
    gap: 12px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #filo-hero-desc {
    font-size: 13px !important;
    display: none; /* hide on very small screens to save space */
  }

  #filo-hero-cta {
    width: 100% !important;
    max-width: 260px !important;
    height: 46px !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
  }

  /* Hero nav buttons: smaller */
  #filo-hero-prev, #filo-hero-next {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ── Sections ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .filo-section {
    padding: 40px 16px !important;
  }
  .filo-section-head {
    margin-bottom: 28px !important;
  }
  .filo-h2 {
    font-size: 26px !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .filo-section {
    padding: 60px 32px !important;
  }
}

/* ── Product grid (home best-sellers / sale) ──────────── */
@media (max-width: 767px) {
  .filo-product-grid .row,
  .filo-special-section .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .filo-card-name a { font-size: 15px !important; }
}
@media (max-width: 360px) {
  .filo-product-grid .row,
  .filo-special-section .row {
    grid-template-columns: 1fr !important;
  }
}

/* ── Lookbook (New Arrivals) ──────────────────────────── */
@media (max-width: 767px) {
  .filo-lookbook {
    height: auto !important;
    min-height: 360px !important;
    border-radius: 16px !important;
  }
  /* Hide the floating product card panel on mobile */
  .filo-lookbook > .absolute.z-10[style*="right:32px"] {
    display: none !important;
  }
  .filo-lookbook-text {
    padding: 20px !important;
  }
  .filo-lookbook-title {
    font-size: 26px !important;
  }
  .filo-lookbook-sub {
    font-size: 13px !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .filo-lookbook > .absolute.z-10[style*="right:32px"] {
    right: 20px !important;
    width: 280px !important;
    top: 60px !important;
  }
}

/* ── Perks strip ──────────────────────────────────────── */
@media (max-width: 767px) {
  .filo-perks {
    flex-direction: column !important;
    padding: 32px 20px !important;
    gap: 28px !important;
  }
  .filo-perk {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 16px !important;
  }
  .filo-perk img { width: 48px !important; height: 48px !important; flex-shrink: 0; }
}

/* ── Category circles ─────────────────────────────────── */
@media (max-width: 767px) {
  .filo-cat-circle-item {
    min-width: 120px !important;
    width: 120px !important;
  }
  .filo-cat-scroll { gap: 20px !important; }
}

/* ── Reviews row ──────────────────────────────────────── */
@media (max-width: 767px) {
  .filo-review-card {
    width: 280px !important;
    min-width: 280px !important;
    padding: 16px !important;
  }
  .filo-reviews-row { gap: 12px !important; }
}

/* ── Newsletter ───────────────────────────────────────── */
@media (max-width: 767px) {
  .filo-newsletter {
    flex-direction: column !important;
  }
  .filo-newsletter-left,
  .filo-newsletter-right {
    width: 100% !important;
  }
  .filo-newsletter-copy {
    padding: 28px 20px !important;
    gap: 8px !important;
  }
  .filo-newsletter-title {
    font-size: 24px !important;
  }
  .filo-newsletter-right {
    padding: 24px 20px !important;
  }
  .filo-newsletter-form {
    border-radius: 16px !important;
  }
  .filo-newsletter-input {
    min-height: 52px !important;
    font-size: 14px !important;
    padding: 0 16px !important;
  }
  .filo-newsletter-btn {
    width: 52px !important;
    min-height: 52px !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .filo-newsletter-copy { padding: 32px 28px !important; }
  .filo-newsletter-title { font-size: 28px !important; }
  .filo-newsletter-right { padding: 32px 28px !important; }
}

/* ── Footer ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .filo-footer-inner {
    padding: 40px 20px 24px !important;
  }
  .filo-footer-top {
    flex-direction: column !important;
    gap: 32px !important;
  }
  .filo-footer-cols {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .filo-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .filo-footer-payments {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .filo-footer-col-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .filo-footer-inner { padding: 60px 32px 24px !important; }
  .filo-footer-top { flex-wrap: wrap !important; gap: 32px !important; }
  .filo-footer-cols { flex-wrap: wrap !important; }
  .filo-footer-col { min-width: 140px !important; }
}

/* ── Category page ────────────────────────────────────── */
@media (max-width: 767px) {
  #product-category {
    padding: 0 16px 60px !important;
  }
  .filo-cat-title {
    font-size: 24px !important;
  }
  .filo-cat-header {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .filo-cat-controls {
    width: 100% !important;
  }
  .filo-cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 32px !important;
  }
  .filo-pagination-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
@media (max-width: 360px) {
  .filo-cat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Product detail page ──────────────────────────────── */
@media (max-width: 767px) {
  #product-info {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 60px !important;
  }
  /* Stack 2-col layout vertically */
  #filo-product-layout {
    flex-direction: column !important;
    gap: 24px !important;
  }
  /* Full-width image gallery */
  .filo-product-gallery {
    width: 100% !important;
    flex-shrink: 0 !important;
  }
  /* Thumbnails: horizontal scroll */
  .filo-product-gallery .flex.gap-3 {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
  }
  .filo-product-gallery .flex.gap-3 a {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
  }
  /* Product title smaller */
  #product-info h1 {
    font-size: 26px !important;
    margin-bottom: 12px !important;
  }
  /* ATC + Buy Now: keep side by side but full width */
  #product-info #product .flex.gap-3 {
    gap: 8px !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  #product-info {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .filo-product-gallery {
    width: 380px !important;
  }
  #filo-product-layout {
    gap: 40px !important;
  }
}

/* ── Account pages — shared layout ───────────────────── */

/* All account pages share these IDs for the 2-col layout */
#filo-account-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
#filo-account-sidebar {
  width: 180px;
  flex-shrink: 0;
}
/* Shared nav link style */
.filo-account-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
  display: block;
  white-space: nowrap;
}
.filo-account-nav-link--active {
  color: #1D1D1D !important;
  font-weight: 600 !important;
}
.filo-account-nav-link--muted {
  color: #495A69 !important;
}
.filo-account-nav-link--danger {
  color: #D41717 !important;
  margin-top: 8px;
}

@media (max-width: 767px) {
  /* All account page wrappers: tighter padding */
  #account-account,
  #account-edit,
  #account-address,
  #account-order,
  #account-wishlist,
  #account-password {
    padding: 0 16px 60px !important;
  }

  /* Stack sidebar + content vertically */
  #filo-account-layout {
    flex-direction: column !important;
    gap: 0 !important;
  }
  #filo-account-sidebar {
    width: 100% !important;
  }

  /* Sidebar nav → horizontal scroll tab bar */
  #filo-account-nav {
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 0 !important;
    border-bottom: 2px solid #f0f0f0 !important;
    margin-bottom: 24px !important;
    padding-bottom: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #filo-account-nav::-webkit-scrollbar { display: none; }

  /* Each nav link becomes a tab */
  #filo-account-nav a,
  #filo-account-nav .filo-account-nav-link {
    white-space: nowrap !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-bottom: 2.5px solid transparent !important;
    margin-bottom: -2px !important;
    display: inline-block !important;
    font-weight: 400 !important;
    color: #495A69 !important;
    text-decoration: none !important;
  }
  /* Active tab */
  #filo-account-nav a[style*="font-weight:500"],
  #filo-account-nav a[style*="font-weight: 500"],
  #filo-account-nav a[style*="color:#1D1D1D"],
  #filo-account-nav .filo-account-nav-link--active {
    color: #1D1D1D !important;
    font-weight: 600 !important;
    border-bottom-color: #26A6B3 !important;
  }
  /* Logout tab */
  #filo-account-nav a[style*="color:#D41717"],
  #filo-account-nav .filo-account-nav-link--danger {
    color: #D41717 !important;
    margin-top: 0 !important;
  }

  /* Page title smaller */
  #account-account h1,
  #account-edit h1,
  #account-address h1,
  #account-order h1,
  #account-wishlist h1,
  #account-password h1 {
    font-size: 26px !important;
    margin-bottom: 16px !important;
  }

  /* Personal info table: label above value */
  #account-account table td:first-child {
    display: block !important;
    width: 100% !important;
    padding-bottom: 2px !important;
    font-size: 12px !important;
    color: #9ca3af !important;
  }
  #account-account table td:last-child {
    display: block !important;
    width: 100% !important;
    padding-top: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
  }
  #account-account table tr { display: block; margin-bottom: 4px; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  #account-account,
  #account-edit,
  #account-address,
  #account-order,
  #account-wishlist,
  #account-password {
    padding: 0 32px 60px !important;
  }
  #filo-account-sidebar {
    width: 160px !important;
  }
}

/* ── Checkout page ────────────────────────────────────── */
@media (max-width: 767px) {
  #checkout-checkout {
    padding: 0 16px 60px !important;
  }
  #filo-checkout-layout {
    flex-direction: column !important;
    gap: 24px !important;
  }
  #filo-checkout-forms {
    width: 100% !important;
  }
  #filo-checkout-summary {
    width: 100% !important;
    position: static !important;
  }
  #checkout-checkout h1 {
    font-size: 26px !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  #checkout-checkout {
    padding: 0 24px 60px !important;
  }
  #filo-checkout-forms {
    flex: 1 !important;
    width: auto !important;
  }
  #filo-checkout-summary {
    width: 300px !important;
  }
}

/* ── Cart page ────────────────────────────────────────── */
@media (max-width: 767px) {
  #checkout-cart {
    padding: 0 16px 60px !important;
  }
}

/* ── Auth pages (Login / Register) ───────────────────── */
@media (max-width: 767px) {
  .filo-auth-card {
    padding: 28px 20px 32px !important;
    border-radius: 16px !important;
    max-width: 100% !important;
  }
  .filo-auth-title {
    font-size: 28px !important;
  }
  .filo-auth-tab {
    font-size: 16px !important;
  }
  /* Full page auth wrapper centers the card */
  #account-login,
  #account-register,
  #account-forgotten {
    padding: 24px 16px 60px !important;
  }
}

/* ── Information / Contact pages ─────────────────────── */
@media (max-width: 767px) {
  #information-information,
  #information-contact {
    padding: 24px 16px 60px !important;
  }
}

/* ── Search results page ──────────────────────────────── */
@media (max-width: 767px) {
  #product-search {
    padding: 0 16px 60px !important;
  }
}

/* ── Special / Sale page ──────────────────────────────── */
@media (max-width: 767px) {
  #product-special {
    padding: 0 16px 60px !important;
  }
}

/* ── Address book grid ────────────────────────────────── */
.filo-addr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: flex-start;
}
.filo-addr-card {
  width: 100%;
}

@media (max-width: 767px) {
  .filo-addr-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  #account-address {
    padding: 0 16px 60px !important;
  }
}

/* ── Order list ────────────────────────────────────────── */
@media (max-width: 767px) {
  #account-order {
    padding: 0 16px 60px !important;
  }
  .filo-order-product-row {
    gap: 10px !important;
  }
}

/* ── Wishlist page ─────────────────────────────────────── */
@media (max-width: 767px) {
  #account-wishlist {
    padding: 0 16px 60px !important;
  }
  .filo-wish-row {
    gap: 10px !important;
    padding: 14px 4px !important;
  }
}

/* ── Shared account pages padding (tablet) ─────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
  #account-address,
  #account-order,
  #account-wishlist {
    padding: 0 32px 60px !important;
  }
  .filo-addr-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Global: prevent horizontal overflow ──────────────── */
html, body {
  overflow-x: hidden;
}
@media (max-width: 767px) {
  /* Any element with inline px-8 / px-12 class padding — tighten */
  .px-8 { padding-left: 16px !important; padding-right: 16px !important; }
  .px-12 { padding-left: 16px !important; padding-right: 16px !important; }

  /* Modals: full-width on mobile */
  #modal-delete-account,
  #modal-logout-all,
  #modal-logout {
    width: calc(100vw - 32px) !important;
    left: 16px !important;
    transform: translateY(-50%) !important;
    padding: 28px 20px 24px !important;
  }
}
