/* ==========================================================================
   NariTales India - Mobile-First Responsive Stylesheet
   Luxury Dark Theme
   ========================================================================== */

/* ==========================================================================
   Tablet Only (768px - 991px) - Tablet-specific overrides
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid-2 {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    .checkout-summary {
        width: 340px;
    }

    .cart-content {
        grid-template-columns: 1fr 340px;
    }
}

/* ==========================================================================
   Mobile Large (576px - 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* Mobile Header - Mobile Large */
    .mobile-header {
        height: var(--header-height);
        padding: 0 var(--space-md);
    }

    .mobile-header-inner {
        gap: var(--space-sm);
    }

    .mobile-logo {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .mobile-header-actions {
        gap: var(--space-xs);
        min-width: 0;
    }

    .header-action-group {
        gap: 2px;
        padding: 2px;
        flex-shrink: 0;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .header-icon-btn i,
    .header-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .search-expand.active {
        max-height: 70px;
        padding: 8px var(--space-md);
    }

    .search-expand-inner input {
        font-size: 0.875rem;
    }

    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-xxl: 2rem;
        --space-3xl: 3rem;
    }

    /* Top Bar */
    .top-bar {
        padding: 4px 0;
        font-size: 0.7rem;
    }

    .top-bar-content {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .top-bar-left,
    .top-bar-right {
        gap: var(--space-md);
    }

    .social-links {
        display: none;
    }

    /* Hero */
    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-content {
        width: 95%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-description {
        font-size: 0.875rem;
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    /* Section */
    .section {
        padding: var(--space-xl) 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    .section-header.horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .section-header.horizontal .section-subtitle {
        text-align: left;
    }

    /* Product Grid */
    .product-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .product-content {
        padding: var(--space-md);
    }

    .product-title,
    .product-name {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .price-current {
        font-size: 1rem;
    }

    .product-actions,
    .product-card-actions {
        display: none;
    }

    .product-badge {
        top: var(--space-sm);
        left: var(--space-sm);
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    /* Category */
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 200px;
    }

    .category-content h3 {
        font-size: 1.15rem;
    }

    .category-content p {
        display: none;
    }

    /* Trust Section */
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .trust-icon {
        font-size: 1.5rem;
        width: 48px;
        height: 48px;
    }

    .trust-item h4 {
        font-size: 0.85rem;
    }

    .trust-item p {
        font-size: 0.75rem;
    }

    /* Product Detail */
    .product-detail-content .product-page-title {
        font-size: 1.35rem;
    }

    .product-detail-content .price-current {
        font-size: 1.5rem;
    }

    .product-actions-section {
        flex-direction: column;
    }

    .btn-wishlist {
        width: 100%;
    }

    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-nav-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Shop Page */
    .shop-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-results {
        order: -1;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-dropdown select {
        width: 100%;
    }

    /* Cart */
    .cart-page-header .cart-title {
        font-size: 1.5rem;
    }

    .cart-items-list {
        border-radius: var(--radius-lg);
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-quantity-controls {
        width: 100%;
    }

    .qty-adjust-btn {
        width: 36px;
        height: 36px;
    }

    .qty-display {
        flex: 1;
        min-width: 36px;
    }

    .order-summary-card,
    .checkout-summary {
        padding: var(--space-lg);
    }

    /* Checkout */
    .checkout-section {
        padding: var(--space-lg);
    }

    .payment-option {
        padding: var(--space-md);
    }

    .payment-name {
        font-size: 0.9rem;
    }

    /* Account */
    .account-page {
        padding: var(--space-lg) var(--container-padding);
    }

    .stat-card-mini {
        padding: var(--space-md);
    }

    .stat-value {
        font-size: 1.15rem;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    /* Footer */
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
        padding: var(--space-xl) var(--space-md);
    }

    .newsletter-form {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: var(--radius-full);
    }

    .newsletter-form button {
        border-radius: var(--radius-full);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links li {
        margin-bottom: var(--space-sm);
    }

    .footer-payment {
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }

    .payment-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    /* Auth Pages */
    .auth-card {
        padding: var(--space-lg);
        border-radius: var(--radius-xl);
    }

    .auth-title {
        font-size: 1.5rem;
    }

    /* Pagination */
    .pagination-btn,
    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0 var(--space-sm);
        font-size: 0.85rem;
    }

    /* Toast */
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
        max-width: none;
    }

    .toast {
        width: 100%;
        min-width: 0;
    }

    /* Back to Top */
    .back-to-top {
        right: var(--space-md);
        bottom: var(--space-md);
        width: 48px;
        height: 48px;
    }

    /* Related Products */
    .related-products-section .product-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reviews */
    .reviews-summary-card {
        flex-direction: column;
        text-align: center;
    }

    .rating-details {
        text-align: center;
    }

    /* Mobile Navigation */
    .mobile-nav {
        width: 85vw;
        max-width: 320px;
    }

    .mobile-nav-overlay {
        background: rgba(11, 8, 16, 0.9);
    }

    /* Mobile Header - Tablet/Large Mobile */
    .mobile-header {
        height: var(--header-height);
        padding: 0 var(--space-md);
    }

    .mobile-header-inner {
        gap: var(--space-sm);
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .menu-toggle i,
    .menu-toggle svg {
        width: 20px;
        height: 20px;
    }

    .mobile-logo {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
    }

    .logo-img {
        height: 42px;
        max-width: 54px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .mobile-header-actions {
        flex: 1;
        justify-content: flex-end;
        gap: var(--space-xs);
        min-width: 0;
    }

    .header-action-group {
        gap: 1px;
        padding: 2px;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
    }

    .header-icon-btn i,
    .header-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .search-expand.active {
        max-height: 70px;
        padding: 10px var(--space-md);
    }

    .search-expand-inner {
        padding: 0 10px;
    }

    .search-expand-inner input {
        font-size: 0.9rem;
        padding: 8px 0;
    }
}

/* ==========================================================================
   Mobile Small (575px and below)
   ========================================================================== */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--space-md);
    }

    /* ===== Product cards: single column on narrow phones =====
       Two columns on ≤375px width leave only ~140px per card,
       which clips prices and category labels. One column gives
       the cards breathing room and keeps titles / prices on
       their natural lines. */
    .product-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-card {
        border-radius: var(--radius-xl);
    }

    .product-image-wrap {
        aspect-ratio: 1 / 1;
    }

    .product-info {
        padding: 12px 14px 14px;
        gap: 4px;
    }

    .product-category {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .product-name {
        font-size: 0.92rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    .product-price-row {
        margin-top: 6px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .price-current {
        font-size: 1.05rem;
    }

    .price-original {
        font-size: 0.85rem;
        display: inline;
    }

    .product-card .wishlist-btn {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .product-card .wishlist-btn i,
    .product-card .wishlist-btn svg {
        width: 18px;
        height: 18px;
    }

    .product-badge {
        top: 10px;
        left: 10px;
        font-size: 0.65rem;
        padding: 4px 9px;
        border-radius: var(--radius-sm);
    }

    /* Compact action row at this width */
    .product-card-actions {
        display: flex;
        flex-direction: row;
        gap: 6px;
        margin-top: 10px;
    }

    .product-card-actions .btn-add-cart-sml,
    .product-card-actions .btn-buy-now-sml {
        flex: 1 1 0;
        padding: 8px 6px;
        font-size: 0.72rem;
        border-radius: var(--radius-sm);
        white-space: nowrap;
        gap: 4px;
    }

    .product-card-actions svg,
    .product-card-actions i {
        width: 14px;
        height: 14px;
    }

    /* Mobile Header - Small Mobile */
    .mobile-header {
        height: var(--header-height);
        padding: 0 8px;
    }

    .mobile-header-inner {
        gap: 4px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .menu-toggle i,
    .menu-toggle svg {
        width: 18px;
        height: 18px;
    }

    .mobile-logo {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
    }

    .logo-img {
        height: 36px;
        max-width: 48px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .mobile-header-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 0;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .header-action-group {
        gap: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        flex-shrink: 0;
    }

    .header-icon-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .header-icon-btn i,
    .header-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Ensure all 5 right-side icons + left-side controls fit comfortably. */
    .mobile-header-inner {
        min-width: 0;
    }

    .cart-badge,
    .bottom-nav-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.55rem;
        padding: 0 3px;
        top: 0;
        right: 0;
    }

    .search-expand.active {
        max-height: 65px;
        padding: 8px var(--space-sm);
    }

    .search-expand-inner {
        padding: 0 8px;
        gap: var(--space-xs);
    }

    .search-expand-inner .search-icon {
        width: 16px;
        height: 16px;
    }

    .search-expand-inner input {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .search-clear {
        width: 28px;
        height: 28px;
    }

    /* Mobile header: theme toggle stays visible across all breakpoints.
       Action groups flatten (no pill bg / gap) so all 5 icons fit. */
    .mobile-header .theme-toggle-btn {
        display: inline-flex;
    }

    .search-clear i,
    .search-clear svg {
        width: 14px;
        height: 14px;
    }

        .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }

    /* Section */
    .section-title {
        font-size: 1.35rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .section-header.horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .section-header.horizontal .section-subtitle {
        text-align: left;
        margin: 0;
    }

    /* Product Detail */
    .gallery-thumbnails {
        gap: var(--space-xs);
    }

    .thumbnail-btn {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }

    /* Mobile Filter */
    .shop-filter-sidebar {
        width: 100%;
        max-width: none;
    }

    /* Cart */
    .cart-item-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 100%;
    }

    .cart-item-info {
        gap: 10px;
    }

    .cart-item-actions {
        justify-content: space-between;
    }

    /* Address Grid */
    .address-cards {
        grid-template-columns: 1fr;
    }

    /* Order Summary */
    .checkout-summary {
        padding: var(--space-md);
    }

    .checkout-summary .summary-title {
        font-size: var(--text-base);
    }

    .checkout-summary .summary-total .summary-value {
        font-size: var(--text-xl);
    }

    .checkout-summary .trust-icon {
        width: 28px;
        height: 28px;
    }

    .checkout-summary .trust-item {
        font-size: 0.65rem;
    }

    .summary-item-image {
        width: 50px;
        height: 50px;
    }

    /* Trust Section */
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        border-radius: var(--radius-full);
    }

    .newsletter-form button {
        width: 100%;
        border-radius: var(--radius-full);
        padding: 14px;
    }

    /* Account Stats */
    .account-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Product Detail Mobile */
    .product-detail-section {
        padding: 16px var(--container-padding);
        gap: 20px;
    }

    .quantity-selector {
        width: 100%;
    }

    .product-action-buttons {
        flex-direction: column;
    }

    .product-action-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Extra Small Mobile (375px and below)
   ========================================================================== */
@media (max-width: 375px) {
    /* Mobile Header - Extra Small Mobile */
    .mobile-header {
        height: 56px;
        padding: 0 6px;
    }

    .mobile-header-inner {
        gap: 2px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .menu-toggle i,
    .menu-toggle svg {
        width: 16px;
        height: 16px;
    }

    .mobile-logo {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
    }

    .logo-img {
        height: 32px;
        max-width: 42px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .mobile-header-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 0;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .header-action-group {
        gap: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        flex-shrink: 0;
    }

    .header-icon-btn {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .header-icon-btn i,
    .header-icon-btn svg {
        width: 15px;
        height: 15px;
    }

    .cart-badge,
    .bottom-nav-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.55rem;
        padding: 0 3px;
        top: 0;
        right: 0;
    }

    .search-expand.active {
        max-height: 60px;
        padding: 6px var(--space-xs);
    }

    .search-expand-inner {
        padding: 0 6px;
        gap: var(--space-xs);
    }

    .search-expand-inner .search-icon {
        width: 14px;
        height: 14px;
    }

    .search-expand-inner input {
        font-size: 0.8rem;
        padding: 4px 0;
    }

    .search-clear {
        width: 24px;
        height: 24px;
    }

    .search-clear i,
    .search-clear svg {
        width: 12px;
        height: 12px;
    }

    /* Hero */
    .hero {
        height: 60vh;
        min-height: 350px;
    }

    .hero-subtitle {
        font-size: 0.65rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    /* Mobile Nav */
    .mobile-nav {
        width: 280px;
    }

    /* Trust Section */
    .trust-item {
        padding: var(--space-sm);
    }

    .trust-icon {
        width: 40px;
        height: 40px;
    }

    /* Account Stats */
    .account-stats {
        grid-template-columns: 1fr;
    }

    .stat-card-mini {
        flex-direction: row;
    }

    /* Buttons */
    .btn--sm {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    /* Pagination */
    .pagination-btn,
    .pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Form Inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Order Summary on mobile - turn off sticky, full-width */
    .checkout-summary.glass {
        position: static;
        top: auto;
    }

    .checkout-summary .btn-checkout {
        padding: var(--space-3) var(--space-4);
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-card:hover .product-img {
        transform: none;
    }

    .product-card:hover .product-card-actions {
        opacity: 1;
        transform: none;
    }

    /* Show actions on touch by default */
    .product-card-actions {
        opacity: 1;
        transform: none;
        display: flex !important;
    }

    /* Remove hover underlines */
    a:hover {
        text-decoration: none;
    }

    /* Larger touch targets */
    .btn,
    button,
    input,
    select,
    .filter-option,
    .attr-item {
        min-height: 44px;
    }

    /* Better tap feedback */
    .btn:active {
        transform: scale(0.98);
    }

    /* Touch-friendly cards */
    .card:active,
    .category-card:active,
    .why-card:active {
        transform: scale(0.99);
    }
}

/* ==========================================================================
   Landscape Mode on Mobile
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: auto;
        padding: var(--space-xxl) 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: row;
    }
}

/* ==========================================================================
   Large Desktop (1400px and above)
   ========================================================================== */
@media (min-width: 1400px) {
    .product-grid-2 {
        grid-template-columns: repeat(4, 1fr);
    }

    .container {
        max-width: 1320px;
    }

    .hero-content {
        max-width: 700px;
    }
}

/* ==========================================================================
   Ultra-wide Desktop (1800px and above)
   ========================================================================== */
@media (min-width: 1800px) {
    .container {
        max-width: 1400px;
    }

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

/* ==========================================================================
   Reduced Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    /* Ensure critical UI is always visible */
    .product-card,
    .card,
    .btn {
        transition: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .top-bar,
    .header,
    .mobile-nav,
    .back-to-top,
    .toast-container,
    .footer,
    .product-card-actions,
    .desktop-header,
    .bottom-nav,
    .floating-actions {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section {
        padding: 1rem 0;
    }

    .product-detail-section,
    .cart-page,
    .checkout-page {
        padding: 0;
        max-width: none;
    }

    .product-gallery,
    .product-detail-content {
        break-inside: avoid;
    }
}

/* ==========================================================================
   Dark Mode (already dark, but for system preference override)
   ========================================================================== */
@media (prefers-color-scheme: light) {
    /* Respect system light mode if implemented */
    /* Currently using forced dark theme, but this can be extended */
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */
@media (prefers-contrast: high) {
    :root {
        --glass-border: 1px solid rgba(255, 255, 255, 0.3);
        --border-subtle: 1px solid rgba(255, 255, 255, 0.2);
        --border-default: 1px solid rgba(255, 255, 255, 0.4);
    }

    .glass,
    .glass-strong {
        border-width: 2px;
    }

    .btn--outline {
        border-width: 2px;
    }
}

/* ==========================================================================
   Product Details V2 (Reference-aligned) — Responsive overrides
   ========================================================================== */

/* Tablet & small desktop: drop to single column, image flexible */
@media (max-width: 1024px) {
    .pd2-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pd2-gallery {
        position: static;
        width: 100%;
        flex-direction: column;          /* stack thumbs over main image */
    }

    .pd2-thumbs {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
        order: 2;
        margin-top: 12px;
        justify-content: flex-start;
        gap: 10px;
    }

    .pd2-thumbs::-webkit-scrollbar {
        display: none;
    }

    .pd2-main {
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;             /* slightly taller than square feels more premium */
        max-width: 520px;
        margin: 0 auto;
    }
}

/* Mobile: compact actions row, 2-col related grid */
@media (max-width: 768px) {
    .pd2-wrap {
        padding: 16px var(--container-padding) 48px;
    }

    .pd2-breadcrumb {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }

    .pd2-title {
        font-size: clamp(22px, 7vw, 30px);
        margin-bottom: 10px;
    }

    .pd2-eyebrow {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .pd2-price-current {
        font-size: 28px;
    }

    .pd2-price-original {
        font-size: 16px;
    }

    .pd2-save-pill {
        font-size: 12px;
        padding: 3px 8px;
    }

    .pd2-desc {
        font-size: 14px;
        line-height: 1.55;
    }

    .pd2-spec-chips {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 22px;
    }

    .pd2-spec-chip {
        padding: 10px 14px;
    }

    .pd2-spec-chip-label {
        font-size: 10px;
    }

    .pd2-spec-chip-value {
        font-size: 13px;
    }

    /* Action rows: stacked layout for mobile
       Uses CSS grid so each child occupies a deliberate track:
       Row 1: qty (1fr) | wishlist-heart (48px)
       Row 2: Add to Cart (full width)
       Row 3: Buy Now (full width) */
    .pd2-actions {
        display: grid;
        grid-template-columns: 1fr 48px;
        grid-template-areas:
            "qty    heart"
            "cart   cart"
            "buy    buy";
        align-items: stretch;
        gap: 10px;
        margin-top: 22px;
        flex-wrap: nowrap;
    }

    .pd2-qty {
        grid-area: qty;
        flex: 1 1 auto;
        width: auto;
        justify-content: center;
    }

    .pd2-btn-wish-round {
        grid-area: heart;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        align-self: auto;
    }

    .pd2-btn-cart {
        grid-area: cart;
        width: 100%;
        max-width: none;
        height: 50px;
        font-size: 15px;
        white-space: nowrap;
    }

    .pd2-btn-buy {
        grid-area: buy;
        width: 100%;
        max-width: none;
        height: 50px;
        font-size: 15px;
        white-space: nowrap;
    }

    .pd2-btn-cart span,
    .pd2-btn-buy span {
        white-space: nowrap;
    }

    .pd2-btn-cart svg,
    .pd2-btn-cart i {
        width: 18px;
        height: 18px;
    }

    .pd2-btn-buy svg,
    .pd2-btn-buy i {
        width: 18px;
        height: 18px;
    }

    .pd2-wish-overlay {
        display: none;
    }

    .pd2-trust {
        gap: 14px 24px;
        margin-top: 24px;
        padding-top: 22px;
    }

    .pd2-trust-item {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
        font-size: 12px;
    }

    .pd2-trust-item svg,
    .pd2-trust-item i {
        width: 18px;
        height: 18px;
    }

    .pd2-badge {
        top: 14px;
        left: 14px;
        font-size: 11px;
        padding: 6px 12px;
    }

    .pd2-tabs {
        padding: 0 var(--container-padding) 48px;
    }

    .pd2-tab {
        padding: 14px 14px;
        font-size: 14px;
    }

    .pd2-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pd2-spec-label {
        width: 130px;
    }

    .pd2-spec-table {
        border-radius: 14px;
    }

    .pd2-spec-row {
        padding: 14px 18px;
    }

    .pd2-spec-label {
        font-size: 13px;
    }

    .pd2-spec-value {
        font-size: 14px;
    }

    .pd2-review-card {
        padding: 18px 18px;
    }
}

/* Small mobile (≤ 480px): fine-tune */
@media (max-width: 480px) {
    .pd2-wrap {
        padding: 12px var(--container-padding) 40px;
    }

    .pd2-price-row {
        gap: 8px;
    }

    .pd2-price-current {
        font-size: 26px;
    }

    .pd2-thumb {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .pd2-thumbs {
        gap: 8px;
    }

    .pd2-spec-chip {
        padding: 10px 12px;
        min-width: 0;
    }

    .pd2-actions {
        gap: 8px;
    }

    .pd2-btn-cart,
    .pd2-btn-buy {
        font-size: 12px;
        height: 46px;
        padding: 0 10px;
        gap: 6px;
    }

    .pd2-trust {
        gap: 12px 16px;
    }

    .pd2-trust-item {
        flex: 1 1 calc(50% - 8px);
        font-size: 11px;
    }

    .pd2-rating-row {
        gap: 8px;
    }
}
