/* QLife mobile / tablet override layer.
   Loaded AFTER theme.css. Desktop (≥993px) is intentionally untouched. */

/* ==========================================================================
   01 Foundation
   ========================================================================== */

@media screen and (max-width: 992px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .ql-body {
    /* clip after component overflow fixes; does not create a scroll container like overflow:hidden */
    overflow-x: clip;
    font-size: 16px;
  }

  .ql-body .container {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 100%;
  }

  .ql-body img,
  .ql-body svg {
    max-width: 100%;
  }

  .ql-body iframe {
    max-width: 100%;
  }

  .ql-body table {
    max-width: 100%;
  }

  .ql-prose img,
  .ql-cms img,
  .ql-cms-body img {
    height: auto;
  }

  .ql-prose iframe,
  .ql-cms iframe,
  .ql-contact-map iframe {
    width: 100%;
    max-width: 100%;
  }

  .ql-kicker {
    letter-spacing: 0.16em;
    font-size: 11px;
  }

  .ql-body .ql-btn,
  .ql-body .mbtn.ql-btn {
    min-height: 50px;
  }

  .ql-body input.mform,
  .ql-body select.mform,
  .ql-body textarea.mform,
  .ql-body .ql-field input,
  .ql-body .ql-field select,
  .ql-body .ql-field textarea,
  .ql-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  .ql-body select,
  .ql-body textarea {
    font-size: 16px;
  }

  /* 64 Overlay stack — keep #wait as the existing highest layer */
  .ql-body #header {
    z-index: 40;
    overflow: visible;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .ql-body .ql-sticky-buy {
    z-index: 45;
  }

  .ql-body .ql-mm-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 69;
    background: rgba(28, 23, 20, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .ql-body.ql-menu-open .ql-mm-backdrop,
  body.ql-menu-open .ql-mm-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ql-body #mm {
    z-index: 70;
  }

  .ql-body .basket-list,
  .ql-body .basket-list-show {
    z-index: 80;
  }

  .ql-body .popup {
    z-index: 90;
  }

  .ql-body .search-form {
    z-index: 100;
  }

  body.ql-menu-open,
  body.ql-search-open,
  body.ql-minicart-open {
    overflow: hidden;
  }

  .ql-body.ql-menu-open #header,
  .ql-body.ql-minicart-open #header {
    z-index: 80;
  }

  body.ql-search-open .ql-sticky-buy,
  body.ql-minicart-open .ql-sticky-buy,
  body.ql-menu-open .ql-sticky-buy,
  body:has(#popMask.popupShow) .ql-sticky-buy {
    transform: translateY(120%);
    pointer-events: none;
  }
}

