/*
 * Glossy Envy — official visual tokens and first component layer
 *
 * This file is loaded after Hummingbird through the child theme. Keep brand
 * decisions here; do not edit themes/hummingbird/assets/css/theme.css.
 */

:root {
  --glossy-black: #111111;
  --glossy-white: #ffffff;
  --glossy-grey-050: #fafafa;
  --glossy-grey-100: #f5f5f5;
  --glossy-grey-200: #e7e7e7;
  --glossy-grey-300: #d5d5d5;
  --glossy-grey-600: #6b6b6b;
  --glossy-pink: #efb6a5;
  --glossy-pink-deep: #c99478;

  --glossy-font-body: "Manrope", "Inter", Arial, sans-serif;
  --glossy-font-display: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;

  --glossy-border: 1px solid var(--glossy-grey-200);
  --glossy-radius: 0;
  --glossy-card-gap: 4px;
  --glossy-focus-ring: 2px solid var(--glossy-pink-deep);
}

/* Prevent accidental page-wide horizontal scrolling from flexible modules,
 * long labels or third-party content. Inner carousels keep their own
 * behaviour; only unintended overflow outside the viewport is clipped. */
html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

/* Base brand surface */
body {
  background: var(--glossy-white);
  color: var(--glossy-black);
  font-family: var(--glossy-font-body);
}

a {
  color: var(--glossy-black);
}

a:hover,
a:focus {
  color: var(--glossy-black);
}

:focus-visible {
  outline: var(--glossy-focus-ring);
  outline-offset: 3px;
}

