/* ===== CSS VARIABLES ===== */
:root {
    --primary: #006837;
    --primary-dark: #004d27;
    --primary-light: #4d8c6a;
    --secondary: #f36f21;
    --secondary-dark: #d45a17;
    --accent: #00a79d;
    --light: #f8f9fa;
    --dark: #1a2c3b;
    --gray: #5a6c7d;
    --light-gray: #eef2f5;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== BODY STYLES ===== */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fafc;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Disable body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

/* ===== LAYOUT CONTAINERS ===== */
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 104, 55, 0.1);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    margin-left: 10px;
}

/* ===== DESKTOP NAVIGATION ===== */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ===== MAIN CONTENT AREA ===== */
main {
    flex: 1 0 auto;
    width: 100%;
}

/* ===== BODY BACKGROUND ===== */
body {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('') no-repeat center center fixed;
    background-size: cover;
}

/* ===== PRODUCT PAGE LAYOUT ===== */
.product-page {
    padding-top: 0;
    min-height: auto;
    padding-bottom: 0;
    width: 100%;
}

.product-main-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== PRODUCTS HEADER ===== */
.products-header {
    padding: 25px 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: linear-gradient(to right, rgba(0, 104, 55, 0.05), rgba(243, 111, 33, 0.05));
}

.products-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.products-count {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== PRODUCTS GRID - UPDATED TO 4x4 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    padding: 40px 60px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== MAXIMIZED IMAGE SIZE - TOUCHING TOP AND BOTTOM ===== */
.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 12px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
}

.product-price-section {
    margin-top: auto;
    text-align: center;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.product-price-section div:last-child {
    color: #666;
    font-size: 0.9rem;
}

/* ===== PRODUCT ACTIONS ===== */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    gap: 6px;
    transition: var(--transition);
    flex: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(0, 104, 55, 0.1);
    transform: translateY(-2px);
}

.btn-amazon {
    background-color: #FF9900;
    color: #000;
    border: none;
}

.btn-amazon:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

.btn-contact {
    background-color: var(--secondary);
    color: white;
    border: none;
}

.btn-contact:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* ===== PRODUCT DETAILS PAGE ===== */
.product-details-page {
    padding: 0;
    min-height: calc(100vh - 140px);
    width: 100%;
}

.product-details-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    backdrop-filter: blur(5px);
    border: none;
    min-height: calc(100vh - 140px);
}

.product-details-header {
    padding: 25px 60px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 104, 55, 0.05), white);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.back-button:hover {
    background-color: var(--primary-dark);
    transform: translateX(-3px);
}

.product-details-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 0;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-details-body {
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.product-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 35px;
}

/* ===== LEFT COLUMN - IMAGE GALLERY ===== */
.product-image-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-main-image-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
}

.product-nav-btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.product-nav-btn:hover {
    background-color: white;
    transform: scale(1.15);
}

.product-image-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.product-thumbnail-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 8px;
    transition: var(--transition);
}

.product-thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0, 104, 55, 0.2);
}

.product-thumbnail:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== RIGHT COLUMN - PRODUCT INFO ===== */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-main-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--light-gray);
}

.product-main-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.product-price-section-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-main-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.product-main-unit {
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-purchase-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    min-width: auto;
    width: 100%;
    transition: var(--transition);
}

/* ===== BUTTON TEXT FOR MOBILE ===== */
.btn-text {
    display: inline;
}

/* ===== PRODUCT DESCRIPTION ===== */
.product-description-section {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 28px;
    margin-top: 15px;
}

.product-description-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.product-description {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* ===== PRODUCT SPECIFICATIONS ===== */
.product-specs-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--box-shadow);
    margin-top: 15px;
}

.product-specs-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.product-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.product-spec-item:hover {
    background: #f0f2f5;
    transform: translateX(3px);
}

.product-spec-label {
    color: var(--gray);
    font-weight: 600;
    font-size: 1rem;
}

.product-spec-value {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
}

/* ===== FOOTER STYLES ===== */
footer {
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 60px 0 30px;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    border-top: 3px solid var(--secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 35px;
    margin-bottom: 45px;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
}

.footer-logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: block;
    margin-top: 12px;
}

.footer-about p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    padding: 3px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #adb5bd;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-top: 3px;
    min-width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

.iso-badge-desktop {
    display: flex;
    align-items: center;
    margin-top: 18px;
}

.iso-badge-desktop i {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-right: 10px;
}

.iso-badge-mobile {
    display: none;
}

/* ===== PC PLUS LINK STYLES ===== */
.pcplus-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pcplus-link:hover {
    color: white;
    text-decoration: underline;
    transform: translateX(3px);
}

.pcplus-link i {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE STYLES ===== */

/* Large Desktop */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        padding: 36px 50px;
    }
    
    .products-header,
    .product-details-header {
        padding: 25px 50px;
    }
    
    .product-details-body {
        padding: 36px 50px;
    }
    
    .product-image {
        height: 190px;
    }
    
    .product-main-image-container {
        height: 400px;
    }
}

/* Desktop (1200px) */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        padding: 34px 45px;
    }
    
    .products-header,
    .product-details-header {
        padding: 22px 45px;
    }
    
    .product-details-body {
        padding: 34px 45px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-main-image-container {
        height: 380px;
    }
}