@media screen and (max-width: 575px) {
  .ql-body .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media screen and (max-width: 480px) {
  .ql-body .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   02 Header
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .top-header,
  .ql-body .ql-announce {
    height: 30px;
  }

  .ql-body .ql-announce-item {
    font-size: 11px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
  }

  .ql-body .header {
    display: flex;
    align-items: center;
    min-height: 64px;
    height: 64px;
    padding: 0 8px 0 4px;
    position: relative;
    gap: 0;
  }

  .ql-body .header-bar {
    display: flex !important;
    order: 1;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    flex-shrink: 0;
  }

  .ql-body .header-left {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    z-index: 1;
    pointer-events: auto;
  }

  .ql-body .logo {
    max-width: 92px;
    padding: 0;
  }

  .ql-body .header-medium {
    order: 3;
    display: flex !important;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    margin-left: auto;
  }

  .ql-body .header-medium-row-1,
  .ql-body .header-medium-row-2 {
    display: none !important;
  }

  .ql-body .header-medium-mobile {
    display: flex !important;
    align-items: center;
    height: 48px;
    margin: 0;
    justify-content: flex-end;
  }

  .ql-body .header-medium-mobile .ml-auto,
  .ql-body .header-medium-mobile .ml-1 {
    display: none !important;
  }

  .ql-body .header-medium-mobile .search-btn,
  .ql-body .search-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .ql-body .header-right {
    order: 4;
    min-width: 48px;
    width: auto;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ql-body .header-right-item.shopping-basket {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .ql-body.is-home #header:not(.is-solid):not(.mega-open) {
    background: linear-gradient(180deg, rgba(28, 23, 20, 0.46), rgba(28, 23, 20, 0.08) 72%, transparent);
  }

  .ql-body.is-home.ql-menu-open #header,
  .ql-body.is-home.ql-search-open #header,
  .ql-body.is-home.ql-minicart-open #header {
    background: rgba(247, 244, 238, 0.96);
    color: var(--ql-ink, #1c1714);
  }

  .ql-body.is-home.ql-menu-open #header .logo img,
  .ql-body.is-home.ql-search-open #header .logo img,
  .ql-body.is-home.ql-minicart-open #header .logo img {
    filter: none;
  }
}

/* ==========================================================================
   03 Mobile Nav
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .mobil-menu#mm {
    position: fixed;
    top: 0;
    bottom: 0;
    right: auto;
    left: 0;
    width: min(92vw, 420px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--ql-white, #fbf8f3);
    color: var(--ql-ink, #1c1714);
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    box-shadow: none;
    overflow: auto;
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-overflow-scrolling: touch;
  }

  .ql-body .mobil-menu#mm.mm-show {
    transform: none;
    right: auto;
    left: 0;
    box-shadow: 18px 0 48px rgba(28, 23, 20, 0.18);
  }

  .ql-body .mobil-menu#mm.mm-close {
    transform: translateX(-104%);
    right: auto;
  }

  .ql-body #mm .mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: env(safe-area-inset-top);
    min-height: 64px;
    padding: 8px 8px 8px 22px;
  }

  .ql-body #mm .mm-header > .header-text {
    font-size: 20px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-left: 0;
  }

  .ql-body .dismiss-mm {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: inherit;
    float: none;
  }

  .ql-body .ql-mm-nav {
    padding: 4px 8px 8px;
  }

  .ql-body .ql-mm-group {
    padding: 0;
    border-bottom: 1px solid var(--ql-line, rgba(28, 23, 20, 0.1));
  }

  .ql-body .ql-mm-acc,
  .ql-body .ql-mm-page {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    text-decoration: none !important;
  }

  .ql-body .ql-mm-acc:after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.55;
  }

  .ql-body .ql-mm-group.is-open .ql-mm-acc:after {
    transform: rotate(225deg);
  }

  .ql-body .ql-mm-acc-panel {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0 8px;
    transition: max-height 0.22s ease, opacity 0.2s ease, visibility 0.2s ease, padding 0.22s ease;
  }

  .ql-body .ql-mm-group.is-open .ql-mm-acc-panel {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
    padding: 0 8px 12px 16px;
  }

  .ql-body .ql-mm-acc-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
  }

  .ql-body .ql-mm-account {
    margin: 18px 12px 32px;
    padding: 16px;
    border: 1px solid var(--ql-line, rgba(28, 23, 20, 0.1));
    border-radius: 16px;
    background: var(--ql-ivory, #f7f4ee);
  }

  .ql-body .ql-mm-account p {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ql-gold, #b89b6a);
    font-weight: 600;
  }

  .ql-body .ql-mm-account a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid var(--ql-line, rgba(28, 23, 20, 0.1));
  }

  .ql-body .ql-mm-account a:last-child {
    border-bottom: 0;
  }
}

@media screen and (max-width: 575px) {
  .ql-body .mobil-menu#mm {
    width: 100%;
    max-width: none;
  }
}

/* ==========================================================================
   04 Hero
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-hero {
    min-height: 82svh;
    min-height: 82dvh;
    max-height: 920px;
  }

  .ql-body .ql-hero-overlay {
    background:
      linear-gradient(180deg, rgba(18, 12, 10, 0.18) 0%, transparent 38%, rgba(18, 12, 10, 0.42) 100%);
  }

  .ql-body .ql-hero-content {
    width: min(100%, calc(100% - 32px));
    padding: 76px 16px 16px;
  }

  .ql-body .ql-hero .ql-kicker {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .ql-body .ql-hero-title {
    font-size: clamp(1.25rem, 5.4vw, 1.75rem);
    max-width: 18ch;
    line-height: 1.14;
    margin-bottom: 8px;
  }

  .ql-body .ql-hero-copy {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
    max-width: 32ch;
  }

  .ql-body .ql-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 0;
  }

  .ql-body .ql-hero-actions .ql-btn {
    width: 100%;
    min-height: 44px;
  }

  .ql-body .ql-hero-replay {
    width: 44px;
    height: 44px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media screen and (max-width: 575px) {
  .ql-body .ql-hero {
    min-height: 78svh;
  }

  .ql-body .ql-hero-copy {
    display: none;
  }

  .ql-body .ql-hero-title {
    font-size: clamp(1.15rem, 5.8vw, 1.5rem);
    margin-bottom: 12px;
  }
}

@media screen and (max-height: 500px) and (max-width: 992px) {
  .ql-body .ql-hero {
    min-height: 100svh;
    max-height: none;
  }

  .ql-body .ql-hero-content {
    padding-top: 72px;
    padding-bottom: 16px;
  }

  .ql-body .ql-hero-copy {
    display: none;
  }
}

/* ==========================================================================
   05 Announce
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-announce-band {
    height: 36px;
  }

  .ql-body .ql-announce-band .ql-announce {
    height: 36px;
  }

  .ql-body .ql-announce-band .ql-announce-item {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .ql-body .ql-section {
    padding: 56px 0;
  }
}

@media screen and (max-width: 575px) {
  .ql-body .ql-section {
    padding: 48px 0;
  }
}

/* ==========================================================================
   06 Homepage Categories
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-cat-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 14px;
    margin: 0;
    padding: 4px 28px 18px 0;
    scrollbar-width: none;
  }

  .ql-body .ql-cat-rail::-webkit-scrollbar {
    display: none;
  }

  .ql-body .ql-cat-card {
    flex: 0 0 auto;
    flex-basis: auto;
    width: 104px;
    scroll-snap-align: start;
  }

  .ql-body .ql-cat-orb {
    width: 96px;
    height: 96px;
  }

  .ql-body .ql-cat-card strong {
    font-size: 13px;
  }

  .ql-body .ql-cat-card em {
    font-size: 11px;
  }
}

@media screen and (max-width: 575px) {
  .ql-body .ql-cat-card {
    width: 96px;
  }

  .ql-body .ql-cat-orb {
    width: 88px;
    height: 88px;
  }
}

/* ==========================================================================
   07 Collection Banners
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-banners {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ql-body .ql-banner {
    min-height: 320px;
    border-radius: 18px;
  }
}

@media screen and (max-width: 575px) {
  .ql-body .ql-banner {
    min-height: 280px;
  }
}

/* ==========================================================================
   08 Listing
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-listing-hero {
    min-height: 220px;
    padding: 48px 0 28px;
  }

  .ql-body .ql-listing-hero.is-search {
    min-height: 180px;
    padding: 36px 0 24px;
  }

  .ql-body .ql-listing-hero .category-header {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    max-width: 18ch;
  }

  .ql-body .ql-listing-wrap {
    padding: 24px 0 72px;
  }

  .ql-body .ql-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ql-body .ql-listing-count {
    margin: 0;
  }

  .ql-body .ql-sort select,
  .ql-body #qlListingSort {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }

  .ql-body .ql-listing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media screen and (max-width: 320px) {
  .ql-body .ql-listing-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   09 Product Cards
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-card.list-product-area:hover {
    transform: none;
    box-shadow: none;
  }

  .ql-body .ql-card:hover .ql-card-media img {
    transform: none;
    filter: none;
  }

  .ql-body .ql-card .list-product-name {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ql-body .ql-card .list-product-s-exp {
    min-height: 0;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ql-body .ql-card-body {
    padding: 12px 12px 12px;
  }

  .ql-body .ql-card .list-add-to-cart,
  .ql-body .ql-card-cart {
    min-height: 44px;
    width: 100%;
    font-size: 11px;
  }

  .ql-body .ql-card-meta.list-product-price {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* ==========================================================================
   10 Search
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .search-form {
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .ql-body .ql-search-dismiss {
    width: 44px;
    height: 44px;
    top: calc(10px + env(safe-area-inset-top));
    right: 12px;
  }

  .ql-body .ql-search-shell {
    position: relative;
    width: min(100%, calc(100% - 8px));
    margin: calc(12px + env(safe-area-inset-top)) auto 24px;
    padding-top: 8px;
  }

  .ql-body .ql-search-shell > .ql-kicker {
    margin-bottom: 18px;
  }

  .ql-body .search-input {
    font-size: 20px !important;
    height: 54px !important;
    line-height: 1.2 !important;
  }

  .ql-body .ql-search-popular a,
  .ql-body .ql-search-quick a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   11 PDP
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-pdp .container,
  .ql-body .ql-pdp-layout,
  .ql-body .ql-pdp-gallery-col,
  .ql-body .ql-pdp-buy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ql-body .ql-pdp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 28px;
  }

  .ql-body .ql-pdp-buy .product-detail-header {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
    overflow-wrap: anywhere;
  }

  .ql-body #product-detail.ql-pdp-gallery,
  .ql-body .ql-pdp-gallery {
    max-height: none;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .ql-body .ql-pdp-gallery .swiper-container,
  .ql-body .ql-pdp-gallery .swiper-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ql-body #product-detail.ql-pdp-gallery .swiper-slide,
  .ql-body .ql-pdp-gallery .swiper-slide {
    height: 360px;
  }

  .ql-body #product-detail.ql-pdp-gallery .swiper-slide img,
  .ql-body .ql-pdp-gallery .swiper-slide img {
    max-width: min(320px, 86%);
    max-height: 330px;
  }

  /* Beat mobil.css { .swiper-pagination { display: none } } — phone uses dots */
  .ql-body .ql-pdp-gallery .swiper-pagination,
  .ql-body #product-detail.ql-pdp-gallery .swiper-pagination {
    display: flex !important;
    position: relative !important;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
  }

  .ql-body .ql-pdp-gallery .swiper-pagination-bullet,
  .ql-body #product-detail.ql-pdp-gallery .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px;
    border-radius: 99px;
    background: rgba(28, 23, 20, 0.22) !important;
    overflow: hidden;
    opacity: 1;
    border: 0;
  }

  .ql-body .ql-pdp-gallery .swiper-pagination-bullet-active,
  .ql-body #product-detail.ql-pdp-gallery .swiper-pagination-bullet-active {
    background: var(--ql-burgundy, #6b2d3c) !important;
    transform: scaleX(1.5);
  }

  .ql-body .ql-pdp-gallery .swiper-pagination-bullet img {
    display: none;
  }

  .ql-body .ql-pdp #product-variants > div {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 12px;
  }

  .ql-body .ql-pdp #product-variants label {
    display: block;
    width: auto;
    max-width: 100%;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ql-body .ql-pdp #product-variants select,
  .ql-body .ql-pdp #select0,
  .ql-body .ql-pdp #select1,
  .ql-body .ql-pdp #select2,
  .ql-body .ql-pdp #select3 {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .ql-body .ql-pdp .product-detail-add-cart {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ql-body .ql-pdp #minus-plus-number {
    width: 100%;
    justify-content: space-between;
  }

  .ql-body .ql-pdp .quantity-control,
  .ql-body .ql-pdp .button-minus,
  .ql-body .ql-pdp .button-plus {
    min-width: 44px;
    min-height: 44px;
  }

  .ql-body .ql-pdp #quantity {
    min-height: 48px;
    font-size: 16px;
  }

  .ql-body .ql-pdp #addToCart,
  .ql-body .ql-pdp .add-to-cart-btn .addToCart {
    width: 100%;
    min-height: 54px;
  }

  .ql-body .ql-pdp-story h2,
  .ql-body .ql-notes-pyramid h2,
  .ql-body .ql-pdp-copy h2 {
    font-size: clamp(1.35rem, 5vw, 1.7rem);
  }

  .ql-body .ql-pdp-story,
  .ql-body .ql-notes-pyramid,
  .ql-body .ql-pdp-copy {
    padding-top: 8px;
  }

  .ql-body .ql-related-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .ql-body .ql-related-grid::-webkit-scrollbar {
    display: none;
  }

  .ql-body .ql-related-card {
    flex: 0 0 min(78%, 280px);
    min-height: 200px;
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 575px) {
  .ql-body #product-detail.ql-pdp-gallery .swiper-slide,
  .ql-body .ql-pdp-gallery .swiper-slide {
    height: 320px;
  }

  .ql-body #product-detail.ql-pdp-gallery .swiper-slide img,
  .ql-body .ql-pdp-gallery .swiper-slide img {
    max-height: 290px;
    max-width: min(260px, 84%);
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .ql-body .ql-pdp-gallery .swiper-pagination-bullet,
  .ql-body #product-detail.ql-pdp-gallery .swiper-pagination-bullet {
    width: 36px !important;
    height: 44px !important;
    border-radius: 8px;
    background: transparent !important;
  }

  .ql-body .ql-pdp-gallery .swiper-pagination-bullet img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ==========================================================================
   12 Sticky Buy
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-sticky-buy {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    min-height: calc(64px + env(safe-area-inset-bottom));
  }

  .ql-body .ql-sticky-buy #qlStickyCart {
    min-height: 48px;
    min-width: 140px;
  }

  body.ql-sticky-on {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   13 Popup / Auth
   ========================================================================== */

@media screen and (max-width: 767px) {
  .ql-body .popup {
    align-items: flex-end;
    top: 0;
  }

  .ql-body .pop-content {
    width: 100%;
    max-width: none;
    max-height: 90svh;
    border-radius: 22px 22px 0 0;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ql-body .pop-close-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ql-body .contentPop {
    min-width: 0;
    max-width: none;
  }

  .ql-body .ql-auth .signInBtn,
  .ql-body .ql-auth .signUpBtn,
  .ql-body .ql-auth .forgotPasswordBtn,
  .ql-body .ql-auth .fastShopBtn,
  .ql-body .ql-auth .addOrEditAddressFastShopBtn,
  .ql-body .ql-auth .addOrEditAddressBtn {
    width: 100%;
    min-height: 54px !important;
  }

  .ql-body .ql-field input.mform,
  .ql-body .ql-field-pass input.mform,
  .ql-body .ql-field select.mform,
  .ql-body .ql-field textarea.mform {
    min-height: 52px;
    font-size: 16px;
  }

  .ql-body .ql-auth-row,
  .ql-body .ql-addr-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .ql-body .popup {
    align-items: center;
  }

  .ql-body .pop-content {
    width: min(520px, calc(100% - 40px));
    max-height: min(86vh, 760px);
    border-radius: 22px;
  }
}

/* ==========================================================================
   14 Mini Cart
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .basket-list,
  .ql-body .basket-list-show {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: min(90svh, 760px);
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    transform: none;
  }

  .ql-body .ql-mini-head {
    flex: 0 0 auto;
  }

  .ql-body .ql-mini-items {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ql-body .ql-mini-foot,
  .ql-body .ql-mini-empty {
    flex: 0 0 auto;
  }

  .ql-body .ql-mini-close {
    width: 44px;
    height: 44px;
  }

  .ql-body .quantity-control,
  .ql-body .incQuantityBasket,
  .ql-body .decQuantityBasket {
    min-width: 44px;
    min-height: 44px;
  }

  .ql-body .ql-mini-thumb,
  .ql-body .ql-mini-thumb img {
    width: 68px;
    height: 68px;
    object-fit: cover;
  }

  .ql-body .goBasketBtn .ql-btn,
  .ql-body .goBasketBtn .mbtn {
    min-height: 50px;
    width: 100%;
  }

  .ql-body .header-right:has(.basket-list-show) .ql-minicart-backdrop,
  .ql-body .ql-minicart-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(28, 23, 20, 0.35);
    z-index: 79;
  }

  .ql-body .basket-list:not(.basket-list-show) + .ql-minicart-backdrop,
  .ql-body .header-right:not(:has(.basket-list-show)) .ql-minicart-backdrop {
    display: none;
  }
}

/* Backdrop is a previous sibling of the list — :has on header-right covers open state */

/* ==========================================================================
   15 Basket
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-cart .basket-page,
  .ql-body.ql-cart .basket-page,
  .ql-cart .basket-page {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ql-body .ql-cart .basket-page-list-header {
    display: none;
  }

  .ql-body .ql-cart .basket-page-list-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "info price"
      "qty remove";
    gap: 10px 12px;
  }

  .ql-body .ql-checkout .basket-page-list-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "info price"
      "qty price";
    gap: 6px 12px;
  }

  .ql-body .ql-cart .basket-page-list-body .item-1,
  .ql-body .ql-checkout .basket-page-list-body .item-1 { grid-area: info; display: flex; }
  .ql-body .ql-cart .basket-page-list-body .item-2 { grid-area: qty; display: flex !important; }
  .ql-body .ql-checkout .basket-page-list-body .item-2 {
    grid-area: qty;
    display: block !important;
    width: auto !important;
    justify-self: start;
  }
  .ql-body .ql-cart .basket-page-list-body .item-3,
  .ql-body .ql-checkout .basket-page-list-body .item-3 {
    grid-area: price;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    white-space: nowrap;
  }
  .ql-body .ql-cart .basket-page-list-body .item-4,
  .ql-body .ql-checkout .basket-page-list-body .item-4 { grid-area: remove; display: flex !important; }

  .ql-body .complete-shopping button,
  .ql-body .ql-cart .complete-shopping button {
    width: 100%;
    min-height: 54px !important;
  }
}

/* ==========================================================================
   16 Checkout
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-checkout .basket-page {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .ql-body .ql-checkout.is-step-2 .basket-page-summary {
    order: -1;
  }

  .ql-body .ql-checkout .basket-page-summary-content {
    position: static;
  }

  .ql-body .ql-check-head {
    gap: 14px;
  }

  .ql-body .ql-check-dot {
    font-size: 12px;
  }

  .ql-body .ql-check-actions .ql-btn,
  .ql-body .ql-check-summary-go {
    width: 100%;
    min-height: 54px;
  }

  .ql-body .ql-checkout .ql-check-card {
    margin-bottom: 10px;
    padding: 12px 14px;
  }

  .ql-body .ql-pay-option {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ql-body .ql-card-form .ql-field input,
  .ql-body .ql-card-form .ql-field select {
    min-height: 52px;
    font-size: 16px;
  }

  .ql-body .ql-card-expiry {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .ql-body .ql-check input {
    width: 22px;
    height: 22px;
  }

  .ql-body .ql-checkout .ql-btn-primary,
  .ql-body .paymentMethodDetail .ql-btn-primary,
  .ql-body .paymentMethodDetail button[type="submit"] {
    width: 100%;
    min-height: 54px;
  }

  .ql-body .standart-cont.d-none {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  .ql-body .ql-card-expiry {
    grid-template-columns: 1fr 1fr;
  }

  .ql-body .ql-card-expiry .ql-field:last-child {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   17 Member
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-account .member-page,
  .ql-body .member-page {
    display: block;
  }

  .ql-body .member-page-menu > .item-1 {
    min-width: 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .ql-body .member-page-menu > .item-1 > .item-2 {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 12px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ql-body .member-page-menu > .item-1 > .item-2::-webkit-scrollbar {
    display: none;
  }

  .ql-body .member-page-menu > .item-1 > .item-2 > div {
    flex: 0 0 auto;
    padding: 0 !important;
  }

  .ql-body .member-page-menu > .item-1 > .item-2 a,
  .ql-body .member-page-menu > .item-1 > .item-2 > .item-4 a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--ql-line, rgba(28, 23, 20, 0.1));
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
  }

  .ql-body .member-page-menu > .item-1 > .item-3 {
    padding: 4px 12px 14px;
  }

  .ql-body .member-page-menu > .item-1 > .item-3 .mbtn {
    width: 100%;
    min-height: 44px;
  }

  .ql-body .member-page-content {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }

  .ql-body .member-info > .item-2 {
    display: block;
  }

  .ql-body .member-info > .item-2 > div {
    width: 100%;
    margin-bottom: 12px;
  }

  .ql-body .member-info input.mform,
  .ql-body .member-info select.mform {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .ql-body .member-address > .item-2,
  .ql-body .member-address > .item-2 > div {
    display: block;
    width: 100%;
  }

  .ql-body .member-address > .item-2 > div > div > .item-3 a,
  .ql-body .deleteAddressBtn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 12px;
  }

  .ql-body .member-orders > .item-2 > div {
    margin-bottom: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ql-line, rgba(28, 23, 20, 0.1));
    border-radius: 16px;
  }

  .ql-body .member-orders .row {
    display: block;
  }

  .ql-body .member-orders [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-bottom: 8px;
  }

  .ql-body .member-orders .mbtn {
    width: 100%;
    min-height: 48px;
  }

  .ql-body .memberInfoEditBtn {
    width: 100%;
    min-height: 52px;
  }
}

/* ==========================================================================
   18 CMS
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .ql-about-layout,
  .ql-body .ql-contact-cards {
    grid-template-columns: 1fr;
  }

  .ql-body .ql-about-stat span {
    font-size: 22px;
  }

  .ql-body .ql-contact-map iframe {
    height: 300px;
  }

  .ql-body .ql-cms-body {
    padding-bottom: 64px;
  }

  .ql-body .ql-prose,
  .ql-body .ql-cms-body {
    overflow-wrap: anywhere;
  }

  .ql-body .ql-cms-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media screen and (max-width: 575px) {
  .ql-body .ql-contact-map iframe {
    height: 280px;
  }
}

/* ==========================================================================
   19 Footer
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body #footer .py-5 {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }

  .ql-body #footer .footer-text {
    margin-bottom: 22px;
  }

  .ql-body #footer .ql-footer-pay {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
  }

  .ql-body #footer img:not(.ql-footer-pay) {
    max-width: 100%;
    height: auto;
  }
}

/* ==========================================================================
   20 Accessibility
   ========================================================================== */

@media screen and (max-width: 992px) {
  .ql-body .header-bar:focus-visible,
  .ql-body .search-btn:focus-visible,
  .ql-body .shopping-basket:focus-visible,
  .ql-body .dismiss-mm:focus-visible,
  .ql-body .ql-mm-acc:focus-visible,
  .ql-body .ql-btn:focus-visible,
  .ql-body .ql-search-dismiss:focus-visible {
    outline: 2px solid var(--ql-burgundy, #6b2d3c);
    outline-offset: 2px;
  }
}

/* ==========================================================================
   21 Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ql-body .ql-hero-replay {
    display: none;
  }

  .ql-body .mobil-menu#mm,
  .ql-body .ql-mm-backdrop,
  .ql-body .ql-card,
  .ql-body .basket-list,
  .ql-body .popup,
  .ql-body .pop-content,
  .ql-body .search-form,
  .ql-body [data-reveal],
  .ql-body .ql-cat-orb,
  .ql-body .ql-banner img {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   22 Landscape / small height
   ========================================================================== */

@media screen and (max-width: 992px) and (max-height: 430px) {
  .ql-body .ql-hero {
    min-height: 100svh;
  }

  .ql-body .basket-list-show {
    max-height: 100svh;
    border-radius: 0;
  }

  .ql-body .pop-content {
    max-height: 100svh;
    border-radius: 0;
  }
}

@media screen and (max-width: 320px) {
  .ql-body .header {
    padding: 0 2px;
  }

  .ql-body .logo {
    max-width: 78px;
  }

  .ql-body .ql-hero-title {
    font-size: 1.5rem;
  }

  .ql-body .ql-listing-grid {
    grid-template-columns: 1fr;
  }
}