/* Header */
.header {
  background: var(--glossy-white);
  color: var(--glossy-black);
  border-bottom: var(--glossy-border);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.header-top {
  background: var(--glossy-black);
  color: var(--glossy-white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-top a,
.header-top a:hover,
.header-top a:focus {
  color: var(--glossy-white);
}

.header-bottom {
  background: var(--glossy-white);
  border-top: 0;
}

.header-bottom__row {
  min-height: 4.5rem;
}

/* Keep the complete main navigation visible while the page scrolls on both
 * desktop and mobile. The announcement strip remains part of the sticky
 * header so the logo, menu, search, account and cart controls never detach
 * from one another. */
#header,
.header {
  position: sticky;
  top: 0;
  z-index: 1100;
}

#header .header-top,
#header .header-bottom,
#header .header-nav-full-width {
  position: relative;
}

.header-bottom__logo img {
  max-height: 3rem;
  width: auto;
}

.header-block__action-btn,
.header-block__title,
.menu-toggle,
.menu__toggle-child {
  color: var(--glossy-black);
}

.header-block__action-btn:hover,
.header-block__action-btn:focus,
.menu-toggle:hover,
.menu-toggle:focus,
.menu__toggle-child:hover,
.menu__toggle-child:focus {
  color: var(--glossy-black);
  background: var(--glossy-grey-100);
}

.header-block__badge {
  background: var(--glossy-pink);
  color: var(--glossy-black);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

/* Desktop header: reserve the black strip for the future announcement bar,
 * then keep every shopping control on one 72px full-width line. The source
 * modules remain in their native locations so their JavaScript behaviour is
 * preserved; only their desktop presentation is rearranged here. */
@media (min-width: 1200px) {
  #header {
    position: sticky;
    top: 0;
    z-index: 1100;
  }

  #header .header-top {
    height: 40px;
    min-height: 40px;
    background: var(--glossy-black);
  }

  #header .header-top__left {
    display: none !important;
  }

  #header .header-top__right {
    position: absolute;
    top: 40px;
    right: 24px;
    z-index: 20;
    display: flex !important;
    width: auto !important;
    height: 72px;
    align-items: center;
    gap: 10px;
    color: var(--glossy-black);
    flex: none !important;
  }

  #header .header-top__right > div {
    width: auto;
    flex: 0 0 auto;
  }

  #header .header-top__right .header-block__action-btn {
    min-height: 2.5rem;
    padding: 0 0.5rem;
    color: var(--glossy-black) !important;
  }

  #header .header-top__right .header-block__action-btn:hover,
  #header .header-top__right .header-block__action-btn:focus {
    background: var(--glossy-grey-100);
    color: var(--glossy-black) !important;
  }

  #header .header-bottom {
    height: 72px;
    min-height: 72px;
    background: var(--glossy-white);
  }

  #header .header-bottom__container {
    width: 100%;
    max-width: none;
    padding-right: 24px;
    padding-left: 24px;
  }

  #header .header-bottom__row {
    display: flex;
    height: 72px;
    min-height: 72px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
    padding-right: 205px;
  }

  #header .header-bottom__logo {
    width: 122px;
    min-width: 122px;
    margin-right: 0 !important;
    flex: 0 0 122px;
  }

  #header .header-bottom__logo img {
    display: block;
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
  }

  #header .ps-mainmenu--desktop {
    width: auto;
    min-width: 0;
    margin: 0 !important;
    flex: 1 1 auto;
  }

  #header .ps-mainmenu--desktop .ps-mainmenu__desktop {
    display: block !important;
    width: 100%;
  }

  #header .ps-mainmenu__tree {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    white-space: nowrap;
  }

  #header .ps-mainmenu__tree::-webkit-scrollbar {
    display: none;
  }

  #header .ps-mainmenu__tree-item {
    flex: 0 0 auto;
  }

  #header .ps-mainmenu__tree-link {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  #header #_desktop_ps_searchbar {
    position: relative;
    width: 46px;
    min-width: 46px;
    margin-left: 0 !important;
    order: initial !important;
    flex: 0 0 46px;
  }

  #header #_desktop_ps_searchbar .ps-searchbar,
  #header #_desktop_ps_searchbar .ps-searchbar__form {
    width: 46px !important;
  }

  #header #_desktop_ps_searchbar .ps-searchbar {
    height: 40px;
    margin: 0 !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }

  #header #_desktop_ps_searchbar .ps-searchbar__form {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    z-index: 30;
    height: 40px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--glossy-white);
    border: var(--glossy-border);
    transition: width 160ms ease;
  }

  #header #_desktop_ps_searchbar .ps-searchbar__magnifier {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin: 0;
    pointer-events: none;
  }

  #header #_desktop_ps_searchbar .ps-searchbar__input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 46px;
    min-width: 46px;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: text;
  }

  #header #_desktop_ps_searchbar:hover .ps-searchbar__form,
  #header #_desktop_ps_searchbar:focus-within .ps-searchbar__form {
    width: 220px !important;
    justify-content: flex-start;
  }

  #header #_desktop_ps_searchbar:hover .ps-searchbar__input,
  #header #_desktop_ps_searchbar:focus-within .ps-searchbar__input {
    width: 220px;
    min-width: 220px;
    padding-left: 2.25rem;
    border: 0;
    opacity: 1;
  }

  #header .header-top__right .header-block__title {
    display: none !important;
  }

  #header #_desktop_ps_customersignin .header-block__title,
  #header #_desktop_ps_shoppingcart .header-block__title {
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  #header .header-top__right .header-block__action-btn {
    display: inline-flex;
    width: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  #header .header-top__right .blockcart .header-block__action-btn {
    position: relative;
  }

  #header .header-top__right .header-block__badge {
    position: absolute;
    top: 1px;
    right: -3px;
    min-width: 1.15rem;
    min-height: 1.15rem;
    padding: 0.1rem 0.25rem;
    font-size: 0.65rem;
    line-height: 1;
  }

  /* The brand uses a quiet black underline instead of the parent theme's
   * blue focus frame. Keyboard focus remains visible through the underline. */
  #header .ps-mainmenu__tree-link:focus,
  #header .ps-mainmenu__tree-link:focus-visible,
  #header .ps-mainmenu__tree-link:hover,
  #header .ps-mainmenu__tree-item.current > .ps-mainmenu__tree-item-wrapper > .ps-mainmenu__tree-link,
  #header .ps-mainmenu__tree-dropdown-toggle:focus,
  #header .ps-mainmenu__tree-dropdown-toggle:focus-visible,
  #header .ps-mainmenu__tree-dropdown-toggle:hover {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    background: transparent !important;
    color: var(--glossy-black) !important;
    text-decoration: underline;
    text-decoration-color: var(--glossy-black);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35rem;
  }

  /* Hummingbird's mega-menu keeps its geometry, but becomes a translucent
   * white glass surface so the page remains visible behind it. */
  #header .ps-mainmenu__tree > .ps-mainmenu__tree-item > .submenu {
    background: rgba(255, 255, 255, 0.5) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 0 !important;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.1);
  }

  /* Keep the mega-menu visually continuous: no grey rule above it and no
   * divider splitting the left navigation column from the menu content. */
  #header .header-bottom,
  #header .ps-mainmenu__tree > .ps-mainmenu__tree-item > .submenu,
  #header .ps-mainmenu__tree > .ps-mainmenu__tree-item > .submenu .submenu__left {
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-right: 0 !important;
  }

  #header .ps-mainmenu__tree > .ps-mainmenu__tree-item > .submenu .container,
  #header .ps-mainmenu__tree > .ps-mainmenu__tree-item > .submenu__row {
    background: transparent !important;
  }

  #header .ps-mainmenu__tree .submenu__left-item:focus,
  #header .ps-mainmenu__tree .submenu__left-item:focus-visible,
  #header .ps-mainmenu__tree .submenu__left-item:hover,
  #header .ps-mainmenu__tree .submenu__left-item[aria-selected='true'] {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(17, 17, 17, 0.08);
    color: var(--glossy-black);
    text-decoration: underline;
    text-decoration-color: var(--glossy-black);
    text-underline-offset: 0.25rem;
  }

  #header .ps-mainmenu__mobile-toggle,
  #header .ps-mainmenu--mobile,
  #header .ps-searchbar--mobile,
  #header #_mobile_ps_customersignin,
  #header #_mobile_ps_shoppingcart {
    display: none !important;
  }
}

