/* Hide Odoo default header/footer ONLY when they still exist (our layout inherit replaces them
   with FR's own, which use class 'fr-header' / 'fr-footer' — never hide those). */
#wrapwrap > header#top,
#wrapwrap > footer#bottom {
  display: none !important;
}
/* Keep Odoo's admin editor bar visible */
.o_main_navbar, #oe_main_menu_navbar { display: initial !important; }

/* =========================================================
   Furniture Reserve — Phase 1 stylesheet
   Ported from Shopify theme (layout/theme.liquid + sections/header|footer|hero-banner|category-tiles)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #FAF9F6;
  --color-bg-warm: #F5F0EB;
  --color-bg-cream: #F0EBE3;
  --color-bg-dark: #1B1B1B;
  --color-bg-dark-warm: #2A2520;
  --color-text: #1A1A1A;
  --color-text-light: #6B6560;
  --color-text-muted: #9B958E;
  --color-accent: #8B7355;
  --color-accent-hover: #7A6348;
  --color-accent-light: #C4AD8F;
  --color-sage: #5E6B5A;
  --color-sage-light: #919f8c;
  --color-white: #FFFFFF;
  --color-border: #E5E0DA;
  --color-border-light: #F0EBE3;
  --color-overlay: rgba(26, 26, 26, 0.5);
  --color-gold: #C9A96E;
  --color-trade-badge: #5E6B5A;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-heading-weight: 400;
  --font-body-weight: 400;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --max-width: 1440px;
  --header-height: 72px;
  --section-spacing: 60px;
  --grid-gap: 24px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-glacial: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html, body {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  font-family: var(--font-sans) !important;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

body.fr-body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
}

body.fr-body h1, body.fr-body h2, body.fr-body h3, body.fr-body h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* Hide Odoo's default top header when the custom one is in use */
body.fr-body > header#top,
body.fr-body #wrapwrap > header:not(.fr-header) {
  display: none !important;
}

/* ----- Utilities ----- */
.fr-container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }
.fr-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =========================================================
   Header
   ========================================================= */
.fr-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.fr-header-wrapper.fr-header--transparent:not(.fr-header--scrolled) {
  background-color: transparent;
  box-shadow: none;
}

.fr-header-wrapper.fr-header--transparent:not(.fr-header--scrolled) .fr-header__logo-text,
.fr-header-wrapper.fr-header--transparent:not(.fr-header--scrolled) .fr-header__nav-link,
.fr-header-wrapper.fr-header--transparent:not(.fr-header--scrolled) .fr-header__icon-btn {
  color: #FFFFFF !important;
}

.fr-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.fr-header__logo { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }

.fr-header__logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1B1B1B;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1;
  white-space: nowrap;
}
.fr-header__logo-text span { font-weight: 300; }

.fr-header__desktop-nav {
  display: flex;
  align-items: center;
  margin-left: clamp(1rem, 2vw, 2rem);
}

.fr-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fr-header__nav-item {
  position: relative;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.fr-header__nav-item::before,
.fr-header__nav-item::after,
.fr-header__nav-item::marker { content: none !important; display: none !important; }

.fr-header__nav-link {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #1B1B1B;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
}
.fr-header__nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background-color: currentColor;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fr-header__nav-link:hover::after { width: 100%; }
.fr-header__nav-link:hover { color: var(--color-accent); }

.fr-header__utilities { display: flex; align-items: center; gap: 0.4rem; }
.fr-header__icon-btn {
  background: none; border: none; cursor: pointer; color: #1B1B1B;
  padding: 6px; display: flex; align-items: center; justify-content: center;
  position: relative; transition: color 0.3s ease; text-decoration: none;
}
.fr-header__icon-btn:hover { color: var(--color-accent); }
.fr-header__icon-btn svg { width: 28px; height: 28px; stroke-width: 1.6; }

.fr-header__hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: #1B1B1B; padding: 8px; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.fr-header__hamburger svg {
  width: 26px !important; height: 26px !important;
  stroke: currentColor;
}

