/*
 * LeosWearPlatform v1.9.68
 * Mobile & Tablet QA layer
 *
 * Scope lock:
 * - Responsive presentation only.
 * - No desktop rules above 1024px.
 * - No business logic, content, database, pricing, stock or reward changes.
 */

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

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

  body {
    min-width: 0;
  }

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

  .container,
  .navbar,
  main,
  section,
  article,
  aside,
  form,
  .product-card,
  .cart-item,
  .checkout-main,
  .checkout-summary,
  .panel,
  .account-shell,
  .dashboard-main {
    min-width: 0;
  }

  h1,
  h2,
  h3,
  p,
  a,
  button,
  label,
  small,
  strong,
  code,
  .card-number,
  .dashboard-card-number,
  .dashboard-card-number-full {
    overflow-wrap: anywhere;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  input,
  select,
  textarea {
    min-width: 0;
    font-size: 16px;
  }

  .btn,
  button,
  [role="button"],
  .nav-btn,
  .account-btn {
    touch-action: manipulation;
  }

  .header {
    max-width: 100vw;
  }

  .navbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .nav-menu {
    max-width: min(88vw, 390px);
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .menu-overlay,
  .search-overlay,
  .cms-promo-popup-overlay,
  .cms-raffle-overlay,
  .checkout-member-prompt-overlay,
  .new-member-reward-overlay,
  .discount-eligibility-overlay,
  .home-member-modal,
  .dashboard-golden-modal,
  .golden-modal,
  .size-chart-modal {
    width: 100vw;
    max-width: 100vw;
  }

  .search-panel,
  .cart-drawer,
  .wishlist-drawer {
    max-width: 100vw;
    max-height: 100dvh;
    overscroll-behavior: contain;
  }

  .featured-grid,
  .products-grid,
  .shop-grid,
  .new-arrivals-grid,
  .category-grid,
  .collections-grid,
  .offers-grid,
  .benefits-grid,
  .reviews-grid,
  .social-grid,
  .footer-grid,
  .stat-grid,
  .checkout-grid,
  .contact-grid,
  .help-grid {
    min-width: 0;
  }

  .featured-grid > *,
  .products-grid > *,
  .shop-grid > *,
  .new-arrivals-grid > *,
  .category-grid > *,
  .collections-grid > *,
  .offers-grid > *,
  .benefits-grid > *,
  .reviews-grid > *,
  .social-grid > *,
  .stat-grid > *,
  .checkout-grid > * {
    min-width: 0;
  }

  .product-card img,
  .product-main-image img,
  .cart-item img,
  .checkout-item img {
    height: auto;
  }

  .product-actions,
  .cart-item-actions,
  .checkout-actions,
  .stock-resolution-actions,
  .dashboard-title-actions,
  .panel-head {
    min-width: 0;
    flex-wrap: wrap;
  }

  .cart-drawer-content,
  .wishlist-drawer-content,
  .search-live-area,
  .notification-list,
  .order-list {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .checkout-shell,
  .checkout-main,
  .checkout-summary,
  .checkout-section,
  .checkout-summary-card,
  .payment-option,
  .stock-resolution {
    min-width: 0;
  }

  .checkout-summary {
    position: static;
  }

  .coupon-entry {
    min-width: 0;
  }

  .coupon-entry input {
    min-width: 0;
    width: 100%;
  }

  .account-page {
    min-height: 100dvh;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .account-nav a,
  .account-nav button {
    min-height: 44px;
  }

  .dashboard-title,
  .dashboard-title-actions,
  .dashboard-reward-center,
  .dashboard-golden,
  .dashboard-security-shortcut,
  .notification-panel,
  .raffle-wins-panel,
  .member-discount-panel {
    min-width: 0;
  }

  .dashboard-golden,
  .member-card,
  .golden-card-demo {
    max-width: 100%;
  }

  .cms-promo-popup-overlay,
  .cms-raffle-overlay,
  .checkout-member-prompt-overlay,
  .new-member-reward-overlay,
  .discount-eligibility-overlay,
  .home-member-modal,
  .dashboard-golden-modal,
  .golden-modal,
  .size-chart-modal {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .cms-promo-popup,
  .cms-raffle,
  .checkout-member-prompt,
  .new-member-reward-card,
  .discount-eligibility-card,
  .member-daily-benefits,
  .home-member-modal__dialog,
  .dashboard-golden-dialog,
  .golden-modal .modal-panel,
  .size-chart-dialog {
    width: min(100%, 620px);
    max-width: 100%;
    max-height: calc(100dvh - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .cms-promo-popup-close,
  .cms-raffle-close,
  .home-member-modal__close,
  .dashboard-golden-close,
  .golden-modal-close,
  .modal-close,
  .size-chart-close {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .cms-raffle-wheel-wrap {
    width: min(68vw, 310px);
    max-width: 310px;
  }

  .cms-floating-whatsapp,
  .cms-raffle-launcher,
  .cms-raffle-fab {
    max-width: calc(100vw - max(28px, env(safe-area-inset-left)) - max(28px, env(safe-area-inset-right)));
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .hero,
  .cms-managed-page-hero,
  .collections-hero,
  .offers-hero,
  .contact-hero,
  .help-hero,
  .golden-hero {
    min-height: 0;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 11vw, 4rem);
    line-height: 0.98;
  }

  .hero-buttons,
  .product-actions,
  .stock-resolution-actions {
    width: 100%;
  }

  .product-details,
  .product-info,
  .product-gallery,
  .product-main-image {
    min-width: 0;
    max-width: 100%;
  }

  .product-thumbnails,
  .thumbnail-list {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .cart-page,
  .checkout-page,
  .wishlist-page,
  .orders-page,
  .saved-addresses-page {
    width: 100%;
    max-width: 100%;
  }

  .cart-item,
  .checkout-item,
  .order-card {
    max-width: 100%;
  }

  .dashboard-title {
    align-items: flex-start;
    gap: 14px;
  }

  .dashboard-title-actions {
    width: 100%;
  }

  .dashboard-title-actions > * {
    flex: 1 1 auto;
  }

  .dashboard-security-shortcut {
    align-items: flex-start;
    gap: 14px;
  }

  .dashboard-security-shortcut .account-btn {
    flex: 0 0 auto;
  }

  .notification-panel,
  .raffle-wins-panel,
  .member-discount-panel,
  .panel {
    max-width: 100%;
  }

  .contact-action > div,
  .contact-action > span,
  .help-topic-card > div {
    min-width: 0;
  }

  .contact-action small,
  .contact-action strong {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    gap: 12px;
    flex-wrap: wrap;
  }

  .search-form,
  .search-panel-top {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-title-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-title-actions > * {
    width: 100%;
    min-width: 0;
  }

  .dashboard-title-actions .account-btn {
    grid-column: 1 / -1;
  }

  .dashboard-security-shortcut {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-security-shortcut .account-btn {
    width: 100%;
  }

  .panel-head {
    align-items: flex-start;
    gap: 10px;
  }

  .cms-raffle {
    padding: 20px 14px 18px;
    border-radius: 20px;
  }

  .cms-raffle-head h2 {
    margin-left: 34px;
    margin-right: 34px;
  }

  .cms-raffle-wheel-wrap {
    width: min(74vw, 282px);
  }

  .raffle-checkout-coupon {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .coupon-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }

  .coupon-entry input {
    grid-column: 1 / -1;
  }

  .coupon-entry .coupon-paste,
  .coupon-entry button {
    width: 100%;
    min-height: 44px;
  }

  .checkout-section,
  .checkout-summary-card,
  .stock-resolution {
    padding-left: 14px;
    padding-right: 14px;
  }

  .payment-option {
    align-items: flex-start;
  }

  .payment-option > div {
    min-width: 0;
  }

  .home-member-modal__actions,
  .cms-promo-popup-actions,
  .new-member-reward-actions,
  .discount-eligibility-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .home-member-modal__actions > *,
  .cms-promo-popup-actions > *,
  .new-member-reward-actions > *,
  .discount-eligibility-actions > *,
  .cms-promo-popup-cta,
  .cms-raffle-spin,
  .cms-raffle-checkout {
    width: 100%;
    max-width: 100%;
  }

  .cms-promo-popup-copy,
  .checkout-member-prompt,
  .new-member-reward-card,
  .discount-eligibility-card,
  .member-daily-benefits,
  .home-member-modal__dialog,
  .dashboard-golden-dialog,
  .golden-modal .modal-panel,
  .size-chart-dialog {
    border-radius: 18px;
  }

  .dashboard-golden,
  .panel,
  .notification-panel,
  .raffle-wins-panel,
  .member-discount-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-card-number {
    white-space: normal;
  }

  .account-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-submit-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .featured-grid,
  .featured-grid.dynamic-uniform-grid,
  .products-grid,
  .shop-grid,
  .new-arrivals-grid,
  .category-grid.category-showcase-grid,
  .stat-grid,
  .dashboard-title-actions,
  .account-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-heading {
    align-items: flex-start;
  }

  .coupon-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .coupon-entry input {
    grid-column: auto;
  }

  .dashboard-title-actions .account-btn {
    grid-column: auto;
  }

  .cms-raffle-wheel-wrap {
    width: min(72vw, 248px);
  }

  .cms-raffle-wheel > span {
    font-size: 9px;
  }
}

@media (max-width: 1024px) and (max-height: 560px) and (orientation: landscape) {
  .cms-promo-popup-overlay,
  .cms-raffle-overlay,
  .checkout-member-prompt-overlay,
  .new-member-reward-overlay,
  .discount-eligibility-overlay,
  .home-member-modal,
  .dashboard-golden-modal,
  .golden-modal,
  .size-chart-modal {
    place-items: start center;
  }

  .cms-promo-popup,
  .cms-raffle,
  .checkout-member-prompt,
  .new-member-reward-card,
  .discount-eligibility-card,
  .member-daily-benefits,
  .home-member-modal__dialog,
  .dashboard-golden-dialog,
  .golden-modal .modal-panel,
  .size-chart-dialog {
    max-height: calc(100dvh - 20px);
  }

  .cms-raffle {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .cms-raffle-head p {
    margin-bottom: 6px;
  }

  .cms-raffle-wheel-wrap {
    width: min(48vh, 220px);
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .cms-raffle-wheel > span {
    transform: rotate(var(--angle)) translateY(max(-125px, -20vh)) rotate(calc(-1 * var(--angle)));
  }
}

/*
 * v1.9.69 focused mobile fixes
 * Scope: member dashboard notification bell + Home hero CTA sizing only.
 */
@media (max-width: 768px) {
  .hero .hero-buttons > .btn {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    min-height: 50px;
    padding: 14px 18px;
  }
}

@media (max-width: 640px) {
  .dashboard-title-actions > .notification-bell {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
    justify-self: start;
    align-self: center;
  }

  .dashboard-title-actions > .notification-bell svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero .hero-buttons > .btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

/*
 * v1.9.70 focused mobile Member Dashboard notification center.
 * Existing notification, raffle and Member Discount data/rendering remain unchanged.
 */
@media (max-width: 720px) {
  body.mobile-dashboard-notification-center .dashboard-title-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  body.mobile-dashboard-notification-center .dashboard-title-actions > #raffleWinsBell,
  body.mobile-dashboard-notification-center .dashboard-title-actions > #notificationBell,
  body.mobile-dashboard-notification-center .dashboard-title-actions > #memberDiscountBell {
    position: relative;
    order: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 20px auto minmax(16px, auto);
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 76px;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 9px 5px 8px;
    border-radius: 16px;
    text-align: center;
    line-height: 1.15;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  body.mobile-dashboard-notification-center .dashboard-title-actions > #raffleWinsBell > svg,
  body.mobile-dashboard-notification-center .dashboard-title-actions > #notificationBell > svg,
  body.mobile-dashboard-notification-center .dashboard-title-actions > #memberDiscountBell > svg {
    width: 19px;
    height: 19px;
  }

  body.mobile-dashboard-notification-center .dashboard-channel-name {
    display: block;
    min-width: 0;
    color: #171717;
    font-size: .68rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .01em;
  }

  body.mobile-dashboard-notification-center #raffleWinsBadge,
  body.mobile-dashboard-notification-center #memberDiscountBadge {
    position: static;
    display: -webkit-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: currentColor;
    background: transparent;
    font-size: .56rem;
    font-weight: 800;
    line-height: 1.18;
    white-space: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.mobile-dashboard-notification-center #notificationBadge:not([hidden]) {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    min-width: 19px;
    width: auto;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: .62rem;
    line-height: 1;
  }

  body.mobile-dashboard-notification-center .dashboard-title-actions > .account-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  body.mobile-dashboard-notification-center .dashboard-title-actions > .mobile-channel-active {
    border-color: #b88b16;
    box-shadow: 0 0 0 2px rgba(184,139,22,.13), 0 10px 24px rgba(40,31,10,.1);
    transform: translateY(-1px);
  }

  body.mobile-dashboard-notification-center .dashboard-title-actions.is-channel-switching > #raffleWinsBell,
  body.mobile-dashboard-notification-center .dashboard-title-actions.is-channel-switching > #notificationBell,
  body.mobile-dashboard-notification-center .dashboard-title-actions.is-channel-switching > #memberDiscountBell {
    pointer-events: none;
  }

  body.mobile-dashboard-notification-center .dashboard-reward-center {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
    border-radius: 20px;
  }

  body.mobile-dashboard-notification-center .dashboard-reward-center:not(:has(> div:not([hidden]))) {
    display: none;
  }

  body.mobile-dashboard-notification-center .dashboard-reward-center > #notificationPanel,
  body.mobile-dashboard-notification-center .dashboard-reward-center > #raffleWinsPanel,
  body.mobile-dashboard-notification-center .dashboard-reward-center > #memberDiscountPanel {
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: min(54dvh, 430px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease;
  }

  body.mobile-dashboard-notification-center .dashboard-reward-center > .mobile-preview-enter {
    opacity: 0;
    transform: translateY(8px);
  }

  body.mobile-dashboard-notification-center .dashboard-reward-center > .mobile-preview-leave {
    z-index: 2;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }

  body.mobile-dashboard-notification-center .dashboard-reward-center .notification-list,
  body.mobile-dashboard-notification-center .dashboard-reward-center .raffle-wins-list,
  body.mobile-dashboard-notification-center .dashboard-reward-center .member-discount-list {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  body.mobile-dashboard-notification-center .dashboard-reward-center > #notificationPanel,
  body.mobile-dashboard-notification-center .dashboard-reward-center > #raffleWinsPanel,
  body.mobile-dashboard-notification-center .dashboard-reward-center > #memberDiscountPanel,
  body.mobile-dashboard-notification-center .dashboard-title-actions > #raffleWinsBell,
  body.mobile-dashboard-notification-center .dashboard-title-actions > #notificationBell,
  body.mobile-dashboard-notification-center .dashboard-title-actions > #memberDiscountBell {
    transition: none;
  }
}

/*
 * v1.9.76 — 901–1024px desktop-navigation bridge.
 * The general tablet safety layer must not turn the desktop menu into a
 * viewport-height pill before the 900px mobile drawer breakpoint is reached.
 */
@media (min-width: 901px) and (max-width: 1024px) {
  .navbar {
    gap: 10px;
  }

  .mobile-toggle {
    display: none;
  }

  .logo img {
    height: 50px;
  }

  .nav-menu {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    padding: 0;
    gap: clamp(8px, 1.15vw, 16px);
    background: transparent;
    box-shadow: none;
    overflow: visible;
    overscroll-behavior: auto;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .mobile-menu-header,
  .menu-divider {
    display: none;
  }

  .nav-menu > li > a {
    width: auto;
    padding: 6px 0;
    font-size: clamp(.7rem, 1.08vw, .82rem);
  }

  .nav-actions {
    gap: 3px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }
}

/*
 * v1.9.71 focused mobile normal-notification control repair.
 * Keeps the v1.9.70 shared three-channel row while restoring only the Alerts
 * bell to a fixed circle and presenting its unread count as a clean red badge.
 */
@media (max-width: 720px) {
  body.mobile-dashboard-notification-center .dashboard-title-actions > #notificationBell {
    justify-self: center;
    align-self: center;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
  }

  body.mobile-dashboard-notification-center .dashboard-title-actions > #notificationBell > svg {
    grid-area: 1 / 1;
    width: 20px;
    height: 20px;
  }

  body.mobile-dashboard-notification-center #notificationBell > .dashboard-channel-name {
    display: none;
  }

  body.mobile-dashboard-notification-center #notificationBadge:not([hidden]) {
    top: -6px;
    right: -6px;
    z-index: 2;
    box-sizing: border-box;
    min-width: 22px;
    max-width: none;
    height: 22px;
    padding: 0 5px;
    overflow: visible;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d62828;
    color: #fff;
    box-shadow: 0 3px 9px rgba(214, 40, 40, .28);
    font-size: .64rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
  }
}