.menu {
  background: var(--glossy-white);
  color: var(--glossy-black);
}

.menu a {
  color: var(--glossy-black);
}

.menu a:hover,
.menu a:focus {
  color: var(--glossy-black);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* The footer is intentionally the inverse surface. */
.footer,
.footer a,
.footer-block a {
  color: var(--glossy-white) !important;
}

.footer a:hover,
.footer a:focus,
.footer-block a:hover,
.footer-block a:focus {
  color: var(--glossy-pink) !important;
}

#footer .footer__main .footer-block__content a,
#footer .footer__main .footer-block__list a {
  color: var(--glossy-white) !important;
}

#footer .footer__main .footer-block__content a:hover,
#footer .footer__main .footer-block__content a:focus,
#footer .footer__main .footer-block__list a:hover,
#footer .footer__main .footer-block__list a:focus {
  color: var(--glossy-pink) !important;
}

/* Buttons: black primary action, white secondary surface */
.btn-primary,
.btn-secondary,
.btn-dark {
  background: var(--glossy-black);
  border-color: var(--glossy-black);
  border-radius: var(--glossy-radius);
  color: var(--glossy-white);
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-dark:hover,
.btn-dark:focus {
  background: var(--glossy-white);
  border-color: var(--glossy-black);
  color: var(--glossy-black);
}

.btn-outline-primary,
.btn-outline-secondary {
  background: var(--glossy-white);
  border-color: var(--glossy-black);
  border-radius: var(--glossy-radius);
  color: var(--glossy-black);
  font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--glossy-black);
  border-color: var(--glossy-black);
  color: var(--glossy-white);
}

.btn-tertiary,
.btn-link {
  color: var(--glossy-black);
}

.btn-tertiary:hover,
.btn-tertiary:focus,
.btn-link:hover,
.btn-link:focus {
  color: var(--glossy-black);
  background: var(--glossy-grey-100);
}

/* Cart confirmation: keep the destination action explicit and branded. */
#blockcart-modal .glossy-cart-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