@media (max-width: 1024px) {
  .fr-header__desktop-nav { display: none; }
  .fr-header__hamburger { display: flex; }
  .fr-header__inner { padding: 0 1rem; }
  .fr-header__utilities { gap: 0.25rem; }
  .fr-header__icon-btn--account { display: none; }
  .fr-header__icon-btn { padding: 6px; }
  .fr-header__icon-btn svg { width: 22px; height: 22px; }
  .fr-header__logo-text { font-size: 1.1rem; letter-spacing: 0.1em; }
}
/* Match other icon colors when header is transparent (homepage hero) */
.fr-header-wrapper.fr-header--transparent:not(.fr-header--scrolled) .fr-header__hamburger {
  color: #FFFFFF !important;
}
#wrapwrap.fr-homepage > .fr-header-wrapper .fr-header__hamburger { color: #fff; }
#wrapwrap.fr-homepage > .fr-header-wrapper.fr-header--scrolled .fr-header__hamburger { color: #1B1B1B; }

.fr-header-spacer { height: var(--header-height); }
#wrapwrap.fr-homepage .fr-header-spacer { display: none; }

/* =========================================================
   Hero banner
   ========================================================= */
.fr-hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 100vh; width: 100%; overflow: hidden; background: #1B1B1B;
  margin-top: 0;
}

.fr-hero__gradient-bg {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, #2A2520 0%, #3D352D 30%, #4A4035 60%, #2A2520 100%);
}

.fr-hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 115, 85, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(27, 27, 27, 0.3) 0%, rgba(27, 27, 27, 0.5) 100%);
}

.fr-hero__arch {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 600px;
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 250px 250px 0 0;
  z-index: 2; pointer-events: none;
}

.fr-hero__line {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.3));
  z-index: 2; pointer-events: none;
}
.fr-hero__line--bottom {
  top: auto; bottom: 15%;
  background: linear-gradient(0deg, transparent, rgba(201, 169, 110, 0.3));
}

.fr-hero__content {
  position: relative; z-index: 3; text-align: center;
  max-width: 800px; padding: 2rem; color: #fff;
}

.fr-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: #C4AD8F;
  margin-bottom: 1.5rem;
  opacity: 0; animation: frFadeUp 0.8s ease forwards; animation-delay: 0.3s;
}

.fr-hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 1.5rem;
  opacity: 0; animation: frFadeUp 0.8s ease forwards; animation-delay: 0.5s;
}
.fr-hero__heading em { font-style: italic; color: #C9A96E; }

.fr-hero__subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem; font-weight: 300; line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 2.5rem; max-width: 550px;
  opacity: 0; animation: frFadeUp 0.8s ease forwards; animation-delay: 0.7s;
}

.fr-hero__buttons {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: frFadeUp 0.8s ease forwards; animation-delay: 0.9s;
}

.fr-btn-primary, .fr-btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  border-radius: 0;
}
.fr-btn-primary { background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent); }
.fr-btn-primary:hover { background: var(--color-gold); border-color: var(--color-gold); color: #fff; transform: translateY(-2px); }
.fr-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.fr-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); color: #fff; transform: translateY(-2px); }

.fr-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: frFadeIn 1s ease forwards; animation-delay: 1.5s;
}
.fr-hero__scroll-text { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.fr-hero__scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.fr-hero__scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--color-gold); animation: frScrollLine 2s ease-in-out infinite; }

@keyframes frFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes frFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes frScrollLine { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }

@media (max-width: 749px) {
  .fr-hero { min-height: 90vh; }
  .fr-hero__arch { width: 280px; height: 360px; }
  .fr-hero__buttons { flex-direction: column; align-items: center; }
  .fr-btn-primary, .fr-btn-outline { width: 100%; max-width: 300px; justify-content: center; }
}

/* =========================================================
   Category Tiles
   ========================================================= */
