:root {
    --primary: #004F44;
    --accent: #FF9900;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

@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;
    }
}

/* Product Card */
.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;
}

/* Section Styles */
.featured-section {
    margin: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.see-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.see-all:hover {
    color: #e68a00;
}

/* Modal Styles */
/* 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-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.show {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal.show .modal-content {
    transform: translateY(-50%) scale(1);
}

/* Close Button */
.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 Styles */
.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;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff4444;
}

/* Loading State */
.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;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.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;
}   
/* 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: 600px;
    margin: 1.5rem auto;
}

.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: 120px;
    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;
}

@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); }
}

.promo-banner {
    animation: glow 3s infinite;
}

@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 Alert Styles */
.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;
}

/* Testimonial Styles */
.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;
}

.section-title {
    text-align: center;
    margin-bottom: 0rem;
    color: #333;
    font-size: 2.5rem;
}

.section-title-paragraph {
    text-align: center;
}

.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;
}

@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%);
    }
}

@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;
}

@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; }
}

@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 */
@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;
}

/* Newsletter Styles */
.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 Styles */
.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;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light);
    padding: 80px 0;
    position: relative;
    /* Default background for desktop */
    background: linear-gradient(rgba(0, 79, 68, 0.7), rgba(255, 152, 49, 0.2)),
                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: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    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;
}

.btn-primary2 {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 5px;
}

.btn-primary2:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-2px);
}

.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;
    animation: heartbeat 1.5s infinite ease-in-out;
    display: inline-block;
    transform-origin: center;
    margin-top: -20px;
    margin-left: 30px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-2px);
}

.image-container {
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 10px;
}

.button-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.7);
    transform-origin: top center;
}

.transparent-gif {
    background: transparent !important;
    mix-blend-mode: multiply;
    margin-top: 0;
}

/* Trusted Clients */
.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;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.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;
}

/* Pause animation on hover */
.clients-container:hover .clients-track {
    animation-play-state: paused;
}

/* Gradient fade effect at edges */
.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%);
}

/* Animations */
@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; }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .button-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        /* This is still a tablet breakpoint, not the smallest mobile */
        padding-top: 25px;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .promo-banner {
        max-width: 80%;
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero {
        /* Aggressive height reduction */
        height: 40vh;
        min-height: unset;
        /* Mobile-specific background */
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('../../img/only-axis-bg-mobile.jpg') center/cover no-repeat;
        /* Adjust padding even further to compress content */
        padding: 30px 0;
        /* Center content vertically within the new height */
        align-items: center; 
        justify-content: center;
    }
    
    /* Adjust other mobile-specific hero styles as needed */
    .hero-content {
        margin-top: 0; 
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary2, .btn-secondary {
        width: 100%;
        padding: 10px 8px;
        font-size: 0.9rem;
        margin-top: 0;
        margin-left: 0;
    }
    
    .image-container {
        width: 80px;
        height: 60px;
    }
}

/* === New Teaser Styles === */
.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;
  }
  
  @keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
  }
  
  .countdown-timer {
    font-family: 'Poppins', monospace;
    background: rgba(0,0,0,0.2);
    padding: 5px 10px;
    border-radius: 5px;
  }
  
  .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;
  }
  
  @keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

 /* Cart Notification Styles */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--light);
    color: var(--primary);
    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;
    opacity: 1;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid #FF9900;
    font-weight: 600;
}

.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;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Login Modal Styles */
#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 {
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

#loginModal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    z-index: 1;
}

.close-modal:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body 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 {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Animation for modal entrance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .modal-action-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-action-btn {
        width: 100%;
        padding: 10px;
    }
}