#blockcart-modal .glossy-cart-modal-link__icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Badges */
.product-flags .badge,
.badge {
  border: 0;
  border-radius: var(--glossy-radius);
  background: var(--glossy-black);
  color: var(--glossy-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-flags .badge.discount,
.product-flags .badge.on-sale,
.badge.discount,
.badge.on-sale {
  background: var(--glossy-pink);
  color: var(--glossy-black);
}

@layer bs-base {
  body .product-flags .badge.out_of_stock {
    --bs-primary-rgb: 255, 255, 255 !important;
    --bs-bg-opacity: 1 !important;
    background: var(--glossy-white) !important;
    background-color: var(--glossy-white) !important;
    color: var(--glossy-black) !important;
    border: 1px solid var(--glossy-black) !important;
    border-color: var(--glossy-black) !important;
  }
}

/* Promotion badge: official Glossy Envy pink overrides the theme blue. */
body .product-flags .badge.discount,
body .product-flags .badge.on-sale {
  background: var(--glossy-pink) !important;
  background-color: var(--glossy-pink) !important;
  border-color: var(--glossy-pink) !important;
  color: var(--glossy-black) !important;
}

/* Product cards: tight portrait grid with quiet information hierarchy */
.products {
  column-gap: var(--glossy-card-gap);
  row-gap: 2rem;
}

.product-miniature {
  background: var(--glossy-white);
  color: var(--glossy-black);
}

.product-miniature__inner {
  border-bottom: var(--glossy-border);
}

.product-miniature__top,
.product-miniature__image-container {
  background: var(--glossy-grey-050);
}

.product-miniature__image-container {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.product-miniature__image-link {
  border-radius: var(--glossy-radius);
}

.product-miniature__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.product-miniature:hover .product-miniature__image {
  transform: scale(1.015);
}

.product-miniature__bottom {
  padding-top: 0.75rem;
}

.product-miniature__title {
  display: block;
  color: var(--glossy-black);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-miniature__title:hover,
.product-miniature__title:focus {
  color: var(--glossy-black);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.product-miniature__color-label {
  display: block;
  margin-top: 0.15rem;
  color: var(--glossy-grey-600);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-miniature__variants .color {
  border: 1px solid var(--glossy-grey-300);
  box-shadow: none;
}

.product-miniature__price {
  color: var(--glossy-black);
  font-size: 0.875rem;
  font-weight: 700;
}

.product-miniature__discount-price {
  color: var(--glossy-pink-deep);
  font-weight: 700;
}

.product-miniature__details {
  width: 100%;
  margin-top: 0.625rem;
  text-align: center;
}

.product-miniature__quickview-button,
.product-miniature__quickview-touch {
  border-radius: var(--glossy-radius);
}

/* Product card gallery: the whole variant album stays inside the fixed 2:3 frame. */
.glossy-miniature-carousel,
.glossy-miniature-carousel__viewport,
.glossy-miniature-carousel .carousel-inner,
.glossy-miniature-carousel .carousel-item {
  height: 100%;
}

.glossy-miniature-carousel__viewport {
  touch-action: pan-y;
}

.glossy-miniature-carousel__link {
  display: block;
  height: 100%;
  overflow: hidden;
}

.glossy-miniature-carousel__link:focus-visible {
  outline: 2px solid var(--glossy-black);
  outline-offset: -2px;
}

.glossy-miniature-carousel__control {
  top: 50%;
  bottom: auto;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 180ms ease, background-color 180ms ease;
  z-index: 3;
}

.glossy-miniature-carousel:hover .glossy-miniature-carousel__control,
.glossy-miniature-carousel:focus-within .glossy-miniature-carousel__control {
  opacity: 0.9;
}

.glossy-miniature-carousel__control:hover,
.glossy-miniature-carousel__control:focus-visible {
  background-color: rgba(255, 255, 255, 0.72);
}

/* Mobile gallery progress: one equal white bar per product photo. */
.glossy-miniature-carousel__indicators {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 0.3rem;
  pointer-events: auto;
}

.glossy-miniature-carousel__indicator {
  flex: 1 1 0;
  width: 0;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background-color 160ms ease, transform 160ms ease;
}

.glossy-miniature-carousel__indicator.is-active,
.glossy-miniature-carousel__indicator:focus-visible {
  background: var(--glossy-white);
}

.glossy-miniature-carousel__indicator:focus-visible {
  outline: 1px solid var(--glossy-white);
  outline-offset: 3px;
}

/* The desktop replacement for Quick View: compact, keyboard-accessible size tiles. */
.product-miniature__sizes {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(0.35rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-miniature__size {
  display: inline-flex;
  min-width: 2rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  border: 1px solid var(--glossy-black);
  background: rgba(255, 255, 255, 0.94);
  color: var(--glossy-black);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.product-miniature__size:hover,
.product-miniature__size:focus-visible {
  background: var(--glossy-black);
  color: var(--glossy-white);
  text-decoration: none;
}

.product-miniature__top:hover .product-miniature__sizes,
.product-miniature__top:focus-within .product-miniature__sizes {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* There is no secondary details CTA anymore; image and title are the links. */
.product-miniature__actions:empty {
  display: none;
}

/* Product page size selector: keep PrestaShop's native select in the DOM for
 * its combination engine, while exposing a compact three-column button grid. */
.product-variant .glossy-size-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glossy-product-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 18rem;
  margin-top: 0.5rem;
}

.glossy-product-size {
  min-height: 2.5rem;
  padding: 0.5rem 0.35rem;
  border: 1px solid var(--glossy-black);
  border-radius: 0;
  background: var(--glossy-white);
  color: var(--glossy-black);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.glossy-product-size:hover,
.glossy-product-size:focus-visible,
.glossy-product-size.is-selected {
  background: var(--glossy-black);
  color: var(--glossy-white);
}

.glossy-product-size.is-unavailable {
  background: var(--glossy-grey-100);
  color: var(--glossy-grey-600);
  text-decoration: line-through;
  opacity: 0.72;
}

.glossy-product-size.is-unavailable.is-selected {
  background: var(--glossy-grey-200);
  color: var(--glossy-grey-600);
}

@media (max-width: 575.98px) {
  .glossy-product-sizes {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .product-miniature__top {
    position: relative;
  }

  .product-miniature__quickview-button {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .product-miniature__sizes {
    display: none !important;
  }

  .product-miniature__quickview-touch {
    display: none !important;
  }

  .glossy-miniature-carousel__control {
    display: none;
  }

  .glossy-miniature-carousel__indicators {
    display: flex;
  }

  .glossy-miniature-carousel .carousel-item {
    transition: transform 220ms ease-out;
  }
}

/* Keep the first pass restrained on small screens. */
@media (max-width: 767.98px) {
  /* Keep the mobile brand inside the header row. Hummingbird gives the logo
   * an intrinsic flex width; on narrow checkout layouts that can make the
   * image touch or cross the row edges. */
  #header .header-bottom__container {
    min-width: 0;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  #header .header-bottom__row {
    min-width: 0;
    gap: 0.25rem;
    overflow: visible;
  }

  #header .header-bottom__logo {
    min-width: 0;
    max-width: 9rem;
    flex: 0 1 auto;
    overflow: hidden;
  }

  #header .header-bottom__logo .navbar-brand {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  #header .header-bottom__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 2.625rem;
    object-fit: contain;
  }

  .header-bottom__row {
    min-height: 3.75rem;
  }

  .products {
    column-gap: 3px;
    row-gap: 1.5rem;
  }

  .product-miniature__bottom {
    padding-top: 0.5rem;
  }

  .product-miniature__title {
    font-size: 0.75rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .product-miniature__image,
  .glossy-miniature-carousel__control,
  .product-miniature__sizes,
  .glossy-miniature-carousel__indicator {
    transition: none;
  }
}

/* -------------------------------------------------------------------------
 * Home page — editorial first fold + native displayHome modules
 * ------------------------------------------------------------------------- */

body#index .glossy-home-page,
body#index .page-content--home {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

body#index .ps-customtext {
  margin: 0;
}

body#index .ps-customtext > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body#index .glossy-home-editorial {
  overflow: hidden;
  background: var(--glossy-white);
  color: var(--glossy-black);
}

body#index .glossy-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
  background: var(--glossy-black);
  color: var(--glossy-white);
}

body#index .glossy-home-hero__copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem);
  overflow: hidden;
}

body#index .glossy-home-hero__eyebrow {
  margin: 0 0 1.25rem;
  color: var(--glossy-pink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body#index .glossy-home-hero__title {
  max-width: 11ch;
  margin: 0;
  color: inherit;
  font-family: var(--glossy-font-display);
  font-size: clamp(2.5rem, 5vw, 5.75rem);
  font-weight: 400;
  line-height: 0.98;
}

body#index .glossy-home-hero__text {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.7;
}

body#index .glossy-home-hero__cta,
body#index .glossy-home-editorial .glossy-home-collection__cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--glossy-white);
  background: var(--glossy-white);
  color: var(--glossy-black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

body#index .glossy-home-hero__cta:hover,
body#index .glossy-home-hero__cta:focus-visible,
body#index .glossy-home-editorial .glossy-home-collection__cta:hover,
body#index .glossy-home-editorial .glossy-home-collection__cta:focus-visible {
  background: var(--glossy-pink);
  border-color: var(--glossy-pink);
  color: var(--glossy-black);
  text-decoration: none;
}

body#index .glossy-home-hero__media,
body#index .glossy-home-hero__media img {
  width: 100%;
  height: 100%;
}

body#index .glossy-home-hero__media {
  min-height: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

body#index .glossy-home-hero__media img {
  display: block;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

body#index .glossy-home-collections {
  max-width: 1500px;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 3vw, 3rem);
  margin: 0 auto;
}

body#index .glossy-home-section-heading {
  margin: 0 0 2rem;
  text-align: center;
}

body#index .glossy-home-section-heading__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--glossy-grey-600);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body#index .glossy-home-section-heading__title {
  margin: 0;
  font-family: var(--glossy-font-display);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 400;
}

