/* ═══════════════════════════════════════════════════════════════════════════════
   Ahan Like — Forge & Flow · Responsive Design
   RTL-first (Persian/Farsi) · Dark Cinematic · Amber (#D97706) · Cyan (#06B6D4)

   Breakpoints:  1024px  →  Tablet landscape / small desktop
                 768px   →  Tablet portrait / large phone
                 480px   →  Small phone

   Strategy:     max-width cascade — each breakpoint inherits from the one above.
                 RTL directional values (right/left) mirror LTR conventions:
                 - Mobile menu slides from the RIGHT (RTL leading edge).
                 - "Start" = right, "End" = left in logical terms.
   ═══════════════════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────────────────
   1. TABLET LANDSCAPE  (max-width: 1024px)
   ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    /* ── Global ── */
    .container { padding: 0 20px; }
    .section   { padding: 64px 0; }

    .section-header .section-title { font-size: 1.7rem; }
    .section-header .section-subtitle { font-size: 0.95rem; }


    /* ══════════ Navigation ══════════ */
    .nav-menu-wrap { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav-cta-btn.desktop-only { display: none; }
    .nav-glass { padding: 12px 0; }
    .nav-actions { gap: 8px; }
    .nav-cta-btn { padding: 8px 16px; font-size: 0.8rem; }

    /* Hide desktop dropdown hover bridge on mobile */
    .nav-menu > li.menu-item--has-children::after { display: none; }

    /* Search overlay — full-width on tablet */
    .search-overlay-inner { max-width: 90%; }


    /* ══════════ Price Ticker Bar ══════════ */
    .price-ticker-bar { font-size: 0.75rem; padding: 5px 0; }
    .ticker-content   { gap: 24px; }
    .ticker-name      { font-size: 0.72rem; }
    .ticker-price     { font-size: 0.72rem; }


    /* ══════════ Hero Section ══════════ */
    /* Hero responsive styles now in template-parts/hero-section.php (inline) */


    /* ══════════ Featured Products (Swiper) ══════════ */
    .featured-nav-wrap { gap: 10px; }
    .featured-nav-btn { width: 38px; height: 38px; }
    .fp-card-body { padding: 16px; }
    .fp-card-title { font-size: 0.9rem; }
    .fp-card-price { font-size: 1.05rem; }
    .fp-card-btn { padding: 10px 14px; font-size: 0.8rem; }
    .fp-card-image { aspect-ratio: 4 / 3; }


    /* ══════════ Products Grid ══════════ */
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }


    /* ══════════ Category Cards ══════════ */
    .categories-swiper .swiper-slide { width: 220px; }


    /* ══════════ Stats Section ══════════ */
    .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-number  { font-size: 2.2rem; }
    .stat-label   { font-size: 0.85rem; }


    /* ══════════ Live Prices ══════════ */
    .price-summary-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .live-prices-table th,
    .live-prices-table td { padding: 12px 14px; font-size: 0.85rem; }
    .td-price .price-value { font-size: 0.95rem; }

    /* Detail chart */
    .plc-canvas-wrap { height: 280px; }
    .price-detail-chart { padding: 20px; }
    #detailChartCanvas { height: 260px !important; }
    .pdc-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .pdc-stat { padding: 10px 8px; }
    .pdc-stat-label { font-size: 0.65rem; }
    .pdc-stat-value { font-size: 0.85rem; }
    .pdc-period-btn { padding: 5px 10px; font-size: 0.72rem; }


    /* ══════════ Partners / Brands ══════════ */
    .partners-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .partner-card  { padding: 20px; min-height: 90px; }
    .partner-card img { max-height: 50px; }


    /* ══════════ Trust Section ══════════ */
    .trust-grid  { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .trust-item  { padding: 20px; }
    .trust-item h3 { font-size: 0.95rem; }
    .trust-item p  { font-size: 0.82rem; }
    .trust-icon   { width: 56px; height: 56px; }


    /* ══════════ Articles / Blog ══════════ */
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .article-title { font-size: 0.95rem; }


    /* ══════════ CTA Section ══════════ */
    .cta-content h2 { font-size: 1.8rem; }
    .cta-content p  { font-size: 1rem; }
    .cta-inner      { padding: 48px 20px; }


    /* ══════════ Footer ══════════ */
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-desc { font-size: 0.85rem; }


    /* ══════════ Page Header ══════════ */
    .page-header { padding: 48px 0 36px; }
    .page-header-title { font-size: 2rem; }
    .page-header-subtitle { font-size: 0.95rem; }


    /* ══════════ About Page ══════════ */
    .about-story-grid   { grid-template-columns: 1fr; gap: 40px; }
    .about-section-title { font-size: 1.8rem; }
    .about-stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .about-stat-number  { font-size: 2.2rem; }
    .about-values-grid  { grid-template-columns: 1fr 1fr; gap: 20px; }
    .about-visual-card  { padding: 40px; min-height: 260px; }


    /* ══════════ Contact Page ══════════ */
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-info-cards { grid-template-columns: 1fr 1fr; }
    .contact-form-card  { padding: 28px; }
    .contact-map-placeholder { padding: 40px; }


    /* ══════════ Price Landing Page ══════════ */
    .plc-canvas-wrap { height: 260px; }
    .price-content-wrap { padding: 28px; }
    .pl-cta-content h2  { font-size: 1.8rem; }


    /* ══════════ 404 Page ══════════ */
    .error-digit { font-size: 7rem; }
    .error-title { font-size: 1.4rem; }
    .error-content { padding: 48px 20px; }


    /* ══════════ Blog / Archive ══════════ */
    .archive-layout { grid-template-columns: 1fr; }
    .archive-sidebar { display: none; }
    .articles-grid-2col { grid-template-columns: repeat(2, 1fr); }


    /* ══════════ Single Post ══════════ */
    .single-post-body { font-size: 0.95rem; }
    .single-post-layout { max-width: 100%; }


    /* ══════════ WooCommerce ══════════ */
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
    .single-product-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-gallery-col { position: static; }
    .woocommerce div.product .woocommerce-tabs { margin-top: 32px; }

    /* Cart table — scrollable */
    .woocommerce table.shop_table { font-size: 0.85rem; }
    .woocommerce .cart_totals { padding: 20px; }
}


