/*
Theme Name: Bizmart Sephora
Theme URI: https://cosmos-beauty.dz
Author: Cosmos Beauty Algeria
Author URI: https://cosmos-beauty.dz
Description: High-Precision Modern Luxury WooCommerce theme for Cosmos Beauty Algeria.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cosmos-beauty
*/

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL LINK RESET
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
    --cosmos-primary: #000000;
    --brand-pink: #000000;
    --cosmos-secondary: #000000;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DESKTOP NAVIGATION (cmn-bar)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cmn-bar {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
    z-index: 2400;
}
.cmn-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
    overflow: visible;
}
.cmn-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cmn-links > li {
  position: relative;
  display: flex;
  align-items: center;
}
/* Elevate active items so dropdowns sit above siblings */
.cmn-links > li:hover,
.cmn-links > li.cmn-hover,
.cmn-links > li[data-cmn="open"],
.cmn-links .sub-menu li:hover,
.cmn-links .sub-menu li[data-cmn="open"],
.cmn-links .sub-menu li.cmn-hover {
  z-index: 100;
}
.cmn-links > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  color: #1a1a1a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
/* Tighten right padding when chevron follows */
.cmn-links > li.menu-item-has-children > a {
  padding-right: 2px;
}
.cmn-links > li > a:hover {
  color: var(--cosmos-primary, #e45366);
}
/* Chevron toggle button â€” sits flush after link text */
.cmn-links .cmn-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 100%;
  min-height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  transition: transform 0.2s, color 0.18s;
  padding: 0;
  margin-inline-end: 6px;
  flex-shrink: 0;
  font-size: 8px;
}
.cmn-links .cmn-chevron:hover {
  color: #1a1a1a;
}
.cmn-links [data-cmn="open"] > .cmn-chevron,
.cmn-links .cmn-hover > .cmn-chevron,
.cmn-links [data-cmn="open"] > a > .cmn-chevron-inline {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Sub-menu chevrons â€” tighter */
.cmn-links .sub-menu .cmn-chevron {
  width: 16px;
  min-height: 36px;
  margin-inline-end: 4px;
  margin-inline-start: auto;
}
/* Sub-menu (desktop dropdown) */
.cmn-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 280px;
  width: max-content !important;
  max-width: none !important;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  z-index: 2600 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}
.cmn-links > li[data-cmn="open"] > .sub-menu,
.cmn-links > li.cmn-hover > .sub-menu,
.cmn-links > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cmn-links .sub-menu li {
  position: relative;
  display: flex;
  align-items: center;
}
.cmn-links .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: normal;
  line-height: 1.4;
  width: 100%;
}
.cmn-links .sub-menu li a:hover {
  background: #ffffff;
  color: var(--cosmos-primary, #e45366);
  padding-left: 28px;
}
[dir="rtl"] .cmn-links .sub-menu li a:hover {
  padding-left: 24px;
  padding-right: 28px;
}
/* Nested sub-menu */
.cmn-links .sub-menu .sub-menu {
  top: -12px; /* Offset to align with parent text */
  inset-inline-start: 100%;
  border-radius: 20px;
}
.cmn-links .sub-menu .sub-menu.cmn-sub-flip {
  inset-inline-start: auto !important;
  inset-inline-end: 100% !important;
}
.cmn-links .sub-menu li[data-cmn="open"] > .sub-menu,
.cmn-links .sub-menu li.cmn-hover > .sub-menu,
.cmn-links .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hide desktop nav on mobile */
@media (max-width: 1023px) {
  .cmn-bar { display: none; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MY ACCOUNT PAGE â€” AUTH CARD (Logged Out)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cosmos-auth-card {
  background: #fff;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  border: 1px solid #f9fafb;
}
.cosmos-auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
}
.cosmos-auth-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  transition: all 0.18s;
}
.cosmos-auth-tab--active {
  background: var(--brand-pink, #e45366);
  color: #fff;
}
.cosmos-auth-tab--inactive {
  background: transparent;
  color: #374151;
}
.cosmos-auth-panel {
  padding-top: 0.5rem;
}
.cosmos-auth-panel .woocommerce-form-login,
.cosmos-auth-panel .woocommerce-form-register,
.cosmos-auth-panel .woocommerce form {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.cosmos-auth-panel .woocommerce-form-row label,
.cosmos-auth-panel .form-row label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 6px;
  display: block;
}
.cosmos-auth-panel .woocommerce-form-row input,
.cosmos-auth-panel .form-row input[type="text"],
.cosmos-auth-panel .form-row input[type="email"],
.cosmos-auth-panel .form-row input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 13px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
}
.cosmos-auth-panel .woocommerce-form-row input:focus,
.cosmos-auth-panel .form-row input:focus {
  border-color: var(--cosmos-primary, #e45366);
}
.cosmos-auth-panel .woocommerce-button,
.cosmos-auth-panel button[type="submit"] {
  width: 100%;
  height: 48px;
  background: var(--cosmos-primary, #e45366) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.18s;
  margin-top: 8px;
}
.cosmos-auth-panel .woocommerce-button:hover,
.cosmos-auth-panel button[type="submit"]:hover {
  opacity: 0.9;
}

.cosmos-account-welcome__btn {
    height: 48px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
}

.cosmos-account-welcome__btn.active {
    background: var(--brand-pink, #e45366);
    border-color: var(--brand-pink, #e45366);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cosmos-account-welcome__submit {
    width: 100%;
    background: var(--brand-pink, #e45366);
    color: #fff;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 10px;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 10px 25px rgba(228, 83, 102, 0.2);
}

.cosmos-account-welcome__submit:hover,
.cosmos-account-welcome__submit:active {
    background: #cf3a50;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MY ACCOUNT â€” SIDEBAR NAV (Logged In)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cosmos-account-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  transition: background 0.18s;
  text-decoration: none !important;
  color: inherit;
}
@media (min-width: 768px) {
  .cosmos-account-nav__item {
    padding: 14px 20px;
  }
}
.cosmos-account-nav__item--active {
    background: var(--cosmos-primary, #e45366);
}
@media (min-width: 768px) {
  .cosmos-account-nav__item--active {
    border-radius: 20px;
  }
}
.cosmos-account-nav__item--active .cosmos-account-nav__icon {
  background: rgba(255,255,255,0.15) !important;
}
.cosmos-account-nav__item--active .cosmos-account-nav__icon svg {
  color: #fff;
}
.cosmos-account-nav__item--active .cosmos-account-nav__label {
  color: #fff;
  font-weight: 800;
}
.cosmos-account-nav__item--active .cosmos-account-nav__chevron {
  color: rgba(255,255,255,0.5);
}
.cosmos-account-nav__item:not(.cosmos-account-nav__item--active) {
  background: transparent;
}
.cosmos-account-nav__item:not(.cosmos-account-nav__item--active):hover {
  background: #f9fafb;
}
@media (max-width: 767px) {
  .cosmos-account-nav__item:not(.cosmos-account-nav__item--active) {
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MY ACCOUNT â€” WC CONTENT OVERRIDES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.woocommerce-MyAccount-content {
  /* Remove WC default styling */
}
.woocommerce-MyAccount-content a {
  color: var(--cosmos-primary, #e45366);
  text-decoration: none;
}
.woocommerce-MyAccount-content a:hover {
  text-decoration: none;
  opacity: 0.8;
}
/* WC form styling inside account */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm label,
.woocommerce-MyAccount-content .woocommerce-address-fields label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  display: block;
  margin-bottom: 6px;
}
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 13px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
}
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  border-color: var(--cosmos-primary, #e45366);
}
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content .woocommerce-Button {
  background: var(--cosmos-primary, #e45366) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.18s;
}
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content .woocommerce-Button:hover {
  opacity: 0.9;
}
/* Remove WC default underlines/borders under headings */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  border: none;
  text-decoration: none;
  padding-bottom: 0;
}
/* WC order table */
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.woocommerce-MyAccount-content table th {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}
.woocommerce-MyAccount-content table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f9fafb;
  color: #374151;
}
.woocommerce-MyAccount-content table a.woocommerce-button {
  display: inline-block;
  padding: 6px 16px;
  background: var(--brand-pink, #e45366);
  color: #fff !important;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.woocommerce-MyAccount-content table a.woocommerce-button:hover {
  opacity: 0.85;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PAGINATION
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.woocommerce-pagination,
.cosmos-pagination,
nav.woocommerce-pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.woocommerce-pagination ul,
.cosmos-pagination ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  background: #f9fafb;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.woocommerce-pagination ul li a:hover {
  background: var(--brand-pink, #e45366);
  color: #fff;
}
.woocommerce-pagination ul li span.current {
  background: var(--brand-pink, #e45366);
  color: #fff;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOOTER LOCATION LINKS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cosmos-footer-location {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s;
}
.cosmos-footer-location:hover {
  color: var(--cosmos-primary, #e45366);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   MAP EMBED GRID
   â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.cosmos-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .cosmos-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cosmos-map-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
}
.cosmos-map-card iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}
.cosmos-map-card-body {
  padding: 1.25rem 1.5rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BANNER SYSTEM
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Banner Slideshow System â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-banner-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    border-radius: inherit;
    display: block;
}
a.cosmos-banner-slideshow { display: block; }

.cosmos-banner-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
a.cosmos-banner-frame { display: block; }
.cosmos-banner-frame.is-active { opacity: 1; z-index: 2; }
.cosmos-banner-frame img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; border-radius: inherit;
}

/* Slide effect */
.cosmos-banner-slideshow[data-effect="slide"] .cosmos-banner-frame {
    opacity: 1; transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(.4,0,.2,1);
}
.cosmos-banner-slideshow[data-effect="slide"] .cosmos-banner-frame.is-active { transform: translateX(0); }
.cosmos-banner-slideshow[data-effect="slide"] .cosmos-banner-frame.is-exiting { transform: translateX(-100%); }

/* Ken Burns effect */
@keyframes cosmosBannerKenBurns {
    0%   { transform: scale(1)   translate(0, 0); }
    50%  { transform: scale(1.1) translate(-1%, -1%); }
    100% { transform: scale(1)   translate(0, 0); }
}
.cosmos-banner-slideshow[data-effect="kenburns"] .cosmos-banner-frame.is-active {
    animation: cosmosBannerKenBurns 12s ease-in-out infinite;
}

/* Dots */
.cosmos-banner-slideshow .cosmos-slider-dots,
.cosmos-banner-slideshow ~ .cosmos-slider-dots {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.cosmos-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    max-width: 8px;
    max-height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
    margin: 0;
    line-height: 0;
}
.cosmos-dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 767px) {
    .cosmos-dot {
        width: 7px;
        height: 7px;
        min-width: 7px;
        min-height: 7px;
        max-width: 7px;
        max-height: 7px;
        flex-basis: 7px;
    }
}

/* Arrows */
.cosmos-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3); color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px;
    transition: background 0.2s, opacity 0.3s; opacity: 0;
}
.cosmos-banner-slideshow:hover ~ .cosmos-slider-arrow,
.cosmos-banner-slideshow .cosmos-slider-arrow,
.perfume-banner:hover .cosmos-slider-arrow,
.multi-product-banner:hover .cosmos-slider-arrow,
.promo-banner-blue:hover .cosmos-slider-arrow,
.promo-banner-red:hover .cosmos-slider-arrow { opacity: 1; }
.cosmos-slider-arrow:hover { background: rgba(255,255,255,0.45); }
.cosmos-arrow-prev { left: 12px; }
.cosmos-arrow-next { right: 12px; }

/* â”€â”€ Perfume Banner (Large Banner 1) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.perfume-banner {
    background-color: var(--cosmos-feature-banner-bg, #032d29);
    border-radius: var(--radius-card);
    margin: 0; padding: 0;
    min-height: var(--cosmos-feature-banner-height, 300px);
    display: flex; justify-content: space-between; align-items: center;
    position: relative; overflow: hidden;
}
.perfume-banner .arabic-banner-text,
.perfume-banner .cosmos-banner-btn { padding: 40px; }

.arabic-banner-text { direction: rtl; color: white; max-width: 50%; }
.arabic-banner-text h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 700; line-height: 1.4; }

.perfume-bottles-img {
    max-height: 250px; object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* â”€â”€ Multi-Product Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.multi-product-banner {
    background-color: var(--cosmos-multi-banner-bg, #fce4ec);
    border-radius: var(--radius-card);
    margin: 0; padding: 0;
    min-height: var(--cosmos-multi-banner-height, 300px);
    display: flex; justify-content: space-between; align-items: center;
    position: relative; overflow: hidden;
}
.multi-product-banner .text-content {
    padding: 40px 60px; direction: rtl; text-align: right; z-index: 10;
}
.multi-product-banner h2 {
    font-size: 48px; font-weight: 800; color: #d81b60;
    margin-bottom: 0; line-height: 1;
}
.multi-product-banner .emoji { font-size: 32px; vertical-align: middle; }

/* â”€â”€ Promo Banners â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.promo-banner-blue {
    background-color: var(--cosmos-promo1-bg, #004b9b);
    border-radius: var(--radius-card); padding: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--cosmos-promo1-text, #ffffff);
    box-shadow: 0 10px 30px rgba(0,75,155,0.2);
    position: relative; overflow: hidden;
    min-height: var(--cosmos-promo1-height, 400px);
}
.promo-banner-blue .arabic-3d-text,
.promo-banner-blue h3,
.promo-banner-blue p,
.promo-banner-blue .promo-tag { padding: 0 20px; position: relative; z-index: 5; }

.promo-banner-red {
    background-color: var(--cosmos-promo2-bg, #cc0000);
    border-radius: var(--radius-card); padding: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--cosmos-promo2-text, #ffffff);
    box-shadow: 0 10px 30px rgba(204,0,0,0.2);
    position: relative; overflow: hidden;
    min-height: var(--cosmos-promo2-height, 400px);
}
.promo-banner-red .arabic-3d-text,
.promo-banner-red h3,
.promo-banner-red p,
.promo-banner-red .promo-tag { padding: 0 20px; position: relative; z-index: 5; }

.promo-banner-blue .cosmos-customizer-placeholder,
.promo-banner-red .cosmos-customizer-placeholder {
    width: 100%; display: flex !important;
    align-items: center !important; justify-content: center !important;
    height: 100%; box-sizing: border-box; padding: 32px; background: inherit;
}

/* Banner images fill the full banner area */
.promo-banner-blue img,
.promo-banner-red img { width: 100%; height: auto; max-height: none; object-fit: cover; }
.perfume-banner .perfume-bottles-img { max-height: none; height: 100%; object-fit: cover; }
.multi-product-banner img { max-height: none; object-fit: cover; }

/* â”€â”€ Banner responsive heights â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .promo-banner-blue { min-height: var(--cosmos-promo1-height-mobile, 280px); }
    .promo-banner-red  { min-height: var(--cosmos-promo2-height-mobile, 280px); }
    .perfume-banner    { min-height: var(--cosmos-feature-banner-height-mobile, 200px); }
    .multi-product-banner { min-height: var(--cosmos-multi-banner-height-mobile, 200px); }
    .perfume-banner { padding: 0; flex-direction: column; text-align: center; }
    .perfume-banner .arabic-banner-text,
    .perfume-banner .cosmos-banner-btn { padding: 20px; }
    .arabic-banner-text { max-width: 100%; }
    .perfume-bottles-img { max-height: 150px; margin-top: 20px; }
    .multi-product-banner { padding: 0; flex-direction: column-reverse; gap: 20px; }
    .multi-product-banner .text-content { padding: 20px; }
}

.section-header-tabs--centered {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
}

.section-header-tabs--centered > div {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.section-header-tabs--centered .section-title-line {
    text-align: center;
}

.minimal-product-card {
    width: 190px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

.minimal-product-card:hover {
    transform: none;
    box-shadow: none;
}

.minimal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 18px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff, #f4f6f8);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.minimal-image-wrapper img,
.minimal-image-wrapper .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.minimal-product-card .product-title {
    margin: 0;
    min-height: 34px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.minimal-product-card .product-price {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
    .promo-banner-blue,
    .promo-banner-red { display: flex; flex-direction: column; align-items: center; }
    .promo-banner-blue .cosmos-customizer-placeholder,
    .promo-banner-red .cosmos-customizer-placeholder { display: block !important; height: auto; }
}

/* â”€â”€ Banner text & button utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.arabic-3d-text {
    font-size: 3.5rem; font-weight: 900; color: #ffd700; line-height: 1; margin-bottom: 15px;
    text-shadow: 2px 2px 0 #cc8800, 4px 4px 0 #995500, 0 10px 15px rgba(0,0,0,0.3);
    z-index: 2;
}
.promo-tag {
    background: white; color: var(--brand-dark);
    font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 4px;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 2;
}
.promo-tag span { color: var(--promo-blue); font-size: 14px; }
.promo-red-decor {
    position: absolute; width: 300px; height: 300px;
    border: 2px dashed rgba(255,255,255,0.2); border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
}
.cosmos-banner-btn {
    display: inline-block; background: white; color: var(--brand-dark);
    padding: 10px 28px; border-radius: 50px; font-size: 12px; font-weight: 700;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s; z-index: 5;
}
.cosmos-banner-btn:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* â”€â”€ Sort / Ordering Dropdown â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* ── Archive Header Refinements ── */
.cosmos-archive-meta-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    white-space: nowrap !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    align-self: center !important;
}

.cosmos-archive-meta-pill:hover {
    border-color: #111 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

.cosmos-archive-meta-pill svg {
    opacity: 0.6;
    color: var(--brand-pink, #e45366);
}

.cosmos-archive-ordering {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.cosmos-archive-ordering-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}

.cosmos-archive-ordering .woocommerce-ordering {
    position: relative;
    display: inline-flex;
    margin: 0;
}

.cosmos-archive-ordering .woocommerce-ordering select.orderby {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 999px !important;
    padding: 0.6rem 2.75rem 0.6rem 1.25rem !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.15rem center !important;
    background-size: 11px !important;
    min-width: 0;
    width: auto !important;
    min-height: 0 !important;
}

.cosmos-archive-ordering .woocommerce-ordering select.orderby:hover {
    border-color: #111 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

.cosmos-archive-ordering .woocommerce-ordering select.orderby:focus {
    color: var(--brand-pink);
}

/* RTL positioning for orderby select */
body.rtl .cosmos-archive-ordering .woocommerce-ordering select.orderby,
[dir="rtl"] .cosmos-archive-ordering .woocommerce-ordering select.orderby {
    background-position: left 1rem center !important;
    padding-left: 2.5rem !important;
    padding-right: 1rem !important;
}

@media (max-width: 640px) {
    .cosmos-archive-meta-pill {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .cosmos-archive-ordering .woocommerce-ordering select.orderby {
        font-size: 9px;
    }
}

/* â”€â”€ Announcement: Slide-Up effect â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-announce-slideup {
    position: relative;
    min-height: 1.6em;
    overflow: hidden;
}
.cosmos-announce-slideup__item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s;
}
.cosmos-announce-slideup__item.is-active {
    transform: translateY(0);
    opacity: 1;
    position: relative;
}
.cosmos-announce-slideup__item.is-exiting {
    transform: translateY(-100%);
    opacity: 0;
}

/* â”€â”€ Announcement: Bounce effect â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-announce-bounce {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cosmos-announce-bounce__text {
    animation: cosmosBounce 2s ease-in-out infinite;
}
@keyframes cosmosBounce {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-3px); }
    50%      { transform: translateY(0); }
    75%      { transform: translateY(-2px); }
}

/* â”€â”€ Announcement bar padding/layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-announcement-bar {
    padding: 8px 16px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 50;
    overflow: hidden;
}
.cosmos-announcement-bar__text {
    margin: 0;
}

/* Announcement marquee (new header markup classes) */
.cosmos-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.cosmos-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  min-width: max-content;
  animation: cosmosMarquee var(--marquee-speed, 30s) linear infinite;
  animation-direction: var(--marquee-direction, normal);
  will-change: transform;
}
.cosmos-marquee__item {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}
.cosmos-marquee__sep {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}
@keyframes cosmosMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Announcement fade mode */
.cosmos-announce-fade {
  position: relative;
  min-height: 1.6em;
}
.cosmos-announce-fade__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.cosmos-announce-fade__item.is-active {
  opacity: 1;
  position: relative;
}

/* â”€â”€ FAQ Accordion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cosmos-faq-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.cosmos-faq-item[open] {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: #e5e7eb;
}
.cosmos-faq-question {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    color: #1f2937;
    transition: color 0.2s;
    user-select: none;
}
.cosmos-faq-question::-webkit-details-marker { display: none; }
.cosmos-faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: #9ca3af;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.cosmos-faq-item[open] .cosmos-faq-question::after {
    content: 'âˆ’';
    color: var(--brand-pink, #e45366);
}
.cosmos-faq-item[open] .cosmos-faq-question {
    color: var(--brand-pink, #e45366);
}
.cosmos-faq-answer {
    padding: 0 24px 20px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
}
.cosmos-faq-answer ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}
.cosmos-faq-answer li {
    margin-bottom: 0.4rem;
}
/* -- Checkout & Cart Improvements -- */
.cosmos-checkout-summary {
    background: #111;
    border-radius: 24px;
    padding: 32px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
}

.cosmos-review-order__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cosmos-review-order__thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.cosmos-review-order__item-meta {
    flex: 1;
    min-width: 0;
}

.cosmos-review-order__item-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cosmos-review-order__item-qty {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.05em;
}

.cosmos-review-order__item-total {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.cosmos-review-order__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.cosmos-input {
    width: 100%;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.cosmos-input:focus {
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 4px rgba(228, 83, 102, 0.1);
    outline: none;
}

.cosmos-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 8px;
    margin-left: 4px;
}

.cosmos-btn {
    background: var(--brand-pink);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cosmos-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

/* -- Boutique Grid Fixes -- */
.product-card .product-title {
    font-family: var(--cosmos-font-body);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-style: italic;
    font-size: 13px;
    line-height: 1.3;
    height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-price {
    font-size: 16px;
    letter-spacing: -0.03em;
}

.product-card .product-sub {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 9px;
    color: #bbb;
}

/* Center card text content under the image */
.product-card .product-title,
.product-card .product-sub,
.product-card .product-price,
.product-card .product-rating,
.product-card > a.no-underline {
    text-align: center;
}
.product-card .btn-basket,
.product-card .cosmos-ajax-add-to-cart {
    text-align: center;
}
/* -- Shopping Cart Refinement -- */
.woocommerce-cart-form {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 16px;
}

.woocommerce-cart-form__cart-item {
    background: #fafafa;
}

.woocommerce-cart-form__cart-item td {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-cart-form__cart-item td:first-child {
    border-left: 1px solid #f0f0f0;
    border-radius: 16px 0 0 16px;
}

.woocommerce-cart-form__cart-item td:last-child {
    border-right: 1px solid #f0f0f0;
    border-radius: 0 16px 16px 0;
}

.product-thumbnail img {
    border-radius: 12px;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
}

.product-name a {
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    font-size: 14px;
    color: var(--brand-dark);
}

.product-price .amount, .product-subtotal .amount {
    font-weight: 900;
    color: var(--brand-dark);
}

.cart-collaterals {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.cart_totals {
    width: 100%;
    max-width: 450px;
    background: #111;
    color: #fff;
    padding: 32px;
    border-radius: 24px;
}

.cart_totals h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 24px;
}

.cart_totals table {
    width: 100%;
    margin-bottom: 24px;
}

.cart_totals th {
    text-align: left;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cart_totals td {
    text-align: right;
    font-weight: 800;
}

.checkout-button {
    display: block;
    width: 100%;
    background: var(--brand-pink) !important;
    color: #fff !important;
    text-align: center;
    padding: 18px !important;
    border-radius: 16px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    transition: all 0.3s !important;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* -- Accessibility: Ensure hovered buttons keep high contrast -- */
/* Override rules to ensure text becomes white on colored hover backgrounds */
.action-btn:hover,
.action-btn.cosmos-wishlist--active:hover,
.header-icon-btn:hover,
.cosmos-banner-btn:hover,
.cosmos-btn:hover,
.checkout-button:hover,
.slider-arrow-inline:hover {
    color: #ffffff !important;
}

/* Base styles for header icons to make them clear and luxurious */
.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--cosmos-header-text, #111827);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 18px;
    text-decoration: none;
}

/* Force hide wishlist/cart on mobile since they are in the bottom bar, but keep search */
@media (max-width: 767px) {
    .header-icon-btn--link {
        display: none !important;
    }
}

/* Make sure icon buttons show a visible background when hovered */
.header-icon-btn:hover,
.action-btn:hover,
.slider-arrow-inline:hover {
    background: linear-gradient(135deg, var(--brand-pink), #d43c5b) !important;
    border-color: transparent !important;
}

/* Ensure contrast for wishlist active heart icon on hover */
.action-btn.cosmos-wishlist--active:hover .fa-heart {
    color: #ffffff !important;
}

/* Small tweak: make nav link hover slightly darker for readability */
.nav-link:hover { color: #c43a54; }
/* -- Checkout field restyles: match Cosmos theme */
#billing_state_field, #billing_city_field {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
    margin-bottom: 12px;
}

#billing_state_field label, #billing_city_field label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 6px;
}

#billing_state_field .select2-container--cosmos .select2-selection--single, .select2-container--default .select2-selection--single,
#billing_city_field .select2-container--cosmos .select2-selection--single, .select2-container--default .select2-selection--single,
#billing_state_field select,
#billing_city_field select {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    height: 40px;
    color: var(--brand-dark);
}

/* Make inputs inside these fields match cosmos-input */
#billing_state_field input[type="text"],
#billing_city_field input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    padding: 6px 0;
    font-size: 14px;
    color: var(--brand-dark);
}

/* Ensure focus styles remain visible */
#billing_state_field:focus-within, #billing_city_field:focus-within {
    box-shadow: 0 8px 26px rgba(228,83,102,0.08);
    border-color: rgba(228,83,102,0.12);
}

/* Generic checkout divs that look out-of-place ï¿½ give a card-like reset */
.woocommerce .cosmos-page-content > div, .woocommerce form.checkout .col-2, .woocommerce form.checkout .col-1 {
    background: transparent;
}

.woocommerce form.checkout .cosmos-checkout-summary, .woocommerce .cosmos-review-order {
    /* already styled elsewhere; ensure spacing */
    padding: 18px;
}

/* Small responsive tweak for compactness */
@media (max-width: 768px) {
    #billing_state_field, #billing_city_field { padding: 10px 12px; border-radius: 12px; }
}


.max-w-site {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ═══════════════════════════════════════════════
   INFO PAGES — COMPLETE STYLING
   ═══════════════════════════════════════════════ */

/* ── Hero Banner ─────────────────────────────── */
.cosmos-info-hero {
    background: linear-gradient(135deg, #fffafa, #ffe4e6);
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid #fdf2f8;
}
.cosmos-info-hero p {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}
.cosmos-info-hero h1,
.cosmos-info-hero h2 {
    color: #111827;
    margin: 0 0 1rem;
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    border: none;
    padding: 0;
}

/* ── Page Content Wrapper ────────────────────── */
.cosmos-page-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid #f3f4f6;
    margin-bottom: 2rem;
}
.cosmos-page-content h2,
.cosmos-page-content h3,
.cosmos-page-content h4 {
    color: #111827;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-inline-start: 4px solid var(--brand-pink);
    padding-inline-start: 12px;
}
.cosmos-page-content p,
.cosmos-page-content li {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.cosmos-page-content ul {
    padding-left: 1.5rem;
}
.cosmos-page-content a {
    color: var(--brand-pink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(228,83,102,0.3);
    text-underline-offset: 4px;
    transition: all 0.2s;
}
.cosmos-page-content a:hover {
    text-decoration-color: var(--brand-pink);
}

/* ── Info Card (reusable section block) ──────── */
.cosmos-info-card {
    background: #fafafb;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid #f0f0f0;
}
.cosmos-info-card h2,
.cosmos-info-card h3 {
    border: none;
    padding-left: 0;
}

/* ── Contact Cards Grid ─────────────────────── */
.cosmos-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (max-width: 640px) {
    .cosmos-contact-grid { grid-template-columns: 1fr; }
}
.cosmos-contact-card {
    background: #fdfafb;
    border: 1px solid #fce7ec;
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cosmos-contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-pink);
}
.cosmos-contact-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.cosmos-contact-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    border: none;
    padding: 0;
}
.cosmos-contact-card p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: #4b5563;
}
.cosmos-contact-card a {
    color: var(--brand-pink);
    text-decoration: none;
    font-weight: 600;
}
.cosmos-contact-card a:hover {
    text-decoration: underline;
}

/* ── Map Grid ────────────────────────────────── */
.cosmos-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.cosmos-map-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}
.cosmos-map-card iframe {
    width: 100%;
    height: 220px;
    border: none;
}
.cosmos-map-card__info {
    padding: 1rem 1.25rem;
}
.cosmos-map-card__info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    border: none;
    padding: 0;
}
.cosmos-map-card__info p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ── Stats Cards (Cosmos en Chiffres) ────────── */
.cosmos-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}
.cosmos-stat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.cosmos-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-pink);
}
.cosmos-stat-card__number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-pink);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.cosmos-stat-card__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111827;
    margin-bottom: 0.5rem;
}
.cosmos-stat-card__desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ── FAQ ─────────────────────────────────────── */
.cosmos-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cosmos-faq-item {
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.cosmos-faq-item[open] {
    border-color: #e5e7eb;
}
.cosmos-faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cosmos-faq-question::-webkit-details-marker { display: none; }
.cosmos-faq-question::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 300;
    color: #9ca3af;
    transition: transform 0.2s;
}
.cosmos-faq-item[open] .cosmos-faq-question::after {
    content: "\2212";
    color: var(--brand-pink);
}
.cosmos-faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}
.cosmos-faq-answer ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}
.cosmos-faq-answer li {
    margin-bottom: 0.5rem;
}

/* ── Phone numbers: always LTR regardless of page direction ── */
[dir="rtl"] #billing_phone,
[dir="rtl"] #shipping_phone,
[dir="rtl"] input[type="tel"],
[dir="rtl"] .woocommerce-MyAccount-content input[type="tel"],
[dir="rtl"] .cosmos-footer-location a,
[dir="rtl"] .cosmos-footer-phones a {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

/* ── Checkout dark card: ensure all text is readable ── */
.cosmos-checkout-summary,
.cosmos-checkout-summary * {
    color: #fff;
}
.cosmos-checkout-summary .woocommerce-privacy-policy-text,
.cosmos-checkout-summary .woocommerce-privacy-policy-text a,
.cosmos-checkout-summary .woocommerce-terms-and-conditions-wrapper,
.cosmos-checkout-summary .woocommerce-checkout-payment,
.cosmos-checkout-summary .payment_methods,
.cosmos-checkout-summary .payment_method label,
.cosmos-checkout-summary .payment_box,
.cosmos-checkout-summary .payment_box p {
    color: rgba(255,255,255,0.85) !important;
}
.cosmos-checkout-summary .payment_box {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
.cosmos-checkout-summary input[type="radio"] {
    accent-color: #e45366;
}

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════ */
.cosmos-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translateX(-50%) translateY(-2.5rem);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
@media (max-width: 767px) {
    .cosmos-toast { top: 5rem; }
}
.cosmos-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cosmos-toast--success,
.cosmos-toast--error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 12px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.cosmos-toast--success .cosmos-toast__icon { color: #22c55e; }
.cosmos-toast--error   .cosmos-toast__icon { color: #ef4444; }
.cosmos-toast__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cosmos-toast__title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}
.cosmos-toast__text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.cosmos-toast__icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════════════════ */
.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #f3f4f6;
    background: rgba(255,255,255,0.95);
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.04);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
}
@media (min-width: 768px) {
    .app-bottom-nav { display: none !important; }
}
.app-bottom-nav__item {
    position: relative;
    display: flex;
    height: 4rem;
    width: 4rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
    text-decoration: none;
    font-family: inherit;
}
.app-bottom-nav__item--active { color: #0a0a0a; }
.app-bottom-nav__item--active .app-bottom-nav__icon {
    transform: scale(1.1);
    color: #dc2626;
}
.app-bottom-nav__icon {
    margin-bottom: 0.25rem;
    font-size: 18px;
    transition: transform 0.15s;
}
.app-bottom-nav__label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.app-bottom-nav__badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    height: 1rem;
    width: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 2px solid #fff;
    background: #dc2626;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
}
@media (max-width: 767px) {
    body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════════════════
   MOBILE NAV DRAWER + OVERLAY
   ═══════════════════════════════════════════════════════ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    z-index: 195;
    background: #fff;
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mobile-nav-drawer::-webkit-scrollbar { display: none; }
[dir="rtl"] .mobile-nav-drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
}
.mobile-nav-drawer.is-open { transform: translateX(0); }
.mobile-nav-close {
    position: static;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}
.mobile-nav-close:hover { color: #000; }

/* Mobile nav header row — matches filter panel "FILTRES" header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}
.mobile-nav-header h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    color: #000;
}
/* Language switcher row */
.mobile-nav-lang {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eaeaea;
}
.mobile-nav-drawer .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav-drawer .menu li a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════════════════
   SIDE PANELS  (cart / wishlist drawer)
   ═══════════════════════════════════════════════════════ */
.cosmos-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cosmos-panel-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.cosmos-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    width: 380px;
    max-width: 90vw;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: none;
}
[dir="rtl"] .cosmos-side-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}
.cosmos-side-panel.is-open {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0,0,0,0.12);
}
.cosmos-side-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f8f8f8;
    flex-shrink: 0;
}
.cosmos-side-panel__eyebrow {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin: 0 0 2px;
}
.cosmos-side-panel__title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    margin: 0;
}
.cosmos-side-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cosmos-panel-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    font-size: 20px;
    transition: opacity 0.2s;
    padding: 0;
}
.cosmos-panel-close:hover { opacity: 0.5; }