body#index .glossy-home-collections__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--glossy-card-gap);
}

body#index .glossy-home-collection {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--glossy-grey-100);
  color: var(--glossy-white);
}

body#index .glossy-home-collection::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.7), transparent 48%);
  content: '';
}

body#index .glossy-home-collection img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

body#index .glossy-home-collection:hover img,
body#index .glossy-home-collection:focus-visible img {
  transform: scale(1.025);
}

body#index .glossy-home-collection__caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--glossy-white);
}

body#index .glossy-home-collection__title {
  margin: 0;
  font-family: var(--glossy-font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.7rem);
  font-weight: 400;
}

body#index .glossy-home-collection__cta {
  min-height: 2.2rem;
  padding: 0.5rem 0.75rem;
  border-color: var(--glossy-white);
  background: transparent;
  color: var(--glossy-white);
  font-size: 0.62rem;
  white-space: nowrap;
}

body#index .ps-featuredproducts,
body#index .ps-newproducts,
body#index .ps-bestsellers,
body#index .ps-specials {
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: var(--glossy-border);
  background: var(--glossy-white);
}

body#index .ps-featuredproducts .module-products,
body#index .ps-newproducts .module-products,
body#index .ps-bestsellers .module-products,
body#index .ps-specials .module-products {
  max-width: 1500px;
}