/* ──────────────────────────────────────────────────────────────────────────────
   2. TABLET PORTRAIT / LARGE PHONE  (max-width: 768px)
   ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Global ── */
    .section   { padding: 48px 0; }
    .container { padding: 0 16px; }

    .section-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .section-header-content { width: 100%; }
    .section-header-content .section-title {
        justify-content: center;
        font-size: 1.5rem;
    }
    .section-header-actions {
        justify-content: center;
        width: 100%;
    }
    .section-header .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }


    /* ══════════ Navigation ══════════ */
    .nav-glass { padding: 10px 0; }
    .nav-cta-btn { display: none; }
    .nav-actions { gap: 6px; }
    .nav-search-btn svg,
    .nav-cart-btn svg { width: 18px; height: 18px; }

    /* Search overlay — simplified on tablet portrait */
    .search-overlay { padding: 16px 0; }
    .search-overlay-inner { max-width: 100%; }
    .search-overlay .search-field { padding: 10px 16px; font-size: 0.95rem; }

    /* Mobile menu — wider on tablet portrait */
    .mobile-menu { width: 85%; max-width: 360px; }
    .mobile-menu.active { right: 0; }
    .mobile-nav-list li a { padding: 12px 0; font-size: 0.95rem; }
    .mobile-submenu-toggle { width: 30px; height: 30px; }
    .mobile-nav-list .sub-menu { padding-right: 12px; }
    .mobile-nav-list .sub-menu a { padding: 8px 0; font-size: 0.85rem; }
    .mobile-nav-list .sub-menu .sub-menu { padding-right: 10px; }
    .mobile-nav-list .sub-menu .sub-menu a { padding: 6px 0; font-size: 0.8rem; }

    /* Backdrop */
    .mobile-backdrop.active { opacity: 1; visibility: visible; }


    /* ══════════ Price Ticker Bar ══════════ */
    .price-ticker-bar { font-size: 0.7rem; padding: 4px 0; }
    .ticker-content   { gap: 20px; animation-duration: 30s; }
    .ticker-item      { gap: 6px; }
    .ticker-name      { font-size: 0.68rem; }
    .ticker-price     { font-size: 0.68rem; }
    .ticker-change    { font-size: 0.62rem; }


    /* ══════════ Hero Section ══════════ */
    /* Hero responsive styles now in template-parts/hero-section.php (inline) */


    /* ══════════ Featured Products (Swiper) ══════════ */
    .featured-swiper .swiper-slide { width: 260px; }
    .featured-nav-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
    .featured-swiper-nav { align-self: flex-end; }
    .fp-card-body { padding: 14px; }
    .fp-card-title { font-size: 0.85rem; }
    .fp-card-price { font-size: 0.95rem; }
    .fp-card-footer { flex-direction: column; gap: 8px; }
    .fp-card-btn { width: 100%; justify-content: center; }
    .fp-card-image { aspect-ratio: 3 / 2; }
    .fp-card-overlay { display: none; }

    /* Swiper nav — smaller touch targets */
    .swiper-button-prev,
    .swiper-button-next { width: 36px !important; height: 36px !important; }
    .swiper-button-prev::after,
    .swiper-button-next::after { font-size: 12px !important; }


    /* ══════════ Products Grid ══════════ */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-card-body { padding: 14px; }
    .product-card-title { font-size: 0.85rem; min-height: 2.6em; }
    .product-card-price { font-size: 0.95rem; }

    /* Product filter tabs — scrollable */
    .product-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 8px;
    }
    .product-filter::-webkit-scrollbar { display: none; }
    .filter-tab {
        padding: 8px 18px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }


    /* ══════════ Category Cards — horizontal scroll on mobile ══════════ */
    .categories-swiper .swiper-slide { width: 180px; }
    .category-card-body { padding: 12px; }
    .category-card-body h3 { font-size: 0.85rem; }
    .category-count { font-size: 0.75rem; }


    /* ══════════ Live Prices Table ══════════ */
    /* Hide chart column on tablet portrait */
    .th-chart,
    .td-chart { display: none; }

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

    /* Stack summary cards vertically */
    .price-summary-grid { grid-template-columns: 1fr; gap: 10px; }
    .price-summary-card { padding: 16px; }
    .psc-count { font-size: 1.3rem; }
    .psc-label { font-size: 0.75rem; }

    /* Hide producer column on tighter screens */
    .th-producer,
    .td-producer { display: none; }

    /* Table wrapper scroll hint */
    .live-prices-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    /* Detail chart */
    .plc-canvas-wrap { height: 240px; }
    .price-detail-chart { padding: 16px; }
    .pdc-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .pdc-controls { width: 100%; justify-content: space-between; }
    .pdc-period-switcher { flex: 1; justify-content: center; }
    .pdc-period-btn { padding: 5px 8px; font-size: 0.7rem; flex: 1; }
    .pdc-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pdc-stat { padding: 10px 12px; }
    .pdc-stat-label { font-size: 0.65rem; }
    .pdc-stat-value { font-size: 0.8rem; }
    #detailChartCanvas { height: 220px !important; }

    /* Empty state */
    .live-prices-empty { padding: 40px 16px; }


    /* ══════════ Stats Section ══════════ */
    .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item   { padding: 20px 16px; }
    .stat-number { font-size: 2rem; }
    .stat-label  { font-size: 0.8rem; }


    /* ══════════ Partners / Brands ══════════ */
    .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .partner-card  { padding: 16px; min-height: 80px; }
    .partner-card img { max-height: 40px; }
    .partner-placeholder { font-size: 0.65rem; }


    /* ══════════ Trust Section ══════════ */
    .trust-grid  { grid-template-columns: 1fr 1fr; gap: 16px; }
    .trust-item  { padding: 16px; }
    .trust-item h3 { font-size: 0.9rem; }
    .trust-item p  { font-size: 0.78rem; }
    .trust-icon   { width: 48px; height: 48px; margin-bottom: 12px; }
    .trust-icon svg { width: 28px; height: 28px; }


    /* ══════════ Articles / Blog ══════════ */
    .articles-grid { grid-template-columns: 1fr; gap: 16px; }
    .article-card-body { padding: 16px; }
    .article-title { font-size: 0.95rem; }
    .article-meta  { font-size: 0.75rem; }


    /* ══════════ CTA Section ══════════ */
    .cta-inner { padding: 40px 16px; }
    .cta-content h2 { font-size: 1.5rem; }
    .cta-content p  { font-size: 0.95rem; margin-bottom: 24px; }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }


    /* ══════════ Footer ══════════ */
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
        gap: 16px;
    }
    .footer-desc { font-size: 0.85rem; }
    .footer-col-title { font-size: 0.95rem; }
    .footer-socials { justify-content: center; }


    /* ══════════ Page Header ══════════ */
    .page-header { padding: 36px 0 28px; }
    .page-header-title { font-size: 1.7rem; }
    .page-header-subtitle { font-size: 0.9rem; }
    .page-breadcrumb { font-size: 0.8rem; margin-bottom: 16px; }
    .ph-decor { display: none; }


    /* ══════════ About Page ══════════ */
    .about-story-grid { gap: 32px; }
    .about-section-title { font-size: 1.5rem; }
    .about-story-text { font-size: 0.9rem; line-height: 1.9; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .about-stat-card { padding: 24px 16px; }
    .about-stat-number { font-size: 2rem; }
    .about-stat-label { font-size: 0.85rem; }
    .about-visual-card { padding: 32px; min-height: 220px; }
    .about-values-grid { grid-template-columns: 1fr; gap: 16px; }
    .about-value-card { padding: 24px; }
    .about-value-card h3 { font-size: 1.05rem; }
    .about-value-card p { font-size: 0.85rem; }


    /* ══════════ Contact Page ══════════ */
    .contact-form-card { padding: 24px; }
    .contact-form-title { font-size: 1.3rem; }
    .contact-form-desc { font-size: 0.85rem; margin-bottom: 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .contact-info-card { padding: 16px; }
    .contact-info-icon { width: 40px; height: 40px; }
    .contact-info-data h4 { font-size: 0.8rem; }
    .contact-info-data a,
    .contact-info-data span { font-size: 0.8rem; }
    .contact-map-placeholder { padding: 32px; }
    .contact-map-wrap iframe { height: 200px; }

    /* FAQ */
    .contact-faq-section .section-header { text-align: center; }
    .faq-question { padding: 16px 20px; font-size: 0.9rem; }
    .faq-answer   { padding: 0 20px 16px; font-size: 0.85rem; }


    /* ══════════ Price Landing Page ══════════ */
    .plc-canvas-wrap { height: 220px; }
    .plc-header { margin-bottom: 16px; }
    .plc-header h3 { font-size: 1.05rem; }
    .price-content-wrap { padding: 24px; font-size: 0.9rem; }
    .pl-cta-inner { padding: 32px 16px; }
    .pl-cta-content h2 { font-size: 1.5rem; }
    .pl-cta-content p  { font-size: 0.9rem; }
    .pl-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .pl-cta-actions .cta-btn { width: 100%; justify-content: center; }
    .price-landing-chart { padding: 20px; }


    /* ══════════ 404 Page ══════════ */
    .error-digit { font-size: 5.5rem; }
    .error-title { font-size: 1.25rem; }
    .error-desc  { font-size: 0.9rem; margin-bottom: 24px; }
    .error-content { padding: 40px 16px; }
    .error-search { max-width: 100%; margin-bottom: 24px; }
    .error-search-input { padding: 12px 46px 12px 16px; font-size: 0.9rem; }
    .error-search-btn { width: 36px; height: 36px; right: 5px; }
    .error-search-btn svg { width: 16px; height: 16px; }
    .error-links-grid { gap: 8px; }
    .error-link-item { padding: 8px 16px; font-size: 0.8rem; }
    .error-cta-btn { width: 100%; justify-content: center; }


    /* ══════════ Blog / Archive ══════════ */
    .articles-grid-2col { grid-template-columns: 1fr; }
    .archive-sidebar { display: none; }
    .article-card-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
    .article-read-more { align-self: flex-end; }
    .article-excerpt { font-size: 0.85rem; }

    /* Pagination */
    .pagination-wrap { text-align: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; }


    /* ══════════ Single Post ══════════ */
    .single-post-body { font-size: 0.9rem; line-height: 1.9; }
    .single-post-meta { margin-bottom: 24px; padding-bottom: 20px; }
    .post-meta-items { gap: 12px; flex-wrap: wrap; }
    .post-meta-item,
    .post-meta-cat { font-size: 0.8rem; }
    .single-featured-image { margin-bottom: 24px; }
    .share-buttons { flex-wrap: wrap; gap: 8px; }
    .share-btn { width: 40px; height: 40px; }

    /* Post navigation */
    .single-post-nav { padding: 20px 0; }
    .nav-direction { font-size: 0.8rem; }
    .nav-title { font-size: 0.85rem; }

    /* Related posts */
    .single-related { margin-top: 32px; }
    .related-title { font-size: 1.2rem; margin-bottom: 20px; }

    /* Tags */
    .tags-list { flex-wrap: wrap; }
    .tag-item { padding: 4px 10px; font-size: 0.75rem; }


    /* ══════════ WooCommerce ══════════ */
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
    .woocommerce .product-thumbnail { display: none; }
    .single-product-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery-col { position: static; }
    .woocommerce div.product .product_title { font-size: 1.5rem !important; }
    .woocommerce div.product p.price { font-size: 1.3rem !important; }
    .woocommerce div.product .woocommerce-tabs { padding: 20px; margin-top: 24px; }
    .woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 0.85rem !important; }

    /* Cart */
    .woocommerce table.shop_table { font-size: 0.8rem; }
    .woocommerce .cart_totals { padding: 16px; }

    /* Checkout */
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last { float: none; width: 100%; }

    /* Buttons — full-width on mobile */
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
        width: 100%;
        text-align: center !important;
        justify-content: center;
        padding: 12px 20px !important;
    }


    /* ══════════ Back to Top ══════════ */
    .back-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; }
}