.fr-categories { background: #FFFFFF; padding: 0; }
.fr-categories__container {
  max-width: var(--max-width); margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem);
}
.fr-categories__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-lg);
  justify-content: center;
}
.fr-category-tile {
  text-align: center; text-decoration: none; color: inherit; cursor: pointer; display: block;
}
.fr-category-tile__image-wrapper {
  aspect-ratio: 1; margin-bottom: var(--space-md); overflow: hidden;
  transition: transform var(--transition-base);
}
.fr-category-tile:hover .fr-category-tile__image-wrapper { transform: translateY(-4px); }
.fr-category-tile__bg { width: 100%; height: 100%; transition: transform var(--transition-base); background-size: cover; background-position: center; }
.fr-category-tile:hover .fr-category-tile__bg { transform: scale(1.05); }
.fr-category-tile__title {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text); margin: 0;
}
@media (max-width: 989px) { .fr-categories__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (max-width: 749px) { .fr-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .fr-category-tile__title { font-size: 0.7rem; } }

/* =========================================================
   Footer
   ========================================================= */
.fr-footer { background: var(--color-bg-dark); color: #FFFFFF; padding: clamp(3rem, 6vw, 5rem) 0 0; margin: 0; font-family: var(--font-sans); }
.fr-footer__container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }
.fr-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--space-3xl); padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fr-footer__brand { padding-right: 2rem; }
.fr-footer__brand-logo { text-decoration: none; display: inline-block; margin-bottom: 1.25rem; }
.fr-footer__brand-logo-text { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: #FFFFFF; line-height: 1; }
.fr-footer__brand-logo-text span { font-weight: 300; }
.fr-footer__brand-description { font-size: 0.9rem; line-height: 1.7; color: rgba(255, 255, 255, 0.5); margin: 0 0 var(--space-xl); }
.fr-footer__social { display: flex; gap: var(--space-md); }
.fr-footer__social a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast); text-decoration: none;
}
.fr-footer__social a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.fr-footer__social a svg { width: 16px; height: 16px; }

.fr-footer__nav-column { min-width: 0; }
.fr-footer__nav-heading { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: #FFFFFF !important; margin: 0 0 var(--space-lg); }
.fr-footer__nav-list { list-style: none; margin: 0; padding: 0; }
.fr-footer__nav-link { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); text-decoration: none; padding: 5px 0; transition: all var(--transition-fast); }
.fr-footer__nav-link:hover { color: var(--color-accent-light); padding-left: 4px; text-decoration: none; }

