/* ==================== */
/* GLOBAL STYLES & UTILITIES */
/* ==================== */
:root {
    --primary: #004F44;
    --accent: #FF9900;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ==================== */
/* HERO SECTION - UPDATED */
/* ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light);
    padding: 80px 0;
    position: relative;
    background: linear-gradient(rgba(0, 79, 68, 0.7), rgba(255, 152, 49, 0.3)),
                url('../../img/only-axis-bg.jpg') center/cover no-repeat;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    margin-top: 60px;
}

/* UPDATED: Better text spacing */
.user-info {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: block;
}

.hero-text-spacing {
    height: 0.8rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    margin-left: 10rem;
}

.btn-secondary {
    background: var(--accent);
    color: var(--light);
    text-decoration: none;
    padding: 15px 12px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    transform-origin: center;
    margin-top: -20px;
    margin-left: 30px;
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-2px);
}

/* UPDATED: Smaller GIF container */
.image-container {
    width: 70px;
    height: 50px;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 0px;
}

/* UPDATED: Smaller pointing GIF */
.button-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.6);
    transform-origin: top center;
    position: relative;
    left: 0.5rem;
    bottom: 1.5rem;
}

.transparent-gif {
    background: transparent !important;
    mix-blend-mode: multiply;
    margin-top: 0;
}