body#index .ps-featuredproducts .section-title,
body#index .ps-newproducts .section-title,
body#index .ps-bestsellers .section-title,
body#index .ps-specials .section-title {
  margin-bottom: 2rem;
  font-family: var(--glossy-font-display);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 400;
  text-align: center;
}

body#index .ps-featuredproducts .module-products__list,
body#index .ps-newproducts .module-products__list,
body#index .ps-bestsellers .module-products__list,
body#index .ps-specials .module-products__list {
  padding: 0 clamp(1rem, 3vw, 3rem);
}

body#index .ps-featuredproducts .module-products__buttons,
body#index .ps-newproducts .module-products__buttons,
body#index .ps-bestsellers .module-products__buttons,
body#index .ps-specials .module-products__buttons {
  margin-top: 2rem;
  text-align: center;
}

body#index .ps-featuredproducts .module-products__buttons .btn,
body#index .ps-newproducts .module-products__buttons .btn,
body#index .ps-bestsellers .module-products__buttons .btn,
body#index .ps-specials .module-products__buttons .btn {
  border-color: var(--glossy-black);
  border-radius: 0;
  background: var(--glossy-black);
  color: var(--glossy-white);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body#index .ps-featuredproducts .module-products__buttons .btn:hover,
body#index .ps-featuredproducts .module-products__buttons .btn:focus-visible,
body#index .ps-newproducts .module-products__buttons .btn:hover,
body#index .ps-newproducts .module-products__buttons .btn:focus-visible,
body#index .ps-bestsellers .module-products__buttons .btn:hover,
body#index .ps-bestsellers .module-products__buttons .btn:focus-visible,
body#index .ps-specials .module-products__buttons .btn:hover,
body#index .ps-specials .module-products__buttons .btn:focus-visible {
  border-color: var(--glossy-pink);
  background: var(--glossy-pink);
  color: var(--glossy-black);
}

