/* ===== Hero Section ===== */
.cat-hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--dark-green);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 5% 50px;
    overflow: hidden;
    animation: heroFadeIn 0.8s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}
.cat-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 20, 0.55);
    z-index: 1;
}
.cat-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 30, 20, 0.3) 0%, transparent 60%);
    z-index: 2;
}
.cat-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    position: relative;
    z-index: 3;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb i { font-size: 0.6rem; color: var(--gold); }

/* ===== Description Card ===== */
.cat-description {
    text-align: center;
    max-width: 800px;
    margin: -25px auto 30px;
    padding: 25px 30px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}
.cat-description p {
    color: var(--card-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.product-card {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-heading);
}

.product-card .product-info .name-en {
    color: var(--card-text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    margin-bottom: 8px;
    opacity: 0.85;
}

.product-card .product-info p {
    color: var(--card-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

/* ===== Footer ===== */
footer {
    background: #4A5D23;
}
footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(201, 166, 70, 0.15);
}
footer .footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--gold), #F1D279, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
footer .footer-credit {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
footer .footer-credit:hover { opacity: 0.8; }
footer .copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ===== RTL Fixes ===== */
[dir="rtl"] .breadcrumb i.fa-chevron-right {
    transform: scaleX(-1);
}

/* ===== Category Nav Tabs ===== */
.cat-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 5% 10px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.cat-nav a {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cat-nav a:hover {
    border-color: #B8F000;
    color: var(--text-primary);
}
.cat-nav a.active {
    background: #B8F000;
    color: #0F3D2E;
    border-color: #B8F000;
    font-weight: 700;
}
[data-theme="dark"] .cat-nav a.active {
    background: #B8F000;
    color: #0F3D2E;
}

/* ===== Product Count ===== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
}
.products-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Product Card MOQ Badge ===== */
.product-moq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(184,240,0,0.1);
    border: 1px solid rgba(184,240,0,0.25);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0F3D2E;
    margin-bottom: 10px;
    width: fit-content;
}
[data-theme="dark"] .product-moq-badge {
    color: #B8F000;
}
.product-moq-badge i {
    color: #B8F000;
    font-size: 0.7rem;
}

/* ===== Detail MOQ Banner ===== */
.detail-moq-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(184,240,0,0.08);
    border: 1px solid rgba(184,240,0,0.2);
    border-radius: 12px;
    margin-top: 10px;
}
.detail-moq-banner i {
    color: #B8F000;
    font-size: 1.2rem;
}
.detail-moq-banner-text {
    display: flex;
    flex-direction: column;
}
.detail-moq-banner-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}
.detail-moq-banner-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
}

/* ===== B2B Notice ===== */
.b2b-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(184,240,0,0.06);
    border: 1px solid rgba(184,240,0,0.15);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 12px;
}
.b2b-notice i {
    color: #B8F000;
    font-size: 0.8rem;
}

/* ===== Product Card Button ===== */
.product-card-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #0F3D2E;
    background: #B8F000;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}
.product-card-btn:hover {
    background: #a3d900;
    transform: translateY(-1px);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 5% 20px;
    flex-wrap: wrap;
}
.pagination-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination-btn:hover:not(.disabled) {
    border-color: #B8F000;
    color: var(--text-primary);
}
.pagination-btn.active {
    background: #B8F000;
    color: #0F3D2E;
    border-color: #B8F000;
    font-weight: 700;
}
.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.pagination-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ===== Quote Section ===== */
.quote-section {
    background: var(--section-alt);
    padding: 60px 5%;
    text-align: center;
    margin-top: 40px;
}
.quote-section h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-heading);
    margin-bottom: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.quote-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.quote-section .cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: #B8F000;
    color: #0F3D2E;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.quote-section .cta-button:hover {
    background: #a3d900;
    transform: translateY(-2px);
}

