/* ==========================================================
   E-COMMERCE ENHANCEMENTS & COMPONENT STYLES
   TP-9 Mobile Accessories World Storefront
   ========================================================== */

/* Prevent horizontal scroll without breaking position:sticky.
   overflow-x:clip visually clips like hidden but does NOT create a scroll
   container, so sticky sidebars keep working. */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  max-width: 100%;
}

/* Layout & Containers */
.ecom-container {
  width: 92%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-shortcuts {
  display: none;
}
.mobile-drawer-header,
.mobile-drawer-shortcuts,
.mobile-drawer-account,
.mobile-drawer-contact {
  display: none;
}
.mobile-category-item {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}
.mobile-category-panel {
  display: none;
}

/* Hide scrollbars cleanly across horizontal strips */
.scrollbar-none,
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Sleek thin scrollbar for vertical filter lists */
.filter-scroll::-webkit-scrollbar {
  width: 4px;
}
.filter-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.filter-scroll::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 9999px;
}

/* Breadcrumb nav */
.breadcrumb-nav a {
  text-decoration: none;
}

/* Product Card Styling */
.ecom-product-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
  contain: layout style;
}
.ecom-product-card:hover {
  transform: translateY(-4px);
  border-color: #f4b6be;
  box-shadow: 0 16px 32px -10px rgba(23, 23, 25, 0.10);
}

/* Images inside product cards get multiply blend — removes white bg from product photos */
.ecom-product-img {
  mix-blend-mode: multiply;
  backface-visibility: hidden; /* avoids Safari repaint glitch */
}

/* Keep catalogue product cards consistent and touch friendly. */
.ecom-product-card {
  min-width: 0;
  border-color: #e8eaee;
  border-radius: 14px;
  background: #fff;
}
.ecom-product-card > .relative.aspect-square {
  background: #fff;
}
.ecom-card-compare {
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  color: #20242a;
  text-decoration: none;
}
.category-hero-image {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(30vw, 420px);
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 0 24px 24px 0;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
}
.ecom-product-card .btn-ajax-add-cart {
  min-height: 44px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
}
.ecom-product-card .btn-ajax-add-cart:hover {
  background: #d94357;
}

/* Match the home page interaction: reveal a full-width cart action at the
   bottom of a catalogue card when the pointer hovers or keyboard focuses it. */
.ecom-product-card > .flex-1 > div:last-child > div:last-child {
  display: block;
  height: 0;
  margin: 0;
}
.ecom-product-card > .flex-1 > div:last-child > div:last-child > a {
  display: none;
}
.ecom-product-card .btn-ajax-add-cart {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 18px;
  border-radius: 0;
  opacity: 0;
  transition: height .2s ease, opacity .2s ease, background-color .2s ease;
}
.ecom-product-card:hover .btn-ajax-add-cart,
.ecom-product-card:focus-within .btn-ajax-add-cart {
  height: 54px;
  min-height: 54px;
  opacity: 1;
}