/* The stock PrestaShop demo banner is not part of the Glossy Envy home. */
body#index .ps-banner:has(img[src*="sale70.png"]) {
  display: none;
}

@media (max-width: 767.98px) {
  body#index .glossy-home-hero {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
  }

  body#index .glossy-home-hero__media {
    height: auto;
  }

  body#index .glossy-home-hero__media img {
    min-height: 0;
  }

  body#index .glossy-home-hero__copy {
    min-height: 21rem;
    padding: 3rem 1.25rem;
  }

  body#index .glossy-home-collections {
    padding: 3.5rem 1rem;
  }

  body#index .glossy-home-collections__grid {
    grid-template-columns: 1fr;
  }

  body#index .glossy-home-collection {
    aspect-ratio: 2 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#index .glossy-home-collection img,
  body#index .glossy-home-hero__cta,
  body#index .glossy-home-editorial .glossy-home-collection__cta {
    transition: none;
  }
}

/* Product detail neutral accents: keep the Glossy Envy black/white palette. */
.page-product .product__thumbnail.active .product__thumbnail-image {
  outline-color: var(--glossy-black) !important;
}

.page-product #product_description_heading .accordion-button,
.page-product #product_description_heading .accordion-button:not(.collapsed) {
  color: var(--glossy-black) !important;
}

.page-product .blockreassurance--product .reassurance__image,
.page-product .blockreassurance--product .reassurance__image svg,
.page-product .blockreassurance--product .reassurance__image svg * {
  color: var(--glossy-black) !important;
  fill: var(--glossy-black) !important;
  stroke: var(--glossy-black) !important;
}

/* Cart page: keep badges, reassurance icons and removal action on-brand. */
body.page-cart .product-flags .badge.new,
body#cart .product-flags .badge.new {
  background: var(--glossy-black) !important;
  background-color: var(--glossy-black) !important;
  border-color: var(--glossy-black) !important;
  color: var(--glossy-white) !important;
}

/* The cart line discount is rendered outside .product-flags in Hummingbird. */
body.page-cart .discount,
body#cart .discount,
body.page-cart .discount-percentage,
body#cart .discount-percentage,
body.page-cart .discount-amount,
body#cart .discount-amount,
body.page-cart .product-discount .discount,
body#cart .product-discount .discount,
body.page-cart .product-line__item-discount,
body#cart .product-line__item-discount,
body.page-cart .product-line__item-discount.bg-primary,
body#cart .product-line__item-discount.bg-primary {
  background: var(--glossy-pink) !important;
  background-color: var(--glossy-pink) !important;
  border-color: var(--glossy-pink) !important;
  color: var(--glossy-black) !important;
}

/* Bootstrap's .bg-primary is !important; override it at the badge level. */
html body.page-cart .badge.bg-primary,
html body#cart .badge.bg-primary,
html body.page-cart .product-line__item-discount.badge.bg-primary,
html body#cart .product-line__item-discount.badge.bg-primary {
  --bs-primary-rgb: 239, 182, 165 !important;
  --bs-bg-opacity: 1 !important;
  background: var(--glossy-pink) !important;
  background-color: var(--glossy-pink) !important;
  border-color: var(--glossy-pink) !important;
  color: var(--glossy-black) !important;
}

