/**
 * NAZEK PERFUME - Responsive Layout Architecture
 * Mobile-First Responsive System: xs(320-350) | sm(360-767) | md(768-991) | lg(992-1199) | xl(1200-1439) | xxl(1440+)
 * Architectural Refactor: Fluid typography, clamp(), minmax(), safe-area-insets, dvh units.
 * ZERO changes to royal visual identity, colors, gold palettes, or existing functionality.
 */

/* ============================================================
   1. ROOT & GLOBAL VIEWPORT ARCHITECTURE
   ============================================================ */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

html, body {
  overflow-x: clip;
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ============================================================
   2. MOBILE ARCHITECTURE (max-width: 767px)
   All smartphones: 320px, 360px, 375px, 390px, 414px, 430px
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 clamp(8px, 3.5vw, 14px);
    width: 100%;
    max-width: 100%;
  }

  .header-controls-desktop {
    display: none !important;
  }

  /* --- Header & Brand Navigation --- */
  .header-container {
    height: 60px;
    padding: 0 clamp(6px, 2.5vw, 12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand-logo-img {
    height: clamp(34px, 8.5vw, 42px);
    max-width: 135px;
    object-fit: contain;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  /* --- Hero Section --- */
  .hero-section {
    min-height: auto;
    padding: clamp(22px, 5.5vw, 34px) 0 clamp(28px, 6.5vw, 38px);
    background-position: center 10% !important;
    background-size: cover !important;
  }
  .hero-section,
  [dir="rtl"] .hero-section {
    background-image: linear-gradient(180deg, rgba(10, 9, 7, 0.20) 0%, rgba(10, 9, 7, 0.45) 24%, rgba(10, 9, 7, 0.90) 50%, rgba(10, 9, 7, 0.98) 75%, var(--bg-secondary) 100%), url('../images/hero/o.jpg');
    background-position: center 10%;
  }
  [data-theme="light"] .hero-section,
  [data-theme="light"][dir="rtl"] .hero-section {
    background-image: linear-gradient(180deg, rgba(10, 9, 7, 0.10) 0%, rgba(10, 9, 7, 0.25) 24%, rgba(248, 245, 238, 0.90) 50%, rgba(248, 245, 238, 0.98) 75%, var(--bg-secondary) 100%), url('../images/hero/o.jpg');
    background-position: center 10%;
  }
  .hero-video-overlay,
  [dir="rtl"] .hero-video-overlay {
    background: linear-gradient(180deg, rgba(10, 9, 7, 0.20) 0%, rgba(10, 9, 7, 0.45) 24%, rgba(10, 9, 7, 0.90) 50%, rgba(10, 9, 7, 0.98) 75%, var(--bg-secondary) 100%) !important;
  }
  [data-theme="light"] .hero-video-overlay,
  [data-theme="light"][dir="rtl"] .hero-video-overlay {
    background: linear-gradient(180deg, rgba(10, 9, 7, 0.10) 0%, rgba(10, 9, 7, 0.25) 24%, rgba(248, 245, 238, 0.90) 50%, rgba(248, 245, 238, 0.98) 75%, var(--bg-secondary) 100%) !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .hero-text-col {
    margin: 8px auto 0;
    max-width: 100%;
    text-align: center;
  }
  .hero-tag {
    font-size: 0.64rem;
    padding: 3px 10px;
    margin: 0 auto 8px auto;
  }
  .hero-title {
    font-size: clamp(1.16rem, 4.7vw, 1.62rem);
    line-height: 1.25;
    margin-bottom: 8px;
  }
  [dir="ltr"] .hero-title {
    font-size: clamp(1.08rem, 4.1vw, 1.52rem);
    line-height: 1.22;
  }
  .hero-desc {
    font-size: clamp(0.68rem, 2.3vw, 0.74rem);
    margin: 0 auto 12px auto;
    max-width: 95%;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 270px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-actions .gold-btn,
  .hero-actions .outline-gold-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 16px;
    font-size: 0.82rem;
    height: 38px;
  }
  .hero-features-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 8px;
  }
  .hero-feature-item {
    font-size: 0.68rem;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
  }
  .hero-floating-card {
    display: none;
  }

  /* --- Values Section --- */
  .values-section {
    padding: 20px 0;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* --- Categories Bar with Visual Fade Mask --- */
  .categories-bar-wrapper {
    padding: 10px 0 6px;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14px, black calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 14px, black calc(100% - 14px), transparent 100%);
  }
  .category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding: 4px 10px;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .category-tab-btn {
    padding: 6px 11px;
    font-size: 0.75rem;
    gap: 5px;
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  /* --- Products Section & Header --- */
  .products-section {
    padding: 14px 0 40px;
  }
  .section-tag {
    font-size: 0.68rem;
    margin-bottom: 3px;
  }
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }
  .section-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .search-input-wrapper {
    min-width: 100%;
    width: 100%;
    height: 38px;
  }
  .search-input {
    height: 38px;
    font-size: 0.78rem;
    padding: 0 10px 0 32px;
  }
  .search-input-icon {
    left: 10px;
    width: 15px;
    height: 15px;
  }

  /* --- 2-Columns Luxury Product Grid (Fluid, Robust, Zero-Overflow) --- */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 2.4vw, 11px);
    width: 100%;
  }
  .product-card {
    border-radius: var(--radius-sm);
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .product-media {
    aspect-ratio: 1 / 1.05;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .product-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
    top: 6px;
    right: 6px;
  }
  .quick-view-btn {
    display: inline-flex !important;
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
    bottom: 8px !important;
    left: 50% !important;
    padding: 3px 9px !important;
    font-size: 0.63rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    background: rgba(15, 12, 9, 0.86) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    color: var(--gold-light) !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    z-index: 4 !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
  .quick-view-btn svg {
    width: 12px !important;
    height: 12px !important;
    margin-left: 3px !important;
    flex-shrink: 0 !important;
  }
  [dir="ltr"] .quick-view-btn svg {
    margin-left: 0 !important;
    margin-right: 3px !important;
  }
  .product-body {
    padding: clamp(6px, 2vw, 9px);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
  .product-category-name {
    font-size: 0.60rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-name {
    font-size: clamp(0.74rem, 2.3vw, 0.80rem);
    margin-bottom: 2px;
    line-height: 1.25;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-subtitle {
    font-size: 0.64rem;
    line-height: 1.25;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact Size Pills */
  .sizes-container {
    margin-top: auto;
    margin-bottom: 5px;
    min-width: 0;
  }
  .sizes-label {
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 600;
  }
  .sizes-list {
    display: flex !important;
    gap: 3px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 1px 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .sizes-list::-webkit-scrollbar {
    display: none !important;
  }
  .size-pill {
    padding: 2px 5px !important;
    font-size: 0.62rem !important;
    min-width: 26px !important;
    height: 21px !important;
    line-height: 15px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Compact Product Footer */
  .product-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding-top: 4px !important;
    margin-top: auto !important;
    min-width: 0 !important;
  }
  .product-price-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .current-price {
    font-size: clamp(0.76rem, 2.7vw, 0.86rem) !important;
    font-weight: 800 !important;
    color: var(--gold-primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }
  .current-price small {
    font-size: 0.60rem !important;
  }

  /* Circular Luxury Cart Button */
  .add-cart-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25) !important;
  }
  .add-cart-btn span {
    display: none !important;
  }
  .add-cart-btn svg {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
  }

  /* --- Deal Section --- */
  .deal-section {
    padding: 22px 0;
  }
  .deal-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }
  .deal-media {
    min-height: 160px;
    max-height: 200px;
  }
  .deal-body {
    padding: 16px 12px;
    text-align: center;
  }
  .deal-tag {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }
  .deal-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .deal-desc {
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .countdown-wrapper {
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
  }
  .countdown-box {
    padding: 4px 6px;
    min-width: 42px;
    border-radius: 6px;
  }
  .countdown-num {
    font-size: 0.95rem;
  }
  .countdown-label {
    font-size: 0.58rem;
  }
  .deal-body .gold-btn {
    padding: 9px 14px !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    height: auto !important;
    min-height: 38px !important;
    max-width: 280px !important;
    width: auto !important;
    margin: 0 auto !important;
    line-height: 1.35 !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* --- Journal Section --- */
  .journal-section {
    padding: 24px 0;
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .journal-card {
    min-height: 180px;
    padding: 14px;
    border-radius: var(--radius-md);
  }
  .journal-title {
    font-size: 0.98rem;
  }
  .journal-excerpt {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  /* --- Cart Drawer with Safe Area Inset --- */
  .cart-drawer {
    max-width: 100% !important;
    width: 100% !important;
  }
  .cart-header {
    padding: 12px 14px !important;
  }
  .cart-title {
    font-size: 1.05rem !important;
  }
  .cart-item {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .cart-item-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: var(--radius-sm) !important;
  }
  .cart-item-title {
    font-size: 0.80rem !important;
  }
  .cart-item-size {
    font-size: 0.68rem !important;
  }
  .cart-item-price {
    font-size: 0.80rem !important;
  }
  .cart-footer {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .cart-summary-row {
    font-size: 0.78rem !important;
    margin-bottom: 3px !important;
  }
  .cart-summary-row.total {
    font-size: 0.98rem !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
  }
  .cart-checkout-btn {
    padding: 9px 14px !important;
    font-size: 0.84rem !important;
    border-radius: 8px !important;
    height: 42px !important;
    margin-top: 8px !important;
    font-weight: 700 !important;
  }

  /* --- Form Inputs: 16px Font to Prevent iOS Safari Auto-Zoom --- */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px !important;
  }

  /* --- Modals: Modern Bottom Sheet Architecture --- */
  .modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal-box {
    max-height: min(88dvh, 88vh) !important;
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .modal-header {
    padding: 10px 14px !important;
    flex-shrink: 0 !important;
  }
  .modal-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }
  .modal-body {
    padding: 10px 14px 16px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 !important;
  }

  /* Quick View Modal Mobile Polish */
  .qv-modal-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .qv-gallery-column {
    max-width: 220px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .qv-gallery-wrapper {
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
  }
  .qv-gallery-main-img {
    height: clamp(130px, 30vw, 155px) !important;
    max-height: 155px !important;
    object-fit: contain !important;
    background: #0e0c0a !important;
  }
  .qv-gallery-arrow {
    width: 28px !important;
    height: 28px !important;
  }
  .qv-gallery-arrow svg {
    width: 14px !important;
    height: 14px !important;
  }
  .qv-gallery-counter {
    font-size: 0.65rem !important;
    padding: 2px 7px !important;
    top: 6px !important;
  }
  .qv-thumbnails-strip {
    gap: 5px !important;
    margin-top: 5px !important;
    justify-content: center !important;
  }
  .qv-thumbnail-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 4px !important;
  }
  .qv-details-col {
    text-align: right !important;
  }
  .qv-details-col > span:first-child {
    font-size: 0.65rem !important;
  }
  .qv-product-name {
    font-size: 1.12rem !important;
    line-height: 1.28 !important;
    margin: 3px 0 6px 0 !important;
  }
  .qv-product-desc {
    font-size: 0.75rem !important;
    line-height: 1.48 !important;
    margin-bottom: 8px !important;
    color: var(--text-secondary) !important;
  }
  .qv-notes-box {
    margin: 8px 0 !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
  }
  .qv-notes-title {
    font-size: 0.76rem !important;
    margin-bottom: 4px !important;
  }
  .qv-notes-box div {
    font-size: 0.70rem !important;
    line-height: 1.4 !important;
    margin-bottom: 2px !important;
  }
  .qv-sizes-wrap {
    margin-bottom: 8px !important;
  }
  .qv-sizes-title {
    font-size: 0.74rem !important;
    margin-bottom: 4px !important;
  }
  .qv-size-pill {
    padding: 3px 8px !important;
    font-size: 0.70rem !important;
    height: 24px !important;
    min-width: 32px !important;
  }
  /* --- P1: Quick View Modal Mobile Dedicated Non-scrolling Footer --- */
  .qv-details-col .qv-footer-actions {
    display: none !important;
  }
  #quickViewFooter {
    display: flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--gold-border-subtle) !important;
    z-index: 10 !important;
  }
  .qv-price-display {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--gold-primary) !important;
  }
  .qv-price-display small {
    font-size: 0.76rem !important;
  }
  .qv-add-btn {
    padding: 8px 20px !important;
    font-size: 0.82rem !important;
    height: 38px !important;
    border-radius: 8px !important;
  }

  /* --- P2: Toast Notifications Mobile Repositioning --- */
  .toast-container {
    top: calc(var(--header-height, 60px) + var(--sat, 0px) + 12px) !important;
    bottom: auto !important;
    left: 12px !important;
    right: 12px !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 500 !important;
  }
  [dir="rtl"] .toast-container {
    left: 12px !important;
    right: 12px !important;
  }
  .toast {
    pointer-events: auto !important;
    max-width: calc(100vw - 24px) !important;
    font-size: 0.82rem !important;
    padding: 9px 18px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65) !important;
  }

  /* --- Footer Mobile Polish --- */
  .main-footer {
    padding: 22px 0 calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
    text-align: center !important;
  }
  .footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .footer-logo {
    height: 32px !important;
    margin-bottom: 8px !important;
  }
  .footer-desc {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    margin: 0 auto 8px auto !important;
    max-width: 270px !important;
  }
  .footer-social-wrapper {
    justify-content: center !important;
    margin-bottom: 6px !important;
  }
  .footer-social-btn {
    width: 30px !important;
    height: 30px !important;
  }
  .footer-col-title {
    font-size: 0.84rem !important;
    margin-bottom: 6px !important;
  }
  .footer-links-list {
    gap: 5px !important;
    font-size: 0.75rem !important;
    align-items: center !important;
  }
  .footer-bottom {
    padding-top: 14px !important;
    font-size: 0.70rem !important;
  }
}

/* ============================================================
   3. EXTRA NARROW MOBILE (max-width: 350px)
   iPhone SE 1st gen (320px) & Ultra-narrow viewports
   ============================================================ */
@media (max-width: 350px) {
  .container {
    padding: 0 6px;
  }
  .products-grid {
    gap: 6px;
  }
  .product-body {
    padding: 5px 4px;
  }
  .product-name {
    font-size: 0.72rem;
  }
  .current-price {
    font-size: 0.72rem !important;
  }
  .current-price small {
    font-size: 0.55rem !important;
  }
  .add-cart-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }
  .add-cart-btn svg {
    width: 12px !important;
    height: 12px !important;
  }
  .size-pill {
    font-size: 0.56rem !important;
    min-width: 22px !important;
    height: 18px !important;
    padding: 1px 3px !important;
  }
  .hero-features-strip {
    gap: 4px 6px;
  }
  .hero-feature-item {
    font-size: 0.62rem;
  }
  .header-container {
    padding: 0 4px;
  }
  .brand-logo-img {
    height: 32px;
  }
  #quickViewFooter {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #quickViewFooter .qv-price-display {
    font-size: 1.10rem !important;
  }
  #quickViewFooter .qv-add-btn {
    padding: 6px 14px !important;
    font-size: 0.76rem !important;
    height: 34px !important;
  }
}

/* ============================================================
   4. TABLET PORTRAIT (min-width: 768px and max-width: 991px)
   iPad Portrait (768px, 834px)
   Refined to 3 columns to eliminate bloated cards
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    padding: 0 20px;
  }

  /* Header */
  .header-controls-desktop {
    display: none !important;
  }

  /* Hero */
  .hero-section {
    min-height: 72vh;
    padding: 65px 0 55px;
    background-position: center 8% !important;
    background-size: cover !important;
  }
  .hero-section,
  [dir="rtl"] .hero-section {
    background-image: linear-gradient(180deg, rgba(10, 9, 7, 0.15) 0%, rgba(10, 9, 7, 0.35) 24%, rgba(10, 9, 7, 0.88) 46%, rgba(10, 9, 7, 0.98) 72%, var(--bg-secondary) 100%), url('../images/hero/o.jpg');
    background-position: center 8%;
  }
  [data-theme="light"] .hero-section,
  [data-theme="light"][dir="rtl"] .hero-section {
    background-image: linear-gradient(180deg, rgba(10, 9, 7, 0.10) 0%, rgba(10, 9, 7, 0.20) 24%, rgba(248, 245, 238, 0.88) 46%, rgba(248, 245, 238, 0.98) 72%, var(--bg-secondary) 100%), url('../images/hero/o.jpg');
    background-position: center 8%;
  }
  .hero-video-overlay,
  [dir="rtl"] .hero-video-overlay {
    background: linear-gradient(180deg, rgba(10, 9, 7, 0.15) 0%, rgba(10, 9, 7, 0.35) 24%, rgba(10, 9, 7, 0.88) 46%, rgba(10, 9, 7, 0.98) 72%, var(--bg-secondary) 100%) !important;
  }
  [data-theme="light"] .hero-video-overlay,
  [data-theme="light"][dir="rtl"] .hero-video-overlay {
    background: linear-gradient(180deg, rgba(10, 9, 7, 0.10) 0%, rgba(10, 9, 7, 0.20) 24%, rgba(248, 245, 238, 0.88) 46%, rgba(248, 245, 238, 0.98) 72%, var(--bg-secondary) 100%) !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-text-col {
    margin: 24px auto 0;
    max-width: 580px;
    text-align: center;
  }
  .hero-tag {
    margin: 0 auto 14px auto;
  }
  .hero-desc {
    margin: 0 auto 20px auto;
  }
  .hero-features-strip {
    justify-content: center;
    gap: 16px;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  [dir="ltr"] .hero-title {
    font-size: 1.95rem;
  }
  .hero-floating-card {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-img {
    height: 380px;
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Products — 3 Elegant Columns on Tablet Portrait */
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  /* Deal */
  .deal-card {
    grid-template-columns: 1fr;
  }
  .deal-media {
    min-height: 300px;
  }
  .deal-body {
    padding: 30px 24px;
  }
  .deal-title {
    font-size: 1.85rem;
  }

  /* Journal */
  .journal-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* ============================================================
   5. TABLET LANDSCAPE / SMALL DESKTOP (992px to 1199px)
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    padding: 0 24px;
  }
  .hero-title {
    font-size: 2.85rem;
  }
  .hero-img {
    height: 460px;
  }
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* ============================================================
   6. STANDARD DESKTOP (1200px to 1439px)
   ============================================================ */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container {
    padding: 0 24px;
    max-width: 1200px;
  }
  .hero-title {
    font-size: 3.4rem;
  }
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

/* ============================================================
   7. ULTRA-WIDE & 4K EXPANSIVE DESKTOP (1440px+)
   Preserves royal balance without excessive side margins
   ============================================================ */
@media (min-width: 1440px) {
  .container {
    max-width: 1360px !important;
    padding: 0 32px;
  }
  .hero-title {
    font-size: 3.6rem;
  }
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }
}

/* ============================================================
   8. TOUCH DEVICE ENHANCEMENTS (pointer: coarse)
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  .stepper-btn {
    width: 34px;
    height: 34px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }

  /* Prevent sticky hover states on touch screens */
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .value-card:hover {
    transform: none;
  }
  .category-tab-btn:hover {
    transform: none;
  }
  .gold-btn:hover {
    transform: none;
  }
  .outline-gold-btn:hover {
    transform: none;
  }
}