@media (max-width: 700px) {
  .catalog-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
  }
  .ecom-product-card {
    padding: 7px 8px 9px;
    border-radius: 12px;
  }
  .ecom-product-card > .relative.aspect-square {
    aspect-ratio: 1 / .94;
    margin-bottom: 5px;
    border-radius: 8px;
  }
  .ecom-product-card .btn-ajax-add-cart {
    display: none;
  }
  .ecom-product-card > .flex-1 > div:last-child > div:last-child {
    display: none;
  }
  .ecom-product-card > .flex-1 > div:last-child > div:last-child > a {
    display: none;
  }
  .ecom-product-card > .relative.aspect-square > .ecom-product-badges {
    display: none;
  }
  .ecom-product-card .btn-toggle-wishlist {
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .ecom-product-card .ecom-card-compare {
    top: 34px;
    right: 4px;
  }
  .ecom-product-card > .flex-1 > div:first-child > div:first-child {
    margin-bottom: 2px;
  }
  .ecom-product-card > .flex-1 > div:first-child > div:first-child > span:first-child {
    font-size: 8px;
    letter-spacing: .04em;
  }
  .ecom-product-card > .flex-1 > div:first-child > div:first-child > span:last-child {
    font-size: 9px;
  }
  .ecom-product-card h3 {
    min-height: 2.5em;
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.25;
  }
  .ecom-product-card > .flex-1 > div:last-child {
    padding-top: 4px;
    border-top: 0;
  }
  .ecom-product-card > .flex-1 > div:last-child > div:first-child {
    margin-bottom: 0;
  }
  .ecom-product-card > .flex-1 > div:last-child > div:first-child > span:first-child {
    font-size: 15px;
  }
  .ecom-product-card > .flex-1 > div:last-child > div:first-child > span:last-child {
    font-size: 10px;
  }
  .ecom-product-card .btn-ajax-add-cart svg {
    width: 15px;
    height: 15px;
    flex: none;
  }
  .ecom-product-card > .flex-1 > div:last-child > div:last-child {
    gap: 6px;
  }
  .ecom-product-card > .flex-1 > div:last-child > div:last-child > a {
    padding: 9px;
    flex: none;
  }
  /* The list toggle remains useful on desktop; on phones keep catalogue cards
     in the same two-column product layout as the home page. */
  .ecom-product-card.sm\:flex-row {
    flex-direction: column;
    gap: 0;
  }
  .ecom-product-card.sm\:flex-row > .relative.aspect-square {
    width: 100%;
    height: auto;
    flex: none;
  }

  /* Touch screens have sticky hover states. Keep card actions hidden there;
     desktop pointer hover/focus still reveals the action above this breakpoint. */
  .product-card .add-cart,
  .moving-product-card .add-cart,
  .top-category-product .add-cart,
  .bestseller-card .add-cart,
  .ecom-product-card .btn-ajax-add-cart {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Cart product image */
.cart-item-img {
  background: #f7f7f9;
  mix-blend-mode: multiply;
  object-fit: contain;
}

/* Category Filter Accordion / Sidebar */
.filter-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.filter-group-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #171719;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Range input styling */
input[type="range"] {
  accent-color: #d94357;
}

/* Product Details Gallery */
.product-gallery-main {
  background: #f7f7f9;
  border-radius: 20px;
  border: 1px solid #eceef2;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 300px;
  max-height: 500px;
  padding: 12px;
}

.product-gallery-main img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
  display: block;
}

.product-gallery-main:hover img {
  transform: scale(1.09);
  cursor: zoom-in;
}

.product-thumb-btn {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #f7f7f9;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-btn.active,
.product-thumb-btn:hover {
  border-color: #d94357;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 67, 87, 0.15);
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Quantity Selector */
.qty-control {
  display: inline-flex;
  align-items: center;
  background: #f4f4f6;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #e7e7ea;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: #ffffff;
  font-weight: 700;
  font-size: 16px;
  color: #171719;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control button:hover {
  background: #d94357;
  color: #ffffff;
}

.qty-control input {
  width: 48px;
  text-align: center;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  color: #171719;
  outline: none;
}

/* Order Tracking Progress Line */
.track-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}

.track-step-circle.active {
  background: #d94357;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(217, 67, 87, 0.2);
}

.track-step-circle.completed {
  background: #10b981;
  color: #ffffff;
}

.track-step-circle.inactive {
  background: #f3f4f6;
  color: #9ca3af;
}

/* Autocomplete search results box */
.search-suggestions-dropdown {
  max-height: 460px;
  overflow-y: auto;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #f8f8f9;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.search-suggestion-item:hover {
  background: #fff5f6;
}

.search-suggestion-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #f7f7f9;
  border-radius: 8px;
  padding: 4px;
}

/* Toast Message */
.toast-msg {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #171719;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-msg.success {
  border-left: 4px solid #10b981;
}

.toast-msg.error {
  border-left: 4px solid #ef4444;
}

/* Empty states */
.empty-state-box {
  text-align: center;
  padding: 60px 20px;
  background: #fafafb;
  border-radius: 20px;
  border: 1px dashed #e5e7eb;
}

/* Tab active state */
.detail-tab-btn.active {
  color: #d94357;
  border-bottom-color: #d94357;
  font-weight: 700;
}

/* Cart layout on phones */
@media (max-width: 640px) {
  .cart-page {
    padding-top: 18px;
    padding-bottom: 28px;
  }
  .cart-page .ecom-container {
    width: calc(100% - 20px);
  }
  .cart-page-heading {
    align-items: flex-start !important;
    gap: 10px;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
  }
  .cart-page-heading h1 {
    font-size: 22px;
    line-height: 1.15;
  }
  .cart-page-heading p {
    max-width: 270px;
    font-size: 11px;
    line-height: 1.4;
  }
  .cart-page-heading form {
    padding-top: 4px;
    flex: none;
  }
  .cart-page > .ecom-container > .grid {
    gap: 16px !important;
  }
  .cart-page .cart-line-item {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 68px;
    grid-template-areas:
      "image details remove"
      "image quantity total";
    align-items: center;
    gap: 7px 10px;
    padding: 12px !important;
    text-align: left;
  }
  .cart-page .cart-product-image {
    grid-area: image;
    width: 64px;
    height: 64px;
    padding: 5px;
    border-radius: 12px;
  }
  .cart-page .cart-product-details {
    grid-area: details;
    align-self: end;
    text-align: left;
  }
  .cart-page .cart-product-details > span {
    display: block;
    font-size: 8px;
    line-height: 1.2;
  }
  .cart-page .cart-product-details h3 {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
  }
  .cart-page .cart-product-details p {
    overflow: hidden;
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cart-page .cart-product-details .sm\:hidden {
    display: none !important;
  }
  .cart-page .cart-quantity {
    grid-area: quantity;
    justify-self: start;
    align-self: start;
  }
  .cart-page .qty-control {
    padding: 3px;
    border-radius: 10px;
  }
  .cart-page .qty-control button {
    width: 29px;
    height: 29px;
    font-size: 14px;
  }
  .cart-page .qty-control input {
    width: 34px;
    font-size: 13px;
  }
  .cart-page .cart-line-total {
    grid-area: total;
    min-width: 0 !important;
    align-self: start;
    padding-top: 7px;
    font-size: 12px;
  }
  .cart-page .cart-remove {
    grid-area: remove;
    justify-self: end;
    align-self: start;
  }
  .cart-page .cart-remove button {
    padding: 4px;
  }
  .cart-page .cart-bottom-actions {
    align-items: stretch;
    padding: 13px;
  }
  .cart-page .cart-bottom-actions > * {
    justify-content: center;
    text-align: center;
  }
  .cart-page .cart-summary-card,
  .cart-page .cart-coupon-card {
    padding: 16px;
    border-radius: 20px;
  }
  .cart-page .cart-summary-card h2 {
    margin-bottom: 12px;
  }
  .cart-page .cart-summary-card > div:nth-of-type(2) {
    margin-bottom: 16px;
  }
  .cart-page .cart-summary-card a[href="checkout.php"],
  .cart-page .cart-summary-card a[href="shop.php"] {
    min-height: 48px;
    padding: 12px;
    border-radius: 14px;
    font-size: 12px;
  }
  .cart-page .cart-coupon-card form {
    gap: 7px;
  }
  .cart-page .coupon-code-chip {
    max-width: 100%;
  }
}

/* Rebuilt mobile storefront header: brand/actions, full-width search, then
   named shortcuts so wishlist and profile never depend on hover menus. */
@media (max-width: 700px) {
  .site-header {
    position: relative;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #e8ebf0;
    box-shadow: 0 5px 18px rgba(18, 28, 45, .06);
  }
  .site-header > .main-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px 38px;
    grid-template-areas:
      "brand cart menu"
      "search search search";
    align-items: center;
    width: calc(100% - 24px);
    height: auto !important;
    min-height: 0;
    gap: 11px 8px;
    padding: 11px 0 10px;
  }
  .site-header .brand {
    grid-area: brand;
    width: max-content;
    max-width: 100%;
    order: initial;
  }
  .site-header .brand img {
    display: block;
    width: clamp(106px, 34vw, 132px);
    max-width: 100%;
  }
  .site-header .head-actions {
    display: flex;
    grid-area: cart;
    justify-content: center;
    width: 42px;
    margin: 0;
    gap: 0;
    order: initial;
  }
  .site-header .head-actions > a:first-child,
  .site-header .head-actions > .user-account-dropdown-wrapper {
    display: none !important;
  }
  .site-header .header-cart-btn {
    display: flex !important;
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    border-color: #e4e8ef;
    border-radius: 13px;
    background: #f8f9fb;
  }
  .site-header .header-cart-btn > span {
    display: none;
  }
  .site-header .mobile-toggle {
    display: grid;
    grid-area: menu;
    width: 38px;
    height: 42px;
    place-items: center;
    margin: 0;
    padding: 0;
    order: initial;
    border: 1px solid #e4e8ef;
    border-radius: 13px;
    background: #fff;
    color: #202736;
    font-size: 21px;
    line-height: 1;
  }
  .site-header .search-wrapper {
    grid-area: search;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    order: initial;
  }
  .site-header .search {
    display: flex;
    width: 100%;
    height: 44px;
    max-width: none;
    margin: 0;
    order: initial;
    border-radius: 13px;
    background: #f8f9fb;
    box-shadow: none;
  }
  .site-header .search input {
    min-width: 0;
    padding: 0 12px;
    font-size: 12px;
  }
  .site-header .search input::placeholder {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-header .search button[aria-label="Search"] {
    width: 34px;
    height: 34px;
    margin-right: 5px;
    border-radius: 10px;
  }
  .site-header .mobile-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 24px);
    gap: 8px;
    padding: 0 0 11px;
  }
  .mobile-shortcut {
    display: flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 5px;
    border: 1px solid #e9ebf0;
    border-radius: 11px;
    background: #fff;
    color: #394150;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }
  .mobile-shortcut:active {
    background: #fff4f5;
    border-color: #f3c4ca;
  }
  .mobile-shortcut-icon {
    position: relative;
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: none;
    align-items: center;
    justify-content: center;
    color: #d94357;
  }
  .mobile-shortcut-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
  .mobile-shortcut-count {
    position: absolute;
    top: -6px;
    right: -8px;
    display: grid;
    min-width: 14px;
    height: 14px;
    place-items: center;
    padding: 0 3px;
    border-radius: 999px;
    background: #d94357;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
  }
  .site-header .nav-wrap {
    display: none;
    border-top: 1px solid #edf0f4;
    background: #202735;
  }
  .site-header .nav-wrap.open {
    display: block;
  }
  .site-header .nav-inner {
    display: block;
    width: 100%;
    height: auto;
    padding: 5px 12px 10px;
  }
  .site-header .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .site-header .nav-links a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #f8fafc;
    font-size: 12px;
  }
  .site-header .nav-links a.active {
    border-color: rgba(217,67,87,.35);
    background: rgba(217,67,87,.18);
    color: #fff;
  }
  .site-header .nav-promo {
    display: block;
    margin-top: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #d94357;
    color: #fff;
    font-size: 11px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .mobile-shortcut {
    gap: 4px;
    font-size: 9px;
  }
  .site-header > .main-head,
  .site-header .mobile-shortcuts {
    width: calc(100% - 20px);
  }
}

/* Mobile navigation opens as a right-side drawer, not an inline dropdown. */
@media (max-width: 700px) {
  body.mobile-menu-open {
    overflow: hidden;
  }
  .site-header .nav-wrap.open {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    border: 0;
    background: rgba(15, 23, 42, .48);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: mobile-drawer-backdrop .18s ease-out both;
  }
  .site-header .nav-wrap.open .nav-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(88vw, 370px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100%;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: -16px 0 44px rgba(15, 23, 42, .18);
    animation: mobile-drawer-enter .26s cubic-bezier(.2,.8,.2,1) both;
    overscroll-behavior: contain;
  }
  .mobile-drawer-header {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
  }
  .mobile-drawer-header a {
    display: inline-flex;
    max-width: calc(100% - 48px);
    align-items: center;
  }
  .mobile-drawer-header img {
    display: block;
    width: 154px;
    max-width: 100%;
    height: auto;
  }
  .mobile-drawer-close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: none;
    place-items: center;
    border: 1px solid #e5e8ee;
    border-radius: 50%;
    background: #fff;
    color: #293140;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
  }
  .site-header .nav-wrap.open .nav-links {
    display: flex;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 4px;
  }
  .site-header .nav-wrap.open .mobile-category-item {
    display: flex;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header .nav-wrap.open .nav-links a {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid #f0f1f4;
    border-radius: 0;
    background: #fff;
    color: #283142;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }
  .site-header .nav-wrap.open .nav-links a::after {
    content: '›';
    color: #9aa2af;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
  }
  .site-header .nav-wrap.open .nav-links a.active {
    border-bottom-color: #f0f1f4;
    border-radius: 10px;
    background: #fff5f6;
    color: #b92f43;
  }
  .site-header .nav-wrap.open .categories-menu-link[aria-expanded="true"]::after {
    transform: rotate(90deg);
  }
  .site-header .nav-wrap.open .mobile-category-panel:not([hidden]) {
    display: flex;
    max-height: min(38vh, 300px);
    flex-direction: column;
    overflow-y: auto;
    margin: 3px 0 7px;
    padding: 8px 10px 8px 14px;
    border-left: 2px solid #efb7c0;
    border-radius: 0 10px 10px 0;
    background: #fff8f9;
    overscroll-behavior: contain;
  }
  .site-header .nav-wrap.open .nav-links .mobile-category-panel > p {
    margin: 0 0 4px;
    padding: 2px 5px 7px;
    color: #8b5360;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .site-header .nav-wrap.open .nav-links .mobile-category-panel a {
    display: flex;
    min-height: 38px;
    justify-content: space-between;
    padding: 8px 5px;
    border: 0;
    border-bottom: 1px solid #f3e8ea;
    border-radius: 0;
    background: transparent;
    color: #404858;
    font-size: 11px;
    font-weight: 600;
  }
  .site-header .nav-wrap.open .nav-links .mobile-category-panel a:last-child {
    border-bottom: 0;
  }
  .site-header .nav-wrap.open .nav-links .mobile-category-panel a::after {
    content: '›';
    color: #bd7c87;
    font-size: 17px;
  }
  .site-header .nav-wrap.open .nav-promo {
    display: flex;
    width: auto;
    align-self: stretch;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin: 8px 16px 4px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #d94357;
    color: #fff;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
  }
  .mobile-drawer-account {
    display: grid;
    width: auto;
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 16px 16px;
    border-bottom: 1px solid #edf0f4;
  }
  .mobile-drawer-account.is-logged-in {
    grid-template-columns: 1fr;
  }
  .mobile-drawer-account a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    border: 1px solid #d94357;
    border-radius: 11px;
    color: #b92f43;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }
  .mobile-drawer-account .mobile-drawer-register {
    background: #d94357;
    color: #fff;
  }
  .mobile-drawer-shortcuts {
    display: grid;
    width: auto;
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px 16px 4px;
  }
  .mobile-drawer-shortcut {
    display: flex;
    min-width: 0;
    min-height: 60px;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #e8ebf0;
    border-radius: 13px;
    background: #fbfcfe;
    color: #293446;
    text-decoration: none;
  }
  .mobile-drawer-shortcut-icon {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border-radius: 11px;
    background: #fff0f2;
    color: #d94357;
  }
  .mobile-drawer-shortcut-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
  .mobile-drawer-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 15px;
    height: 15px;
    place-items: center;
    padding: 0 3px;
    border-radius: 999px;
    background: #d94357;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
  }
  .mobile-drawer-shortcut > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
  }
  .mobile-drawer-shortcut strong {
    overflow: hidden;
    color: #252e3e;
    font-size: 11px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-drawer-shortcut small {
    overflow: hidden;
    color: #8a92a0;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-drawer-shortcut > b {
    color: #aab1bc;
    font-size: 19px;
    font-weight: 400;
  }
  .mobile-drawer-contact {
    display: flex;
    width: auto;
    align-self: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 16px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #f0f1f4;
  }
  .mobile-drawer-contact a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-drawer-call {
    background: #273446;
  }
  .mobile-drawer-call > span:first-child {
    font-size: 17px;
  }
  .mobile-drawer-call > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-drawer-call small {
    color: rgba(255,255,255,.78);
    font-size: 10px;
    font-weight: 500;
  }
  .mobile-drawer-whatsapp {
    background: #18c96b;
  }
  @keyframes mobile-drawer-enter {
    from { opacity: .6; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes mobile-drawer-backdrop {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