/* ===== Detail Page ===== */
.detail-hero {
    position: relative;
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--dark-green);
    background-size: cover;
    background-position: center;
    padding: 50px 5% 40px;
    overflow: hidden;
}
.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 20, 0.7);
    z-index: 1;
}
.detail-hero .breadcrumb {
    position: relative;
    z-index: 2;
}
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
    width: 100%;
    box-sizing: border-box;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.detail-image-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.detail-image-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--section-alt);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    width: fit-content;
}
.detail-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #B8F000;
    border-radius: 50%;
}
.detail-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-heading);
    font-weight: 900;
}
.detail-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--section-alt);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.detail-meta-item i {
    color: #B8F000;
    font-size: 0.9rem;
}
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.detail-actions .btn-quote {
    padding: 14px 32px;
    background: #B8F000;
    color: #0F3D2E;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.detail-actions .btn-quote:hover {
    background: #a3d900;
    transform: translateY(-2px);
}
.detail-actions .btn-whatsapp {
    padding: 14px 32px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.detail-actions .btn-whatsapp:hover {
    background: #20b858;
    transform: translateY(-2px);
}

/* ===== Spec Table ===== */
.spec-section {
    margin-top: 40px;
}
.spec-section h2 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--card-border);
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table tr {
    border-bottom: 1px solid var(--card-border);
}
.spec-table td {
    padding: 14px 16px;
    font-size: 0.92rem;
}
.spec-table td:first-child {
    font-weight: 700;
    color: var(--text-heading);
    width: 40%;
    background: var(--section-alt);
}
.spec-table td:last-child {
    color: var(--text-secondary);
}

/* ===== Uses & Benefits ===== */
.uses-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.uses-card, .benefits-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
}
.uses-card h3, .benefits-card h3 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.uses-card h3 i, .benefits-card h3 i {
    color: #B8F000;
}
.uses-card p, .benefits-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ===== Packaging Card ===== */
.packaging-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
}
.packaging-card h3 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.packaging-card h3 i {
    color: #B8F000;
}
.packaging-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.packaging-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.packaging-item i {
    color: #B8F000;
    margin-top: 4px;
    font-size: 0.9rem;
}
.packaging-item div {
    font-size: 0.9rem;
}
.packaging-item div strong {
    display: block;
    color: var(--text-heading);
    margin-bottom: 2px;
}
.packaging-item div span {
    color: var(--text-secondary);
}

/* ===== Responsive for New Components ===== */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-image-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cat-nav {
        gap: 6px;
        padding: 20px 5% 10px;
    }
    .cat-nav a {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .products-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .uses-benefits {
        grid-template-columns: 1fr;
    }
    .packaging-grid {
        grid-template-columns: 1fr;
    }
    .detail-container {
        padding: 30px 5%;
    }
    .detail-actions {
        flex-direction: column;
    }
    .detail-actions .btn-quote,
    .detail-actions .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cat-nav {
        gap: 4px;
    }
    .cat-nav a {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    .pagination {
        gap: 6px;
    }
    .pagination-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .cat-hero {
        min-height: 30vh;
        padding: 40px 5% 40px;
    }
    .cat-description {
        margin: -20px auto 20px;
        padding: 18px 20px;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 100%;
    }
    .product-card .product-image {
        padding: 0;
    }
    .product-card .product-info {
        padding: 14px 14px 16px;
    }
    .product-card .product-info h3 {
        font-size: 0.95rem;
    }
    .product-card .product-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cat-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .cat-hero {
        padding: 90px 4% 30px;
    }
    .cat-description {
        padding: 15px 16px;
        margin: -15px auto 15px;
        border-radius: 12px;
    }
    .cat-description p {
        font-size: 0.85rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 14px;
    }
    .product-card .product-info {
        padding: 12px 12px 14px;
    }
    .product-card .product-info h3 {
        font-size: 0.9rem;
    }
}

/* ========== COMPREHENSIVE RESPONSIVE ENHANCEMENTS ========== */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .products-grid {
        max-width: 1400px;
    }
    .cat-nav {
        max-width: 1400px;
    }
    .products-header {
        max-width: 1400px;
    }
}

/* Tablet Landscape (1024px - 1100px) */
@media (min-width: 1024px) and (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    }
}