/* Medium Desktop (992px) */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        padding: 32px 40px;
    }
    
    .products-header,
    .product-details-header {
        padding: 22px 40px;
    }
    
    .product-details-body {
        padding: 32px 40px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-main-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .product-main-image-container {
        height: 360px;
    }
    
    /* ===== FOOTER RESPONSIVE ===== */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* =========================================== */
/* 1️⃣ MOBILE BREAKPOINT WHERE NAVIGATION CHANGES */
/* =========================================== */
@media (max-width: 768px) {
    
    /* 2️⃣ MOBILE MENU BUTTON (HAMBURGER) */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 3️⃣ MAIN MOBILE NAVIGATION MENU */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: 60vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
        overflow-y: auto;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        gap: 5px;
        margin: 0;
    }
    
    /* 4️⃣ WHEN MOBILE MENU IS OPENED */
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* 5️⃣ MOBILE NAV LINKS STYLING */
    .nav-menu li {
        width: 100%;
        list-style: none;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: center;
        border-radius: var(--border-radius);
        margin: 4px 0;
        text-decoration: none;
        transition: var(--transition);
    }
    
    .nav-menu li a:hover {
        background-color: rgba(0, 104, 55, 0.05);
        color: var(--primary);
    }
    
    .nav-menu li a.active {
        background-color: rgba(0, 104, 55, 0.1);
        color: var(--primary);
        font-weight: 600;
    }
    
    /* Original responsive styles continue below... */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 30px 35px;
    }
    
    .products-header,
    .product-details-header {
        padding: 22px 35px;
    }
    
    .product-details-body {
        padding: 30px 35px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-main-image-container {
        height: 320px;
    }
    
    /* ===== MOBILE BUTTON SIZE ADJUSTMENTS ===== */
    .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        gap: 4px;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .back-button {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    /* ===== PRODUCT DETAILS HEADER MOBILE FIX ===== */
    .product-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 25px;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
        order: 2;
    }
    
    .product-details-title {
        font-size: 1.2rem;
        text-align: center;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
        order: 1;
        margin-bottom: 5px;
        font-weight: 600;
    }
    
    /* ===== PRODUCT MAIN NAME MOBILE FIX ===== */
    .product-main-name {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .product-main-price {
        font-size: 1.8rem;
    }
    
    .product-main-unit {
        font-size: 1rem;
    }
    
    /* ===== PRODUCT PURCHASE BUTTONS GRID ===== */
    .product-purchase-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* ===== MOBILE FOOTER ===== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .iso-badge-mobile {
        display: inline-block;
        background-color: var(--secondary);
        color: white;
        padding: 8px 18px;
        border-radius: 15px;
        font-size: 0.9rem;
        font-weight: 600;
        margin: 10px 0 18px;
        text-align: center;
    }
    
    .iso-badge-desktop {
        display: none;
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 24px 25px;
    }
    
    .products-header,
    .product-details-header {
        padding: 18px 25px;
    }
    
    .product-details-body {
        padding: 24px 25px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-main-image-container {
        height: 260px;
    }
    
    /* ===== SMALLER BUTTONS FOR SMALL MOBILE ===== */
    .btn {
        padding: 9px 12px;
        font-size: 0.8rem;
        gap: 3px;
    }
    
    .btn-large {
        padding: 11px 18px;
        font-size: 0.85rem;
    }
    
    .back-button {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    
    /* ===== PRODUCT DETAILS HEADER SMALL MOBILE ===== */
    .product-details-header {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .product-details-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    /* ===== PRODUCT NAME SMALL MOBILE ===== */
    .product-main-name {
        font-size: 1.3rem;
    }
    
    .product-main-price {
        font-size: 1.6rem;
    }
    
    /* ===== BUTTON TEXT HIDDEN ON SMALL MOBILE ===== */
    @media (max-width: 400px) {
        .btn-text {
            display: none;
        }
        
        .btn i {
            margin-right: 0;
        }
        
        .btn {
            padding: 10px;
            justify-content: center;
        }
        
        .btn-large {
            padding: 12px;
        }
        
        .product-details-title {
            font-size: 1rem;
        }
        
        .product-main-name {
            font-size: 1.2rem;
        }
        
        .product-main-price {
            font-size: 1.4rem;
        }
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        padding: 22px 20px;
    }
    
    .products-header,
    .product-details-header {
        padding: 16px 20px;
    }
    
    .product-details-body {
        padding: 22px 20px;
    }
    
    .product-image {
        height: 155px;
    }
    
    /* ===== PRODUCT DETAILS HEADER EXTRA SMALL ===== */
    .product-details-title {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .back-button {
        font-size: 0.8rem;
    }
    
    /* ===== PRODUCT PURCHASE BUTTONS 2x2 GRID ON SMALL MOBILE ===== */
    .product-purchase-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-purchase-buttons .btn-large {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* Very Small Mobile (375px and below) */
@media (max-width: 375px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px 18px;
    }
    
    .products-header,
    .product-details-header {
        padding: 14px 18px;
    }
    
    .product-details-body {
        padding: 20px 18px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .btn-large {
        padding: 9px 12px;
        font-size: 0.75rem;
    }
    
    .back-button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* ===== PRODUCT DETAILS HEADER VERY SMALL ===== */
    .product-details-title {
        font-size: 0.95rem;
    }
    
    /* ===== PRODUCT PURCHASE BUTTONS SINGLE COLUMN ON VERY SMALL MOBILE ===== */
    .product-purchase-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Minimum width protection for 2x2 grid */
@media (max-width: 320px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 18px 15px;
    }
    
    .products-header,
    .product-details-header {
        padding: 12px 15px;
    }
    
    .product-details-body {
        padding: 18px 15px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .btn {
        padding: 7px 9px;
        font-size: 0.7rem;
    }
    
    .btn-large {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
    
    .back-button {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    /* ===== PRODUCT DETAILS HEADER MINIMUM WIDTH ===== */
    .product-details-title {
        font-size: 0.9rem;
    }
}