/* ============================================================
   DG COSMETIC — responsive.css  (v3 — fully responsive)
   ============================================================ */

/* ═══════════════════════════════════════════════════
   GLOBAL MOBILE BASE  (< 992px)
═══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  /* ── Body padding for sticky bottom bar ── */
  body { padding-bottom: 64px !important; }

  /* ── Section spacing ── */
  .section-pad     { padding: 2.5rem 0; }
  .section-pad-lg  { padding: 3rem 0; }
  .dg-section-header { margin-bottom: 1.5rem; }
  .dg-section-header h2 { font-size: 1.6rem; }

  /* ── Header ── */
  .dg-primary-nav  { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .main-header-inner { gap: 0.5rem; flex-wrap: nowrap; }
  .dg-logo { flex: 1; min-width: 0; }
  .header-actions  { gap: 0.15rem; }
  .header-action-btn { width: 38px; height: 38px; }
  /* hide account btn in header on tablet+ — bottom nav has it */
  .account-btn { display: none !important; }
  .wishlist-btn { display: none !important; }

  /* ── Mobile menu ── */
  .dg-mobile-menu { width: 280px; }

  /* ── Page hero ── */
  .dg-page-hero { padding: 2.5rem 0 2rem; }
  .dg-page-hero h1 { font-size: 1.75rem; }

  /* ── Shop page ── */
  .dg-shop-toolbar { flex-wrap: wrap; gap: 0.5rem; }
  .toolbar-right   { flex-wrap: wrap; gap: 0.5rem; }

  /* ── Single product ── */
  .dg-single-product-layout .row.g-5 { --bs-gutter-x: 1rem; --bs-gutter-y: 1.5rem; }
  .summary.entry-summary { position: static !important; }
  .dg-product-summary { padding: 0; }

  /* ── Product gallery thumbnails ── */
  .woocommerce-product-gallery__wrapper { border-radius: 12px; overflow: hidden; }
  .flex-viewport { border-radius: 12px; }

  /* ── Product tabs ── */
  .woocommerce-tabs ul.tabs { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .woocommerce-tabs ul.tabs li { flex-shrink: 0; }

  /* ── Related products ── */
  .related.products ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* ── Footer ── */
  .footer-main { padding: 3rem 0 2rem; }
  .footer-newsletter-strip { text-align: center; }
  .footer-newsletter-strip .newsletter-strip-inner { flex-direction: column; gap: 1.25rem; align-items: center; }
  .footer-newsletter-strip .newsletter-input-group  { width: 100%; max-width: 420px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer-legal-links  { justify-content: center; flex-wrap: wrap; }

  /* ── Features strip ── */
  .dg-features-strip .row       { flex-direction: column; }
  .feature-strip-item            { flex-direction: row; justify-content: flex-start; border-right: none; border-bottom: 1px solid var(--border-light); }
  .feature-strip-item:last-child { border-bottom: none; }

  /* ── Offer banner ── */
  .offer-banner-inner { padding: 2.5rem 0; }
  .min-vh-offer       { min-height: auto; }

  /* ── New arrivals ── */
  .dg-new-arrivals-layout { grid-template-columns: 1fr; gap: 1rem; }

  /* ── Brand story ── */
  .brand-values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   TABLET  768px – 991px
═══════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

  .dg-features-strip .row { flex-direction: row; }
  .feature-strip-item      { border-right: 1px solid var(--border-light); border-bottom: none; }
  .feature-strip-item:last-child { border-right: none; }

  .dg-hero-slider  { height: 55vw; max-height: 600px; }
  .hero-heading    { font-size: 2.5rem; }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
  .category-card--large { grid-column: span 2; grid-row: span 1; }

  .instagram-feed-grid { grid-template-columns: repeat(4, 1fr); }
  .instagram-feed-grid .ig-feed-item:nth-child(n+5) { display: none; }

  /* Single product 50/50 on tablet */
  .dg-single-product-layout .col-md-6 { flex: 0 0 50%; max-width: 50%; }

  /* Product cards 3 col on tablet */
  .archive-product #products-grid .col-md-4,
  #best-selling-grid .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* ═══════════════════════════════════════════════════
   MOBILE  576px – 767px
═══════════════════════════════════════════════════ */
@media (min-width: 576px) and (max-width: 767.98px) {

  .dg-top-bar .top-bar-left { display: none; }

  .dg-hero-slider  { height: 65vw; min-height: 360px; max-height: 520px; }
  .hero-heading    { font-size: 2rem; }
  .hero-stats      { gap: 1.5rem; }
  .hero-btn-next, .hero-btn-prev { width: 36px; height: 36px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .category-card--large { grid-column: span 2; grid-row: span 1; }
  .category-card { min-height: 140px; }

  .instagram-feed-grid { grid-template-columns: repeat(3, 1fr); }
  .instagram-feed-grid .ig-feed-item:nth-child(n+7) { display: none; }

  /* product cards 2-col */
  .recently-viewed-grid .col-md-4 { flex: 0 0 50%; max-width: 50%; }

  /* single product stacked */
  .dg-single-product-layout .col-md-6 { flex: 0 0 100%; max-width: 100%; }

  /* Offer banner */
  .offer-heading  { font-size: 1.75rem; }
  .offer-ctas     { flex-direction: column; }
  .offer-showcase { display: none; }

  /* Testimonials */
  .testimonials-overall { flex-direction: column; gap: 1.5rem; }
  .overall-bars { max-width: 100%; }

  /* Blog cards */
  .blog-card-img { height: 180px; }
}

/* ═══════════════════════════════════════════════════
   SMALL MOBILE  < 576px
═══════════════════════════════════════════════════ */
@media (max-width: 575.98px) {

  /* ── Top bar hidden ── */
  .dg-top-bar    { display: none; }

  /* ── Logo ── */
  .logo-brand    { font-size: 1.2rem; }
  .logo-img      { height: 38px; max-width: 140px; }

  /* ── Container padding ── */
  .container { padding-left: 1rem !important; padding-right: 1rem !important; }

  /* ── Hero ── */
  .dg-hero-slider  { height: auto; min-height: 380px; max-height: none; }
  .dg-hero-swiper  { min-height: 380px; }
  .swiper-slide    { min-height: 380px; }
  .hero-content-row { padding: 2rem 0; align-items: center; }
  .hero-label      { font-size: 0.9rem; }
  .hero-heading    { font-size: 1.75rem; line-height: 1.2; margin-bottom: 0.75rem; }
  .hero-subtext    { font-size: 0.85rem; margin-bottom: 1.25rem; }
  .hero-ctas       { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .hero-btn        { padding: 0.65rem 1.4rem !important; font-size: 0.85rem !important; }
  .hero-stats      { gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
  .hero-stat strong { font-size: 1rem; }
  .hero-stat span  { font-size: 0.7rem; }
  .hero-btn-next, .hero-btn-prev { display: none !important; }
  .hero-product-img { display: none !important; }

  /* ── Features strip ── */
  .dg-features-strip { display: none; }

  /* ── Section headers ── */
  .dg-section-header h2 { font-size: 1.35rem; }
  .dg-section-header p  { font-size: 0.85rem; }

  /* ── Category grid ── */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 0.6rem;
  }
  .category-card--large { grid-column: span 2; grid-row: span 1; }
  .category-card { min-height: 110px; border-radius: 10px; }
  .category-name { font-size: 0.82rem; }
  .category-count { font-size: 0.7rem; }
  .category-icon-placeholder i { font-size: 2.5rem !important; }

  /* ── Product cards ── */
  .dg-product-card .product-title  { font-size: 0.82rem; line-height: 1.3; }
  .dg-product-card .product-price-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .dg-product-card .product-actions { opacity: 1; }
  .product-image-wrap { aspect-ratio: 1 / 1; }
  .dg-product-card .product-info   { padding: 0.75rem; }

  /* 2 columns for product grid on mobile */
  .products-grid .col-lg-3,
  .products-grid .col-md-4,
  #best-selling-grid .col-lg-3,
  #best-selling-grid .col-md-4,
  #trending-grid .col-lg-3,
  #trending-grid .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* ── Product image (single page) ── */
  .product-gallery-wrap { margin-bottom: 0; }
  .woocommerce-product-gallery { border-radius: 12px; overflow: hidden; }
  .woocommerce-product-gallery__image img { width: 100% !important; height: auto !important; max-height: 300px !important; }
  .flex-control-thumbs { display: flex !important; gap: 0.4rem; margin-top: 0.5rem; flex-wrap: wrap; }
  .flex-control-thumbs li {
        width: 96px !important;
        height: 96px !important;
    }
  .flex-control-thumbs li img { width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 6px; }

  /* ── Single product summary ── */
  .dg-product-summary { padding: 0.5rem 0; }
  .product_title.entry-title { font-size: 1.4rem !important; }
  .price { font-size: 1.3rem !important; }
  .savings-banner { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
  .product-trust-badges { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .trust-badge { font-size: 0.72rem; gap: 0.3rem; }
  .product-share { flex-wrap: wrap; gap: 0.4rem; }

  /* ── ATC / Buy Now ── */
  form.cart { flex-direction: column; gap: 0.6rem; }
  .qty-wrap { width: 100%; }
  .qty-wrap .qty-controls { width: 100%; justify-content: space-between; }
  .single_add_to_cart_button { width: 100% !important; }
  .dg-buy-now { width: 100% !important; }

  /* ── Breadcrumb ── */
  .dg-breadcrumb { font-size: 0.72rem; flex-wrap: wrap; gap: 0.2rem; padding: 0.5rem 0 1rem; }
  .dg-breadcrumb .sep { margin: 0 0.1rem; }

  /* ── Tabs ── */
  .woocommerce-tabs ul.tabs { padding: 0; }
  .woocommerce-tabs ul.tabs li a { padding: 0.6rem 0.85rem; font-size: 0.8rem; }
  .woocommerce-tabs .woocommerce-Tabs-panel { padding: 1rem; }

  /* ── Product filter tabs ── */
  .dg-product-tabs-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; gap: 0.4rem; }
  .product-tab-btn { flex-shrink: 0; font-size: 0.78rem; padding: 0.4rem 0.85rem; }

  /* ── Deal timer ── */
  .deal-timer-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
  .cd-num { font-size: 1.4rem; width: 42px; height: 42px; }

  /* ── Mid banners ── */
  .dg-mid-banner .row > div { flex: 0 0 100%; max-width: 100%; }
  .mid-banner-card { min-height: 200px; padding: 1.75rem; }
  .mid-banner-card h3 { font-size: 1.4rem; }

  /* ── New arrivals ── */
  .dg-new-arrivals-layout { grid-template-columns: 1fr; }
  .new-arrivals-feature { min-height: 220px; }

  /* ── Brand story ── */
  .brand-story-images  { min-height: auto; margin-bottom: 1.5rem; }
  .story-img-main      { width: 100%; }
  .story-img-accent    { display: none; }
  .brand-values-grid   { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .brand-value-item    { padding: 0.75rem; }
  .value-text h6       { font-size: 0.8rem; }
  .value-text p        { font-size: 0.72rem; }

  /* ── Offer banner ── */
  .offer-banner-inner { padding: 2rem 0; }
  .offer-heading   { font-size: 1.5rem; line-height: 1.2; }
  .offer-ctas      { flex-direction: column; gap: 0.6rem; }
  .offer-price-block { flex-wrap: wrap; gap: 0.5rem; }
  .offer-showcase, .d-lg-flex.justify-content-center { display: none !important; }
  .offer-features  { gap: 0.4rem; }

  /* ── Testimonials ── */
  .testimonials-overall   { flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
  .overall-bars           { max-width: 100%; width: 100%; }
  .rating-bar-row { gap: 0.4rem; }
  .testimonial-card { padding: 1.25rem; }
  .trust-strip .row > div { flex: 0 0 50%; max-width: 50%; }

  /* ── Instagram ── */
  .instagram-feed-grid { grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
  .instagram-feed-grid .ig-feed-item:nth-child(n+7) { display: none; }
  .ig-overlay { display: none; }

  /* ── Newsletter ── */
  .newsletter-section { padding: 2.5rem 0; }
  .newsletter-input-group { min-width: 0; width: 100%; flex-wrap: wrap; padding: 0.4rem; gap: 0.4rem; }
  .newsletter-input-group input { width: 100% !important; }
  .newsletter-input-group .btn-dg { width: 100%; }

  /* ── Blog cards ── */
  .blog-card-img      { height: 160px; }
  .blog-card-body     { padding: 1rem; }
  .blog-card-title    { font-size: 0.95rem; }
  .blog-card-excerpt  { display: none; }

  /* ── Footer ── */
  .footer-brand-col   { margin-bottom: 1.5rem; }
  .footer-logo-text   { font-size: 1.3rem; }
  .footer-about       { font-size: 0.82rem; }
  .footer-column h5   { font-size: 0.85rem; }
  .footer-links a     { font-size: 0.82rem; }
  .payment-icons-grid { gap: 0.4rem; flex-wrap: wrap; }
  .payment-icon-item  { font-size: 0.7rem; padding: 0.2rem 0.4rem; }
  .footer-guarantee-badges { flex-wrap: wrap; gap: 0.4rem; }
  .newsletter-strip-inner { flex-direction: column; gap: 1rem; }
  .newsletter-input-group { min-width: 0 !important; width: 100%; }

  /* ── Cart page ── */
  .dg-cart-table-wrap .shop_table thead { display: none; }
  .dg-cart-table-wrap .shop_table tbody tr {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
  }
  .dg-cart-table-wrap .shop_table td { border: none; padding: 0; display: block; }
  .dg-cart-table-wrap .product-thumbnail { grid-row: span 2; }
  .dg-cart-table-wrap .product-thumbnail img { width: 65px; height: 65px; border-radius: 8px; }
  .dg-cart-table-wrap .product-name { grid-column: 2; font-size: 0.85rem; }
  .dg-cart-table-wrap .product-price { display: none; }
  .dg-cart-table-wrap .product-quantity { grid-column: 2; grid-row: 2; }
  .dg-cart-table-wrap .product-subtotal { grid-column: 3; grid-row: 1; font-weight: 700; text-align: right; font-size: 0.9rem; }
  .dg-cart-table-wrap .product-remove   { grid-column: 3; grid-row: 2; text-align: right; }
  .dg-cart-table-wrap .actions { flex-direction: column; gap: 0.75rem; }
  .coupon { flex-direction: column; gap: 0.5rem; }
  .coupon .input-text { width: 100%; }

  /* ── Account page ── */
  .dashboard-stats   { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .quick-links-grid  { grid-template-columns: repeat(2, 1fr); }
  .order-row         { flex-wrap: wrap; gap: 0.4rem; }

  /* ── Shop archive ── */
  .dg-shop-toolbar     { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .toolbar-left, .toolbar-right { width: 100%; justify-content: space-between; }
  .woocommerce-result-count { font-size: 0.8rem; }

  /* ── Recently viewed ── */
  .dg-recently-viewed .col-6 { flex: 0 0 50%; max-width: 50%; }

  /* ── Quick view modal ── */
  .modal-dialog { margin: 0.5rem; }
  .dg-quick-view-modal .row > div { flex: 0 0 100%; max-width: 100%; }

  /* ── About / FAQ pages ── */
  .dg-about-stats .col-6 { flex: 0 0 50%; max-width: 50%; }
  .mission-values-grid   { grid-template-columns: 1fr; }
  .team-grid             { grid-template-columns: repeat(2, 1fr); }

  /* ── Contact page ── */
  .contact-info-grid { grid-template-columns: 1fr; }

  /* ── Back to top ── */
  #back-to-top { bottom: 4.5rem; right: 0.75rem; width: 38px; height: 38px; }
}

/* ═══════════════════════════════════════════════════
   VERY SMALL  < 360px
═══════════════════════════════════════════════════ */
@media (max-width: 359.98px) {
  .logo-brand  { font-size: 1rem; }
  .hero-heading { font-size: 1.4rem !important; }
  .btn-dg      { padding: 0.55rem 1rem; font-size: 0.78rem; }
  .header-action-btn { width: 34px; height: 34px; }
  .dg-product-card .product-info { padding: 0.6rem; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .category-card { min-height: 90px; }
}

/* ═══════════════════════════════════════════════════
   LANDSCAPE MOBILE
═══════════════════════════════════════════════════ */
@media (max-width: 767.98px) and (orientation: landscape) {
  .dg-hero-slider { height: 60vw; min-height: 260px; max-height: 340px; }
  .hero-stats     { display: none; }
  .hero-product-img { display: none !important; }
}

/* ═══════════════════════════════════════════════════
   LG DESKTOP  992px – 1199px
═══════════════════════════════════════════════════ */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .dg-menu-item > a { padding: 0.6rem 0.75rem; font-size: 0.82rem; }
  .hero-heading     { font-size: 3rem; }
  .category-grid    { grid-template-columns: repeat(4, 1fr); }
  .footer-main .row > div { flex: 0 0 50%; max-width: 50%; margin-bottom: 1.5rem; }
}

/* ═══════════════════════════════════════════════════
   WIDE DESKTOP  1400px+
═══════════════════════════════════════════════════ */
@media (min-width: 1400px) {
  .container    { max-width: 1320px; }
  .hero-heading { font-size: 4rem; }
  .category-grid { grid-template-rows: repeat(2, 260px); }
}

@media (min-width: 1920px) {
  .container { max-width: 1600px; }
}

/* ═══════════════════════════════════════════════════
   PRODUCT IMAGE — consistent sizes everywhere
═══════════════════════════════════════════════════ */
.dg-product-card .product-image-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-cream); }
.dg-product-card .product-main-img,
.dg-product-card .product-hover-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }

/* Single product gallery main image */
.woocommerce-product-gallery__image img { width: 100% !important; height: auto !important; max-height: 520px; object-fit: cover; border-radius: 12px; }

/* Thumbnails row */
.flex-control-thumbs li { overflow: hidden; border-radius: 6px; }
.flex-control-thumbs li img { width: 100% !important; height: 72px !important; object-fit: cover !important; }

/* Related / recently viewed product images */
.products .attachment-woocommerce_thumbnail { width: 100% !important; height: 200px !important; object-fit: cover !important; display: block; }

/* ═══════════════════════════════════════════════════
   PLACEHOLDER BACKGROUNDS (when no image set)
═══════════════════════════════════════════════════ */

/* Hero slides fallback — ensure slides are visible even without images */
.dg-hero-swiper .swiper-slide { background: linear-gradient(135deg, #FCE4EC 0%, #F8C8D4 40%, #E8D5C4 100%); }
.dg-hero-swiper .swiper-slide:nth-child(2) { background: linear-gradient(135deg, #FFF8E1 0%, #F5EDD8 40%, #E8D5B0 100%) !important; }
.dg-hero-swiper .swiper-slide:nth-child(3) { background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 40%, #FCE4EC 100%) !important; }

/* Category card fallback */
.category-card-image { background: linear-gradient(135deg, var(--color-rose-pale), var(--color-cream)); }

/* Product card no-image */
.dg-product-card .product-image-wrap { background: linear-gradient(135deg, var(--color-rose-pale) 0%, var(--color-cream) 100%); }

/* Mid banner fallback */
.mid-banner:not([style]) { background: linear-gradient(135deg, var(--color-mauve), var(--color-rose-deep)); }

/* ═══════════════════════════════════════════════════
   MOBILE BOTTOM NAV (sticky cart bar)
═══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .dg-sticky-mobile-cart { display: flex !important; }
}
@media (min-width: 992px) {
  .dg-sticky-mobile-cart { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* ═══════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════ */
@media print {
  .dg-site-header, .dg-footer, .dg-top-bar,
  .dg-sticky-mobile-cart, #back-to-top,
  .dg-toast-container, .dg-sticky-cart-bar { display: none !important; }
  body { font-size: 12pt; color: #000; padding-bottom: 0 !important; }
  a { color: #000; text-decoration: underline; }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] { transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero-product-img { animation: none !important; }
}

/* ═══════════════════════════════════════════════════
   UTILITY HELPERS
═══════════════════════════════════════════════════ */
@media (max-width: 767.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px)    { .show-mobile { display: none !important; } }

/* ═══════════════════════════════════════════════════
   CIRCLE CATEGORY SLIDER  (responsive)
═══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .dg-circle-section { padding: 1rem 0 1.2rem; }
}

@media (max-width: 575.98px) {
  .dg-circle-section { padding: 0.75rem 0 1rem; }
  .circle-btn        { width: 72px; }
  .circle-img-wrap   { width: 64px; height: 64px; }
  .circle-label      { font-size: 0.65rem; max-width: 72px; }
  .circle-play-btn   { width: 22px; height: 22px; font-size: 0.5rem; }
}

/* Story popup — responsive tweaks */
@media (max-width: 575.98px) {
  .dg-story-popup  { padding: 0.5rem; }
  .story-popup-card {
    max-width: 100%;
    height: 92vh;
    min-height: 480px;
    border-radius: 16px;
  }
  .story-popup-close { top: -10px; right: -10px; width: 36px; height: 36px; font-size: 0.9rem; }
  .story-promo-thumb { width: 46px; height: 46px; }
  .story-promo-title { font-size: 0.78rem; }
  .story-promo-atc   { font-size: 0.8rem; padding: 0.65rem; }
}

@media (max-width: 380px) {
  .story-popup-card { height: 95vh; border-radius: 14px; }
  .story-label      { font-size: 0.8rem; }
  .story-promo-card { padding: 0.5rem 0.6rem; gap: 0.5rem; }
  .story-promo-thumb { width: 40px; height: 40px; }
}

/* Landscape mobile — limit height */
@media (max-width: 767.98px) and (orientation: landscape) {
  .story-popup-card { height: 96vh; max-width: 280px; }
  .story-top-bar    { padding-bottom: 1.5rem; }
  .story-bottom-bar { padding-top: 1rem; }
}

/* ═══════════════════════════════════════════════════
   HOME PRODUCTS CAROUSEL  (responsive)
═══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .dg-home-products  { padding: 2.25rem 0; }
  .home-prod-header  { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .home-prod-title   { font-size: 1.4rem; }
  .home-prod-tabs    { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
  .home-prod-tab     { flex-shrink: 0; }
}

@media (max-width: 767.98px) {
  /* Hide side-nav arrows on touch devices — use swipe */
  .home-prod-nav     { display: none !important; }
  .home-prod-slider-wrap { gap: 0; }
  .dg-home-products  { padding: 1.75rem 0; }
  .home-prod-title   { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
  .dg-home-products  { padding: 1.5rem 0; }
  .home-prod-title   { font-size: 1.15rem; }
  .home-prod-subtitle { font-size: 0.78rem; }
  .home-prod-tab     { font-size: 0.75rem; padding: 0.35rem 0.85rem; }
  /* 2 cards on very small screens — rely on swiper breakpoints */
}

/* ── Out-of-stock button variant ── */
.btn-atc-mini.btn-oos {
  background: var(--color-cream, #faf3ec) !important;
  color: var(--color-text-light, #8c7b72) !important;
  cursor: default;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   FEATURED ITEMS SECTION  (responsive)
═══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .dfi-header { flex-direction: column; align-items: flex-start; }
  .dfi-header-text h2 { font-size: 1.4rem; }
  .dfi-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
  .dfi-tab  { flex-shrink: 0; }
}

@media (max-width: 767.98px) {
  /* Hide side-nav arrows on mobile — use swipe */
  .dfi-nav         { display: none !important; }
  .dfi-slider-wrap { gap: 0; }
  .dfi-card-body   { padding: 0.7rem; }
  .dfi-title       { font-size: 0.82rem; }
  .dfi-price       { font-size: 0.88rem; }
  .dfi-btn         { font-size: 0.72rem; padding: 0.5rem; }
  .dfi-badge       { font-size: 0.6rem; padding: 0.14rem 0.42rem; }
}

@media (max-width: 575.98px) {
  .dg-featured-items { padding: 1.5rem 0; }
  .dfi-header-text h2 { font-size: 1.2rem; }
  .dfi-tab  { font-size: 0.72rem; padding: 0.32rem 0.8rem; }
}


@media (max-width: 767px) {
    .flex-control-thumbs li img {
        width: 100% !important;
        height: 100% !important;
    }
}