.fr-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: var(--space-xl) 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.35); }
.fr-footer__copyright { font-size: 0.8rem; color: rgba(255, 255, 255, 0.35); margin: 0; }
.fr-footer__copyright a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.fr-footer__policies { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.fr-footer__policies a { font-size: 0.75rem; color: rgba(255, 255, 255, 0.35); text-decoration: none; transition: color 0.3s ease; }
.fr-footer__policies a:hover { color: rgba(255, 255, 255, 0.7); }
.fr-footer__seo { padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fr-footer__seo p { font-size: 0.7rem; line-height: 1.6; color: rgba(255, 255, 255, 0.12); margin: 0; max-width: 900px; }

@media (max-width: 1024px) {
  .fr-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .fr-footer__brand { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 768px) {
  .fr-footer { padding: 3rem 0 0; }
  .fr-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .fr-footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .fr-footer__policies { flex-wrap: wrap; justify-content: center; }
  .fr-footer__container { padding: 0 1.25rem; }
}


/* Homepage-specific: transparent header over hero (driven by wrapwrap.fr-homepage page class) */
#wrapwrap.fr-homepage > .fr-header-wrapper {
  background-color: transparent;
  box-shadow: none;
}
#wrapwrap.fr-homepage > .fr-header-wrapper .fr-header__logo-text,
#wrapwrap.fr-homepage > .fr-header-wrapper .fr-header__nav-link,
#wrapwrap.fr-homepage > .fr-header-wrapper .fr-header__icon-btn {
  color: #fff;
}
#wrapwrap.fr-homepage > .fr-header-wrapper.fr-header--scrolled {
  background-color: rgba(250, 249, 246, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
#wrapwrap.fr-homepage > .fr-header-wrapper.fr-header--scrolled .fr-header__logo-text,
#wrapwrap.fr-homepage > .fr-header-wrapper.fr-header--scrolled .fr-header__nav-link,
#wrapwrap.fr-homepage > .fr-header-wrapper.fr-header--scrolled .fr-header__icon-btn {
  color: #1B1B1B;
}

/* =========================================================
   VARIANT SWATCH SIZE — Force both fabric and leather attribute
   swatches to the same explicit dimensions. Odoo defaults differ
   per attribute and we want them uniform.
   ========================================================= */
.css_attribute_image,
li.js_attribute_value > label.css_attribute_image,
li.list-inline-item > label.css_attribute_image {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
}

/* =========================================================
   IMAGE FIT — Show full product/content images, no cropping.
   Width-fit (contain) is preferred site-wide so product shots
   aren't trimmed at the edges; container gets a neutral cream
   background where the image doesn't fill the box.
   Decorative hero/menu/search backgrounds are excluded by name.
   ========================================================= */
.fr-category-tile__bg,
.fr-collection-card__bg,
.fr-mattress__image,
.fr-mattress__image-wrapper,
.fs-card__image,
.fr-cart-drawer__item-img img,
.fr-product__image,
.fr-product-card__image,
.fr-product-card__image img,
.oe_product_cart img,
.o_wsale_product_grid_wrapper img {
  background-color: #FFFFFF;
}
.fr-category-tile__bg,
.fr-collection-card__bg {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.fr-mattress__image,
.fs-card__image,
.fr-cart-drawer__item-img img,
.fr-product__image,
.fr-product-card__image img,
.oe_product_cart img,
.o_wsale_product_grid_wrapper img {
  object-fit: contain !important;
}

/* Shop list / category pages — broader catch-all for Odoo's product cards.
   Force every product image inside a product grid card to contain (no crop). */
body.fr-body .oe_product img,
body.fr-body .oe_product_cart img,
body.fr-body .o_wsale_product_grid_wrapper img,
body.fr-body .o_wsale_products_grid_product_image img,
body.fr-body #products_grid .card-img-top img,
body.fr-body #products_grid .oe_product_image img,
body.fr-body #products_grid img.product_detail_img,
body.fr-body #products_grid img.img,
body.fr-body #products_grid img.img-fluid,
body.fr-body #products_grid img.img-responsive {
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #FFFFFF !important;
  width: 100% !important;
  height: 100% !important;
}

/* If Odoo wraps the product image in a div with background-image */
body.fr-body #products_grid .o_wsale_product_grid_wrapper [style*="background-image"],
body.fr-body #products_grid [class*="product"] [style*="background-image"] {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #FFFFFF !important;
}

/* =========================================================
   PRODUCT PAGE GALLERY — Make carousel indicators look like
   real clickable thumbnails below the main image, with
   horizontal scroll when there are many.
   ========================================================= */