/* Enhanced Mobile (320px - 767px) */
@media (max-width: 767px) {
    /* Hero section */
    .cat-hero {
        min-height: 25vh;
        padding: 100px 5% 40px;
    }
    
    .cat-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    /* Description card */
    .cat-description {
        margin: -20px auto 20px;
        padding: 18px 20px;
        max-width: 100%;
    }
    
    .cat-description p {
        font-size: 0.88rem;
        line-height: 1.7;
    }
    
    /* Category navigation */
    .cat-nav {
        padding: 20px 5% 10px;
        gap: 6px;
    }
    
    .cat-nav a {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    
    /* Products header */
    .products-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 0 5%;
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 100%;
    }
    
    /* Product cards */
    .product-card .product-info {
        padding: 14px 14px 16px;
    }
    
    .product-card .product-info h3 {
        font-size: 0.95rem;
    }
    
    .product-card .product-info .name-en {
        font-size: 0.75rem;
    }
    
    .product-card .product-info p {
        font-size: 0.8rem;
    }
    
    /* MOQ badge */
    .product-moq-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* Product button */
    .product-card-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
    
    /* Quote section */
    .quote-section {
        padding: 50px 5%;
    }
    
    .quote-section h2 {
        font-size: 1.2rem;
    }
    
    .quote-section p {
        font-size: 0.9rem;
    }
    
    .quote-section .cta-button {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    /* Detail page */
    .detail-hero {
        min-height: 20vh;
        padding: 40px 5% 40px;
    }
    
    .detail-container {
        padding: 30px 5%;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .detail-image-card {
        position: static;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-subtitle {
        font-size: 0.9rem;
    }
    
    .detail-meta {
        gap: 8px;
    }
    
    .detail-meta-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn-quote,
    .detail-actions .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    /* MOQ banner */
    .detail-moq-banner {
        padding: 12px 16px;
    }
    
    .detail-moq-banner-value {
        font-size: 0.9rem;
    }
    
    /* B2B notice */
    .b2b-notice {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    
    /* Spec table */
    .spec-section h2 {
        font-size: 1.2rem;
    }
    
    .spec-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Uses & Benefits */
    .uses-benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .uses-card, .benefits-card {
        padding: 20px;
    }
    
    .uses-card h3, .benefits-card h3 {
        font-size: 1.1rem;
    }
    
    .uses-card p, .benefits-card p {
        font-size: 0.85rem;
    }
    
    /* Packaging */
    .packaging-card {
        padding: 20px;
    }
    
    .packaging-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .packaging-item div {
        font-size: 0.85rem;
    }
    
    /* Pagination */
    .pagination {
        padding: 30px 5% 20px;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    /* Hero */
    .cat-hero {
        padding: 90px 4% 30px;
    }
    
    .cat-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    
    /* Description */
    .cat-description {
        padding: 15px 16px;
        margin: -15px auto 15px;
    }
    
    .cat-description p {
        font-size: 0.82rem;
    }
    
    /* Category nav */
    .cat-nav {
        padding: 16px 4% 8px;
        gap: 4px;
    }
    
    .cat-nav a {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .product-card .product-info {
        padding: 12px 12px 14px;
    }
    
    .product-card .product-info h3 {
        font-size: 0.9rem;
    }
    
    .product-card .product-info p {
        font-size: 0.78rem;
    }
    
    /* Quote section */
    .quote-section {
        padding: 40px 4%;
    }
    
    .quote-section h2 {
        font-size: 1.1rem;
    }
    
    .quote-section .cta-button {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
    
    /* Detail page */
    .detail-container {
        padding: 24px 4%;
    }
    
    .detail-title {
        font-size: 1.3rem;
    }
    
    .detail-actions .btn-quote,
    .detail-actions .btn-whatsapp {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Spec table */
    .spec-table td:first-child {
        width: 45%;
    }
    
    /* Cards */
    .uses-card, .benefits-card, .packaging-card {
        padding: 16px;
    }
    
    /* Pagination */
    .pagination {
        padding: 24px 4% 16px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

/* Very Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    .cat-hero h1 {
        font-size: 1.4rem;
    }
    
    .cat-description p {
        font-size: 0.78rem;
    }
    
    .cat-nav a {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .product-card .product-info h3 {
        font-size: 0.85rem;
    }
    
    .product-card .product-info p {
        font-size: 0.75rem;
    }
    
    .quote-section h2 {
        font-size: 1rem;
    }
    
    .detail-title {
        font-size: 1.2rem;
    }
    
    .spec-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .cat-nav {
        gap: 8px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-image-card {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .uses-benefits {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* Ensure all images are responsive */
.cat-hero img,
.detail-image-card img,
.product-card img {
    max-width: 100%;
    height: auto;
}

/* Fix for RTL on mobile */
@media (max-width: 767px) {
    [dir="rtl"] .breadcrumb i.fa-chevron-right {
        transform: scaleX(-1);
    }
    
    [dir="rtl"] .detail-actions {
        flex-direction: column;
    }
}

/* Ensure touch targets are accessible */
@media (max-width: 767px) {
    .cat-nav a,
    .pagination-btn,
    .product-card-btn,
    .detail-actions .btn-quote,
    .detail-actions .btn-whatsapp {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent text overflow */
.cat-hero h1,
.detail-title,
.product-card .product-info h3,
.quote-section h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure spec table is scrollable on mobile */
@media (max-width: 600px) {
    .spec-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* Light mode: product/category hero title stays gold */
[data-theme="light"] .cat-hero h1 .gold-text {
    background: linear-gradient(to right, #C5A234, #E7C979, #C5A234);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