/* ──────────────────────────────────────────────────────────────────────────────
   3. SMALL PHONE  (max-width: 480px)
   ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* ── Global ── */
    .section   { padding: 36px 0; }
    .container { padding: 0 12px; }
    .section-header .section-title { font-size: 1.3rem; }
    .section-header .section-subtitle { font-size: 0.85rem; }
    .section-badge { font-size: 0.7rem; padding: 4px 14px; margin-bottom: 12px; }


    /* ══════════ Navigation ══════════ */
    .nav-glass { padding: 8px 0; gap: 12px; }
    .logo-text { font-size: 1.3rem; }
    .nav-actions { gap: 4px; }
    .nav-search-btn,
    .nav-cart-btn { padding: 6px; }
    .nav-search-btn svg,
    .nav-cart-btn svg { width: 16px; height: 16px; }
    .cart-count { width: 16px; height: 16px; font-size: 0.55rem; top: -2px; right: -2px; }
    .mobile-menu-toggle { padding: 6px; gap: 4px; }
    .mobile-menu-toggle span { width: 20px; height: 2px; }

    /* Mobile menu — full width on small phones */
    .mobile-menu { width: 90%; max-width: none; }
    .mobile-menu-inner { padding: 20px 16px; }
    .mobile-nav-list li a { padding: 12px 0; font-size: 0.9rem; }
    .mobile-submenu-toggle { width: 28px; height: 28px; }
    .mobile-nav-list .sub-menu { padding-right: 10px; }
    .mobile-nav-list .sub-menu a { padding: 8px 0; font-size: 0.82rem; }
    .mobile-nav-list .sub-menu .sub-menu { padding-right: 8px; }
    .mobile-nav-list .sub-menu .sub-menu a { padding: 6px 0; font-size: 0.78rem; }

    /* Search */
    .search-overlay .search-field { padding: 10px 14px; font-size: 0.9rem; }
    .search-overlay-close { font-size: 1.2rem; }


    /* ══════════ Price Ticker Bar ══════════ */
    /* Simplified ticker on small phones — show only price & change */
    .price-ticker-bar { font-size: 0.65rem; padding: 3px 0; }
    .ticker-content { gap: 16px; }
    .ticker-item { gap: 4px; }
    .ticker-name { font-size: 0.62rem; }
    .ticker-price { font-size: 0.62rem; }
    .ticker-change { font-size: 0.58rem; }


    /* ══════════ Hero Section ══════════ */
    /* Hero responsive styles now in template-parts/hero-section.php (inline) */


    /* ══════════ Featured Products ══════════ */
    .featured-swiper .swiper-slide { width: 240px; }
    .featured-swiper-nav { display: none; }
    .fp-card-body { padding: 12px; }
    .fp-card-title { font-size: 0.82rem; }
    .fp-card-price { font-size: 0.9rem; }
    .fp-card-btn { padding: 9px 14px; font-size: 0.75rem; }
    .fp-card-image { aspect-ratio: 1; }
    .fp-card-badges { top: 8px; right: 8px; }
    .fp-badge { padding: 3px 8px; font-size: 0.62rem; }
    .fp-change { padding: 2px 7px; font-size: 0.6rem; }
    .fp-quick-btn { width: 40px; height: 40px; }

    /* Hide swiper nav arrows on small phones */
    .swiper-button-prev,
    .swiper-button-next { display: none !important; }


    /* ══════════ Products Grid ══════════ */
    .products-grid { grid-template-columns: 1fr; gap: 16px; }
    .product-card-body { padding: 14px; }
    .product-card-title { font-size: 0.9rem; min-height: auto; }
    .product-card-price { font-size: 1rem; }
    .product-card-actions { flex-direction: row; gap: 10px; }
    .product-card-btn { width: auto; flex: 1; justify-content: center; }
    .product-card-link { flex-shrink: 0; }

    /* Filter tabs */
    .product-filter { gap: 4px; padding-bottom: 4px; }
    .filter-tab { padding: 6px 14px; font-size: 0.75rem; border-radius: 20px; }


    /* ══════════ Category Cards ══════════ */
    .categories-swiper .swiper-slide { width: 160px; }
    .category-card-body { padding: 10px; }
    .category-card-body h3 { font-size: 0.8rem; }
    .category-count { font-size: 0.7rem; }


    /* ══════════ Live Prices ══════════ */
    /* Hide unit column on small phones */
    .th-unit,
    .td-unit { display: none; }

    .live-prices-table { font-size: 0.75rem; }
    .live-prices-table th,
    .live-prices-table td { padding: 8px 10px; }
    .th-product, .td-product { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
    .td-product .product-name { font-size: 0.78rem; }
    .td-price .price-value { font-size: 0.85rem; }

    /* Summary cards — compact */
    .price-summary-card { padding: 12px; gap: 10px; }
    .psc-icon { display: none; }
    .psc-count { font-size: 1.1rem; }
    .psc-label { font-size: 0.7rem; }

    /* Price detail chart — hidden on small phones */
    .price-detail-chart { display: none; }

    /* Price landing meta */
    .price-landing-meta { font-size: 0.8rem; flex-wrap: wrap; }

    /* Mini charts — smaller */
    .mini-chart { width: 60px !important; height: 24px !important; }


    /* ══════════ Stats Section ══════════ */
    .stats-grid  { grid-template-columns: 1fr; gap: 12px; }
    .stat-item   { padding: 16px 12px; }
    .stat-number { font-size: 1.8rem; }
    .stat-label  { font-size: 0.8rem; }
    .stat-icon svg { width: 24px; height: 24px; }


    /* ══════════ Partners / Brands ══════════ */
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .partner-card  { padding: 14px; min-height: 70px; }
    .partner-card img { max-height: 35px; }
    .partner-placeholder { font-size: 0.6rem; gap: 4px; }


    /* ══════════ Trust Section ══════════ */
    .trust-grid  { grid-template-columns: 1fr; gap: 12px; }
    .trust-item  { padding: 16px; display: flex; align-items: center; gap: 16px; text-align: right; }
    .trust-icon  { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
    .trust-icon svg { width: 22px; height: 22px; }
    .trust-item h3 { font-size: 0.88rem; margin-bottom: 4px; }
    .trust-item p  { font-size: 0.75rem; line-height: 1.5; }


    /* ══════════ Articles / Blog ══════════ */
    .article-card-body { padding: 14px; }
    .article-cat { font-size: 0.7rem; padding: 3px 10px; }
    .article-title { font-size: 0.9rem; }
    .article-meta { font-size: 0.72rem; }
    .article-excerpt { font-size: 0.8rem; }
    .article-placeholder svg { width: 24px; height: 24px; }


    /* ══════════ CTA Section ══════════ */
    .cta-inner { padding: 32px 12px; }
    .cta-content h2 { font-size: 1.3rem; }
    .cta-content p  { font-size: 0.85rem; }
    .cta-btn { padding: 10px 20px; font-size: 0.85rem; }
    .cta-btn-outline { border-width: 1.5px; }


    /* ══════════ Footer ══════════ */
    .site-footer { padding: 40px 0 0; }
    .footer-top { gap: 24px; padding-bottom: 24px; }
    .footer-logo { margin-bottom: 12px; }
    .footer-desc { font-size: 0.8rem; line-height: 1.7; margin-bottom: 12px; }
    .footer-socials { gap: 8px; }
    .social-link { width: 32px; height: 32px; }
    .social-link svg { width: 14px; height: 14px; }
    .footer-col-title { font-size: 0.9rem; margin-bottom: 12px; }
    .footer-links a { font-size: 0.82rem; }
    .footer-contact li { font-size: 0.82rem; margin-bottom: 10px; gap: 8px; }
    .footer-contact svg { width: 14px; height: 14px; }
    .footer-bottom { padding: 16px 0; font-size: 0.78rem; }
    .footer-bottom-links { gap: 12px; }
    .footer-bottom-links a { font-size: 0.78rem; }


    /* ══════════ Page Header ══════════ */
    .page-header { padding: 28px 0 20px; }
    .page-header-title { font-size: 1.4rem; line-height: 1.4; }
    .page-header-subtitle { font-size: 0.82rem; line-height: 1.6; }
    .page-breadcrumb { font-size: 0.72rem; margin-bottom: 12px; gap: 6px; }


    /* ══════════ About Page ══════════ */
    .about-section-title { font-size: 1.3rem; }
    .about-story-text { font-size: 0.85rem; }
    .about-stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .about-stat-card { padding: 20px 14px; }
    .about-stat-number { font-size: 1.8rem; }
    .about-stat-label { font-size: 0.82rem; }
    .about-stat-icon svg { width: 24px; height: 24px; }
    .about-visual-card { padding: 24px; min-height: 180px; }
    .about-visual-icon svg { width: 44px; height: 44px; }
    .about-visual-label { font-size: 0.8rem; }
    .about-value-card { padding: 20px; }
    .about-value-card h3 { font-size: 0.95rem; }
    .about-value-card p { font-size: 0.82rem; }
    .about-value-icon { width: 52px; height: 52px; margin-bottom: 16px; }
    .about-value-icon svg { width: 28px; height: 28px; }


    /* ══════════ Contact Page ══════════ */
    .contact-form-card { padding: 20px 16px; border-radius: var(--radius); }
    .contact-form-title { font-size: 1.2rem; }
    .contact-form-desc { font-size: 0.82rem; margin-bottom: 16px; }
    .form-label { font-size: 0.8rem; margin-bottom: 6px; }
    .form-input { padding: 10px 14px; font-size: 0.9rem; }
    .form-select { padding-left: 36px; background-position: left 12px center; }
    .form-textarea { min-height: 100px; }
    .contact-submit-btn { padding: 10px 20px; font-size: 0.85rem; }
    .contact-info-card { padding: 14px; gap: 10px; }
    .contact-info-icon { width: 36px; height: 36px; border-radius: 8px; }
    .contact-info-icon svg { width: 18px; height: 18px; }
    .contact-info-data h4 { font-size: 0.78rem; }
    .contact-info-data a,
    .contact-info-data span { font-size: 0.78rem; }
    .contact-map-placeholder { padding: 24px; gap: 8px; }
    .contact-map-placeholder svg { width: 32px; height: 32px; }
    .contact-map-placeholder p { font-size: 0.85rem; }
    .contact-map-wrap iframe { height: 180px; }

    /* FAQ */
    .faq-question { padding: 14px 16px; font-size: 0.85rem; }
    .faq-question svg { width: 16px; height: 16px; }
    .faq-answer { padding: 0 16px 14px; font-size: 0.82rem; line-height: 1.7; }
    .contact-faq-grid { padding: 0; }


    /* ══════════ Price Landing Page ══════════ */
    .plc-canvas-wrap { height: 180px; }
    .price-landing-chart { padding: 16px; margin-top: 24px; }
    .plc-header h3 { font-size: 0.95rem; }
    .price-content-wrap { padding: 16px; font-size: 0.82rem; }
    .pl-cta-inner { padding: 24px 12px; }
    .pl-cta-content h2 { font-size: 1.3rem; }
    .pl-cta-content p { font-size: 0.82rem; }


    /* ══════════ 404 Page ══════════ */
    .error-404-section { min-height: 70vh; }
    .error-digit { font-size: 4rem; -webkit-text-stroke-width: 1.5px; }
    .error-title { font-size: 1.1rem; }
    .error-desc  { font-size: 0.85rem; }
    .error-content { padding: 32px 12px; }
    .error-search-input { font-size: 0.85rem; padding: 10px 40px 10px 14px; }
    .error-links-label { font-size: 0.78rem; }
    .error-links-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .error-link-item {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    .error-cta-btn { padding: 10px 20px; font-size: 0.85rem; }
    .error-code { gap: 4px; margin-bottom: 16px; }

    /* Background particles — smaller */
    .error-particle-1 { width: 250px; height: 250px; }
    .error-particle-2 { width: 180px; height: 180px; }
    .error-particle-3 { width: 120px; height: 120px; }


    /* ══════════ Blog / Archive ══════════ */
    .article-card-footer { flex-direction: row; justify-content: space-between; align-items: center; }
    .article-read-more { align-self: auto; }
    .article-card-image { aspect-ratio: 16/9; }

    /* Pagination — compact */
    .nav-links > * { padding: 6px 10px; font-size: 0.8rem; }


    /* ══════════ Single Post ══════════ */
    .single-post-body { font-size: 0.85rem; }
    .single-featured-image { margin-bottom: 20px; border-radius: var(--radius); }
    .featured-img { border-radius: var(--radius); }
    .post-meta-items { gap: 8px; font-size: 0.72rem; }
    .post-meta-item svg,
    .post-meta-cat svg { width: 12px; height: 12px; }
    .share-label { font-size: 0.78rem; }
    .share-btn { width: 36px; height: 36px; }
    .share-btn svg { width: 14px; height: 14px; }
    .single-post-nav { padding: 16px 0; }
    .nav-direction { font-size: 0.72rem; }
    .nav-title { font-size: 0.78rem; }
    .tag-item { padding: 3px 8px; font-size: 0.68rem; }
    .related-title { font-size: 1.05rem; }

    /* Comments */
    .comment-body { padding: 12px; }
    .comment-author { font-size: 0.85rem; }
    .comment-content { font-size: 0.82rem; }


    /* ══════════ WooCommerce ══════════ */
    .woocommerce ul.products { grid-template-columns: 1fr !important; gap: 12px !important; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
    }
    .woocommerce ul.products li.product .price { font-size: 0.95rem !important; }
    .woocommerce ul.products li.product .button {
        margin: 0 12px 12px !important;
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }
    .woocommerce span.onsale { padding: 3px 10px !important; font-size: 0.7rem !important; }

    /* Single product */
    .woocommerce div.product .product_title { font-size: 1.3rem !important; }
    .woocommerce div.product p.price { font-size: 1.1rem !important; }
    .woocommerce div.product .woocommerce-tabs { padding: 16px; border-radius: var(--radius); }
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
    .woocommerce div.product .quantity .qty { width: 60px; padding: 6px 8px; }
    .woocommerce div.product .product_meta { font-size: 0.78rem !important; }

    /* Cart — horizontal scroll */
    .woocommerce table.shop_table { font-size: 0.72rem; min-width: 480px; }
    .woocommerce .cart_totals { padding: 14px; }

    /* Checkout */
    .woocommerce form .form-row input.input-text,
    .woocommerce form .form-row textarea,
    .woocommerce form .form-row select {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    .woocommerce form .form-row label { font-size: 0.8rem !important; }

    /* Notices */
    .woocommerce .woocommerce-message,
    .woocommerce .woocommerce-info,
    .woocommerce .woocommerce-error { font-size: 0.82rem !important; padding: 12px 16px !important; }

    /* Pagination */
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
        margin: 0 2px !important;
    }

    /* Breadcrumb */
    .woocommerce .woocommerce-breadcrumb { font-size: 0.78rem !important; }


    /* ══════════ Back to Top ══════════ */
    .back-to-top { bottom: 16px; left: 16px; width: 36px; height: 36px; }
    .back-to-top svg { width: 16px; height: 16px; }


    /* ══════════ Scroll Reveal — disable on small phones for perf ══════════ */
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ──────────────────────────────────────────────────────────────────────────────
   4. LANDSCAPE ORIENTATION OVERRIDES  (for short-but-wide devices)
   ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) {

    /* Hero — styles now in template-parts/hero-section.php (inline) */

    /* 404 — shorter viewport */
    .error-404-section { min-height: 60vh; }
    .error-digit { font-size: 4rem; }
    .error-content { padding: 24px 16px; }
}


/* ──────────────────────────────────────────────────────────────────────────────
   5. PRINT STYLES
   ────────────────────────────────────────────────────────────────────────────── */
@media print {

    /* Hide non-essential UI */
    .price-ticker-bar,
    .site-header,
    .back-to-top,
    .mobile-menu,
    .mobile-backdrop,
    .search-overlay,
    .hero-pagination,
    .hero-slide-counter,
    .hero-scroll-indicator,
    .hero-particles,
    .hero-decor,
    .swiper-button-prev,
    .swiper-button-next,
    .cta-section,
    .price-landing-cta,
    .error-bg,
    .pl-cta-inner,
    .share-buttons,
    .share-label,
    .contact-map-wrap,
    .footer-socials,
    .nav-actions { display: none !important; }

    body { background: #fff; color: #111; }
    .section { padding: 16px 0; }
    .container { max-width: 100%; }

    /* Force light backgrounds for print */
    .live-prices-table-wrap,
    .product-card,
    .article-card,
    .about-value-card,
    .about-stat-card,
    .price-summary-card,
    .faq-item { background: #fff !important; border-color: #ddd !important; }

    .live-prices-table th { background: #f5f5f5 !important; color: #333 !important; }
    .live-prices-table td { color: #333 !important; border-color: #ddd !important; }

    /* Ensure text is readable */
    .hero-title,
    .page-header-title,
    .section-title,
    .product-card-title a,
    .article-title a { color: #111 !important; }

    .hero-desc,
    .page-header-subtitle,
    .section-subtitle,
    .stat-number,
    .td-price .price-value { color: #333 !important; }

    /* Simplify grids for print */
    .products-grid,
    .articles-grid,
    .partners-grid { grid-template-columns: repeat(2, 1fr) !important; }

    .footer-top { grid-template-columns: repeat(2, 1fr); }
}


/* ──────────────────────────────────────────────────────────────────────────────
   6. REDUCED MOTION  (prefers-reduced-motion: reduce)
   ────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    /* Disable all CSS animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Keep basic hover/focus transitions at a short duration */
    a,
    button,
    input,
    select,
    .nav-menu li a,
    .filter-tab,
    .product-card,
    .category-card,
    .partner-card,
    .article-card,
    .about-stat-card,
    .about-value-card,
    .trust-item,
    .faq-item,
    .social-link,
    .cta-btn,
    .error-link-item {
        transition-duration: 0.1s !important;
    }

    /* Disable parallax/float effects */
    .particle,
    .hero-decor-spark,
    .hero-decor-line,
    .hero-decor-geo,
    .error-particle { display: none; }

    /* Reveal elements immediately */
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Ticker — stop scrolling */
    .ticker-content { animation: none; }

    /* Hero backgrounds — freeze */
    .hero-slide-bg--v1::before,
    .hero-slide-bg--v2::before,
    .hero-slide-bg--v4::before { animation: none; }

    /* Page header lines — freeze */
    .ph-line { animation: none; }

    /* 404 digit pulse — stop */
    .error-digit-center { animation: none; }

    /* Live indicator pulse — stop */
    .live-indicator { animation: none; }

    /* Scroll line — stop */
    .scroll-line { animation: none; }
}


/* ──────────────────────────────────────────────────────────────────────────────
   7. HIGH CONTRAST / FORCED COLORS  (Windows High Contrast Mode)
   ────────────────────────────────────────────────────────────────────────────── */
@media (forced-colors: active) {

    /* Ensure borders are visible */
    .product-card,
    .article-card,
    .about-stat-card,
    .about-value-card,
    .price-summary-card,
    .contact-info-card,
    .faq-item,
    .partner-card,
    .category-card { border: 1px solid ButtonText; }

    /* Ensure links are distinguishable */
    a { text-decoration: underline; }

    /* Ensure buttons have visible boundaries */
    .cta-btn,
    .nav-cta-btn,
    .product-card-btn,
    .filter-tab.active,
    .hero-cta-btn { border: 2px solid ButtonText; }

    /* Use system colors for focus indicators */
    *:focus-visible {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }
}


/* ──────────────────────────────────────────────────────────────────────────────
   8. HOVER-CAPABLE ONLY  (non-touch devices get hover effects)
   ────────────────────────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {

    /* These hover effects are already in main.css but ensuring they
       don't trigger on touch devices where they cause "sticky" states */

    .product-card:hover { transform: translateY(-4px); }
    .category-card:hover { transform: translateY(-4px); }
    .article-card:hover { transform: translateY(-4px); }
    .about-stat-card:hover { transform: translateY(-4px); }
    .about-value-card:hover { transform: translateY(-4px); }
    .partner-card:hover img { filter: grayscale(0%) brightness(1); }

    .cta-btn:hover { transform: translateY(-2px); }
    .hero-cta-btn:hover { transform: translateY(-2px); }
    .nav-cta-btn:hover { transform: translateY(-1px); }
    .back-to-top:hover { transform: translateY(-2px); }
}

@media (hover: none) {

    /* Disable transform-on-hover for touch devices */
    .product-card:hover,
    .category-card:hover,
    .article-card:hover,
    .about-stat-card:hover,
    .about-value-card:hover { transform: none; }

    /* Larger touch targets */
    .filter-tab { min-height: 44px; }
    .nav-menu li a { min-height: 44px; display: flex; align-items: center; }
    .footer-links a { min-height: 36px; display: flex; align-items: center; }
    .social-link { width: 44px; height: 44px; }
}