body.fr-body #product_detail .product_detail_carousel,
body.fr-body #o_wsale_carousel_product_indicators {
  /* base carousel container — keep main image clean */
}
body.fr-body #product_detail .carousel-indicators,
body.fr-body #product_detail .o_carousel_product_indicators {
  position: static !important;
  margin: 1rem 0 0 0 !important;
  padding: 0.25rem 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: thin !important;
  justify-content: flex-start !important;
  align-items: center !important;
  background: transparent !important;
  pointer-events: auto !important;
}
body.fr-body #product_detail .carousel-indicators::-webkit-scrollbar {
  height: 6px !important;
}
body.fr-body #product_detail .carousel-indicators::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18) !important; border-radius: 3px !important;
}
body.fr-body #product_detail .carousel-indicators [data-bs-target],
body.fr-body #product_detail .carousel-indicators button,
body.fr-body #product_detail .o_carousel_product_indicators button {
  flex: 0 0 auto !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 4px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #FFFFFF !important;
  opacity: 0.7 !important;
  cursor: pointer !important;
  scroll-snap-align: start !important;
  transition: opacity 0.15s, border-color 0.15s !important;
  text-indent: -9999px !important;  /* hide any default text/labels */
}
body.fr-body #product_detail .carousel-indicators [data-bs-target]:hover,
body.fr-body #product_detail .carousel-indicators button:hover {
  opacity: 1 !important;
  border-color: rgba(0,0,0,0.4) !important;
}
body.fr-body #product_detail .carousel-indicators [data-bs-target].active,
body.fr-body #product_detail .carousel-indicators button.active {
  opacity: 1 !important;
  border-color: var(--color-accent, #8B7355) !important;
}

/* Hide the carousel arrows (we have thumbnails now) */
body.fr-body #product_detail .carousel-control-prev,
body.fr-body #product_detail .carousel-control-next {
  display: none !important;
}

/* Our injected thumbnail strip below the main carousel */
body.fr-body #product_detail .fr-product-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 1rem 0 0 0;
  padding: 0.25rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
body.fr-body #product_detail .fr-product-thumbs::-webkit-scrollbar { height: 6px; }
body.fr-body #product_detail .fr-product-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18); border-radius: 3px;
}
body.fr-body #product_detail .fr-product-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  background-color: #FFFFFF;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  cursor: pointer;
  scroll-snap-align: start;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  text-indent: -9999px;
  overflow: hidden;
}
body.fr-body #product_detail .fr-product-thumb:hover {
  opacity: 1;
  border-color: rgba(0,0,0,0.4);
}
body.fr-body #product_detail .fr-product-thumb.active {
  opacity: 1;
  border-color: var(--color-accent, #8B7355);
}

/* =========================================================
   MOBILE PASS — make the rest of the site friendlier on
   phones/tablets where existing styles don't already adapt.
   ========================================================= */
@media (max-width: 749px) {
  /* Variant swatches sized down — 90px is too big on phones */
  .css_attribute_image,
  li.js_attribute_value > label.css_attribute_image,
  li.list-inline-item > label.css_attribute_image {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
  }
  /* Product page main carousel + thumbnails sized for phone */
  body.fr-body #product_detail .fr-product-thumb { width: 56px; height: 56px; }
  /* Tighter section padding everywhere */
  .fr-page-hero { padding: 3.5rem 1.25rem 2.5rem !important; }
  .fr-page-hero__heading { font-size: clamp(1.75rem, 6vw, 2.5rem) !important; }
  .fr-page-hero__intro { font-size: 0.95rem !important; }
  .fr-page-content__container { padding: 2rem 1.25rem !important; }
  /* Shop / category list — one column at <=600px (Odoo's grid breaks awkwardly between 600-749) */
  body.fr-body .o_wsale_products_grid_wrapper > div,
  body.fr-body #products_grid .row > [class*="col-"] { flex: 0 0 50% !important; max-width: 50% !important; }
  /* Cart drawer full-width on phone */
  .fr-cart-drawer { width: 100% !important; max-width: 100% !important; }
  /* Newsletter / footer columns single column */
  .fr-newsletter__form input,
  .fr-newsletter__form button { width: 100% !important; }
}

@media (max-width: 480px) {
  .css_attribute_image,
  li.js_attribute_value > label.css_attribute_image,
  li.list-inline-item > label.css_attribute_image {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  body.fr-body #product_detail .fr-product-thumb { width: 48px; height: 48px; }
  body.fr-body .o_wsale_products_grid_wrapper > div,
  body.fr-body #products_grid .row > [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
  .fr-page-hero__heading { font-size: 1.6rem !important; line-height: 1.15 !important; }
}