body.page-cart .blockreassurance--cart .reassurance__image,
body.page-cart .blockreassurance--cart .reassurance__image img,
body.page-cart .blockreassurance--cart .reassurance__image svg,
body.page-cart .blockreassurance--cart .reassurance__image svg * {
  color: var(--glossy-black) !important;
  fill: var(--glossy-black) !important;
  stroke: var(--glossy-black) !important;
  filter: grayscale(1) brightness(0);
}

/* Keep each reassurance icon beside its text in the cart summary column. */
body.page-cart .blockreassurance--cart,
body#cart .blockreassurance--cart {
  width: 100%;
}

body.page-cart .blockreassurance--cart .reassurance,
body#cart .blockreassurance--cart .reassurance {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  margin: 0 0 1rem;
}

body.page-cart .blockreassurance--cart .reassurance__image,
body#cart .blockreassurance--cart .reassurance__image {
  position: static !important;
  float: none !important;
  flex: 0 0 2rem;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.page-cart .blockreassurance--cart .reassurance__image img,
body.page-cart .blockreassurance--cart .reassurance__image svg,
body#cart .blockreassurance--cart .reassurance__image img,
body#cart .blockreassurance--cart .reassurance__image svg {
  position: static !important;
  display: block !important;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 !important;
  visibility: visible !important;
}

body.page-cart .blockreassurance--cart .reassurance__content,
body#cart .blockreassurance--cart .reassurance__content {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-cart .remove-from-cart,
body.page-cart .removeProduct,
body.page-cart .delete_product,
body.page-cart [data-link-action="delete-from-cart"],
body.page-cart .js-remove-from-cart,
body.page-cart .cart__remove-product,
body.page-cart .cart-line-product-actions > a,
body#cart .cart-line-product-actions .remove-from-cart,
body#cart [data-link-action="delete-from-cart"],
body#cart .js-remove-from-cart,
body#cart .cart__remove-product,
body#cart .cart-line-product-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--glossy-black) !important;
  background: var(--glossy-white);
  color: var(--glossy-black) !important;
  text-decoration: none;
}

body.page-cart .remove-from-cart:hover,
body.page-cart .removeProduct:hover,
body.page-cart .delete_product:hover,
body.page-cart [data-link-action="delete-from-cart"]:hover,
body.page-cart .js-remove-from-cart:hover,
body.page-cart .cart__remove-product:hover,
body.page-cart .cart-line-product-actions > a:hover,
body#cart .cart-line-product-actions .remove-from-cart:hover,
body#cart [data-link-action="delete-from-cart"]:hover,
body#cart .js-remove-from-cart:hover,
body#cart .cart__remove-product:hover,
body#cart .cart-line-product-actions > a:hover {
  background: var(--glossy-black);
  color: var(--glossy-white) !important;
}

@layer utilities {
  .product-flags .badge.new {
    --bs-primary: var(--glossy-black) !important;
    --bs-primary-rgb: 17, 17, 17 !important;
    background: #111111 !important;
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: var(--glossy-white) !important;
  }
}

/* Category infinite loading and floating back-to-top control. */
.page-category .glossy-category-load-sentinel {
  min-height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.page-category .glossy-category-load-status {
  padding: 1rem;
  color: var(--glossy-grey-600, #6b6b6b);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-category .glossy-category-back-to-top {
  position: fixed;
  z-index: 1030;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--glossy-black, #111111);
  border-radius: 0;
  background: var(--glossy-black, #111111);
  color: var(--glossy-white, #ffffff);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.page-category .glossy-category-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-category .glossy-category-back-to-top:hover,
.page-category .glossy-category-back-to-top:focus-visible {
  background: var(--glossy-pink, #efb6a5);
  color: var(--glossy-black, #111111);
}

@media (max-width: 767.98px) {
  .page-category .glossy-category-back-to-top {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}