/* ═══════════════════════════════════════════════════════
   BATCH 2 FIXES — RTL, MOBILE SLIDER, MENU HIERARCHY,
   FOOTER ORDER, PRIVACY TEXT
   ═══════════════════════════════════════════════════════ */

/* ── Logo subtitle: clear LTR margin, prevent clipping ─ */
.logo-subtitle {
    display: block;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.4em;
    color: #9ca3af;
    text-transform: uppercase;
    margin-top: -2px;
}
[dir="rtl"] .logo-subtitle {
    margin-inline-start: 0;
}
.logo-container,
.logo-brand {
    overflow: visible !important;
}

/* ── Slider mobile height: use the Customizer mobile var ─ */
@media (max-width: 767px) {
    .cosmos-sales-slider {
        height: var(--cosmos-slider-height-mobile, 240px) !important;
    }

    .cosmos-sales-slider.cosmos-hero-mobile {
        display: block !important;
        height: var(--cosmos-mob-hero-height, 280px) !important;
    }

    .cosmos-sales-slider.cosmos-hero-mobile ~ .cosmos-sales-slider.cosmos-hero-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .cosmos-sales-slider.cosmos-hero-mobile {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════
   MY ACCOUNT — LAYOUT & SPACING OPTIMIZATION
   ═══════════════════════════════════════════════════════ */
.woocommerce-account .max-w-site {
    max-width: 1680px !important; /* Premium wide layout for dashboard */
    width: 95% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (min-width: 1024px) {
    .woocommerce-account aside.lg\:w-80 {
        width: 290px !important; /* Slightly more compact sidebar */
    }
    .woocommerce-account .flex-col.lg\:flex-row {
        gap: 3rem !important; /* More breathing room between sidebar and content */
    }
}

/* ── Mobile Account Refinements (Phone View) ── */
@media (max-width: 1023px) {
    .woocommerce-account .max-w-site {
        padding-left: 14px !important;
        padding-right: 14px !important;
        width: 100% !important;
    }
    
    .woocommerce-account aside {
        margin-bottom: 2rem !important;
    }

    .cosmos-account-nav__item {
        padding: 10px 12px !important;
        background: #fff !important;
        border: 1px solid #f1f5f9 !important;
        margin-bottom: 8px !important;
        border-radius: 16px !important;
    }

    .cosmos-account-nav__item--active {
        background: var(--cosmos-primary, #e45366) !important;
        border-color: var(--cosmos-primary, #e45366) !important;
    }

    .cosmos-account-nav__icon {
        width: 36px !important;
        height: 36px !important;
    }

    .woocommerce-MyAccount-content {
        padding: 24px 18px !important;
        border-radius: 2rem !important;
        background: #fff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
    }
    
    /* Ensure tables don't break the layout on small screens */
    .woocommerce-MyAccount-content .woocommerce-orders-table,
    .woocommerce-MyAccount-content table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

.woocommerce-MyAccount-content {
    /* Ensure content area feels expansive */
    background: transparent;
    font-size: 15px !important; /* Slightly larger text for premium feel */
    line-height: 1.6 !important;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-size: 24px !important;
    font-weight: 900 !important;
    margin-bottom: 2rem !important;
}

.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content table {
    font-size: 14px !important;
}

.woocommerce-MyAccount-content table td {
    padding: 20px 16px !important; /* More breathing room in tables */
}

/* ── Account nav active indicator: correct side for RTL ─ */
.cosmos-account-nav__item--active {
    border: none !important;
}

/* ── Mobile menu visual hierarchy & Toggle ───────────────── */
.mobile-nav-drawer .menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    opacity: 0;
    margin-inline-start: 16px;
    border-radius: 0 0 8px 8px;
}

.mobile-nav-drawer .menu li[data-cmn="open"] > .sub-menu {
    max-height: 800px;
    opacity: 1;
}

.mobile-nav-drawer .menu .menu-item-has-children {
    position: relative;
}

.mobile-nav-drawer .menu .menu-item-has-children > a {
    padding-right: 44px;
}

.mobile-nav-drawer .menu .cmn-chevron {
    position: absolute;
    top: 6px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.2s ease;
}

.mobile-nav-drawer .menu .menu-item-has-children[data-cmn="open"] > .cmn-chevron {
    color: var(--brand-pink, #e45366);
    transform: rotate(180deg);
}

[dir="rtl"] .mobile-nav-drawer .menu .menu-item-has-children[data-cmn="open"] > .cmn-chevron {
    transform: rotate(-180deg);
}

[dir="rtl"] .mobile-nav-drawer .menu .menu-item-has-children > a {
    padding-right: 0;
    padding-left: 44px;
}

[dir="rtl"] .mobile-nav-drawer .menu .cmn-chevron {
    right: auto;
    left: 0;
}

[dir="rtl"] .mobile-nav-drawer .menu .sub-menu {
    margin-inline-start: 0;
    margin-inline-end: 16px;
}

/* Sub-menu items (1 level deep) */
.mobile-nav-drawer .menu .sub-menu > li > a {
    font-size: 13px;
    font-weight: 600;
    padding: 11px 16px;
    color: #374151;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-nav-drawer .menu .sub-menu > li > a::before {
    display: none !important;
}
[dir="rtl"] .mobile-nav-drawer .menu .sub-menu > li > a::before {
    margin-inline-end: 0;
}
/* Sub-sub-menu items (2 levels deep) */
.mobile-nav-drawer .menu .sub-menu .sub-menu > li > a {
    font-size: 12px;
    font-weight: 500;
    padding: 9px 16px;
    padding-inline-start: 28px;
    color: #9ca3af;
}

/* Mobile nav — filter-panel style (white, minimal, clean borders) */

/* Chevron: vertically centered, no background */
.mobile-nav-drawer .menu .cmn-chevron {
    top: 50%;
    transform: translateY(-50%);
    right: 4px;
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: transparent;
    color: #aaa;
    font-size: 11px;
}

.mobile-nav-drawer .menu .menu-item-has-children[data-cmn="open"] > .cmn-chevron {
    transform: translateY(-50%) rotate(180deg);
    color: #555;
}

[dir="rtl"] .mobile-nav-drawer .menu .menu-item-has-children[data-cmn="open"] > .cmn-chevron {
    transform: translateY(-50%) rotate(-180deg);
}

[dir="rtl"] .mobile-nav-drawer .menu .cmn-chevron {
    right: auto;
    left: 4px;
}

/* Sub-menu base (non-mobile): transparent background */
.mobile-nav-drawer .menu .sub-menu {
    border-inline-start: 0;
    background: transparent;
}

.mobile-nav-drawer .menu .sub-menu > li > a {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    color: #666;
}

.mobile-nav-drawer .menu .sub-menu .sub-menu > li > a {
    background: transparent;
    color: #9ca3af;
}

/* Mobile menu — filter-panel style */
@media (max-width: 767px) {
    .mobile-nav-drawer {
        background: #ffffff !important;
        padding: 24px !important;
    }

    .mobile-nav-drawer .menu {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-nav-drawer .menu > li {
        margin-bottom: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #eaeaea !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .mobile-nav-drawer .menu > li > a {
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        color: #333 !important;
        text-transform: none !important;
        padding: 13px 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .mobile-nav-drawer .menu .menu-item-has-children > a {
        padding-right: 40px !important;
    }

    [dir="rtl"] .mobile-nav-drawer .menu .menu-item-has-children > a {
        padding-right: 0 !important;
        padding-left: 40px !important;
    }

    .mobile-nav-drawer .menu .cmn-chevron {
        display: inline-flex !important;
        background: transparent !important;
        color: #aaa !important;
        top: 50% !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 0 !important;
        font-size: 13px !important;
    }

    .mobile-nav-drawer .menu .menu-item-has-children[data-cmn="open"] > .cmn-chevron {
        transform: translateY(-50%) rotate(180deg) !important;
        color: #555 !important;
    }

    [dir="rtl"] .mobile-nav-drawer .menu .menu-item-has-children[data-cmn="open"] > .cmn-chevron {
        transform: translateY(-50%) rotate(-180deg) !important;
    }

    [dir="rtl"] .mobile-nav-drawer .menu .cmn-chevron {
        right: auto !important;
        left: 0 !important;
    }

    .mobile-nav-drawer .menu .sub-menu {
        margin: 0 !important;
        padding: 0 0 4px 16px !important;
        border: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-inline-start: 0 !important;
    }

    [dir="rtl"] .mobile-nav-drawer .menu .sub-menu {
        padding-left: 0 !important;
        padding-right: 16px !important;
    }

    .mobile-nav-drawer .menu .sub-menu > li {
        margin-bottom: 0 !important;
    }

    .mobile-nav-drawer .menu .sub-menu > li > a {
        margin-bottom: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 10px 0 !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        color: #666 !important;
        text-transform: none !important;
    }

    .mobile-nav-drawer .menu .sub-menu > li > a::before {
        display: none !important;
    }

    .mobile-nav-drawer .menu .sub-menu .sub-menu {
        margin-top: 0 !important;
        padding: 0 0 0 12px !important;
    }

    [dir="rtl"] .mobile-nav-drawer .menu .sub-menu .sub-menu {
        padding-left: 0 !important;
        padding-right: 12px !important;
    }

    .mobile-nav-drawer .menu .sub-menu .sub-menu > li > a {
        border: 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        background: transparent !important;
        color: #9ca3af !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        padding: 8px 0 !important;
        text-transform: none !important;
    }

    /* "Tout afficher" link */
    .mobile-nav-drawer .menu .menu-item-all-shortcut a {
        color: #333 !important;
        text-decoration: underline !important;
        font-weight: 600 !important;
        font-size: 12px !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        padding: 10px 0 !important;
        border: 0 !important;
    }
}

/* Category labels: prevent long names from colliding with neighboring items */
.category-rail .category-item {
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.category-rail .category-label {
    display: block;
    width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    max-width: 100%;
    padding-inline: 2px;
    box-sizing: border-box;
}

/* ── Footer: social section first on mobile ─────────────── */
@media (max-width: 639px) {
    .lg\:col-span-7 {
        display: flex;
        flex-direction: column;
    }
    .footer-social-section {
        order: -1;
    }
}

/* ── Privacy policy text: readable dark gray text on light background ─── */
.woocommerce-privacy-policy-text {
    color: #9ca3af !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
}
.woocommerce-privacy-policy-text a {
    color: #374151 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

/* ── Toast: ensure z-index wins over mobile bottom nav ──── */
@media (max-width: 767px) {
    .cosmos-toast {
        bottom: calc(5rem + env(safe-area-inset-bottom));
        top: auto;
        transform: translateX(-50%) translateY(2.5rem);
        left: 50%;
        right: auto;
        max-width: calc(100vw - 32px);
        z-index: 9999;
    }
    .cosmos-toast.is-visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════
   BUTTON TEXT — force white on all .cosmos-btn links
   ═══════════════════════════════════════════════════════ */
a.cosmos-btn,
a.cosmos-btn:visited,
a.cosmos-btn:hover,
a.cosmos-btn:focus {
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════
   PAGE TITLE SPACING — reduce gap below page/shop titles
   ═══════════════════════════════════════════════════════ */
.woocommerce-products-header,
.page-header,
.entry-header,
.woocommerce-page .woocommerce > h1,
.woocommerce-page .woocommerce > h2,
body .woocommerce > h1.page-title {
    margin-bottom: 1rem !important;
    padding-bottom: 0 !important;
}
.woocommerce-page .woocommerce-breadcrumb,
nav[aria-label="Breadcrumb"] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════
   LARGE BANNER 1 — add side margin like multi-product-banner
   ═══════════════════════════════════════════════════════ */
.perfume-banner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: var(--radius-card, 20px) !important;
    min-height: var(--cosmos-feature-banner-height, 300px) !important;
}

.perfume-banner .cosmos-banner-slideshow,
.perfume-banner .cosmos-banner-frame,
.multi-product-banner .cosmos-banner-slideshow,
.multi-product-banner .cosmos-banner-frame {
    height: 100%;
}

/* ═══════════════════════════════════════════════════════
   MOBILE OVERLAY — raise z-index above bottom nav when open
   ═══════════════════════════════════════════════════════ */
.mobile-nav-overlay.is-open {
    z-index: 210 !important;
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT — first & last name side by side (when enabled)
   ═══════════════════════════════════════════════════════ */
.cosmos-checkout-names-inline #billing_first_name_field,
.cosmos-checkout-names-inline #billing_last_name_field {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top;
}
.cosmos-checkout-names-inline #billing_first_name_field {
    margin-right: 4% !important;
}

/* ═══════════════════════════════════════════════════════
   SEARCH, QUICK VIEW, CATEGORY RAIL, WISHLIST OVERRIDES
   ═══════════════════════════════════════════════════════ */
.cosmos-home-categories {
    position: relative;
}

.cosmos-home-categories__shell {
    position: relative;
    padding-inline: 42px;
}

.cosmos-home-categories__viewport {
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
}

.cosmos-home-categories__track {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 8px 2px 10px;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    touch-action: auto !important;
    cursor: grab;
    width: 100% !important;
    min-width: 100% !important;
}

.cosmos-home-categories__track::-webkit-scrollbar {
    display: none;
}

.cosmos-home-categories__track.is-dragging,
[data-is-interacting="1"] {
    cursor: grabbing;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.cosmos-home-categories__card {
    display: flex;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    flex: 0 0 140px !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    scroll-snap-align: start;
}

.cosmos-home-categories__visual {
    width: 92px;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f6f6f7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cosmos-home-categories__card:hover .cosmos-home-categories__visual,
.cosmos-home-categories__card:focus-visible .cosmos-home-categories__visual {
    transform: translateY(-3px);
    border-color: var(--brand-pink);
    box-shadow: 0 12px 28px rgba(228, 83, 102, 0.18);
}

.cosmos-home-categories__shell--square .cosmos-home-categories__visual {
    border-radius: 24px;
}

.cosmos-home-categories__shell--card .cosmos-home-categories__card {
    width: 136px;
    min-width: 136px;
    padding: 14px 12px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cosmos-home-categories__shell--card .cosmos-home-categories__visual {
    width: 100%;
    height: 118px;
    border-radius: 20px;
    box-shadow: none;
}

.cosmos-home-categories__visual--fallback {
    color: var(--brand-pink);
}

.cosmos-home-categories__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cosmos-home-categories__letter {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-pink);
}

.cosmos-home-categories__label {
    display: -webkit-box;
    min-height: 2.5em;
    width: 100%;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    color: #53535a;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-inline: 2px;
    box-sizing: border-box;
}

.cosmos-home-categories__arrow {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    transform: translateY(-50%);
    z-index: 3;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.cosmos-home-categories__arrow:hover {
    background: var(--brand-dark);
    color: #fff;
}

.cosmos-home-categories__arrow[disabled] {
    opacity: 0.3;
    pointer-events: none;
}

.cosmos-home-categories__arrow--prev {
    left: 0;
}

.cosmos-home-categories__arrow--next {
    right: 0;
}

@media (min-width: 769px) {
    .cosmos-home-categories__track {
        flex-wrap: wrap !important;
        overflow: visible !important;
        justify-content: center !important;
        gap: 30px 20px !important;
        cursor: default !important;
    }

    .cosmos-home-categories__arrow {
        display: none !important;
    }

    .cosmos-home-categories__shell {
        padding-inline: 0 !important;
    }

    .cosmos-home-categories__shell--card .cosmos-home-categories__card {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
    }

    .cosmos-home-categories__shell--card .cosmos-home-categories__label {
        min-height: 2.8em;
        line-height: 1.35;
    }
}

@media (max-width: 768px) {
    .cosmos-home-categories__shell {
        padding-inline: 0;
    }

    .cosmos-home-categories__track {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity;
        padding-bottom: 10px;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        cursor: grab;
        width: 100% !important;
    }

    .category-rail.is-dragging,
    .category-rail[data-is-interacting="1"] {
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
    }

    .cosmos-home-categories__card {
        flex: 0 0 calc((100% - ((var(--home-category-phone-items, 3.3) - 1) * 14px)) / var(--home-category-phone-items, 3.3)) !important;
        width: calc((100% - ((var(--home-category-phone-items, 3.3) - 1) * 14px)) / var(--home-category-phone-items, 3.3)) !important;
        min-width: calc((100% - ((var(--home-category-phone-items, 3.3) - 1) * 14px)) / var(--home-category-phone-items, 3.3)) !important;
        max-width: calc((100% - ((var(--home-category-phone-items, 3.3) - 1) * 14px)) / var(--home-category-phone-items, 3.3)) !important;
    }

    .cosmos-home-categories__shell--card .cosmos-home-categories__card {
        width: calc((100% - ((var(--home-category-phone-items, 3.3) - 1) * 14px)) / var(--home-category-phone-items, 3.3));
        min-width: calc((100% - ((var(--home-category-phone-items, 3.3) - 1) * 14px)) / var(--home-category-phone-items, 3.3));
        max-width: calc((100% - ((var(--home-category-phone-items, 3.3) - 1) * 14px)) / var(--home-category-phone-items, 3.3));
    }

    .cosmos-home-categories__arrow {
        display: none;
    }
}

.category-rail--square .category-circle {
    border-radius: 24px;
}

.category-rail--card {
    align-items: stretch;
    gap: 16px;
}

.category-rail--card .category-item {
    width: 132px;
    padding: 14px 12px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.category-rail--card .category-circle {
    width: 100%;
    height: 118px;
    border-radius: 20px;
    box-shadow: none;
}

.category-rail--card .category-label {
    white-space: normal;
    line-height: 1.35;
    margin-top: 12px;
}

.category-rail[data-category-autoplay="1"] {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    cursor: grab;
    touch-action: auto !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .perfume-banner {
        min-height: var(--cosmos-feature-banner-height-mobile, 200px) !important;
    }

    .category-rail {
        gap: 14px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: auto !important;
        scrollbar-width: none !important;
    }
    .category-rail::-webkit-scrollbar {
        display: none !important;
    }

    .category-rail .category-item {
        display: flex;
        flex-shrink: 0 !important;
        width: calc((100% - ((var(--category-phone-items, 4) - 1) * 14px)) / var(--category-phone-items, 4));
        min-width: calc((100% - ((var(--category-phone-items, 4) - 1) * 14px)) / var(--category-phone-items, 4));
        max-width: calc((100% - ((var(--category-phone-items, 4) - 1) * 14px)) / var(--category-phone-items, 4));
    }

    .category-rail--card .category-item {
        width: calc((100% - ((var(--category-phone-items, 4) - 1) * 14px)) / var(--category-phone-items, 4));
        min-width: calc((100% - ((var(--category-phone-items, 4) - 1) * 14px)) / var(--category-phone-items, 4));
        max-width: calc((100% - ((var(--category-phone-items, 4) - 1) * 14px)) / var(--category-phone-items, 4));
    }

    .category-rail .category-label {
        min-height: 2.8em;
    }
}

/* --- Disable Category Slider on Desktop --- */
@media (min-width: 769px) {
    .category-rail.cosmos-orbit-container {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        justify-content: center !important;
        gap: 30px 20px !important;
        padding-bottom: 0 !important;
        cursor: default !important;
        touch-action: auto !important;
        display: flex !important;
    }
    .category-rail.cosmos-orbit-container .category-item {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        flex-shrink: 0 !important;
    }
    /* Hide the cloned items used for infinite loop on desktop */
    .category-rail.cosmos-orbit-container .category-item[aria-hidden="true"] {
        display: none !important;
    }
}


#cosmos-header-wrapper,
.cosmos-header-wrapper {
    overflow: visible !important;
    isolation: isolate !important;
    z-index: 2500 !important;
}
#cosmos-header-wrapper > header,
.cmn-bar,
.cmn-wrap,
.cmn-links,
.cmn-links > li,
.cmn-links .sub-menu {
    overflow: visible !important;
}

/* ── Sub-menu viewport-edge flip ── */
.cmn-links > li > .sub-menu.cmn-sub-flip {
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
}
.cmn-links .sub-menu li > .sub-menu.cmn-sub-flip {
    inset-inline-start: auto !important;
    inset-inline-end: 100% !important;
}

/* Ensure sub-menu items stay contained and aligned */
.cmn-links .sub-menu {
    display: flex !important;
    flex-direction: column !important;
}

/* ── Products Per Row (archive grid) ── */
.cosmos-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .cosmos-products-grid {
        grid-template-columns: repeat(var(--products-cols, 4), minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* ══════════════════════════════════════════════════════
   RELATED PRODUCTS PANEL — "Complétez votre routine"
   ══════════════════════════════════════════════════════ */
.cosmos-related-panel {
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
}
@media (max-width: 1023px) {
    .cosmos-related-panel { max-width: 100%; }
}
.cosmos-related-panel__header {
    margin-bottom: 20px;
}
.cosmos-related-panel__eyebrow {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8; /* More subtle gray */
    margin-bottom: 6px;
}
.cosmos-related-panel__title {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #111;
    margin: 0;
}
.cosmos-related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cosmos-related-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f7;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    position: relative;
    animation: cosmos-related-in 0.35s ease both;
    animation-delay: calc(var(--ri, 0) * 60ms);
}
@keyframes cosmos-related-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cosmos-related-item:first-child {
    border-top: 1px solid #f5f5f7;
}
.cosmos-related-item:hover {
    background: #fff;
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 22px;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    z-index: 10;
}
.cosmos-related-item:hover + .cosmos-related-item {
    border-top-color: transparent;
}
.cosmos-related-item__img {
    position: relative;
    width: 76px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.cosmos-related-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Product shots usually look better contained */
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px;
}
.cosmos-related-item:hover .cosmos-related-item__img {
    border-color: var(--cosmos-primary, #e45366);
    background: #fff;
}
.cosmos-related-item:hover .cosmos-related-item__img img {
    transform: scale(1.1) rotate(2deg);
}
.cosmos-related-item__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--cosmos-primary, #e45366);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(228, 83, 102, 0.2);
}
.cosmos-related-item__body {
    flex: 1;
    min-width: 0;
}
.cosmos-related-item__cat {
    display: inline-block;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cosmos-primary, #e45366);
    margin-bottom: 6px;
    background: rgba(228, 83, 102, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
}
.cosmos-related-item__name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0 0 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cosmos-related-item__price {
    font-size: 14px;
    font-weight: 900;
    color: var(--cosmos-primary, #e45366);
    margin: 0;
    letter-spacing: -0.01em;
    background: rgba(228, 83, 102, 0.07);
    padding: 5px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(228, 83, 102, 0.1);
}
.cosmos-related-item:hover .cosmos-related-item__price {
    background: var(--cosmos-primary, #e45366);
    color: #fff;
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 8px 20px rgba(228, 83, 102, 0.2);
    border-color: transparent;
}
.cosmos-related-item__price .woocommerce-Price-currencySymbol {
    font-size: 10px;
    font-weight: 700;
    color: inherit;
    opacity: 0.7;
    margin-left: 4px;
}
.cosmos-related-item:hover .cosmos-related-item__price .woocommerce-Price-currencySymbol {
    color: #fff;
    opacity: 0.9;
}
.cosmos-related-item__price del {
    color: #aaa;
    font-weight: 600;
    font-size: 12px;
    margin-right: 6px;
}
.cosmos-related-item__price ins {
    text-decoration: none;
    color: var(--cosmos-primary, #e45366);
}
.cosmos-related-item__arrow {
    flex-shrink: 0;
    color: #d1d5db;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    display: flex;
    align-items: center;
}
.cosmos-related-item:hover .cosmos-related-item__arrow {
    color: var(--cosmos-primary, #e45366);
    transform: translateX(5px);
}

.cosmos-search-empty-wrap {
    padding: 8px 0 14px;
}

.cosmos-search-more {
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 38%);
}

.cosmos-search-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--brand-pink, #e45366);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cosmos-search-more-link:hover {
    background: var(--brand-pink);
    color: #fff;
}

/* ══════════════════════════════════════════════
   LIVE SEARCH RESULTS STYLING
   ══════════════════════════════════════════════ */
.cosmos-search-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cosmos-search-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.cosmos-search-item:last-child {
    border-bottom: none;
}

.cosmos-search-item:hover,
.cosmos-search-item--focus {
    background-color: #fdf1f3;
    outline: none;
}

/* Keyboard-navigation highlight ring */
.cosmos-search-item--focus {
    box-shadow: inset 3px 0 0 var(--brand-pink, #e45366);
}

/* Query-term highlight inside product name */
.cosmos-search-hl {
    background: transparent;
    color: var(--brand-pink, #e45366);
    font-weight: 800;
    font-style: normal;
}

/* Sale badge on the thumbnail (like oos-band) */
.cosmos-search-sale-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e45366, #ff7c8a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    border-radius: 0 0 7px 7px;
}
.cosmos-search-sale-band span {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1;
}

/* ── Customizer product search results ── */
.cosmos-product-search-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    max-height: 360px;
    overflow-y: auto;
    margin-top: 4px;
}
.cosmos-product-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
    transition: background .15s;
}
.cosmos-product-result:last-child { border-bottom: none; }
.cosmos-product-result:hover { background: #fdf1f3; }
.cosmos-product-result.cps-already { opacity: .4; pointer-events: none; }
.cps-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}
.cps-thumb-wrap img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}
.cps-no-thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #f0f0f0;
}
.cps-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    padding: 1px 0;
    line-height: 1.4;
    border-radius: 0 0 4px 4px;
}
.cps-badge--oos  { background: #e03a3a; }
.cps-badge--sale { background: #c9184a; }
.cps-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cps-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cps-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.cps-cat, .cps-sku {
    font-size: 10px;
    color: #888;
    background: #f4f4f4;
    border-radius: 3px;
    padding: 1px 4px;
}
.cps-price {
    font-size: 11px;
    font-weight: 700;
    color: #c9184a;
    white-space: nowrap;
    flex-shrink: 0;
}
mark.cps-hl {
    background: none;
    color: #c9184a;
    font-weight: 800;
}
.cps-empty {
    padding: 10px;
    color: #999;
    font-size: 12px;
    text-align: center;
}


    font-size: 10px;
    color: #d1d5db;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.cosmos-search-item:hover .cosmos-search-arrow {
    transform: translateX(3px);
    color: var(--brand-pink, #e45366);
}

.cosmos-search-close {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

.cosmos-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cosmos-search-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.cosmos-search-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.cosmos-search-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-pink, #e45366);
}

.cosmos-search-price .woocommerce-Price-currencySymbol {
    font-size: 10px;
    margin-left: 2px;
}

.cosmos-search-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.cosmos-quick-view__main-img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: transparent;
}

.cosmos-quick-view__main-img-wrap,
.cosmos-quick-view__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important; /* Force white background for desktop */
}

.cosmos-quick-view__gallery-wrap {
    background: #ffffff !important;
}

.cosmos-quick-view {
    background: #ffffff !important;
}

.cosmos-quick-view__badge {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.cosmos-quick-view__badge a {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.2s;
}

.cosmos-quick-view__badge a:hover {
    color: var(--brand-pink);
}

.cosmos-quick-view__title {
    margin: 0 0 10px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #111827 !important;
    letter-spacing: -0.02em !important;
}

.cosmos-quick-view__excerpt {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin-bottom: 20px !important;
}

.single-product .cosmos-wishlist-toggle.cosmos-wishlist--active {
    background: #fff0f2 !important;
    border-color: var(--brand-pink) !important;
    color: var(--brand-pink) !important;
}

.cosmos-modal__dialog {
    background: #ffffff !important;
}

.single-product .cosmos-wishlist-toggle.cosmos-wishlist--active i {
    color: var(--brand-pink) !important;
}

/* Hide product meta (SKU, Categories) for minimalist look across all detail views */
.single-product .product_meta,
.cosmos-quick-view .product_meta,
.cosmos-modal .product_meta {
    display: none !important;
}

/* ══════════════════════════════════════════════
   MOBILE EXPERIENCE — merged from mobile-experience.css
   ══════════════════════════════════════════════ */
/* â”€â”€ 1. GLOBAL LAYOUT STABILIZATION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html {
    overflow-x: clip;
    scroll-behavior: smooth;
    background: #fff;
}
body {
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.6s ease !important;
}

html.is-locked, 
body.is-locked {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
}

body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) #main-content {
    margin-top: clamp(10px, 1.2vw, 16px);
}

body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) .site-content {
    margin-top: clamp(10px, 1.2vw, 16px);
}

body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) > main,
body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) > .site-content,
body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) > .woocommerce {
    margin-top: clamp(10px, 1.2vw, 16px);
}

body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-products-header,
body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) .entry-header,
body:not(.is-mobile-popup-open):not(.woocommerce-cart):not(.woocommerce-checkout) .page-header {
    margin-top: clamp(10px, 1.2vw, 16px) !important;
}

body.is-mobile-popup-open #cosmos-header-wrapper,
body.is-mobile-popup-open #main-content,
body.is-mobile-popup-open footer,
body.is-mobile-popup-open .site-content {
    pointer-events: none;
    overflow: hidden !important;
}

/* â”€â”€ 2. MOBILE FIXED HEADER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    #cosmos-header-wrapper, 
    .cosmos-header-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 2000 !important;
        background: #fff !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease !important; 
    }

    /* Force remove all borders and shadows on mobile header elements in all states */
    #cosmos-header-wrapper,
    .cosmos-header-wrapper,
    #cosmos-header-wrapper.scrolled,
    .cosmos-header-wrapper.scrolled,
    #cosmos-header-wrapper header,
    .cosmos-header-wrapper header,
    #cosmos-header-wrapper .bs-header-main,
    .cosmos-header-wrapper .bs-header-main,
    #cosmos-header-wrapper.scrolled .bs-header-main,
    .cosmos-header-wrapper.scrolled .bs-header-main,
    #cosmos-header-wrapper .bs-top-bar,
    .cosmos-header-wrapper .bs-top-bar,
    #cosmos-header-wrapper.scrolled .bs-top-bar,
    .cosmos-header-wrapper.scrolled .bs-top-bar {
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* Force remove all borders, shadows, and outlines around the search bar elements on mobile */
    #cosmos-header-wrapper .bs-search-wrap,
    #cosmos-header-wrapper .bs-search-wrapper,
    #cosmos-header-wrapper .bs-search-input,
    #cosmos-header-wrapper .bs-search-input:focus,
    #cosmos-header-wrapper #cosmos-search-bar,
    #cosmos-header-wrapper .cosmos-search-wrapper,
    #cosmos-header-wrapper input[data-live-search-input],
    #cosmos-header-wrapper input[data-live-search-input]:focus {
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .bs-header-main {
        border-bottom: none !important;
    }

    /* Admin Bar awareness */
    body.admin-bar #cosmos-header-wrapper {
        top: 32px !important;
    }

    @media (max-width: 782px) {
        body.admin-bar #cosmos-header-wrapper {
            top: 46px !important;
        }
    }

    /* Push ALL page content below the fixed header — covers every template */
    body {
        padding-top: var(--header-height, 100px) !important;
    }

    /* Remove conflicting inner top spacing on main wrappers — body padding handles it */
    #main-content,
    main[id],
    .site-main,
    .woocommerce-page > main,
    .single-product main,
    .woocommerce-shop main {
        padding-top: 4px !important;
        margin-top: 0 !important;
    }

    input[type="text"], input[type="search"], input[type="tel"],
    input[type="email"], input[type="number"], select, textarea {
        font-size: 16px !important;
    }


    /* â”€â”€ 3. PREMIUM BOTTOM SHEETS (POPUPS) â”€â”€â”€â”€â”€â”€â”€ */
    .cosmos-mobile-popup {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        transform: translateY(110%);
        visibility: hidden;
        opacity: 0;
        max-height: 88vh !important;
        height: auto !important;
        background: #fff !important;
        border-radius: 40px 40px 0 0 !important;
        box-shadow: none !important;
        transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.1), opacity 0.4s ease !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 0 !important; /* Managed by children or fixed height */
        overflow: hidden !important;
        /* Ensure background covers the very bottom on all devices */
        padding-bottom: env(safe-area-inset-bottom) !important;
        background-clip: padding-box !important;
    }

    .cosmos-mobile-popup.is-popup-active {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .cosmos-mobile-popup__handle {
        width: 36px !important;
        height: 4px !important;
        background: #e5e7eb !important;
        margin: 12px auto 4px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }

    .cosmos-mobile-popup__header {
        padding: 20px 24px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        flex-shrink: 0 !important;
    }

    .cosmos-mobile-popup__title {
        font-size: 28px !important;
        font-weight: 900 !important;
        letter-spacing: -0.04em !important;
        color: #111827 !important;
    }

    .cosmos-mobile-popup__subtitle {
        font-size: 13px !important;
        color: #64748b !important;
        font-weight: 500 !important;
        margin: 0 !important;
    }

    .cosmos-mobile-popup__body {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 24px 32px !important;
        overscroll-behavior: contain !important;
        background: #fff !important;
    }

    /* Account Popup Specifics */
    .cosmos-account-welcome {
        text-align: center !important;
        margin-bottom: 24px !important;
    }
    .cosmos-account-welcome__avatar {
        width: 80px !important;
        height: 80px !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 16px !important;
        color: #94a3b8 !important;
        font-size: 32px !important;
        border: 1px solid #f1f5f9 !important;
    }
    .cosmos-account-welcome__heading {
        font-size: 18px !important;
        font-weight: 900 !important;
        color: #111827 !important;
        margin-bottom: 4px !important;
        letter-spacing: -0.02em !important;
    }
    .cosmos-account-welcome__sub {
        font-size: 13px !important;
        color: #64748b !important;
    }
    .cosmos-account-welcome__dual-btn {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }
    .cosmos-account-welcome__btn {
        height: 48px !important;
        border-radius: 14px !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid #e2e8f0 !important;
        background: #fff !important;
        color: #64748b !important;
    }
    .cosmos-account-welcome__btn.active {
        background: var(--cosmos-primary, #e45366) !important;
        border-color: var(--cosmos-primary, #e45366) !important;
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(228, 83, 102, 0.2) !important;
    }

    .cosmos-account-welcome__form input {
        width: 100% !important;
        height: 52px !important;
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 14px !important;
        padding: 0 16px !important;
        margin-bottom: 12px !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
        color: #111827 !important;
        font-family: inherit !important;
        font-weight: 500 !important;
    }
    .cosmos-account-welcome__form input::placeholder {
        color: #94a3b8 !important;
        opacity: 1 !important;
        font-weight: 400 !important;
    }
    .cosmos-gender-toggle {
        display: flex !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }
    .cosmos-gender-option {
        flex: 1 !important;
        position: relative !important;
        cursor: pointer !important;
        margin: 0 !important;
    }
    .cosmos-gender-option input {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
        margin: 0 !important;
        height: 0 !important;
    }
    .cosmos-gender-label {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 52px !important;
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 14px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #94a3b8 !important;
        transition: all 0.3s ease !important;
    }
    .cosmos-gender-option input:checked + .cosmos-gender-label {
        background: #fff !important;
        border-color: var(--cosmos-primary, #e45366) !important;
        color: var(--cosmos-primary, #e45366) !important;
        box-shadow: 0 0 0 4px rgba(228, 83, 102, 0.1) !important;
    }
    .cosmos-account-welcome__form input:focus {
        background: #fff !important;
        border-color: var(--cosmos-primary, #e45366) !important;
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(228, 83, 102, 0.1) !important;
    }
    .cosmos-account-welcome__submit {
        width: 100% !important;
        height: 58px !important;
        background: var(--brand-pink, #e45366) !important;
        color: #fff !important;
        border-radius: 18px !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.12em !important;
        margin-top: 10px !important;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        cursor: pointer !important;
        border: none !important;
        box-shadow: 0 10px 25px rgba(228, 83, 102, 0.2) !important;
    }
    .cosmos-account-welcome__submit:hover,
    .cosmos-account-welcome__submit:active {
        background: #cf3a50 !important;
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(228, 83, 102, 0.3) !important;
    }
    .cosmos-account-welcome__submit:active {
        transform: translateY(0) scale(0.98) !important;
    }

    .cosmos-mobile-popup__search-shell {
        position: sticky !important;
        top: 0 !important;
        z-index: 12 !important;
        padding-top: 2px !important;
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
        background: #fff !important;
        box-shadow: 0 10px 20px rgba(255,255,255,0.98) !important;
    }

    .cosmos-mobile-popup__search-form {
        position: relative !important;
    }

    .cosmos-mobile-popup__search-input {
        width: 100% !important;
        min-height: 54px !important;
        padding: 0 56px 0 18px !important;
        border: 1px solid rgba(15,23,42,0.08) !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        color: #111827 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        outline: none !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.6) !important;
    }

    .cosmos-mobile-popup__search-submit {
        position: absolute !important;
        top: 50% !important;
        right: 8px !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        border: none !important;
        border-radius: 14px !important;
        background: var(--cosmos-primary, #e45366) !important;
        color: #fff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(228, 83, 102, 0.2) !important;
    }

    .cosmos-mobile-popup__search-results {
        margin-top: 10px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 18px 34px rgba(15,23,42,0.12) !important;
        background: #fff !important;
    }

    .cosmos-mobile-popup--shop .cosmos-mobile-popup__body {
        padding-top: 0 !important;
    }

    .cosmos-mobile-popup--shop .cosmos-shop-featured-card,
    .cosmos-mobile-popup--shop .cosmos-shop-catlist {
        position: relative !important;
        z-index: 1 !important;
    }

    .cosmos-mobile-popup__panel--cart,
    .cosmos-mobile-popup__panel--wishlist {
        min-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .cosmos-mobile-popup__panel[hidden],
    .cosmos-mobile-popup__panel--cart[hidden],
    .cosmos-mobile-popup__panel--wishlist[hidden] {
        display: none !important;
    }

    .cosmos-mobile-popup__panel--cart .cosmos-mini-cart-contents {
        min-height: 100% !important;
    }

    .cosmos-mobile-popup__panel--cart .cosmos-mini-cart__footer {
        position: sticky !important;
        bottom: 0 !important;
        margin: 0 -24px !important;
        padding: 24px 24px calc(24px + env(safe-area-inset-bottom)) !important;
        box-shadow: none !important;
        z-index: 10 !important;
        background: #fff !important;
        border-top: 1px solid rgba(0,0,0,0.05) !important;
    }

    .cosmos-mobile-popup__panel--cart .cosmos-mini-cart__checkout-link {
        min-height: 56px !important;
        border-radius: 18px !important;
    }

    .cosmos-mobile-popup__close {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 38px !important;
        height: 38px !important;
        background: #fff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        color: #000 !important;
        z-index: 50 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .cosmos-mobile-popup__close:active {
        transform: scale(0.85) !important;
    }

    /* Tabs */
    .cosmos-mobile-popup__tabs {
        display: flex !important;
        background: #f1f5f9 !important;
        margin: 0 20px 20px !important;
        padding: 4px !important;
        border-radius: 16px !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    .cosmos-mobile-popup__tab {
        flex: 1 !important;
        padding: 10px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        border-radius: 12px !important;
        background: transparent !important;
        border: none !important;
    }

    .cosmos-mobile-popup__tab.active {
        background: #fff !important;
        color: #000 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    }

    /* Featured Shop Card */
    .cosmos-shop-featured-card {
        display: flex !important;
        align-items: center !important;
        padding: 24px !important;
        background: linear-gradient(135deg, #111111 0%, #2d2d2d 100%) !important;
        border-radius: 28px !important;
        margin-bottom: 24px !important;
        color: #fff !important;
        gap: 20px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    }

    /* Category List */
    .cosmos-shop-catlist {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .cosmos-shop-catitem__link {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 14px !important;
        background: #fff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 24px !important;
    }

    .cosmos-shop-catitem__chips {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 0 10px 10px 72px !important; /* Align with the text of the parent */
        margin-top: -8px !important;
    }

    .cosmos-shop-chip {
        display: inline-flex !important;
        align-items: center !important;
        padding: 6px 12px !important;
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 14px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        transition: all 0.2s ease !important;
        letter-spacing: 0.01em !important;
    }

    .cosmos-shop-chip:active {
        background: #111111 !important;
        color: #fff !important;
        border-color: #111111 !important;
    }

    /* Account Section — see mobile-experience.css for full rules */

    /* Backdrop - Removed blur for better clarity */
    #cosmos-mobile-popup-backdrop {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 9000 !important; 
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease !important;
    }

    /* Enhanced Mobile Drawer Animations */
    .mobile-nav-drawer {
        z-index: 12000 !important;
        background: #fff !important;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .mobile-nav-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 11500 !important;
        background: rgba(0,0,0,0.4) !important;
        transition: opacity 0.5s ease !important;
        pointer-events: none;
        display: block !important;
    }

    .mobile-nav-overlay.is-open {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    /* Universal blur for site content when menu is open */
    body.is-mobile-menu-open > :not(.mobile-nav-drawer):not(.mobile-nav-overlay):not(script):not(style) {
        filter: blur(5px) !important;
        -webkit-filter: blur(5px) !important;
        transition: filter 0.4s ease !important;
    }

    /* Prevent double backdrop blur/color when menu is open */
    body.is-mobile-menu-open #cosmos-mobile-popup-backdrop {
        display: none !important;
    }

    body.is-mobile-popup-open #cosmos-mobile-popup-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* â”€â”€ 4. QUICK VIEW MODAL & SCROLL FIX â”€â”€â”€â”€â”€â”€â”€â”€ */
    .cosmos-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 20000 !important;
        display: none;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px !important; 
        background: rgba(0,0,0,0.7) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        overflow: hidden !important; /* Use internal scroll */
    }

    .cosmos-modal.is-open {
        display: flex !important;
    }

    .cosmos-modal__dialog {
        width: 100% !important;
        max-width: 480px !important;
        max-height: calc(100vh - 32px) !important;
        background: #fff !important;
        border-radius: 32px !important;
        position: relative !important;
        box-shadow: none !important;
        transform: scale(0.95);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        margin: 0 !important; /* Rely on flex centering */
        pointer-events: auto !important;
        overflow: hidden !important; 
        display: flex !important;
        flex-direction: column !important;
    }

    .cosmos-modal__close {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        z-index: 100 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        cursor: pointer !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        color: #000 !important;
        transition: all 0.3s ease !important;
    }

    .cosmos-modal__close:active {
        transform: scale(0.9);
    }

    /* Quick View Internal Layout */
    .cosmos-quick-view {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        max-height: inherit !important;
        justify-content: center !important;
    }

    .cosmos-quick-view__gallery-wrap {
        flex-shrink: 0 !important;
        background: #ffffff !important;
        padding: 0 !important;
        height: 48vh !important; /* Increased for larger presence */
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }


    .cosmos-quick-view__main-img-wrap {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .cosmos-quick-view__main-img {
        max-height: 100% !important;
        max-width: 100% !important;
        width: 100% !important; /* Force width for larger look */
        height: 100% !important;
        object-fit: contain !important; /* Keep aspect ratio but fill space */
        object-position: center center !important;
        margin: 0 auto !important;
    }

    .cosmos-quick-view__thumbs {
        display: flex !important;
        gap: 8px !important;
        padding: 10px 0 !important;
        justify-content: center !important;
        width: 100% !important;
        overflow-x: auto !important;
    }

    .cosmos-quick-view__thumb {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        border: 2px solid transparent !important;
        padding: 0 !important;
        background: #fff !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    .cosmos-quick-view__thumb.is-active {
        border-color: #e45366 !important;
    }

    .cosmos-quick-view__thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }



    .cosmos-quick-view__content {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .cosmos-quick-view__actions {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding: 10px 0 !important;
    }

    .cosmos-quick-view__actions .btn-basket,
    .cosmos-quick-view__actions .cosmos-wishlist-toggle {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        justify-content: center !important;
        display: flex !important;
        padding: 14px !important;
        border-radius: 16px !important;
        flex: none !important;
    }


    .cosmos-modal.is-open .cosmos-modal__dialog {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    .cosmos-ajax-add-to-cart.is-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #fff !important;
        border-color: #10b981 !important;
        box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3) !important;
        animation: cosmosAtcFlip 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
    }
    .cosmos-sp__cart-group.is-success,
    .cosmos-sp__cart-group:has(.is-success) {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        transition: background 0.25s ease !important;
    }

    /* Badge Pop Animation */
    .pop-anim {
        animation: cosmos-badge-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes cosmos-badge-pop {
        0% { transform: scale(1); }
        50% { transform: scale(1.4); }
        100% { transform: scale(1); }
    }

    /* â”€â”€ 5. SINGLE PRODUCT REFINEMENTS â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .cosmos-accordion {
        border-bottom: 1px solid #f1f5f9;
        overflow: hidden;
    }
    .cosmos-accordion__summary {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 20px 0 !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        cursor: pointer !important;
        list-style: none !important;
    }
    .cosmos-accordion__summary::-webkit-details-marker {
        display: none !important;
    }
    .cosmos-accordion__content {
        padding-bottom: 24px !important;
    }
    
    /* Sticky Bar safe area padding */
    .safe-area-bottom {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }

    @keyframes slide-up {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .animate-slide-up {
        animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ── BOUTIQUE INPUT & SELECT SANITIZATION ───── */
body #cosmos-checkout-container input.input-text, 
body #cosmos-checkout-container select, 
body #cosmos-checkout-container textarea,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
.orderby,
select {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background-color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 12px !important;
    border: 1.5px solid #f1f5f9 !important;
    border-radius: 1.25rem !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: 58px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
}

/* RTL positioning for global selects */
body.rtl select,
[dir="rtl"] select,
body.rtl .orderby,
[dir="rtl"] .orderby {
    background-position: left 1.25rem center !important;
    padding-left: 3.5rem !important;
    padding-right: 1.25rem !important;
}

input.input-text:focus,
select:focus,
textarea:focus {
    background-color: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03) !important;
}

/* Ensure no native arrow */
select::-ms-expand { display: none !important; }

/* Single Product Price Styling */
.cosmos-price-display del {
    font-size: 0.5em;
    color: #9ca3af;
    margin-right: 0.5rem;
    font-weight: 500;
}
.cosmos-price-display ins {
    text-decoration: none;
    color: inherit;
}
.cosmos-price-display {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fffafb 0%, #fff5f6 100%);
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid #ffe4e8;
    box-shadow: 0 10px 30px rgba(228, 83, 102, 0.05);
    transition: all 0.3s ease;
}
.cosmos-price-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(228, 83, 102, 0.1);
}
.cosmos-price-display .woocommerce-Price-currencySymbol {
    font-size: 0.35em;
    vertical-align: super;
    margin-left: 8px;
    color: var(--cosmos-primary, #e45366);
    opacity: 0.6;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.cosmos-price-display::after {
    content: '✦';
    font-size: 14px;
    margin-left: 12px;
    color: var(--cosmos-primary, #e45366);
    opacity: 0.3;
    transition: all 0.3s ease;
}
.cosmos-price-display:hover::after {
    opacity: 0.8;
    transform: rotate(45deg) scale(1.2);
}

/* â”€â”€ HIGH-CONTRAST PREMIUM PRICE BADGES â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-price-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 0 !important;
    background: transparent !important;
    border-bottom: 2px solid #000 !important; /* Elegant underline style */
    font-weight: 900 !important;
    font-size: 15px !important;
    color: #000 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
}

.cosmos-price-badge .woocommerce-Price-currencySymbol {
    font-size: 0.7em !important;
    margin-left: 4px !important;
    color: #000 !important;
    font-weight: 700 !important;
}

/* â”€â”€ BOUTIQUE RELATED ITEMS â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-related-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 20px 0 !important;
    background: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

.cosmos-related-item:last-child {
    border-bottom: none !important;
}

.cosmos-related-item:active {
    opacity: 0.7 !important;
}

/* â”€â”€ MINIMALIST TRUST STRIP â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-features-strip {
    background: #fff !important;
    padding: 32px 0 !important;
    border-top: 1px solid #f9fafb !important;
}

.cosmos-features-strip .max-w-\[1440px\] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 16px !important;
}

.cosmos-feature-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 15px !important;
    padding: 32px 24px !important;
    background: linear-gradient(135deg, #fffafb 0%, #ffffff 100%) !important;
    border: 1px solid #ffe4e8 !important;
    border-radius: 32px !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 10px 35px rgba(228, 83, 102, 0.04) !important;
    position: relative !important;
    overflow: hidden !important;
}
.cosmos-feature-badge:hover {
    transform: translateY(-10px) !important;
    background: #fff !important;
    border-color: var(--cosmos-primary, #e45366) !important;
    box-shadow: 0 25px 60px rgba(228, 83, 102, 0.12) !important;
}
.cosmos-feature-icon {
    width: 44px !important;
    height: 44px !important;
    background: var(--cosmos-primary, #e45366) !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 18px !important;
    box-shadow: 0 8px 20px rgba(228, 83, 102, 0.25) !important;
    transition: all 0.3s ease !important;
}
.cosmos-feature-badge:hover .cosmos-feature-icon {
    transform: scale(1.1) rotate(5deg) !important;
}

.cosmos-feature-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.cosmos-feature-title {
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #000 !important;
    line-height: 1.2 !important;
}

.cosmos-feature-sub {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

@media (min-width: 1024px) {
    .cosmos-features-strip .max-w-\[1440px\] {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 24px !important;
    }
    .cosmos-feature-badge {
        flex: 1 !important;
        max-width: 280px !important;
    }
}


/* â”€â”€ BOUTIQUE SUMMARY â”€â”€â”€â”€â”€â”€â”€ */
.cosmos-review-order-luxury .flex.justify-between {
    padding: 18px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.cosmos-review-order-luxury .flex.justify-between span:first-child {
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #000 !important;
}

.cosmos-review-order-luxury .flex.justify-between span:last-child {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #000 !important;
}

.cosmos-luxury-shipping li {
    padding: 16px !important;
    background: #fff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #000 !important;
}

/* â”€â”€ ULTIMATE CHECKOUT FIELD OVERRIDES â”€â”€â”€â”€â”€â”€â”€ */
body #cosmos-checkout-container .form-row,
body.woocommerce-checkout .form-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
}

/* Hard reset for pseudo-elements that cause double arrows or bloat */
body #cosmos-checkout-container .form-row::after,
body.woocommerce-checkout .form-row::after,
body #cosmos-checkout-container .form-row::before,
body.woocommerce-checkout .form-row::before {
    display: none !important;
    content: none !important;
}

body #cosmos-checkout-container label,
body.woocommerce-checkout label,
body #cosmos-checkout-container .screen-reader-text,
body.woocommerce-checkout .screen-reader-text { 
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #000 !important;
    margin: 0 0 8px 4px !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

body #cosmos-checkout-container .woocommerce-input-wrapper,
body.woocommerce-checkout .woocommerce-input-wrapper {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* â”€â”€ BOUTIQUE INPUT & SELECT SANITIZATION â”€â”€â”€â”€â”€ */
body #cosmos-checkout-container input.input-text, 
body #cosmos-checkout-container select, 
body #cosmos-checkout-container textarea,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background: #f8fafc !important;
    border: 1.5px solid #f1f5f9 !important;
    border-radius: 1.25rem !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: 58px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* â”€â”€ VALIDATION FEEDBACK â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.shake-anim {
    animation: luminaShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes luminaShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.border-red-500 {
    border-color: #ef4444 !important;
}

/* â”€â”€ PHONE FORMAT FIX â”€â”€ */
input[type="tel"], 
#billing_phone, 
.woocommerce-customer-details--phone,
[class*="phone"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
}

[dir="rtl"] input[type="tel"], 
[dir="rtl"] #billing_phone,
[dir="rtl"] .woocommerce-customer-details--phone,
[dir="rtl"] [class*="phone"] {
    text-align: right !important; /* Keep text aligned to right in RTL, but numbers LTR */
}

/* â”€â”€ LEGIBILITY ENHANCEMENTS â”€â”€ */
.premium-label, 
.text-zinc-400, 
.text-zinc-500,
.woocommerce-checkout label {
    font-size: 13px !important;
    color: #4b5563 !important; /* Darker charcoal */
    letter-spacing: 0.05em !important;
}

.text-black, .text-zinc-900, .premium-value {
    color: #000 !important;
}

.text-[10px], .text-[11px] {
    font-size: 13px !important;
}

/* â”€â”€ HIGH-END CHECKOUT SELECTION REFINEMENT â”€â”€â”€â”€â”€â”€â”€ */

/* Shipping Methods as Sleek Cards */
.cosmos-luxury-shipping ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

.cosmos-luxury-shipping li {
    position: relative !important;
    background: #fff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 1.5rem !important;
    padding: 1.25rem 1.5rem !important;
    transition: all 0.4s var(--lumina-ease) !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.cosmos-luxury-shipping li:has(input:checked) {
    border-color: #000 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    transform: translateY(-1px);
}

.cosmos-luxury-shipping li input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
}

/* Custom Radio Indicator */
.cosmos-luxury-shipping li::before {
    content: '' !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.cosmos-luxury-shipping li:has(input:checked)::before {
    border-color: #000 !important;
    border-width: 6px !important;
}

.cosmos-luxury-shipping li label {
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #1e293b !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    align-items: center !important;
}

.cosmos-luxury-shipping li label .woocommerce-Price-amount {
    font-weight: 900 !important;
    color: #000 !important;
    font-style: italic !important;
}

/* Payment Gateway Ghost Cards */
#cosmos-checkout-container .wc_payment_method {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 2rem !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#cosmos-checkout-container .wc_payment_method:has(input:checked) {
    background: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06) !important;
}

#cosmos-checkout-container .wc_payment_method > label {
    padding: 1.75rem 2rem !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    color: #475569 !important;
}

#cosmos-checkout-container .wc_payment_method:has(input:checked) > label {
    color: #000 !important;
}

/* Custom Payment Radio */
#cosmos-checkout-container .wc_payment_method input[type="radio"] {
    appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    margin: 0 !important;
    order: 2 !important; /* Move to right */
    margin-left: auto !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

#cosmos-checkout-container .wc_payment_method input[type="radio"]:checked {
    border-color: #000 !important;
    border-width: 7px !important;
}

#cosmos-checkout-container .payment_box {
    padding: 0 2rem 2rem !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

/* Elegant Headers & Dividers */
.woocommerce-checkout h3 {
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 30px !important;
}

.order-total, .cart-subtotal, .shipping {
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
}

/* â”€â”€ SINGLE BOUTIQUE ARROW (FORCE) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body #cosmos-checkout-container select,
body.woocommerce-checkout select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 1rem !important;
    padding-right: 3.5rem !important;
}

body #cosmos-checkout-container input.input-text:focus,
body #cosmos-checkout-container select:focus,
body #cosmos-checkout-container textarea:focus,
body.woocommerce-checkout input.input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
    background: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03) !important;
}

/* ══════════════════════════════════════════════
   SEPHORA SHOP ARCHIVE LAYOUT
   ══════════════════════════════════════════════ */

.cosmos-archive-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px;
}

.cosmos-archive-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Sidebar Filters */
.cosmos-archive-sidebar {
    flex: 0 0 250px;
    width: 250px;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.cosmos-sidebar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.cosmos-sidebar-header h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    color: #000;
}

.cosmos-sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cosmos-sidebar-close:hover {
    color: #000;
}

.cosmos-sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
}

.cosmos-sidebar-widget:last-child {
    border-bottom: none;
}

.cosmos-widget-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    margin: 0 0 16px 0;
    padding-bottom: 4px;
}

/* Categories Widget */
.cosmos-sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cosmos-sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cosmos-sidebar-categories a:hover,
.cosmos-sidebar-categories a.is-active {
    color: #000;
    font-weight: 700;
}

.cosmos-sidebar-categories a .cat-count {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.cosmos-sidebar-categories a.is-active .cat-count {
    color: #000;
    font-weight: 700;
}

/* Price range inputs */
.cosmos-price-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs .divider {
    color: #999;
    font-size: 12px;
}

.price-inputs .input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}

.price-inputs input {
    width: 100%;
    height: 38px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    color: #000;
    text-align: center;
}

.price-inputs input:focus {
    border-color: #000;
}

.price-inputs label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 4px;
}

.cosmos-filter-submit-btn {
    width: 100%;
    height: 38px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

.cosmos-filter-submit-btn:hover {
    background: #222;
}

/* Ratings widget */
.cosmos-sidebar-ratings {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cosmos-sidebar-ratings a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: color 0.2s;
}

.cosmos-sidebar-ratings a:hover,
.cosmos-sidebar-ratings a.is-active {
    color: #000;
}

.cosmos-sidebar-ratings .rating-stars-wrap {
    display: flex;
    gap: 2px;
    color: #eaeaea;
}

.cosmos-sidebar-ratings .rating-stars-wrap .filled {
    color: #fcc419;
}

.cosmos-sidebar-ratings .rating-label {
    font-size: 12px;
    margin-top: 1px;
}

.cosmos-sidebar-ratings a.is-active .rating-label {
    font-weight: 700;
}

.reset-rating-filter {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eaeaea;
}

.reset-rating-filter a {
    color: #e45366 !important;
    font-weight: 700;
    gap: 6px !important;
}

/* Main column content */
.cosmos-archive-main-content {
    flex: 1;
    min-width: 0;
}

/* Short Banner */
.cosmos-shop-short-banner {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f6f6f6;
}

.cosmos-shop-short-banner .banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cosmos-shop-short-banner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cosmos-shop-short-banner:hover .banner-img {
    transform: scale(1.02);
}

/* Top bar controls */
.cosmos-shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.cosmos-shop-top-bar .top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cosmos-shop-top-bar .archive-page-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    margin: 0;
}

.cosmos-mobile-filters-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: #f6f6f6;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    transition: background 0.2s;
}

.cosmos-mobile-filters-trigger:hover {
    background: #eaeaea;
}

.cosmos-shop-top-bar .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Override default WC controls style to look sleek */
.cosmos-shop-top-bar .woocommerce-ordering {
    margin: 0;
}

.cosmos-shop-top-bar .woocommerce-ordering select {
    height: 38px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 0 32px 0 12px;
    font-size: 13px;
    color: #000;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.cosmos-shop-top-bar .woocommerce-result-count {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Archive Grid Columns Overrides */
.cosmos-archive-main-content ul.products {
    display: grid;
    grid-template-columns: repeat(var(--cosmos-products-cols-desktop, 4), 1fr);
    gap: 30px 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.cosmos-archive-main-content ul.products.columns-1 { grid-template-columns: repeat(var(--cosmos-products-cols-desktop, 1), 1fr); }
.cosmos-archive-main-content ul.products.columns-2 { grid-template-columns: repeat(var(--cosmos-products-cols-desktop, 2), 1fr); }
.cosmos-archive-main-content ul.products.columns-3 { grid-template-columns: repeat(var(--cosmos-products-cols-desktop, 3), 1fr); }
.cosmos-archive-main-content ul.products.columns-4 { grid-template-columns: repeat(var(--cosmos-products-cols-desktop, 4), 1fr); }
.cosmos-archive-main-content ul.products.columns-5 { grid-template-columns: repeat(var(--cosmos-products-cols-desktop, 5), 1fr); }
.cosmos-archive-main-content ul.products.columns-6 { grid-template-columns: repeat(var(--cosmos-products-cols-desktop, 6), 1fr); }

.cosmos-archive-main-content ul.products::before,
.cosmos-archive-main-content ul.products::after {
    display: none; /* remove floats spacing */
}

.cosmos-archive-main-content ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .cosmos-archive-main-content ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .cosmos-mobile-filters-trigger {
        display: flex;
    }
    
    .cosmos-archive-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 99999;
        box-shadow: 0 0 30px rgba(0,0,0,0.15);
        transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        overflow-y: auto;
        padding: 24px;
        margin: 0;
    }
    
    .cosmos-archive-sidebar.is-open {
        left: 0;
    }
    
    .cosmos-sidebar-header {
        display: flex;
    }
    
    /* Overlay backdrop */
    body.filters-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(4px);
        z-index: 99998;
    }
}

@media (max-width: 768px) {
    .cosmos-archive-container {
        padding: 10px 16px;
    }
    
    .cosmos-shop-short-banner {
        height: 70px;
        border-radius: 8px;
        margin-bottom: 16px;
    }
    
    .cosmos-shop-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .cosmos-shop-top-bar .top-bar-left {
        justify-content: space-between;
    }
    
    .cosmos-shop-top-bar .top-bar-right {
        justify-content: space-between;
    }
    
    .cosmos-shop-top-bar .archive-page-title {
        font-size: 16px;
    }
    
    .cosmos-archive-main-content ul.products,
    .cosmos-archive-main-content ul.products.columns-1,
    .cosmos-archive-main-content ul.products.columns-2,
    .cosmos-archive-main-content ul.products.columns-3,
    .cosmos-archive-main-content ul.products.columns-4,
    .cosmos-archive-main-content ul.products.columns-5,
    .cosmos-archive-main-content ul.products.columns-6 {
        grid-template-columns: repeat(var(--cosmos-products-cols-mobile, 2), 1fr);
        gap: 24px 12px;
    }
}

/* ══════════════════════════════════════════════
   HOTFIX BLOCK — merged from wp_head inline
   ══════════════════════════════════════════════ */

/* will-change:transform scoped to mobile only — on desktop it promoted the
   header to a GPU compositor layer whose bounds clipped the dropdown. */
@media (max-width: 767px) {
    .cosmos-header-wrapper {
        will-change: transform;
        backface-visibility: hidden;
    }
}

    /* Navigation hidden state - unused in current sticky logic but kept for safety if needed later */
    .cosmos-header-wrapper.header--hidden {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    /* Professional Mobile Popup Refinement */
    /* Redundant styles removed - moved to mobile-experience.css */


    /* MINIMALIST BRUTALIST CHECKOUT OVERHAUL */
    .cosmos-minimal-input {
        background: transparent !important;
        border: none !important;
        border-bottom: 2px solid #eee !important;
        border-radius: 0 !important;
        padding: 16px 0 !important;
        font-weight: 800 !important;
        font-size: 15px !important;
        color: #000 !important;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .cosmos-minimal-input:focus {
        border-bottom-color: #000 !important;
        outline: none !important;
        padding-left: 10px !important;
    }

    .cosmos-minimal-label {
        font-family: var(--font-black) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.25em !important;
        font-size: 9px !important;
        color: #aaa !important;
        margin-bottom: 4px !important;
        display: block !important;
        font-weight: 900 !important;
    }

    /* STEP INDICATOR DOT ANIMATION */
    .indicator-dot {
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    }

    /* Step content transitions */
    .cosmos-step-content {
        transition: opacity 0.5s ease;
    }

    /* Review Table Refinement */
    .cosmos-review-order-minimal {
        background: transparent !important;
    }

    .cosmos-review-order-minimal .cart_item {
        border-bottom: 1px solid #f8f8f8 !important;
    }

    /* Fix for common checkout overflow */
    .woocommerce-checkout {
        overflow: visible !important;
    }

    /* Step animations */
    .cosmos-checkout-step {
        transition: all 0.6s ease;
    }

    @keyframes cosmosAppSlideIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .Animate-In {
        animation: cosmosAppSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    /* CART PAGE RADICAL DESIGN */
    .cosmos-cart-page .quantity input::-webkit-outer-spin-button,
    .cosmos-cart-page .quantity input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    .cosmos-cart-page .quantity input {
        -moz-appearance: textfield;
        background: transparent;
        border: none;
        width: 30px;
        text-align: center;
        font-weight: 900;
        font-family: var(--font-black);
    }
    .cosmos-cart-page .checkout-button {
        display: block;
        width: 100%;
        text-align: center;
        background: #000;
        color: #fff;
        padding: 24px;
        border-radius: 9999px;
        font-family: var(--font-black);
        text-transform: uppercase;
        font-style: italic;
        letter-spacing: 0.1em;
        font-size: 14px;
        transition: all 0.3s;
    }
    .cosmos-cart-page .checkout-button:hover {
        background: #DB005E;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(219, 0, 94, 0.2);
    }

    /* QUANTITY INPUT MINIMALISM */
    .cosmos-quantity-wrapper input {
        border: none !important;
        background: transparent !important;
        text-align: center !important;
        font-family: var(--font-black) !important;
        width: 40px !important;
    }

    .single-product .cart .quantity {
        border: 2px solid #000 !important;
        border-radius: 9999px !important;
        padding: 4px 12px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .single-product .cart .single_add_to_cart_button {
        background: #000 !important;
        border-radius: 9999px !important;
        padding: 18px 40px !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        font-style: italic !important;
        margin-left: 10px !important;
    }

    /* Minimal Payment methods */
    .wc_payment_method {
        background: #fcfcfc !important;
        border-radius: 30px !important;
        border: 1px solid #f0f0f0 !important;
        overflow: hidden !important;
        transition: all 0.4s ease !important;
    }

    .wc_payment_method label {
        padding: 30px !important;
        font-size: 11px !important;
        font-family: var(--font-black) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2em !important;
        font-weight: 900 !important;
        color: #000 !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .wc_payment_method input[type="radio"] {
        appearance: none !important;
        width: 20px !important;
        height: 20px !important;
        border: 2px solid #eee !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
    }

    .wc_payment_method:has(input:checked) {
        border-color: #000 !important;
        background: #fff !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.05) !important;
        transform: translateY(-2px);
    }

    .wc_payment_method input:checked {
        border-color: #000 !important;
        background: #000 !important;
        box-shadow: inset 0 0 0 4px #fff !important;
    }

    .payment_box {
        background: #fafafa !important;
        padding: 0 30px 30px 65px !important;
        color: #666 !important;
        font-size: 12px !important;
        line-height: 1.8 !important;
        font-weight: 500 !important;
    }

    /* Minimal Shipping */
    .cosmos-minimal-shipping ul#shipping_method {
        background: #f9f9f9 !important;
        padding: 20px !important;
        border-radius: 24px !important;
    }

    .cosmos-minimal-shipping ul#shipping_method li {
        margin-bottom: 10px !important;
    }

    .cosmos-minimal-shipping ul#shipping_method li label {
        font-size: 10px !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.15em !important;
        color: #000 !important;
    }

    /* Floating Summary Effect for Mobile */
    @media (max-width: 768px) {
        .cosmos-checkout-step[data-step="2"] {
            border-radius: 0 !important;
            margin-left: -1rem !important;
            margin-right: -1rem !important;
        }
    }
    

    /* Animation */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    .floating-summary {
        animation: float 6s ease-in-out infinite;
    }
    

    /* Remaining popup styles moved to mobile-experience.css */


    /* iOS Haptic Tap Animation on specific list items */
    .cosmos-shop-catlist li a,
    .cosmos-account-sheet__item,
    .ios-nav-item {
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
    }

    .cosmos-shop-catlist li a:active,
    .cosmos-account-sheet__item:active,
    .ios-nav-item:active {
        transform: scale(0.96);
    }

    .ios-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #8e8e93;
        text-decoration: none !important;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .ios-nav-item:active {
        transform: scale(0.9);
    }

    .ios-nav-item.is-active {
        color: var(--brand-pink, #ff2d55);
    }

    .ios-nav-item__icon-wrapper {
        position: relative;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 24px;
    }

    .ios-nav-item__label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: -0.2px;
    }

    .ios-nav-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background: #ff3b30;
        color: white;
        font-size: 10px;
        font-weight: 700;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 10px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .ios-nav-badge.hidden {
        display: none !important;
    }
    
    /* Scale effect on page when sheet opens */
    body.is-mobile-popup-open .site-wrapper {
        /* Removed shrink/border-radius to eliminate 'white layer' effect */
        transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .site-wrapper {
        transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), border-radius 0.45s ease;
        background: #fff;
    }

    @media (min-width: 768px) {
        .ios-top-nav { display: none !important; }
    }

    /* Remove horizontal overflow to fix the right and bottom shadows/gaps */
    html, body {
        overflow-x: clip !important;
        max-width: 100vw !important;
    }
    
    /* Aggressively hide elements that stubbornly follow the user and cause layouts to break */
    .app-bottom-nav,
    .cosmos-social-bar,
    .mobile-nav-overlay,
    .cosmos-toast,
    .scroll-to-top {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        z-index: -1 !important;
    }
    
    /* Strip away weird inbound shadows or background colors that seep through */
    html, body {
        background-color: #fff !important; 
    }
    .site-wrapper {
        box-shadow: none !important;
        background-color: #fff !important; 
    }
    
    /* Any specific popup shadows from plugins or themes */
    div.popup-content, .fancybox-skin {
        box-shadow: none !important;
        display: none !important;
    }

    /* Fix: compiled CSS overrides feature banner with dark gradient & old padding.
       Reset banner background-image so only the inline background-color shows,
       and reset margin/padding so the new cosmos-banner-slideshow fills correctly. */
    .perfume-banner {
        background-image: none !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: var(--cosmos-feature-banner-height, 300px) !important;
	}
    .promo-banner-blue,
    .promo-banner-red {
        background-image: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Hide empty wrappers and hidden fields */
    #cosmos-checkout-container .form-row.hidden,
    #cosmos-checkout-container .form-row[style*="display: none"] {
        display: none !important;
    }
    /* Re-apply bg color via inline style (let CSS custom props work) */
    .promo-banner-blue[style],
    .promo-banner-red[style] {
        background-color: var(--cosmos-promo1-bg, #004b9b) !important;
    }
    .promo-banner-red[style] {
        background-color: var(--cosmos-promo2-bg, #cc0000) !important;
    }

    /* Ensure the banner image slideshow fills the banner correctly */
    a.cosmos-banner-slideshow {
        display: block;
    }
    .cosmos-banner-slideshow {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        border-radius: inherit !important;
        overflow: hidden !important;
    }
    .cosmos-banner-frame {
        position: absolute !important;
        inset: 0 !important;
    }
    .cosmos-banner-frame.is-active {
        opacity: 1 !important;
        z-index: 2 !important;
    }

    /* Text/buttons inside banners need padding since banner padding is removed */
    .perfume-banner .arabic-banner-text {
        padding: 40px 40px !important;
    }
    .perfume-banner .cosmos-banner-btn {
        padding: 20px 40px !important;
    }
    .promo-banner-blue .arabic-3d-text,
    .promo-banner-blue h3,
    .promo-banner-blue p,
    .promo-banner-blue .promo-tag,
    .promo-banner-red .arabic-3d-text,
    .promo-banner-red h3,
    .promo-banner-red p,
    .promo-banner-red .promo-tag {
        padding: 0 20px !important;
        position: relative !important;
        z-index: 5 !important;
    }

    /* Hero slider â€” cleaner sliding with smooth transition */
    .cosmos-sales-slider {
        border-radius: var(--cosmos-card-radius, 20px) !important;
        overflow: hidden !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
    }
    .cosmos-slider-dots {
        position: absolute !important;
        bottom: 16px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 8px !important;
        z-index: 10 !important;
    }
    .cosmos-slider-arrow {
        opacity: 0 !important;
        transition: opacity 0.2s !important;
    }
    .cosmos-sales-slider:hover .cosmos-slider-arrow {
        opacity: 1 !important;
    }

    .cosmos-slide__content {
        position: absolute;
        inset: 0;
        width: min(94%, var(--cosmos-slide-content-width, 86%));
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 24px;
    }

    .cosmos-slide__content--align-left {
        align-items: flex-start;
        text-align: left;
    }

    .cosmos-slide__content--align-right {
        align-items: flex-end;
        text-align: right;
    }

    .cosmos-slide__content--valign-top {
        justify-content: flex-start;
        padding-top: clamp(26px, 7vh, 68px);
    }

    .cosmos-slide__content--valign-bottom {
        justify-content: flex-end;
        padding-bottom: clamp(26px, 7vh, 68px);
    }

    .cosmos-slide__title,
    .cosmos-slide__subtitle {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .cosmos-slide__title {
        font-size: clamp(1.4rem, 3.6vw, 3rem);
        line-height: 1.08;
        letter-spacing: -0.02em;
    }

    .cosmos-slide__subtitle {
        font-size: clamp(0.92rem, 1.6vw, 1.18rem);
        line-height: 1.55;
    }

    .cosmos-slide__cta {
        transform: translate(var(--cosmos-slide-cta-x, 0), var(--cosmos-slide-cta-y, 0));
        border-radius: var(--cosmos-slide-cta-radius, 999px);
        font-size: var(--cosmos-slide-cta-font-size, 15px);
        padding: var(--cosmos-slide-cta-padding-y, 12px) var(--cosmos-slide-cta-padding-x, 24px);
        min-width: var(--cosmos-slide-cta-min-width, 0);
        max-width: var(--cosmos-slide-cta-max-width, 100%);
        width: fit-content;
        text-align: center;
    }

    .cosmos-slide__cta--align-left {
        align-self: flex-start;
    }

    .cosmos-slide__cta--align-center {
        align-self: center;
    }

    .cosmos-slide__cta--align-right {
        align-self: flex-end;
    }

    .cosmos-slide__cta--solid {
        background: var(--cosmos-slide-cta-bg, #ffffff);
        color: var(--cosmos-slide-cta-color, #111111);
        border: 1px solid transparent;
    }

    .cosmos-slide__cta--outline {
        background: transparent;
        color: var(--cosmos-slide-cta-color, #ffffff);
        border: 2px solid var(--cosmos-slide-cta-bg, #ffffff);
    }

    .cosmos-slide__cta--ghost {
        background: color-mix(in srgb, var(--cosmos-slide-cta-bg, #ffffff) 22%, transparent);
        color: var(--cosmos-slide-cta-color, #ffffff);
        border: 1px solid color-mix(in srgb, var(--cosmos-slide-cta-bg, #ffffff) 55%, transparent);
        backdrop-filter: blur(8px);
    }

    .cosmos-no-image-fill__lines {
        transform: rotate(-6deg) scale(1.35);
    }

    .cosmos-no-image-fill__line {
        margin-left: -16%;
        width: 150%;
        text-align: center;
    }

    .cosmos-no-image-fill:hover .cosmos-no-image-fill__line {
        transform: translateX(-2%);
    }

    .cosmos-quick-view__content {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important; /* Center vertically */
        padding: 24px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex: 1 !important;
        margin: 0 !important; /* Reset any legacy shift */
    }

    .cosmos-quick-view__badge {
        display: inline-flex !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: max-content !important;
        padding: 4px 12px !important;
        border-radius: 9999px !important;
        float: none !important;
    }

    .cosmos-quick-view__desc,
    .cosmos-quick-view__stock,
    .cosmos-quick-view__price-row,
    .cosmos-quick-view__price,
    .cosmos-quick-view__view-link {
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        padding: 0 !important;
        float: none !important;
    }

    .cosmos-quick-view__price * {
        text-align: center !important;
        display: inline-block !important;
        float: none !important;
    }

    .cosmos-quick-view__title {
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        text-wrap: balance !important;
    }


    /* Product cards â€” remove any residual shadow from compiled CSS */
    .product-card,
    .compact-product-card {
        box-shadow: 0 1px 6px rgba(0,0,0,0.04) !important;
        border: 1px solid #f0f0f0 !important;
        transition: all 0.3s ease !important;
    }

    .product-card:hover,
    .compact-product-card:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.07) !important;
    }

    /* Force remove ANY shadow on unavailable cards to ensure 'Quiet Luxury' static feel */
    .product-card.cosmos-card--unavailable,
    .compact-product-card.cosmos-card--unavailable,
    .minimal-product-card.cosmos-card--unavailable,
    .product-card.cosmos-card--unavailable:hover,
    .compact-product-card.cosmos-card--unavailable:hover,
    .minimal-product-card.cosmos-card--unavailable:hover {
        box-shadow: none !important;
        transform: none !important;
        border-color: #f1f5f9 !important;
    }

    /* Responsive visible cards for slider-container--four-up */
    .slider-container--four-up > * {
        flex: 0 0 calc((100% - (var(--cards-visible, 4) - 1) * 20px) / var(--cards-visible)) !important;
        max-width: calc((100% - (var(--cards-visible, 4) - 1) * 20px) / var(--cards-visible)) !important;
    }
    @media (max-width: 1024px) {
        .slider-container--four-up > * {
            flex: 0 0 calc((100% - (3 - 1) * 20px) / 3) !important;
            max-width: calc((100% - (3 - 1) * 20px) / 3) !important;
        }
    }
    @media (max-width: 768px) {
        .slider-container--four-up > * {
            flex: 0 0 calc((100% - (2 - 1) * 20px) / 2) !important;
            max-width: calc((100% - (2 - 1) * 20px) / 2) !important;
        }
    }
    /* Add-to-Bag button â€” pink background + white text */
    .btn-basket {
        background: #e45366 !important;
        color: #fff !important;
        border-color: #e45366 !important;
    }
    .btn-basket:hover,
    .btn-basket:focus {
        background: #cf3a50 !important;
        color: #fff !important;
        border-color: #cf3a50 !important;
    }
    .btn-basket:disabled {
        background: #f0a0aa !important;
        border-color: #f0a0aa !important;
        color: #fff !important;
    }

/* ══════════════════════════════════════════════
   FINAL LAYERING FIX: SEARCH BAR OVERLAY
   ══════════════════════════════════════════════ */
#cosmos-search-bar {
    position: relative !important;
    z-index: 150000 !important;
}
#cosmos-search-results {
    z-index: 200000 !important;
}

/* ══════════════════════════════════════════════
   FIRST-VISIT LANGUAGE MODAL
   ══════════════════════════════════════════════ */
.cosmos-language-modal {
    position: fixed;
    inset: 0;
    z-index: 300000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cosmos-language-modal.is-open {
    display: flex;
}

/* Blur header when language modal is open */
body.is-language-modal-open #cosmos-header-wrapper {
    filter: blur(8px);
    transition: filter 0.4s ease;
    pointer-events: none;
}

/* ── Wishlist button active state: ensure bg clips to circle ── */
.action-btn.cosmos-wishlist-toggle {
    overflow: hidden;
    border-radius: 50%;
}

.bs-home-card__wishlist.cosmos-wishlist-toggle {
    overflow: hidden;
}

.cosmos-language-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.3s ease;
}

.cosmos-language-modal__dialog {
    position: relative;
    width: min(100%, 460px);
    margin: auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    padding: 48px 36px 36px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.08), 
        0 30px 60px -15px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: cosmosLangPopIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

/* ══════════════════════════════════════════════
   HOMEPAGE STABILITY OVERRIDES (2026-05)
   ══════════════════════════════════════════════ */
@media (min-width: 1024px) {
    body.home section.max-w-\[1440px\],
    body.home .cosmos-home-categories.max-w-\[1440px\] {
        max-width: 1320px !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Keep desktop categories on a single horizontal level */
@media (min-width: 769px) {
    .cosmos-home-categories__track {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        cursor: grab !important;
    }

    .cosmos-home-categories__arrow {
        display: inline-flex !important;
    }
}

/* Hero and large banner share aligned dimensions */
.perfume-banner {
    min-height: var(--cosmos-slider-height, 380px) !important;
}

@media (max-width: 767px) {
    .perfume-banner {
        min-height: var(--cosmos-slider-height-mobile, 240px) !important;
    }
}

/* Unified image fit mechanism for hero and all banners */
.cosmos-sales-slider .cosmos-banner-frame {
    background-size: var(--cosmos-hero-image-fit, var(--cosmos-banner-image-fit, cover)) !important;
    background-position: var(--cosmos-hero-image-position, var(--cosmos-banner-image-position, center center)) !important;
}

.perfume-banner .cosmos-banner-frame,
.promo-banner-blue .cosmos-banner-frame,
.promo-banner-red .cosmos-banner-frame,
.multi-product-banner .cosmos-banner-frame {
    background-size: var(--cosmos-banner-image-fit, cover) !important;
    background-position: var(--cosmos-banner-image-position, center center) !important;
}

@keyframes cosmosLangPopIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cosmos-language-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cosmos-language-modal__close:hover {
    transform: rotate(90deg) scale(1.05);
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

[dir="rtl"] .cosmos-language-modal__close {
    right: auto;
    left: 20px;
}

.cosmos-language-modal__eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
    color: #0f172a;
}

.cosmos-language-modal__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-bottom: 32px;
}

.cosmos-language-modal__title {
    margin: 0;
    font-size: clamp(24px, 3.5vw, 32px);
    line-height: 1.15;
    font-weight: 900;
    color: #0f172a;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.02em;
}

.cosmos-language-modal__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #64748b;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.cosmos-language-modal__text {
    margin: 4px 0 0;
    font-size: 13px;
    color: #475569;
}

.cosmos-language-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cosmos-language-modal__btn {
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    color: #1e293b;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    text-align: center;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cosmos-language-modal__btn:hover {
    transform: translateY(-4px);
    border-color: #0f172a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.cosmos-language-modal__btn.is-selected {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.2);
}

.cosmos-language-modal__flag {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.cosmos-language-modal__btn.is-selected .cosmos-language-modal__flag {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cosmos-language-modal__label {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.cosmos-language-modal__confirm {
    width: 100%;
    margin-top: 16px;
    min-height: 52px;
    border: 1px solid #0f172a;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1);
    transition: all 0.3s ease;
}

.cosmos-language-modal__confirm:hover {
    transform: translateY(-2px);
    background: #1e293b;
    border-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
}

.cosmos-language-modal__confirm:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none !important;
    box-shadow: none !important;
}

[dir="rtl"] .cosmos-language-modal__btn {
    text-align: center;
}

[dir="rtl"] .cosmos-language-modal__title,
[dir="rtl"] .cosmos-language-modal__text,
[dir="rtl"] .cosmos-language-modal__eyebrow,
[dir="rtl"] .cosmos-language-modal__subtitle {
    text-align: center;
}

.is-language-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .cosmos-language-modal__dialog {
        padding: 40px 24px 28px;
        border-radius: 24px;
    }

    .cosmos-language-modal__actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cosmos-language-modal__btn {
        min-height: 74px;
        flex-direction: row;
        justify-content: center;
        padding: 12px 24px;
        gap: 16px;
    }
}

/* ══════════════════════════════════════════════════════
   Out-of-Stock Band on Product Cards
   ══════════════════════════════════════════════════════ */

.cosmos-oos-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: linear-gradient(135deg, rgba(30,30,30,0) 40%, rgba(30,30,30,0.82) 100%),
                linear-gradient(rgba(30,30,30,0.72), rgba(30,30,30,0.72));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    pointer-events: none;
}

.cosmos-oos-band span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

/* Diagonal stripe overlay on the image */
.product-image-wrapper:has(.cosmos-oos-band)::before,
.compact-image-wrapper:has(.cosmos-oos-band)::before,
.cosmos-sp__similar-img-wrap:has(.cosmos-oos-band)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(0,0,0,0.08) 8px,
        rgba(0,0,0,0.08) 10px
    );
    pointer-events: none;
    border-radius: inherit;
}

/* LUXURY OUT OF STOCK BUTTON STYLING (Standardized) */
.btn-basket.btn-basket--unavailable,
.product-card .btn-basket.btn-basket--unavailable,
.compact-product-card .btn-basket.btn-basket--unavailable {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    pointer-events: none !important;
    border: 1px solid #e2e8f0 !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: var(--cosmos-btn-radius, 999px);
    padding: 9px 14px;
}

.product-card:hover .btn-basket--unavailable,
.compact-product-card:hover .btn-basket--unavailable,
.btn-basket--unavailable:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* ══════════════════════════════════════════════════════
   Search Bar OOS styles
   ══════════════════════════════════════════════════════ */

.cosmos-search-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.cosmos-search-thumb-wrap .cosmos-search-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.cosmos-search-oos-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20,20,20,0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
}

.cosmos-search-oos-band span {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}

.cosmos-search-oos-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.04em;
}

.cosmos-search-item--oos {
    opacity: 0.75;
}

/* ══════════════════════════════════════════════════════
   Wallpaper / No-Image fill — improved angle & readability
   ══════════════════════════════════════════════════════ */

.cosmos-no-image-fill__lines {
    transform: rotate(-8deg) scale(1.15) !important;
}

.cosmos-no-image-fill__line {
    font-size: 0.72rem !important;
    letter-spacing: 0.12em !important;
    margin-left: -10% !important;
    width: 120% !important;
    line-height: 1.8 !important;
    opacity: 0.8;
}

/* ══════════════════════════════════════════════
   GLOBAL QUICK VIEW ACTION CENTERING
   ══════════════════════════════════════════════ */
.cosmos-quick-view__actions {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 20px auto 0 !important; /* Auto margins to center container */
    padding: 0 !important;
    box-sizing: border-box !important;
}

.cosmos-quick-view__actions .btn-basket,
.cosmos-quick-view__actions .cosmos-ajax-add-to-cart,
.cosmos-quick-view__actions .cosmos-wishlist-toggle,
.cosmos-quick-view__actions .cosmos-quick-view-wishlist {
    width: 100% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    padding: 14px 24px !important;
    border-radius: 16px !important;
    flex: none !important;
    transform: none !important; /* Remove any unintended translates */
    position: relative !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* ── PREMIUM STAR RATING SYSTEM (Lumina v2 - FIXED) ── */
.comment-form-rating p.stars {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 1rem 0 !important;
}

.comment-form-rating p.stars span {
    display: flex !important;
    flex-direction: row-reverse !important;
}

.comment-form-rating p.stars a {
    position: relative !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    text-indent: -9999px !important;
    color: #e5e7eb !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.comment-form-rating p.stars a::before {
    content: "☆" !important;
    position: absolute !important;
    inset: 0 !important;
    text-indent: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-family: Arial, sans-serif !important;
}

.comment-form-rating p.stars a:hover::before,
.comment-form-rating p.stars a:hover ~ a::before,
.comment-form-rating p.stars a.active::before,
.comment-form-rating p.stars a.active ~ a::before,
.comment-form-rating p.stars.selected a.active::before,
.comment-form-rating p.stars.selected a.active ~ a::before {
    content: "★" !important;
    color: #fbbf24 !important;
}

.comment-form-rating p.stars a:hover,
.comment-form-rating p.stars a.active {
    transform: scale(1.1) !important;
    color: #f59e0b !important;
}

.cosmos-review-form__select {
    display: none !important;
}

.comment-form-rating label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 8px !important;
}


/* ==========================================================================
   THE COSMOS CONCIERGE DASHBOARD — LUXURY REINVENTION
   ========================================================================== */

.cosmos-account-redesign {
    background: linear-gradient(180deg, #fdfdfd 0%, #f7f9fc 100%);
}

.cosmos-account-avatar img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.cosmos-logout-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 999px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cosmos-logout-pill:hover {
    background: #fef2f2;
    border-color: #fee2e2;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.1);
}

/* --- NAVIGATION CARDS --- */
.cosmos-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

@media (min-width: 1024px) {
    .cosmos-nav-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 18px;
        border-radius: 20px;
        gap: 16px;
    }
}

.cosmos-nav-card__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.cosmos-nav-card__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    text-align: center;
    transition: color 0.3s ease;
}

@media (min-width: 1024px) {
    .cosmos-nav-card__label {
        font-size: 13px;
        text-align: left;
    }
}

.cosmos-nav-card__indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--brand-pink, #e45366);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

@media (min-width: 1024px) {
    .cosmos-nav-card__indicator {
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        height: 100%;
        transform: none;
        border-radius: 0;
    }
}

/* Hover States */
.cosmos-nav-card:hover {
    border-color: #e2e8f0;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.cosmos-nav-card:hover .cosmos-nav-card__icon-wrap {
    background: #fff;
    color: var(--brand-pink, #e45366);
    box-shadow: 0 5px 15px rgba(228, 83, 102, 0.1);
}

/* Active State */
.cosmos-nav-card.is-active {
    background: #fff;
    border-color: rgba(228, 83, 102, 0.15);
    box-shadow: 0 20px 40px rgba(228, 83, 102, 0.08);
}

.cosmos-nav-card.is-active .cosmos-nav-card__icon-wrap {
    background: linear-gradient(135deg, var(--brand-pink, #e45366) 0%, #cf3a50 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(228, 83, 102, 0.25);
}

.cosmos-nav-card.is-active .cosmos-nav-card__label {
    color: #000;
    font-weight: 900;
}

.cosmos-nav-card.is-active .cosmos-nav-card__indicator {
    width: 30px;
}

@media (min-width: 1024px) {
    .cosmos-nav-card.is-active .cosmos-nav-card__indicator {
        width: 4px;
    }
}

/* --- MODULE CONTENT --- */
.cosmos-wc-content-injected {
    animation: slideUpFade 0.6s ease both;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WC Overrides for Luxury Dash */
.cosmos-wc-content-injected h2 {
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 2rem !important;
}

.cosmos-wc-content-injected .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* --- AUTH MODERN --- */
.cosmos-auth-tab {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.cosmos-auth-tab--active {
    background: #f8fafc;
    color: #000;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.cosmos-auth-tabs-modern {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 16px;
    width: fit-content;
    margin: 0 auto 2rem;
}

/* --- ROBUST LAYOUT FOR ACCOUNT REDESIGN --- */
.cosmos-account-redesign .cosmos-account-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cosmos-account-redesign .cosmos-account-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

@media (min-width: 640px) {
    .cosmos-account-redesign .cosmos-account-nav-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .cosmos-account-redesign .cosmos-account-nav-grid {
        grid-template-columns: 1fr !important;
    }
    .cosmos-account-redesign .flex-col.lg\:flex-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 3rem !important;
    }
}

.cosmos-account-avatar {
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

/* Fix Logout link in header */
.cosmos-account-header .cosmos-logout-pill {
    margin-left: auto;
}

/* Ensure sub-templates don't break cards */
.cosmos-wc-content-injected .woocommerce-MyAccount-content {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- STAT CARDS --- */
.dashboard-stat-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    border-color: rgba(228, 83, 102, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(228, 83, 102, 0.05);
}

/* --- FINAL REFINEMENTS FOR ACCOUNT v2.0 --- */
.woocommerce-account .page-header, 
.woocommerce-account .entry-title,
.woocommerce-account h1.page-title {
    display: none !important;
}

.cosmos-account-redesign {
    min-height: 100vh;
}

.cosmos-nav-card__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cosmos-logout-pill {
    padding: 10px 20px !important;
    border-radius: 14px !important;
    font-size: 10px !important;
}

@media (max-width: 1023px) {
    .cosmos-account-nav-wrap {
        margin-bottom: 2rem !important;
    }
    .cosmos-account-nav-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 15px !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
    }
    .cosmos-nav-card {
        min-width: 110px !important;
        flex-shrink: 0 !important;
    }
}

/* --- WOOCOMMERCE AJAX OVERLAY REFINEMENT --- */
.blockOverlay {
    background-color: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
}
/* --- TRUE LUXURY PRODUCT BADGE SYSTEM --- */
.cosmos-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 60;
    pointer-events: none;
}

.cosmos-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--cosmos-badge-radius, 50px);
    background: transparent;
    border: 1.5px solid currentColor;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Shimmer Effect Base */
.cosmos-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(25deg);
    transition: none;
}

.product-card:hover .cosmos-badge::after,
.compact-product-card:hover .cosmos-badge::after,
.minimal-product-card:hover .cosmos-badge::after {
    animation: cosmos-shimmer 1.5s infinite;
}

@keyframes cosmos-shimmer {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* "New" Badge */
.cosmos-badge--new {
    color: var(--cosmos-badge-new-color, #6366f1);
    background: var(--cosmos-badge-new-bg, #fff);
}

/* "Sale" Badge */
.cosmos-badge--sale {
    color: var(--cosmos-badge-sale-color, #e45366);
    background: var(--cosmos-badge-sale-bg, #fff);
}

/* "Restocked" Badge */
.cosmos-badge--restocked {
    color: #0d9488;
}

/* "Best Seller" Badge */
.cosmos-badge--best-seller {
    color: #1a1a2e;
}

/* Hover State */
.product-card:hover .cosmos-badge,
.compact-product-card:hover .cosmos-badge,
.minimal-product-card:hover .cosmos-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* RTL Adjustments */
[dir="rtl"] .cosmos-card-badges {
    left: auto;
    right: 15px;
}
[dir="rtl"] .cosmos-badge {
    letter-spacing: 0;
}

/* --- FINAL OOS REFINEMENTS --- */

.btn-basket--unavailable {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(1) opacity(0.8) !important;
}

.btn-basket--unavailable:hover {
    background-color: #f1f5f9 !important;
    transform: none !important;
    box-shadow: none !important;
}
/* ══════════════════════════════════════════════════════
   PERFECT RISING SEARCH-BAR ANIMATION
   ══════════════════════════════════════════════════════ */

/* Header Wrapper Transition */
.cosmos-header-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header container padding transition */
.cosmos-header-wrapper header {
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state for the wrapper */
.cosmos-header-wrapper.scrolled header {
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: none;
}

/* Initial state of the search bar */
#cosmos-search-bar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center top;
}

/* Hide the search bar row background and border on scroll */
.cosmos-header-wrapper.scrolled #cosmos-search-bar {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
    background-color: transparent;
    pointer-events: none;
}

/* The search form container inside the bar */
#cosmos-search-bar .cosmos-search-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The magic transition: Move the form up into the header gap */
.cosmos-header-wrapper.scrolled #cosmos-search-bar .cosmos-search-wrapper {
    position: absolute;
    top: -52px; /* Moves it up into the Row 1 gap */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px; /* Adjust to fit your gap */
    pointer-events: auto;
    z-index: 2600;
}

/* Adjust input height in scrolled state for a sleeker look */
.cosmos-header-wrapper.scrolled #cosmos-search-bar input[data-live-search-input] {
    padding-top: 8px;
    padding-bottom: 8px;
    height: 38px;
    background-color: #f8fafc;
}

/* Ensure the gap in header-top is relative for positioning */
.header-top {
    position: relative;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .cosmos-header-wrapper.scrolled #cosmos-search-bar .cosmos-search-wrapper {
        top: -46px;
        max-width: 180px; /* Smaller gap on mobile */
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cosmos-header-wrapper.scrolled #cosmos-search-bar input[data-live-search-input] {
        height: 34px;
        font-size: 12px;
        padding-left: 36px;
    }
    
    .cosmos-header-wrapper.scrolled #cosmos-search-bar .cosmos-search-icon {
        left: 12px;
        transform: translateY(-50%) scale(0.85);
    }
}

/* ══════════════════════════════════════════════
   INFINITE SCROLL — ARCHIVE & SHOP
   ══════════════════════════════════════════════ */

/* Hide native WooCommerce pagination when infinite-scroll is active */
.cosmos-infinite-scroll-active nav.woocommerce-pagination,
body.cosmos-inf-active nav.woocommerce-pagination {
    display: none !important;
}

/* Sentinel / trigger element at bottom of product grid */
#cosmos-infinite-sentinel {
    width: 100%;
    padding: 40px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Spinner */
.cosmos-inf-spinner {
    display: none;
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--brand-pink, #e45366);
    border-radius: 50%;
    animation: cosmos-spin 0.7s linear infinite;
}

.cosmos-inf-spinner.is-active {
    display: block;
}

@keyframes cosmos-spin {
    to { transform: rotate(360deg); }
}

/* End-of-results pill */
.cosmos-inf-end {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: #f9fafb;
    border: 1px solid #eaeaea;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.cosmos-inf-end.is-visible {
    display: inline-flex;
}

/* Loaded products animate in */
.cosmos-inf-item-in {
    animation: cosmos-fade-up 0.35s ease both;
}

@keyframes cosmos-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════
   COSMOS BEAUTY — PREMIUM STYLING ADDITIONS
   ══════════════════════════════════════════════ */

/* ==========================================================================
   1. TOP ANNOUNCEMENT BAR & CUSTOM MARQUEE ANIMATIONS
   ========================================================================== */

.bs-top-bar {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 2500;
    position: relative;
}

.bs-top-bar .bs-container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Marquee Scroller Layout */
.cosmos-scroller-wrap {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.cosmos-scroller-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: cosmos-marquee var(--cosmos-top-bar-speed, 20s) linear infinite;
}

/* Pause marquee on hover for interactive feel */
.cosmos-scroller-wrap:hover .cosmos-scroller-track {
    animation-play-state: paused;
}

.cosmos-scroller-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
}

.cosmos-scroller-item {
    display: inline-block;
    padding: 0 3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Static announcement text wrapper */
.cosmos-top-bar-static-text {
    width: 100%;
    text-align: center;
    display: block;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Base marquee horizontal scroll */
@keyframes cosmos-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* --- 11 Premium Text Animation Effects --- */

/* 1. Neon Glow */
.cosmos-top-bar-anim-neon {
    animation: cosmos-neon-glow 1.5s ease-in-out infinite alternate;
}
@keyframes cosmos-neon-glow {
    from {
        text-shadow: 0 0 2px rgba(255,255,255,0.3), 0 0 5px rgba(255,255,255,0.2);
    }
    to {
        text-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px var(--brand-pink, #e45366), 0 0 20px var(--brand-pink, #e45366);
    }
}

/* 2. Shimmer Effect */
.cosmos-top-bar-anim-shimmer {
    background: linear-gradient(90deg, currentColor 0%, #ffffff 50%, currentColor 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cosmos-shimmer-sweep 3s linear infinite;
    display: inline-block;
}
@keyframes cosmos-shimmer-sweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 3. Color Shift Loop */
.cosmos-top-bar-anim-colorshift {
    animation: cosmos-color-shift 8s ease-in-out infinite;
}
@keyframes cosmos-color-shift {
    0%, 100% { color: inherit; }
    25% { color: #f43f5e; } /* rose-500 */
    50% { color: #3b82f6; } /* blue-500 */
    75% { color: #10b981; } /* emerald-500 */
}

/* 4. Pulse Scale */
.cosmos-top-bar-anim-pulse {
    display: inline-block;
    animation: cosmos-pulse-scale 2s ease-in-out infinite;
}
@keyframes cosmos-pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* 5. Vertical Bounce */
.cosmos-top-bar-anim-bounce {
    display: inline-block;
    animation: cosmos-bounce-y 2.5s ease infinite;
}
@keyframes cosmos-bounce-y {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2.5px); }
}

/* 6. Rotation Wiggle */
.cosmos-top-bar-anim-wiggle {
    display: inline-block;
    animation: cosmos-wiggle-rot 1.2s ease-in-out infinite;
}
@keyframes cosmos-wiggle-rot {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(0.8deg) translateX(-1px); }
    75% { transform: rotate(-0.8deg) translateX(1px); }
}

/* 7. 3D Flip */
.cosmos-top-bar-anim-flip {
    display: inline-block;
    backface-visibility: visible;
    animation: cosmos-flip-3d 5s ease-in-out infinite;
}
@keyframes cosmos-flip-3d {
    0% { transform: perspective(400px) rotateX(0); }
    40% { transform: perspective(400px) rotateX(180deg); }
    50% { transform: perspective(400px) rotateX(180deg); }
    90% { transform: perspective(400px) rotateX(360deg); }
    100% { transform: perspective(400px) rotateX(360deg); }
}

/* 8. Blinking Fade */
.cosmos-top-bar-anim-fade {
    animation: cosmos-fade-opacity 2.5s ease-in-out infinite;
}
@keyframes cosmos-fade-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* 9. Zoom Slide */
.cosmos-top-bar-anim-zoom-slide {
    display: inline-block;
    animation: cosmos-zoom-slide-drift 4s ease-in-out infinite alternate;
}
@keyframes cosmos-zoom-slide-drift {
    0% { transform: scale(1) translateX(-6px); }
    100% { transform: scale(1.05) translateX(6px); }
}

/* 10. Glow Slide */
.cosmos-top-bar-anim-glow-slide {
    display: inline-block;
    animation: cosmos-glow-slide-mix 3s ease-in-out infinite alternate;
}
@keyframes cosmos-glow-slide-mix {
    0% {
        transform: translateX(-4px);
        text-shadow: 0 0 2px rgba(255,255,255,0.2);
    }
    100% {
        transform: translateX(4px);
        text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 15px var(--brand-pink, #e45366);
    }
}

/* 11. Heartbeat Scale */
.cosmos-top-bar-anim-heartbeat {
    display: inline-block;
    animation: cosmos-heartbeat-pulse 1.6s ease-in-out infinite;
}
@keyframes cosmos-heartbeat-pulse {
    0% { transform: scale(1); }
    14% { transform: scale(1.07); }
    28% { transform: scale(1); }
    42% { transform: scale(1.07); }
    70% { transform: scale(1); }
}

/* ==========================================================================
   2. UNIFIED MOBILE SHOP FILTERS & SORTING TRIGGERS (36px Layout)
   ========================================================================== */

@media (max-width: 767px) {
    .cosmos-shop-top-bar {
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    
    .cosmos-shop-top-bar .woocommerce-result-count {
        display: none !important; /* Hide count to prevent overflow and keep actions unified */
    }

    .cosmos-shop-actions {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    .cosmos-mobile-filters-trigger {
        display: flex !important;
        flex: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 36px !important;
        min-height: 36px !important;
        background: #ffffff !important;
        border: 1px solid #dcdcdc !important;
        border-radius: 4px !important;
        color: #000000 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        padding: 0 10px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }

    .cosmos-mobile-filters-trigger:hover,
    .cosmos-mobile-filters-trigger:active {
        background: #fafafa !important;
        border-color: #000000 !important;
    }

    .cosmos-shop-ordering {
        flex: 1 !important;
        display: block !important;
        margin: 0 !important;
        width: auto !important;
    }

    .cosmos-shop-ordering .woocommerce-ordering {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .cosmos-shop-ordering .woocommerce-ordering select.orderby {
        display: block !important;
        width: 100% !important;
        height: 36px !important;
        min-height: 36px !important;
        background-color: #ffffff !important;
        border: 1px solid #dcdcdc !important;
        border-radius: 4px !important;
        color: #000000 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        padding: 0 28px 0 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        background-size: 12px !important;
    }

    .cosmos-shop-ordering .woocommerce-ordering select.orderby:hover,
    .cosmos-shop-ordering .woocommerce-ordering select.orderby:focus {
        background-color: #ffffff !important;
        border-color: #000000 !important;
    }

    /* RTL Direction adjustment for order dropdown */
    body.rtl .cosmos-shop-ordering .woocommerce-ordering select.orderby,
    [dir="rtl"] .cosmos-shop-ordering .woocommerce-ordering select.orderby {
        background-position: left 10px center !important;
        padding-left: 28px !important;
        padding-right: 12px !important;
    }
}

/* ==========================================================================
   3. AJAX ADD-TO-CART SUCCESS STATE FEEDBACK
   ========================================================================== */

.cosmos-ajax-add-to-cart {
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.15s ease !important;
}

.cosmos-ajax-add-to-cart.is-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3) !important;
    animation: cosmosAtcFlip 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.cosmos-sp__cart-group.is-success,
.cosmos-sp__cart-group:has(.is-success) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    transition: background 0.25s ease !important;
}

/* Drawing checkmark SVG in success state */
.cosmos-atc-checkmark {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    margin-right: 6px;
}

.cosmos-atc-checkmark-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: cosmosDrawCheck 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes cosmosAtcFlip {
    0% {
        transform: perspective(600px) rotateY(0deg) scale(1);
    }
    50% {
        transform: perspective(600px) rotateY(180deg) scale(1.04);
    }
    100% {
        transform: perspective(600px) rotateY(360deg) scale(1);
    }
}

@keyframes cosmosDrawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Halo burst on add-to-cart success */
.cosmos-ajax-add-to-cart {
    overflow: hidden;
    position: relative;
}

.cosmos-atc-halo {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: cosmosAtcHalo 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    pointer-events: none;
}

@keyframes cosmosAtcHalo {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.4); }
}

/* ==========================================================================
   4. STAR RATING SELECTION HIGHLIGHT FIX (COMMENT REVIEWS)
   ========================================================================== */

.comment-form-rating p.stars span a {
    color: #d1d5db !important;
    text-decoration: none !important;
}

.comment-form-rating p.stars span a::before {
    content: "☆" !important;
    color: #d1d5db !important;
    font-family: Arial, sans-serif !important;
}

/* Hover - turns hovered star & all preceding stars yellow */
.comment-form-rating p.stars span a:hover::before,
.comment-form-rating p.stars span a:hover ~ a::before,
.comment-form-rating p.stars span a.active::before,
.comment-form-rating p.stars span a.active ~ a::before,
.comment-form-rating p.stars span.selected a.active::before,
.comment-form-rating p.stars span.selected a.active ~ a::before {
    content: "★" !important;
    color: #ffcc00 !important;
}

/* ══════════════════════════════════════════════
   Mobile Bag Popup (Cart + Wishlist) Overrides
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .cosmos-mobile-popup--bag .cosmos-mobile-popup__body--bag {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
        overscroll-behavior: contain !important;
        background: #fff !important;
    }

    .cosmos-mobile-popup--bag .cosmos-mobile-popup__body--bag[hidden] {
        display: none !important;
    }

    /* Ensure mini-cart footer has safe area padding on mobile */
    .cosmos-mobile-popup--bag .cosmos-mini-cart__footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
    }

    /* Bag popup specific height */
    .cosmos-mobile-popup--bag {
        max-height: 85vh !important;
    }
}

/* Sephora Mobile Menu Refinements */
@media (max-width: 767px) {
    .mobile-nav-drawer .menu .sub-menu,
    .mobile-nav-drawer .menu .mobile-submenu-wrapper {
        display: none;
    }
    .mobile-nav-drawer .menu li.is-active > .sub-menu,
    .mobile-nav-drawer .menu li.is-active > .mobile-submenu-wrapper {
        display: block !important;
    }
    
    .mobile-nav-drawer .menu .cmn-chevron {
        background: transparent;
        border: none;
        padding: 10px;
        color: #000;
        transition: transform 0.3s ease;
    }
    .mobile-nav-drawer .menu li.is-active > .mobile-item-header .cmn-chevron {
        transform: rotate(-180deg);
    }
    
    /* Better styling for the lists */
    .mobile-nav-drawer .menu li {
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .mobile-nav-drawer .menu > li > .mobile-item-header > a {
        font-weight: 800;
        text-transform: uppercase;
        font-size: 13px;
        letter-spacing: 0.5px;
        padding: 15px 0;
        display: inline-block;
    }
    
    .mobile-nav-drawer .mobile-item-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-nav-drawer .menu .sub-menu,
    .mobile-nav-drawer .menu .mobile-submenu-wrapper {
        padding-left: 15px;
        border-left: 1px solid #ccc;
        margin-left: 5px;
        margin-bottom: 10px;
    }
    html[dir="rtl"] .mobile-nav-drawer .menu .sub-menu,
    html[dir="rtl"] .mobile-nav-drawer .menu .mobile-submenu-wrapper {
        padding-left: 0;
        padding-right: 15px;
        border-left: none;
        border-right: 1px solid #ccc;
        margin-left: 0;
        margin-right: 5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE PAGE — SEPHORA-STYLE BREADLINE + TOOLBAR
   ═══════════════════════════════════════════════════════════════ */

/* Breadline: "Category › N Produits" */
.cosmos-arc-breadline-wrap {
    margin-bottom: 16px;
}

.cosmos-arc-breadline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #000;
    line-height: 1.3;
}

.cosmos-arc-parent {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}
.cosmos-arc-parent:hover { color: #000; }

.cosmos-arc-sep {
    color: #9ca3af;
    font-weight: 400;
    font-size: 14px;
}

.cosmos-arc-current {
    color: #000;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0;
}

.cosmos-arc-count {
    color: #9ca3af;
    font-weight: 600;
    font-size: 11px;
}

.cosmos-arc-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
    color: #6b7280;
}

.cosmos-arc-sponsored,
.cosmos-arc-results {
    font-weight: 500;
}

/* Toolbar: FILTRER + TRIER side-by-side */
.cosmos-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-bottom: 24px;
}

/* Mobile toolbar matches the provided joined-outline design */
.cosmos-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    height: 50px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
    position: relative;
    text-decoration: none;
    flex: 1 1 0;
    min-width: 0;
}

.cosmos-toolbar-btn:hover {
    background: #f7f7f7;
}

/* Joined middle divider */
.cosmos-toolbar-btn--sort {
    border-right: none;
}

.cosmos-toolbar-btn--filter {
    border-left: 1px solid #000;
}

/* Desktop label elements: hidden on mobile */
.cosmos-toolbar-desk-label,
.cosmos-toolbar-sort-val,
.cosmos-toolbar-desk-chevron { display: none; }

/* Mobile icon + label elements: shown on mobile */
.cosmos-toolbar-mob-icon,
.cosmos-toolbar-mob-label { display: inline-flex; align-items: center; }

.cosmos-toolbar-mob-icon {
    color: #000;
    flex: 0 0 auto;
    line-height: 0;
}

.cosmos-toolbar-mob-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.cosmos-toolbar-mob-label,
.cosmos-toolbar-btn--filter > span {
    color: #000;
    line-height: 1;
}

/* TRIER button: invisible select overlays entire button face */
.cosmos-toolbar-sort-wrap {
    position: relative;
    overflow: visible;
}

.cosmos-toolbar-sort-wrap .cosmos-shop-ordering {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.cosmos-toolbar-sort-wrap .cosmos-shop-ordering .woocommerce-ordering,
.cosmos-toolbar-sort-wrap .cosmos-shop-ordering .woocommerce-ordering select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 13px !important;
    color: #000 !important;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* RTL adjustments for toolbar */
[dir="rtl"] .cosmos-toolbar-btn--sort {
    border-right: 1px solid #000;
    border-left: none;
}
[dir="rtl"] .cosmos-toolbar-btn--filter {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

/* Mobile toolbar: stretch to full width */
@media (max-width: 767px) {
    .cosmos-shop-toolbar {
        justify-content: stretch;
        gap: 0;
        width: 100%;
    }
    .cosmos-toolbar-btn {
        flex: 1;
        height: 50px;
        font-size: 14px;
        padding: 0 12px;
    }
    .cosmos-arc-breadline-wrap {
        margin-bottom: 12px;
    }
}

/* Desktop: sidebar always visible, hide FILTRER, show simple text sort */
@media (min-width: 1024px) {
    .cosmos-toolbar-btn--filter {
        display: none !important;
    }
    /* TRIER on desktop: looks like simple "Sort by: Relevance" text */
    .cosmos-toolbar-btn--sort {
        border: 1px solid #e5e7eb;
        background: transparent;
        height: 32px;
        padding: 0 12px;
        gap: 5px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        font-size: 13px;
        color: #444;
    }
    .cosmos-toolbar-btn--sort:hover {
        background: #f5f5f5;
        color: #000;
    }
    /* Show desktop label, hide mobile icon/label */
    .cosmos-toolbar-desk-label,
    .cosmos-toolbar-sort-val,
    .cosmos-toolbar-desk-chevron { display: inline-flex; align-items: center; }
    .cosmos-toolbar-mob-icon,
    .cosmos-toolbar-mob-label { display: none; }
    .cosmos-toolbar-desk-label {
        color: #999;
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
    }
    .cosmos-toolbar-sort-val {
        color: #111;
        font-weight: 600;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════════
   STICKY HEADER — Hide top bar on scroll
   ══════════════════════════════════════════════ */

/* Smooth max-height transition for top bar */
.bs-top-bar {
    max-height: 80px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    overflow: hidden;
}

/* On desktop: when sticky header is enabled and page is scrolled, hide the top bar */
@media (min-width: 1024px) {
    body.cosmos-sticky-header .cosmos-header-wrapper.scrolled .bs-top-bar {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        pointer-events: none;
    }
}

/* ══════════════════════════════════════════════
   CLEAN MOBILE MENU + SCREENSHOT-STYLE BADGES
   ══════════════════════════════════════════════ */

@media (max-width: 767px) {
    .mobile-nav-drawer .menu {
        padding: 0 24px 28px;
    }

    .mobile-nav-drawer .menu li {
        border-bottom: 1px solid #ececec;
        margin: 0;
        background: transparent !important;
        box-shadow: none !important;
    }

    .mobile-nav-drawer .menu li:last-child {
        border-bottom: none;
    }

    .mobile-nav-drawer .menu .mobile-item-header {
        display: block;
    }

    .mobile-nav-drawer .menu > li > .mobile-item-header > a,
    .mobile-nav-drawer .menu > li > a {
        display: block;
        padding: 18px 0 16px;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: #111;
        text-decoration: none;
    }

    .mobile-nav-drawer .menu .mobile-toggle-btn,
    .mobile-nav-drawer .menu .cmn-chevron {
        display: none !important;
    }

    .mobile-nav-drawer .menu .sub-menu,
    .mobile-nav-drawer .menu .mobile-submenu-wrapper {
        display: block !important;
        position: static;
        width: 100%;
        margin: 0 0 14px;
        padding: 0 0 0 14px;
        border-left: 1px solid #e5e5e5;
        background: transparent;
    }

    .mobile-nav-drawer .menu .sub-menu > li,
    .mobile-nav-drawer .menu .mobile-submenu-wrapper > li {
        border: 0;
    }

    .mobile-nav-drawer .menu .sub-menu > li > a,
    .mobile-nav-drawer .menu .mobile-submenu-wrapper > li > a {
        display: block;
        padding: 10px 0;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        color: #666;
        text-decoration: none;
    }

    .mobile-nav-drawer .menu .sub-menu .sub-menu,
    .mobile-nav-drawer .menu .mobile-submenu-wrapper .sub-menu,
    .mobile-nav-drawer .menu .mobile-submenu-wrapper .mobile-submenu-wrapper {
        margin-top: 8px;
    }

    [dir="rtl"] .mobile-nav-drawer .menu .sub-menu,
    [dir="rtl"] .mobile-nav-drawer .menu .mobile-submenu-wrapper {
        padding-left: 0;
        padding-right: 14px;
        border-left: none;
        border-right: 1px solid #e5e5e5;
    }
}

.bs-home-card__badges,
.cosmos-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

[dir="rtl"] .bs-home-card__badges,
[dir="rtl"] .cosmos-card-badges {
    left: auto;
    right: 12px;
    align-items: flex-end;
}

.bs-home-badge,
.cosmos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
    margin: 0;
}

.cosmos-badge--new {
    background: #ff2f6d;
    border-color: #ff2f6d;
    color: #fff;
}

.cosmos-badge--sale {
    background: #e7f3e3;
    border-color: #a9c59f;
    color: #5f7d54;
}

.cosmos-badge--restocked {
    background: #eefaf6;
    border-color: #9ad4c2;
    color: #13795f;
}

.cosmos-badge--best-seller {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ──────────────────────────────────────────────────
   MOBILE NAV DRAWER REDESIGN OVERRIDES
   ────────────────────────────────────────────────── */
#mobile-nav-drawer {
    background: #fafafa !important; /* Matches theme default background color */
    padding: 24px 20px !important;
}

#mobile-nav-drawer .mobile-nav-header h3 {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    text-transform: uppercase !important;
    font-style: italic !important;
    color: #1a1a1a !important;
}

#mobile-nav-drawer .mobile-nav-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1a1a1a !important;
    transition: all 0.2s ease !important;
}

#mobile-nav-drawer .mobile-nav-close:active {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(0.9) !important;
}

#mobile-nav-drawer .mobile-nav-lang {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding-bottom: 18px !important;
    margin-bottom: 20px !important;
}

#mobile-nav-drawer .mobile-lang-btn {
    border-radius: 12px !important;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
    transition: all 0.2s ease !important;
}

/* Redesigned Category Cards in Drawer */
#mobile-nav-drawer .cosmos-shop-catlist {
    gap: 14px !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__link {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important; /* Matches card borders in theme */
    border-radius: 20px !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04) !important; /* Matches theme card shadow */
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease !important;
    padding: 12px 14px !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__link:active {
    transform: scale(0.97) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__thumb {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f3f4f6 !important; /* Fallback gray-100 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1a1a1a !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__content strong {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #1a1a1a !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__content small {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
    font-size: 10px !important;
    color: #475569 !important;
    font-weight: 800 !important;
    background: #f1f5f9 !important;
    padding: 1px 8px !important;
    border-radius: 20px !important;
    align-self: flex-start !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__chips {
    padding: 0 10px 10px 60px !important; /* align with category name text */
    margin-top: -6px !important;
    gap: 5px !important;
}

#mobile-nav-drawer .cosmos-shop-chip {
    padding: 5px 10px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01) !important;
    transition: all 0.2s ease !important;
}

#mobile-nav-drawer .cosmos-shop-chip:active {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

/* Category arrow styling */
#mobile-nav-drawer .cat-arrow {
    margin-inline-start: auto !important;
    font-size: 11px !important;
    color: #9ca3af !important;
    transition: transform 0.2s ease !important;
}

#mobile-nav-drawer .cosmos-shop-catitem__link:active .cat-arrow {
    color: #1a1a1a !important;
}

/* Live Search overrides for Drawer */
#mobile-nav-drawer .cosmos-mobile-popup__search-input {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
}

#mobile-nav-drawer .cosmos-mobile-popup__search-input:focus {
    border-color: #111111 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

#mobile-nav-drawer .cosmos-mobile-popup__search-results {
    z-index: 100 !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Utility Links */
.mobile-nav-utilities a:active {
    opacity: 0.7 !important;
}

.mobile-nav-utilities i {
    color: #9ca3af !important;
    transition: color 0.2s ease !important;
}

.mobile-nav-utilities a:hover i,
.mobile-nav-utilities a:active i {
    color: #111111 !important;
}

/* Desktop Sticky Header */
@media (min-width: 768px) {
    #cosmos-header-wrapper {
        position: sticky !important;
        top: 0 !important;
        z-index: 2000 !important;
        background: #ffffff !important;
        transition: transform 0.4s ease, top 0.3s ease, box-shadow 0.3s ease !important;
    }

    body.admin-bar #cosmos-header-wrapper {
        top: 32px !important;
    }

    #cosmos-header-wrapper.scrolled {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
        border-bottom: none !important;
    }

    #cosmos-header-wrapper.scrolled .bs-nav-bar {
        border-bottom: none !important;
    }

    /* Hide the top bar on scroll to save screen space */
    #cosmos-header-wrapper.scrolled .bs-top-bar {
        max-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Mobile strict app behavior: prevent automatic focus zoom and horizontal scroll */
@media screen and (max-width: 767px) {
    /* Prevent zoom on input focus by forcing minimum 16px font-size */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Prevent unexpected horizontal page movement / left-and-right scroll */
    html, body {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
    }
}

/* Style custom date input calendar picker indicator overlay */
input[name="cosmos_user_age"] {
    position: relative !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 44px !important;
}

[dir="rtl"] input[name="cosmos_user_age"] {
    background-position: left 16px center !important;
    padding-left: 44px !important;
    padding-right: 16px !important;
}

input[name="cosmos_user_age"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

/* Color date input text like a placeholder when empty, and switch to dark text when filled or focused */
input[name="cosmos_user_age"]:not([data-has-value="true"]),
input[name="cosmos_user_age"]:not([data-has-value="true"])::-webkit-datetime-edit {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

input[name="cosmos_user_age"][data-has-value="true"],
input[name="cosmos_user_age"][data-has-value="true"]::-webkit-datetime-edit,
input[name="cosmos_user_age"]:focus,
input[name="cosmos_user_age"]:focus::-webkit-datetime-edit {
    color: #111827 !important;
    font-weight: 500 !important;
}

/* Explicitly enable touch panning on the mobile popup and its body to bypass body scroll lock */
.cosmos-mobile-popup,
.cosmos-mobile-popup__body {
    touch-action: pan-y !important;
}

/* Maximize height and adjust layout when viewport height is small (e.g. keyboard is open) */
@media screen and (max-height: 580px) {
    .cosmos-mobile-popup {
        max-height: 95vh !important;
        border-radius: 24px 24px 0 0 !important;
    }
}

/* Ensure desktop modal body is scrollable when dialog height is small */
.cosmos-modal__dialog {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}
.cosmos-modal__body {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* ══════════════════════════════════════════════
   SINGLE PRODUCT PAGE — Layout Spacing & Alignment
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    .cosmos-sp__similar,
    .cosmos-sp__brand-rep,
    .cosmos-sp__qna-section,
    .cosmos-sp__reviews-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* Premium horizontal slider edge-bleeding: headings stay aligned, but products slide edge-to-edge */
    .cosmos-sp__similar .bs-trends-slider-container {
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        overflow-x: visible !important;
    }
    
    .cosmos-sp__similar .bs-trends-slider-outer {
        overflow: visible !important;
    }

    .cosmos-sp__similar .bs-trends-slider-wrapper {
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    .cosmos-sp__similar .bs-trends-slider-wrapper::-webkit-scrollbar {
        display: none !important;
    }
}

/* ==========================================================================
   THEME EDITS: PAGINATION, SPACING & INFINITE SCROLL
   ========================================================================== */

/* 1. Black Pagination instead of pink */
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current,
.cosmos-pagination .page-numbers.current,
.cosmos-pagination .page-numbers:not(.current):not(.dots):hover {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border-color: #000000 !important;
}

/* 2. Global Section Spacing Minimization (reduce margins and paddings) */
.bs-home-trends-section {
  padding: 15px 0 !important;
}
@media (max-width: 767px) {
  .bs-home-trends-section {
    padding: 10px 0 !important;
  }
}

.bs-dual-banners-section {
  padding: 15px 0 !important;
}
@media (max-width: 767px) {
  .bs-dual-banners-section {
    padding: 10px 0 !important;
  }
}

.bs-cat-circles-wrapper {
  padding: 10px 0 !important;
}

.bs-hero-slider-section {
  padding: 10px 15px 10px !important;
}
@media (max-width: 767px) {
  .bs-hero-slider-section {
    padding: 5px 10px 5px !important;
  }
}

.cosmos-sp {
  padding: 0 0 20px !important;
}

.cosmos-sp__hero {
  padding: 15px 0 15px !important;
  gap: 20px !important;
}

.cosmos-sp__brand-rep,
.cosmos-sp__qna-section,
.cosmos-sp__reviews-section {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

/* 3. Global Infinite Scroll styles & grid */
.cosmos-infinite-scroll-section {
  margin-top: 20px;
  margin-bottom: 20px;
}
.cosmos-infinite-scroll-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (min-width: 768px) {
  .cosmos-infinite-scroll-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .cosmos-infinite-scroll-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.cosmos-infinite-scroll-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 30px 0;
  clear: both;
}

.cosmos-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid #000000;
  border-radius: 50%;
  animation: cosmos-spin 0.8s linear infinite;
}

.cosmos-spinner.cosmos-spinner--inline {
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 2px solid #ffffff !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-inline-end: 6px !important;
}

/* Style for Load More button in Infinite Scroll (Premium Sephora-style) */
#cosmos-load-more-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  padding: 14px 32px !important;
  cursor: pointer;
  transition: all 0.25s ease-in-out !important;
  border-radius: 0px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  min-width: 220px !important;
  margin: 40px auto !important;
}

#cosmos-load-more-btn:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

#cosmos-load-more-btn .cosmos-spinner.cosmos-spinner--inline {
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 2px solid #ffffff !important;
  margin-inline-end: 0px !important;
  margin-inline-start: 10px !important;
  vertical-align: middle !important;
}

#cosmos-load-more-btn:hover .cosmos-spinner.cosmos-spinner--inline {
  border-color: rgba(0, 0, 0, 0.25) !important;
  border-top-color: #000000 !important;
}


@keyframes cosmos-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sidebar buttons style - Black background on white sidebar panels */
.cosmos-side-panel .cosmos-btn,
.cosmos-side-panel .cosmos-mini-cart__checkout-link {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    text-shadow: none !important;
}
.cosmos-side-panel .cosmos-btn:hover,
.cosmos-side-panel .cosmos-mini-cart__checkout-link:hover {
    background: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* Clean up any pink box-shadows globally */
.cosmos-btn,
.cosmos-mini-cart__checkout-link {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Footer Logo Optimization */
footer img.custom-logo, .bs-footer img.custom-logo {
    max-width: 90px !important;
    height: auto !important;
}
/* Header Logo Custom Logo Styles */
.bs-logo-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}
.bs-logo-wrap img.custom-logo {
    max-height: 40px !important;
    width: auto !important;
    max-width: 100% !important;
    transition: max-height 0.3s ease;
    flex-shrink: 0 !important;
}
#cosmos-header-wrapper.scrolled .bs-logo-wrap img.custom-logo {
    max-height: 28px !important;
}
/* Mobile Popup Close Text Styling */
.cosmos-mobile-popup__close--text {
    position: absolute !important;
    top: 24px !important;
    right: 20px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
}
html[dir="rtl"] .cosmos-mobile-popup__close--text {
    right: auto !important;
    left: 20px !important;
}

/* ==========================================================================
   MOBILE QUANTITY SELECTORS (MODERN SEPHORA-STYLE STYLE UPDATES)
   ========================================================================== */
@media (max-width: 767px) {
    /* Main Cart Page quantity selector */
    .item-quantity-selector {
        height: 48px !important;
        border-radius: 9999px !important;
        padding: 4px !important;
        background: #f3f4f6 !important;
        border: 1px solid #e5e7eb !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .item-quantity-selector .minus,
    .item-quantity-selector .plus,
    .item-quantity-selector button.minus,
    .item-quantity-selector button.plus,
    .item-quantity-selector input.minus,
    .item-quantity-selector input.plus,
    .item-quantity-selector .quantity .minus,
    .item-quantity-selector .quantity .plus {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        color: #111827 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 800 !important;
        transition: transform 0.1s ease, background-color 0.2s ease !important;
    }
    .item-quantity-selector .minus:active,
    .item-quantity-selector .plus:active {
        transform: scale(0.9) !important;
        background-color: #f9fafb !important;
    }
    .item-quantity-selector input.qty {
        width: 48px !important;
        height: 40px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #111827 !important;
    }

    /* Mini-cart drawer quantity buttons */
    .cosmos-mini-cart-contents .cosmos-qty-btn {
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        color: #111827 !important;
        transition: transform 0.1s ease !important;
    }
    .cosmos-mini-cart-contents .cosmos-qty-btn:active {
        transform: scale(0.9) !important;
    }
    .cosmos-mini-cart-contents .cosmos-qty-btn svg {
        width: 12px !important;
        height: 12px !important;
        stroke-width: 3px !important;
    }
    .cosmos-mini-cart-contents .cosmos-qty-value {
        font-size: 14px !important;
        font-weight: 800 !important;
        min-width: 24px !important;
        text-align: center !important;
        color: #111827 !important;
    }
    .cosmos-mini-cart-contents .flex.items-center.gap-4.bg-gray-100 {
        padding: 4px !important;
        border-radius: 9999px !important;
        background: #f3f4f6 !important;
        gap: 12px !important;
        border: 1px solid #e5e7eb !important;
    }

    /* Single Product Page quantity container */
    .single-product .cart .quantity {
        border: 1px solid #e5e7eb !important;
        border-radius: 9999px !important;
        background: #f3f4f6 !important;
        padding: 4px 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        height: 48px !important;
    }
    .single-product .cart .quantity input.qty {
        font-size: 16px !important;
        font-weight: 800 !important;
        width: 50px !important;
        border: none !important;
        background: transparent !important;
        text-align: center !important;
        color: #111827 !important;
    }
}