/* Responsive Styles for Hero */
@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .button-container {
        justify-content: center;
        margin-left: 0;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    #home {
        position: relative;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .hero {
        min-height: 80vh;
        height: 80vh;
        padding: 40px 0;
        background: linear-gradient(rgba(0, 79, 68, 0.7), rgba(255, 152, 49, 0.3)),
                    url('../../img/only-axis-bg.jpg') no-repeat center center/cover !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-flex {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        flex: 1;
        max-width: 100%;
        z-index: 2;
        margin-top: 25rem;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* UPDATED: Mobile text spacing */
    .user-info {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text-spacing {
        height: 0.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 90%;
    }

    .button-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 1rem;
        margin-left: 0;
    }

    .btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 0;
        margin-left: 0;
    }
    
    /* UPDATED: Mobile GIF size */
    .image-container {
        width: 50px;
        height: 35px;
    }
    
    .button-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: scale(0.5);
        transform-origin: top center;
        position: relative;
        left: 0.3rem;
        bottom: 1rem;
    }
    
    .promo-banner {
        max-width: 90%;
        margin: 20px auto 0;
        order: 2;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        height: 85vh;
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-secondary {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .image-container {
        width: 45px;
        height: 30px;
    }
    
    .button-image {
        transform: scale(0.45);
        bottom: 0.8rem;
    }
}

/* Section Header for various sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0rem;
    color: #333;
    font-size: 2.5rem;
}

.section-title-paragraph {
    text-align: center;
}

.see-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.see-all:hover {
    color: #e68a00;
}

/* Responsive Adjustments for general sections */
@media (max-width: 768px) {
    .section-header {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .see-all {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ==================== */
/* PRODUCT GRID & CARD */
/* ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.image-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.product-image:hover {
    opacity: 0.9;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wishlist-form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    background: white;
    color: #ff4444;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff4444;
}

.wishlist-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--primary);
    font-weight: 500;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid #FF9900;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-brand {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.discount {
    font-size: 0.85rem;
    color: #ff4444;
    margin-left: 0.5rem;
    font-weight: 600;
}

.rating {
    color: #FF9900;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.rating span {
    color: #666;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.add-to-cart {
    background: var(--primary);
    color: var(--light);
}

.add-to-cart:hover {
    background: #00382f;
}

.view-details {
    background: var(--accent);
    color: var(--light);
    text-decoration: none;
}

.view-details:hover {
    background: #e68a00;
}

/* Responsive Adjustments for Product Grid */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* FEATURED SECTION */
/* ==================== */
.featured-section {
    margin: 3rem 0;
}

/* ==================== */
/* MODAL STYLES */
/* ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.modal-content-product {
    background: white;
    padding: 60px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(-50%) scale(1);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #ff4444;
}

/* ==================== */
/* PRODUCT DETAILS MODAL */
/* ==================== */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    overflow: hidden;
}

.product-image-large {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-image-large:hover {
    transform: scale(1.05);
}

.product-info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

/* ==================== */
/* PROMO BANNER */
/* ==================== */
.promo-banner {
    background: linear-gradient(135deg, #004F44, #002E26);
    color: white;
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 300px;
    margin: 1.5rem auto;
    animation: glow 3s infinite;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.promo-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.promo-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-family: 'Poppins', sans-serif;
}

.timer-unit {
    background: rgba(0,0,0,0.2);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    min-width: 80px;
}

.timer span {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--accent);
}

.timer small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.timer-separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 0 0.2rem;
    position: relative;
    top: -5px;
}

.promo-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.promo-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.promo-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ff4444;
    color: white;
    width: 0px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(15deg);
    animation: badgePulse 2s infinite;
}

/* Responsive Adjustments for Promo Banner */
@media (max-width: 768px) {
    .promo-banner {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        max-width: 90%;
        margin: 0 auto 20px;
        padding: 1rem;
    }

    .promo-banner h3 {
        font-size: 1.3rem;
    }

    .promo-banner p {
        font-size: 0.9rem;
    }

    .promo-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .promo-badge {
        width: 80px;
        height: 80px;
        font-size: 1rem;
        padding-bottom: 1.5rem;
    }
}

/* ==================== */
/* STOCK ALERTS */
/* ==================== */
.stock-alerts-container {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    max-width: 250px;
}

.stock-alert-mini {
    background: rgba(255, 68, 68, 0.3);
    border-left: 2px solid #ff4444;
    padding: 5px 8px;
    margin-bottom: 6px;
    border-radius: 3px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(3px);
    animation: slideIn 0.2s ease-out;
}

.stock-alert-text {
    color: #222;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
}

.stock-alert-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 11.5px;
}

.stock-alert-text a:hover {
    text-decoration: underline;
}

.close-alert-mini {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
    padding: 0;
}

.close-alert-mini:hover {
    color: #ff4444;
}

/* ==================== */
/* TESTIMONIALS SECTION */
/* ==================== */
.testimonials-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: var(--gray);
}

.testimonial-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    min-width: 300px;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author {
    font-weight: bold;
}

.testimonial-location {
    font-size: 0.8rem;
    color: #666;
}

.testimonial-rating {
    color: var(--accent);
    margin: 0.5rem 0;
}

.testimonial-text {
    font-style: italic;
    color: #555;
}

.testimonial-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.testimonial-product img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.testimonial-product-name {
    font-size: 0.9rem;
}

/* ==================== */
/* NEWS SECTION */
/* ==================== */
.news-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.news-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.news-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.news-image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.news-image:hover {
    transform: scale(1.03);
}

.carousel-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive Adjustments for News Section */
@media (min-width: 768px) {
    .news-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .news-card {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

/* ==================== */
/* DYNAMIC BANNER */
/* ==================== */
.dynamic-banner {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.banner-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/soft.jpg');
    background-size: cover;
    background-position: center;
    filter: contrast(1) brightness(1);
    animation: smoothReveal 8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.banner-text-group {
    position: relative;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    max-width: 800px;
    padding: 2rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.banner-headline {
    font-size: clamp(2rem, 2vw, 2rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: textGlide 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

.banner-supporting-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: textGlide 1.2s ease-out forwards;
    animation-delay: 1.1s;
}

.banner-cta {
    display: inline-block;
    padding: 1em 2em;
    font-size: 1.1rem;
    background: var(--primary);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.6s;
    transition: all 0.3s ease;
}

.banner-cta:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-2px);
}

.hover-ripple {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: ripple 0.6s linear;
}

/* Responsive Adjustments for Dynamic Banner */
@media (max-width: 480px) {
    .banner-backdrop {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                    url('../../img/soft.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* ==================== */
/* CONTACT SECTION */
/* ==================== */
.contact-section {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-group {
    margin-bottom: 1.2rem;
    width: 100%;
    max-width: 280px;
}

.info-group h3 {
    color: #1f2937;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.info-group p, 
.info-group a {
    color: var(--dark);
    text-align: center;
    display: block;
    margin: 0.4rem 0;
    text-decoration: none;
    font-weight: 500;
}

.form-container {
    flex: 1;
    min-width: 280px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #004F44;
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.label {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    padding: 0 0.3rem;
    color: #6b7280;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

textarea + .label {
    top: 1rem;
    transform: none;
}

input:focus + .label,
input:not(:placeholder-shown) + .label,
textarea:focus + .label,
textarea:not(:placeholder-shown) + .label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #004F44;
}

button {
    background-color: #004F44;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info, .form-container {
        width: 100%;
        padding: 1.2rem;
    }
}

/* ==================== */
/* TRUST INDICATORS */
/* ==================== */
.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.trust-icon {
    font-size: 2rem;
    color: var(--primary);
}

.trust-text {
    font-size: 0.9rem;
    text-align: center;
    color: #555;
}

/* ==================== */
/* TRUSTED CLIENTS / LOGO SCROLL */
/* ==================== */
.section {
    margin-bottom: 6rem;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.4s; }
.section:nth-child(4) { animation-delay: 0.6s; }
.section:nth-child(5) { animation-delay: 0.8s; }

.clients-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
}

.clients-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.clients-container:hover .clients-track {
    animation-play-state: paused;
}

.clients-grid {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

.client-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 79, 68, 0.1);
    min-width: 200px;
    flex-shrink: 0;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 10px;
    transition: all 0.3s ease;
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-card:hover .client-logo img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.client-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.clients-container::before,
.clients-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clients-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.clients-container::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* ==================== */
/* NEWSLETTER SECTION */
/* ==================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), #00382f);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 10px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('<?php echo $base_url; ?>user/img/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
    max-width: 400px;
}

.newsletter-message.success {
    background-color: #e6ffed;
    color: #1a7f37;
    border: 1px solid #b5efc4;
}

.newsletter-message.error {
    background-color: #ffe6e6;
    color: #d60000;
    border: 1px solid #f5a3a3;
}

.newsletter-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* SOCIAL PROOF */
/* ==================== */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeIn 1s ease-out;
}

.social-proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.social-proof-text {
    font-size: 0.9rem;
}

.social-proof-name {
    font-weight: bold;
}

.social-proof-location {
    color: #666;
    font-size: 0.8rem;
}

/* ==================== */
/* INSTAGRAM FEED */
/* ==================== */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.instagram-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-image {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-likes {
    color: white;
    font-weight: bold;
}

/* ==================== */
/* LOADING & ERROR STATES */
/* ==================== */
.loading-spinner {
    padding: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

.error-message {
    padding: 40px;
    text-align: center;
    color: #d32f2f;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-message i {
    font-size: 2rem;
}

.error-message button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.error-message button:hover {
    background: #00382f;
}

/* ==================== */
/* CART NOTIFICATION */
/* ==================== */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid #FF9900;
    max-width: 300px;
}

.cart-notification.error {
    background: #f44336;
}

.cart-notification i {
    font-size: 1.2em;
    margin-right: 8px;
}

.notification-product {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 4px;
}

.view-cart-btn {
    margin-left: auto;
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    font-size: 0.8em;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.view-cart-btn:hover {
    background: rgba(255,255,255,0.3);
    text-decoration: underline;
}

/* ==================== */
/* LOGIN MODAL */
/* ==================== */
#loginModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

#loginModal.show {
    opacity: 1;
    display: flex;
}

.modal-content-login {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

#loginModal.show .modal-content-login {
    transform: translateY(0);
}

.modal-body-login {
    padding: 2rem;
    text-align: center;
}

.modal-body-login h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body-login p {
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    margin: 0 5px;
}

.modal-action-btn i {
    font-size: 1rem;
}

.modal-login-btn {
    background-color: var(--accent);
    color: white;
}

.modal-login-btn:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.modal-signup-btn {
    background-color: var(--primary);
    color: white;
}

.modal-signup-btn:hover {
    background-color: #003d33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

.modal-footer-login {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.modal-footer-login a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.modal-footer-login a:hover {
    text-decoration: underline;
}

/* ==================== */
/* FLASH SALE & TEASERS */
/* ==================== */
.flash-sale-banner {
    background: linear-gradient(135deg, #ff4444, #ff9900);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.urgency-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff4444;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.recent-purchase-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.shipping-progress {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 8px;
    margin: 15px 0;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    margin-top: 5px;
}

.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.exit-popup-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    animation: popIn 0.3s ease-out;
}

/* ==================== */
/* GLOBAL ANIMATIONS */
/* ==================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 480px) {
    .modal-body-login {
        padding: 1.5rem;
    }
    
    .modal-body-login h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .modal-action-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-action-btn {
        width: 100%;
        padding: 10px;
    }
}

/* ==================== */
/* GLOBAL ANIMATIONS */
/* ==================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.5); }
}

@keyframes zoomOut {
    from { transform: scale(1.5); }
    to { transform: scale(1); }
}

@keyframes badgePulse {
    0% { transform: rotate(15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.05); }
    100% { transform: rotate(15deg) scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(0, 79, 68, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 79, 68, 0.8); }
    100% { box-shadow: 0 0 10px rgba(0, 79, 68, 0.5); }
}

@keyframes smoothReveal {
    0% { transform: scale(1.4) rotate(-2deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes textGlide {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 400px; height: 400px; opacity: 0; }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes heartbeat {
    0%, 100% {
      transform: scale(1);
    }
    25% {
      transform: scale(1.05);
    }
    50% {
      transform: scale(0.95);
    }
    75% {
      transform: scale(1.02);
    }
}

/* ==================== */
/* NEW CATEGORY QUICK ACCESS STYLES */
/* ==================== */
.category-quick-access {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    max-width: 420px;
    margin-left: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.category-quick-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.category-quick-access h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.category-quick-access h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-height: 120px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.category-card.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 79, 68, 0.15);
    border-color: var(--accent);
    color: var(--primary);
}

.category-card:hover::before {
    left: 100%;
}

/* Individual category colors */
.category-card:nth-child(1):hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    border-color: #34c759;
}

.category-card:nth-child(2):hover {
    background: linear-gradient(135deg, #e8f0ff 0%, #ffffff 100%);
    border-color: #007aff;
}

.category-card:nth-child(3):hover {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    border-color: #ff6b6b;
}

.category-card:nth-child(4):hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border-color: #5ac8fa;
}

.category-card i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent);
}

.category-card span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card:hover span {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Individual category icon colors */
.category-card:nth-child(1) i { color: #34c759; }
.category-card:nth-child(2) i { color: #007aff; }
.category-card:nth-child(3) i { color: #ff6b6b; }
.category-card:nth-child(4) i { color: #5ac8fa; }

/* Animation delays for staggered entrance */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

/* Category counter badge */
.category-card::after {
    content: '→';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: bold;
}

.category-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Active state for current category */
.category-card.active {
    background: linear-gradient(135deg, var(--primary) 0%, #00382f 100%);
    color: white;
    border-color: var(--primary);
}

.category-card.active i {
    color: white;
}

.category-card.active::after {
    content: '✓';
    color: white;
    opacity: 1;
    transform: translateX(0);
}

/* ==================== */
/* NEW CATEGORY SECTION STYLES */
/* ==================== */
.category-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-header:hover {
    transform: translateX(5px);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.category-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.3rem;
}

/* ==================== */
/* NEW COMPACT GRID STYLES */
/* ==================== */
.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.compact-card {
    height: auto;
    min-height: 320px;
}

.compact-card .image-container {
    height: 160px;
}

.compact-card .product-info {
    padding: 0.8rem;
}

.compact-card .product-name {
    font-size: 0.9rem;
    min-height: 2.4em;
}

.compact-card .product-actions {
    flex-direction: column;
    gap: 0.3rem;
}

.compact-card .action-btn {
    padding: 0.4rem;
    font-size: 0.8rem;
}

/* ==================== */
/* NEW ARRIVALS SECTION */
/* ==================== */
.new-arrivals-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 2rem 0;
}

.new-badge {
    background: #ff4444;
    color: white;
}

.featured-badge {
    background: var(--accent);
    color: white;
    left: auto;
    right: 10px;
}

/* ==================== */
/* NO PRODUCTS MESSAGE */
/* ==================== */
.no-products-message {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.no-products-message i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-products-message h3 {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-products-message p {
    color: #888;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.no-products-message a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.no-products-message a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ==================== */
/* NEW ANIMATIONS */
/* ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes mobileSlideInUp {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== */
/* MOBILE CATEGORIES SECTION */
/* ==================== */
.mobile-categories {
    display: none;
    background: white;
    padding: 2rem 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.mobile-categories h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--primary);
}

.mobile-category-card i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.mobile-category-card span {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.mobile-category-card small {
    font-size: 0.8rem;
    color: #666;
}

/* ==================== */
/* NEW MOBILE RESPONSIVE STYLES */
/* ==================== */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .desktop-categories {
        display: none !important;
    }

    .mobile-categories {
        display: block;
    }

    .mobile-categories h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .mobile-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .mobile-category-card {
        padding: 1.2rem 0.8rem;
        min-height: 100px;
    }

    .mobile-category-card i {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .mobile-category-card span {
        font-size: 0.85rem;
    }

    .category-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .category-header {
        flex-direction: row;
        text-align: left;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .category-header i {
        font-size: 1.4rem;
    }

    .category-header h3 {
        font-size: 1.2rem;
    }

    .compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .mobile-category-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .mobile-category-card {
        padding: 1rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
        min-height: auto;
    }

    .mobile-category-card i {
        font-size: 1.6rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .mobile-category-card span {
        font-size: 0.9rem;
        text-align: left;
    }

    .mobile-categories {
        padding: 1.2rem 0.8rem;
        margin: 0.8rem auto;
        max-width: 98%;
    }

    .mobile-categories h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 360px) {
    .mobile-category-card {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .mobile-category-card i {
        font-size: 1.4rem;
    }

    .mobile-category-card span {
        font-size: 0.8rem;
    }
}

/* ==================== */
/* NEW TOUCH DEVICE OPTIMIZATIONS */
/* ==================== */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover,
    .mobile-category-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .category-card:active,
    .mobile-category-card:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    }
    
    .category-card,
    .mobile-category-card,
    .action-btn,
    .product-card {
        min-height: 44px;
    }
}

/* ==================== */
/* NEW UTILITY CLASSES */
/* ==================== */
.mobile-view .category-quick-access {
    margin: 1rem auto;
}

.mobile-view .hero-flex {
    flex-direction: column;
}

.mobile-view .category-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ==================== */
/* NEW FOCUS STYLES FOR ACCESSIBILITY */
/* ==================== */
.category-card:focus,
.mobile-category-card:focus,
.action-btn:focus,
.btn-secondary:focus,
.promo-btn:focus,
.newsletter-btn:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ==================== */
/* ADDITIONAL STYLES FROM PHP FILE */
/* ==================== */
/* Loading button styles */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Modal styles */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.success-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.success-icon {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.success-modal h3 {
    margin-bottom: 15px;
    color: #333;
}

.success-modal p {
    margin-bottom: 20px;
    color: #666;
}

.success-modal button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.success-modal button:hover {
    background-color: #45a049;
}

/* Login Required Modal */
.login-required-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-required-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.login-required-icon {
    font-size: 50px;
    color: #ff9900;
    margin-bottom: 15px;
}

.login-required-modal h3 {
    margin-bottom: 15px;
    color: #333;
}

.login-required-modal p {
    margin-bottom: 20px;
    color: #666;
}

.login-required-modal button {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
}

.login-required-modal button:hover {
    background-color: #e68900;
}

/* Main category colors for desktop */
.main-category-card.electronics i {
    color: #007aff;
}
.main-category-card.electronics:hover {
    background: linear-gradient(135deg, #e8f0ff 0%, #ffffff 100%);
    border-color: #007aff;
}

.main-category-card.fashion i {
    color: #ff6b6b;
}
.main-category-card.fashion:hover {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    border-color: #ff6b6b;
}

.main-category-card.food_beverages i {
    color: #34c759;
}
.main-category-card.food_beverages:hover {
    background: linear-gradient(135deg, #f0fff0 0%, #ffffff 100%);
    border-color: #34c759;
}

/* Individual mobile category colors */
.mobile-category-card.electronics {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(232, 240, 255, 0.95));
}
.mobile-category-card.electronics:hover {
    border-color: #007aff;
}

.mobile-category-card.fashion {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255, 240, 240, 0.95));
}
.mobile-category-card.fashion:hover {
    border-color: #ff6b6b;
}

.mobile-category-card.food_beverages {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240, 255, 240, 0.95));
}
.mobile-category-card.food_beverages:hover {
    border-color: #34c759;
}

/* Product grid adjustments for 8 products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Category section styles */
.category-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.category-header i {
    font-size: 2rem;
    color: var(--primary);
}

.category-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.category-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.new-badge {
    background: #ff4444;
}

/* Login Required Button Styles */
.login-required-btn {
    cursor: pointer;
}