/* =============================================
   DÉCOROUS PLUS — Mobile Stylesheet
   Full redesign for screens ≤ 768px
   Does NOT affect desktop layout
   ============================================= */

@media (max-width: 768px) {

  /* =============================================
     BASE & RESET
     ============================================= */
  :root {
    --nav-h: 64px;
    --bottom-nav-h: 70px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 42px);
  }

  body {
    font-size: 14px;
    /* Space for fixed bottom nav */
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
    overflow-x: hidden;
  }

  /* =============================================
     ANNOUNCEMENT BAR
     ============================================= */
  .ann-bar {
    font-size: 11.5px;
    padding: 9px 36px 9px 0;
    overflow: hidden;
    letter-spacing: 0.1px;
  }

  /* Hide static text, show marquee on mobile */
  .ann-static { display: none; }
  .ann-marquee-wrap {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
  }
  .ann-marquee-track {
    display: inline-flex;
    animation: ann-scroll 18s linear infinite;
    will-change: transform;
  }
  .ann-marquee-item {
    display: inline-block;
    padding-right: 64px; /* gap between repetitions */
  }
  .ann-marquee-item a { color: var(--gold-l); text-decoration: underline; }
  .ann-marquee-item strong { color: var(--gold-l); }

  @keyframes ann-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* RTL ann bar: start at 0 (span1 visible), scroll rightward to +50% */
  @keyframes ann-scroll-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
  }

  [dir="rtl"] .ann-marquee-track {
    flex-direction: row;
    animation-name: ann-scroll-rtl;
    animation-direction: normal;
  }

  [dir="rtl"] .ann-marquee-item {
    padding-right: 64px;
    padding-left: 0;
  }

  /* No fade overlay needed anymore */
  .ann-bar::after { display: none; }

  [dir="rtl"] .ann-bar { padding: 9px 36px 9px 0; } /* close btn still top-right */

  /* =============================================
     TOP NAVIGATION — Streamlined mobile nav
     ============================================= */
  .site-nav {
    height: var(--nav-h);
    border-bottom: 1px solid rgba(28,26,23,0.06);
    background: rgba(247,244,239,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-inner {
    padding: 0 16px;
    gap: 0;
    justify-content: space-between;
  }

  .nav-links {
    display: none !important;
  }

  .nav-logo {
    gap: 9px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    max-width: calc(100% - 160px); /* always leave room for cart + lang buttons */
  }

  .nav-logo img.logo-icon {
    height: 32px;
    flex-shrink: 0; /* icon never squishes */
  }

  .nav-logo-text {
    min-width: 0;
    overflow: hidden;
  }

  .nav-logo-name {
    font-size: 16px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-logo-tagline {
    font-size: 9px;
    letter-spacing: 0.15em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-right {
    gap: 8px;
    flex-shrink: 0;
  }

  .nav-wa-btn {
    display: none; /* Replaced by bottom nav */
  }

  .nav-cart-btn {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 10px;
    gap: 4px;
  }

  /* Hide "Cart" text on mobile — show icon + badge only */
  .nav-cart-btn > span[data-i18n] {
    display: none;
  }

  .nav-cart-btn svg {
    width: 18px;
    height: 18px;
  }

  /* =============================================
     BOTTOM NAVIGATION BAR — App-style
     ============================================= */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(247,244,239,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    z-index: 300;
    box-shadow: 0 -4px 24px rgba(28,26,23,0.08);
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--ink-l);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 8px 2px 0;
    transition: color 0.15s;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    text-align: center;
  }

  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--ink);
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
  }

  .mobile-nav-item.active svg {
    stroke: var(--gold);
    transform: translateY(-1px);
  }

  .mobile-nav-item.active span {
    color: var(--gold);
  }

  /* WhatsApp item special treatment */
  .mobile-nav-item.nav-wa {
    color: #25D366;
  }

  .mobile-nav-item.nav-wa svg {
    fill: #25D366;
    stroke: none;
  }

  /* =============================================
     HERO — Full-bleed app-style hero
     ============================================= */
  .hero-section {
    display: block !important;
    grid-template-columns: unset !important;
    min-height: auto;
    position: relative;
    overflow: hidden;
    background: var(--ink);
  }

  .hero-img-col {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
  }

  .hero-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .hero-img-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 30%,
      rgba(28,26,23,0.5) 60%,
      var(--ink) 100%
    ) !important;
  }

  /* Floating content over hero image */
  .hero-content-col {
    position: relative;
    padding: 24px 20px 36px;
    background: var(--ink);
    margin-top: -20px;
    z-index: 2;
  }

  .hero-tagline {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
  }

  .hero-h1 {
    font-size: 28px !important;
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.5);
  }

  .hero-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-btns .btn {
    justify-content: center;
    padding: 13px 16px;
    font-size: 13px;
    border-radius: 10px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .hero-stats > div {
    text-align: center;
    padding: 0 4px;
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  .hero-stats > div:last-child {
    border-right: none;
  }

  .hero-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-l);
    margin-bottom: 2px;
    line-height: 1.1;
  }

  .hero-stat-lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
  }

  /* =============================================
     SECTIONS
     ============================================= */
  .section {
    padding: 48px 0;
  }

  .section-sm {
    padding: 36px 0;
  }

  .container {
    padding: 0 16px !important;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 22px;
    line-height: 1.2;
  }

  .display-title {
    font-size: 26px;
    line-height: 1.15;
  }

  .display-title.lg {
    font-size: 28px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.7;
  }

  /* =============================================
     COLLECTIONS SECTION HEADER
     ============================================= */
  .section [style*="display:flex"][style*="align-items:flex-end"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
    margin-bottom: 24px !important;
  }

  .section [style*="display:flex"][style*="align-items:flex-end"] .btn {
    width: 100%;
    justify-content: center;
  }

  /* =============================================
     PRODUCTS GRID — Horizontal scroll cards
     ============================================= */
  /* ---- HOME: infinite auto-scroll marquee ---- */
  [data-page="home"] .products-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow: hidden !important;
    scroll-snap-type: none !important;
    gap: 0 !important;
    padding: 4px 0 16px !important;
    margin: 0 -16px !important;
    scrollbar-width: none !important;
    grid-template-columns: unset !important;
    cursor: grab;
    user-select: none;
  }

  [data-page="home"] .products-grid::-webkit-scrollbar { display: none; }

  [data-page="home"] .products-marquee-track {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0 16px;
    animation: marqueeScroll 28s linear infinite;
    will-change: transform;
  }

  [data-page="home"] .products-grid:hover .products-marquee-track,
  [data-page="home"] .products-grid.paused .products-marquee-track {
    animation-play-state: paused;
  }

  @keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  [data-page="home"] .product-card {
    flex-shrink: 0 !important;
    width: 210px !important;
    scroll-snap-align: unset;
  }

  /* ---- COLLECTIONS: 2-column grid ---- */
  [data-page="collections"] .products-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow-x: unset !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  [data-page="collections"] .product-card {
    width: 100% !important;
  }

  /* ---- Shared card styles ---- */
  .product-card {
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(28,26,23,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .product-card:active {
    transform: scale(0.97);
  }

  .product-card-img {
    height: 200px !important;
    padding: 16px 12px 8px !important;
  }

  .product-card-body {
    padding: 12px 14px 16px;
  }

  .product-card-name {
    font-size: 15px;
  }

  .product-card-sash {
    font-size: 11.5px;
    margin-bottom: 12px;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .product-card-price {
    font-size: 14px;
  }

  .product-card-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .product-card-cta .btn {
    justify-content: center;
    padding: 7px 8px;
    font-size: 11px;
  }

  /* RTL marquee: scroll right-to-left means content moves rightward,
     so we go from 0 → +50% (shifting track right, pulling clone into view from left) */
  @keyframes marqueeScrollRTL {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
  }

  [dir="rtl"] [data-page="home"] .products-grid {
    flex-direction: row !important;
  }

  [dir="rtl"] [data-page="home"] .products-marquee-track {
    flex-direction: row;
    animation-name: marqueeScrollRTL;
    animation-direction: normal;
  }
  [dir="rtl"] .product-card-body {
    text-align: right;
    direction: rtl;
  }

  [dir="rtl"] .product-card-set,
  [dir="rtl"] .product-card-name,
  [dir="rtl"] .product-card-sash {
    text-align: right;
    direction: rtl;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  [dir="rtl"] .product-card-footer {
    direction: rtl;
  }

  [dir="rtl"] .product-card-cta {
    direction: rtl;
  }

  [dir="rtl"] [data-page="home"] .product-card {
    direction: rtl;
  }

  .product-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 5px;
  }

  /* Scroll indicator dots */
  .products-scroll-hint {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
  }

  /* =============================================
     "SEE ALL" BUTTON
     ============================================= */
  [style*="text-align:center"] > .btn-ink {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 8px;
  }

  /* =============================================
     INCLUDES SECTION
     ============================================= */
  .includes-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .includes-image-col {
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
  }

  .includes-image-col img {
    max-height: 280px;
    max-width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
  }

  .includes-items {
    gap: 20px;
  }

  .include-item {
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
  }

  .include-num {
    font-size: 12px;
    width: 22px;
  }

  .include-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .include-title {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .include-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .includes-grid .gap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .includes-grid .gap-row .btn {
    justify-content: center;
    padding: 13px 16px;
    font-size: 13px;
  }

  /* =============================================
     VELVET ADD-ONS SECTION
     ============================================= */
  .section-sm > .container > [style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }

  .addon-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  .addon-card {
    border-radius: 14px;
    overflow: hidden;
  }

  .addon-card-img {
    width: 88px !important;
    height: 96px !important;
  }

  .addon-card-body {
    padding: 14px;
  }

  .addon-card-name {
    font-size: 13px;
  }

  /* Hide the velvet photos on mobile (shown in addon card instead) */
  .section-sm [style*="display:grid;grid-template-columns:1fr 1fr;gap:16px"] {
    display: none !important;
  }

  /* =============================================
     BULK / DARK BANNER
     ============================================= */
  .banner-dark {
    padding: 36px 0;
  }

  .banner-dark h2 {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }

  /* Override inline font-size on bulk banner h2 */
  .banner-dark h2[style] {
    font-size: 24px !important;
  }

  .banner-dark p {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }

  .banner-dark [style*="display:flex;gap:14px"] {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 16px;
  }

  .banner-dark .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hide the viewing widget wrapper div in banner — widget is fixed on mobile */
  .banner-dark [style*="justify-content:center"][style*="margin-top"] {
    display: none !important;
  }

  /* =============================================
     PRICING SECTION
     ============================================= */
  /* Swipeable horizontal pricing cards */
  .pricing-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    padding: 4px 16px 16px !important;
    margin: 0 -16px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: unset !important;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }

  .pricing-card {
    flex-shrink: 0 !important;
    width: 80vw !important;
    max-width: 300px !important;
    scroll-snap-align: start;
    display: block !important;
    padding: 24px 20px 20px !important;
    border-radius: 16px !important;
    position: relative;
  }

  /* Featured card is still visually distinct but not reordered (swipe to see all) */
  .pricing-card.featured {
    border-color: var(--gold);
  }

  .pricing-badge {
    top: 0;
    right: 16px;
    font-size: 10px;
    padding: 5px 12px;
  }

  .pricing-range {
    font-size: 12px;
    margin-bottom: 6px;
    display: block;
  }

  .pricing-price {
    font-size: 36px !important;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
  }

  .pricing-per {
    font-size: 13px;
    margin-bottom: 18px;
    display: block;
  }

  .pricing-features {
    gap: 10px;
    margin-bottom: 18px;
  }

  .pricing-features li {
    font-size: 13px;
    align-items: center;
  }

  .pricing-cta {
    width: 100%;
    display: block;
    padding: 13px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
  }

  /* Page header feature pills — stack vertically on mobile */
  [style*="display:flex;gap:24px;margin-top:20px"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Addon cards — full width on mobile */
  [style*="display:flex;gap:20px;flex-wrap:wrap"] {
    flex-direction: column !important;
    gap: 12px !important;
  }

  [style*="background:var(--cream);border:1px solid var(--border);border-radius:16px;display:flex"][style*="width:320px"] {
    width: 100% !important;
  }

  /* =============================================
     DELIVERY SECTION
     ============================================= */
  .delivery-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .delivery-times {
    flex-direction: row;
    gap: 10px;
  }

  .delivery-time-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .del-days {
    font-size: 26px;
  }

  .rate-row {
    padding: 12px 16px;
  }

  .rate-area {
    font-size: 13px;
  }

  .rate-fee {
    font-size: 13px;
  }

  /* =============================================
     SIZE CHART SECTION
     ============================================= */
  .size-chart-section {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .size-chart-img {
    max-width: 100%;
    border-radius: 14px;
  }

  .size-table th,
  .size-table td {
    padding: 10px 10px;
    font-size: 12px;
  }

  /* =============================================
     ORDER FORM
     ============================================= */
  .order-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .order-form-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 13px 14px;
    border-radius: 10px;
  }

  .form-submit {
    padding: 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  /* Order sidebar goes above form on mobile */
  .order-sidebar {
    order: -1;
  }

  .sidebar-card {
    padding: 18px;
    border-radius: 14px;
  }

  /* =============================================
     MODAL — Full-screen bottom sheet on mobile
     ============================================= */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-box {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%) !important;
  }

  .modal-overlay.open .modal-box {
    transform: translateY(0) !important;
  }

  /* Drag handle */
  .modal-box::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
  }

  .modal-img-col {
    border-radius: 0 !important;
    height: 260px;
  }

  .modal-gallery {
    height: 260px !important;
  }

  .modal-body-col {
    padding: 20px 20px 32px;
  }

  .modal-name {
    font-size: 22px;
  }

  .modal-price {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .modal-add-btn {
    position: sticky;
    bottom: 0;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    margin-top: 20px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    background: rgba(247,244,239,0.95);
    backdrop-filter: blur(8px);
  }

  /* =============================================
     CART DRAWER — Full-screen on mobile
     ============================================= */
  .cart-drawer {
    width: 100% !important;
    border-radius: 0;
  }

  .cart-drawer-title {
    font-size: 18px;
  }

  .cart-zone-grid {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }

  .zone-chip {
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .pay-btn {
    padding: 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* =============================================
     TOAST — Mobile bottom position
     ============================================= */
  .toast-container {
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    transform: none;
  }

  .toast {
    min-width: unset;
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
  }

  /* =============================================
     FOOTER — Compact mobile footer
     ============================================= */
  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Hide Navigate, Contact, Sets columns — bottom nav covers navigation */
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3),
  .footer-grid > div:nth-child(4) {
    display: none !important;
  }

  .footer-logo {
    height: 28px;
  }

  .footer-tagline {
    max-width: 100%;
    font-size: 12.5px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 20px;
    margin-top: 24px;
  }

  .footer-copy {
    font-size: 11.5px;
    order: 2;
  }

  .footer-social {
    order: 1;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
  }

  /* =============================================
     BUTTONS — Touch-friendly
     ============================================= */
  .btn {
    min-height: 44px; /* WCAG touch target */
    border-radius: 10px;
  }

  .btn-sm {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 12px;
  }

  .btn-lg {
    padding: 15px 28px;
    font-size: 14px;
  }

  /* =============================================
     STICKY WHATSAPP BUBBLE
     ============================================= */
  .mobile-wa-fab {
    display: flex;
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 299;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fabBounce 0.5s 1.5s both cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-wa-fab:active {
    transform: scale(0.93);
  }

  .mobile-wa-fab svg {
    width: 26px;
    height: 26px;
    fill: #fff;
  }

  @keyframes fabBounce {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }

  /* =============================================
     COLLECTIONS PAGE — Gallery grid
     ============================================= */
  /* Full-width gallery images */
  .collections-set-row,
  [class*="set-row"] {
    flex-direction: column !important;
  }

  /* =============================================
     MISC LAYOUT FIXES
     ============================================= */

  /* Fix inline grids used in various sections */
  [style*="display:grid;grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="display:flex;gap:48px;align-items:center"] {
    flex-direction: column !important;
    gap: 28px !important;
  }

  .gap-row {
    flex-wrap: wrap;
  }

  .gap-row .btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  /* Viewing widget — fixed floating pill bottom-left */
  .viewing-widget {
    position: fixed !important;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
    left: 16px;
    padding: 6px 10px;
    z-index: 298;
    box-shadow: 0 2px 12px rgba(28,26,23,0.12);
    width: auto !important;
    pointer-events: none;
  }

  .viewing-dot {
    width: 6px;
    height: 6px;
  }

  .viewing-text {
    font-size: 11px;
  }

  /* Hide the centering wrapper in the banner so widget isn't duplicated */
  .banner-dark [style*="justify-content:center"] > .viewing-widget {
    display: none !important;
  }

  /* =============================================
     PRINT PREVIEW INDICATOR
     Fix hidden elements showing on mobile
     ============================================= */
  .btn-outline[href="collections.html"] {
    display: flex;
  }

  /* Collections view button centering */
  [style*="text-align:center"] > .btn-outline {
    width: 100%;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
  }

} /* end @media (max-width: 768px) */

/* =============================================
   INJECT BOTTOM NAV & FAB VIA CSS TRICK
   These elements are inserted by mobile-init.js
   ============================================= */
.mobile-bottom-nav { display: none; }
.mobile-wa-fab    { display: none; }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .mobile-wa-fab    { display: flex; }
  [dir="rtl"] .viewing-widget { left: 16px; right: auto; } /* stay left, WA btn is right */
}

/* ── RTL mobile nav: logo left (visually right), buttons don't overlap ── */
@media (max-width: 768px) {
  [dir="rtl"] .nav-inner {
    flex-direction: row; /* logo stays left always */
  }
  [dir="rtl"] .nav-logo {
    flex-direction: row;
    flex-shrink: 1;
    min-width: 0;
    order: -1;
  }
  [dir="rtl"] .nav-logo-text {
    text-align: left;
    min-width: 0;
  }
  [dir="rtl"] .nav-right {
    flex-direction: row-reverse;
    flex-shrink: 0;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  [dir="rtl"] .hero-stats {
    direction: rtl;
  }
  [dir="rtl"] .hero-stats > div {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.08);
  }
  [dir="rtl"] .hero-stats > div:first-child {
    border-left: none; /* rightmost in RTL has no right border */
  }
  [dir="rtl"] .hero-tagline,
  [dir="rtl"] .hero-sub,
  [dir="rtl"] .hero-h1 {
    text-align: right;
  }
  [dir="rtl"] .hero-btns {
    direction: ltr; /* keep Explore left, Order right in both langs */
  }
  [dir="rtl"] .include-item {
    flex-direction: row-reverse;
    text-align: right;
  }
  [dir="rtl"] .banner-dark h2,
  [dir="rtl"] .banner-dark p,
  [dir="rtl"] .banner-dark .eyebrow {
    direction: rtl;
  }
  [dir="rtl"] .footer-powered-by {
    flex-direction: row-reverse;
  }

  [dir="rtl"] .footer-bottom {
    flex-direction: column !important; /* keep column on mobile */
  }

  [dir="rtl"] .footer-copy {
    order: 1; /* copyright first in RTL */
    text-align: center;
    direction: rtl;
  }

  [dir="rtl"] .footer-social {
    order: 2; /* icons below in RTL */
  }
  [dir="rtl"] .cart-drawer-header {
    flex-direction: row-reverse;
  }
  [dir="rtl"] .cart-item {
    direction: rtl;
  }
  [dir="rtl"] .modal-box {
    direction: rtl;
  }
  [dir="rtl"] .modal-close {
    right: auto;
    left: 14px;
  }
  [dir="rtl"] .modal-size-btns {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  [dir="rtl"] .addon-card {
    flex-direction: row-reverse;
  }
  [dir="rtl"] .addon-card-body {
    text-align: right;
  }
}
