@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;700&display=swap');

:root {
    --primary: #1a4d2e;
    /* Dark Green */
    --secondary: #000000;
    --accent: #f59e0b;
    --text-main: #1d3557;
    --text-muted: #457b9d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headline-container {
    overflow: hidden;
}

#headline-text {
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: inline-block;
}

#headline-text.fade-out {
    transform: translateY(-20px);
    opacity: 0;
}

.navbar {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.brand-logo-container {
    display: inline-block;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.brand-top {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a4d2e;
    /* Deep Green */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-bottom {
    font-family: 'Inter', sans-serif;
    /* Using Inter as clean sans-serif */
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 12px;
    /* Wide spacing */
    margin-left: 12px;
    /* Optical adjustment for letter spacing */
    margin-top: 2px;
}

.brand-line {
    width: 100%;
    height: 1px;
    background-color: #000;
    margin: 2px 0;
}

.hamburger-menu {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 20px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    transition: var(--transition);
}

.search-bar {
    flex: 0 1 500px;
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    background: var(--bg-light);
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
}

/* Force search form to take full width of the bar so relative positioning works for suggestions */
.search-bar form {
    width: 100%;
    position: relative;
    display: flex;
}

.nav-actions {
    display: flex;
    gap: 20px;
}

.nav-icon {
    color: var(--primary);
    font-size: 20px;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.nav-icon:hover {
    color: var(--secondary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    margin-bottom: 40px;
}

.swiper-container {
    width: 100%;
    height: auto;
}

.swiper-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Category Scroller */
.categories-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.logo-scroller {
    overflow: hidden;
    position: relative;
}

.logo-list {
    display: flex;
    gap: 60px;
    padding: 20px 0;
    animation: scroll 40s linear infinite;
}

.category-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
}

.category-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.category-item p {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.category-item:hover img {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--secondary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-180px * 10));
    }
}

/* Text Banner Section */
.text-banner-section {
    background: var(--primary);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-scroller {
    width: 100%;
}

.text-list {
    display: flex;
    white-space: nowrap;
    gap: 40px;
    animation: scroll 40s linear infinite;
}

.text-list span {
    color: white;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.text-list span::after {
    content: '•';
    margin-left: 40px;
    color: var(--secondary);
}

/* Product Grid */
.section-title {
    text-align: center;
    margin: 80px 0 50px;
    font-size: 36px;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--secondary);
    margin: 15px auto 0;
}

/* Section Header & Sorting */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0 40px;
}

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

.section-header .section-title::after {
    margin: 15px 0 0;
}

.sort-container select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
}

.sort-container select:focus,
.sort-container select:hover {
    border-color: var(--secondary);
}

@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin: 40px 0 30px;
    }

    .section-header .section-title {
        text-align: center;
    }

    .section-header .section-title::after {
        margin: 15px auto 0;
    }
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.grid-controls {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.grid-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #555;
    width: 35px;
    height: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
    position: relative;
    padding: 0;
}

.grid-btn span {
    font-size: 8px;
    font-weight: 700;
    margin-top: -2px;
}

.grid-btn i {
    font-size: 14px;
}

.grid-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.grid-btn:hover:not(.active) {
    background: #e0e0e0;
}

.grid-btn[data-cols="2"] i {
    transform: rotate(90deg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    transition: all 0.5s ease;
}

/* Desktop Grid Layouts */
@media (min-width: 992px) {
    .product-grid.cols-6 {
        grid-template-columns: repeat(6, 1fr) !important;
    }

    .product-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .product-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

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

    /* Make grid feel filler in 6 column mode */
    .featured-products.full-width {
        max-width: 1600px !important;
        width: 95% !important;
    }
}

/* Hide grid controls on mobile if they look messy */
@media (max-width: 768px) {
    .grid-controls {
        display: none;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    /* Reduced padding from 30px */
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 140px;
    /* Reduced height from 220px */
    object-fit: contain;
    margin-bottom: 15px;
    transition: var(--transition);
}

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

.product-title {
    font-size: 15px;
    /* Reduced from 18px */
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
    height: 40px;
    /* Fixed height for alignment */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--secondary);
    font-weight: 800;
    font-size: 16px;
    /* Reduced from 22px */
}

.add-to-cart-btn {
    margin-top: 12px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    /* Reduced padding */
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    /* Smaller font */
    width: 100%;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--secondary);
}

/* Reviews Section */
.reviews-section {
    padding-bottom: 100px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.review-rating {
    color: #ffc107;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.8;
}

.review-product {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
#main-footer {
    background: var(--primary);
    color: white;
    padding: 100px 0 50px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h3 {
    margin-bottom: 30px;
    font-size: 20px;
    color: white;
    font-weight: 700;
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 8px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: white;
    outline: none;
}

.newsletter-form button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 15px;
}

.footer-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #888;
}

.footer-disclaimer strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

/* Sidebar Styling */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
}

.menu-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
    background: #fff9f9;
}

.menu-content {
    flex: 1;
    overflow-y: auto;
}

.category-list,
.brand-list {
    list-style: none;
}

.category-list li,
.brand-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #333;
    transition: var(--transition);
}

.category-list li:hover,
.brand-list li:hover {
    background: #f8f9fa;
    color: var(--secondary);
    padding-left: 25px;
}

.arrow {
    font-size: 16px;
    color: #999;
}

.sidebar-footer {
    display: flex;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid #eee;
    background: #fff;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login {
    background: #fff;
    color: #000;
    border: 1.5px solid #eee;
}

.btn-login:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

.btn-signup {
    background: var(--primary);
    color: #fff;
}

.btn-signup:hover {
    background: var(--secondary);
}

.hidden {
    display: none;
}

/* Google Login Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    height: 18px;
    width: 18px;
}

.subcategory-list {
    background: #fcfcfc;
    padding-left: 15px;
    list-style: none;
}

.subcategory-list li {
    padding: 12px 20px;
    font-weight: 500;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-content {
        flex-direction: column;
        gap: 20px;
    }

    .search-bar {
        width: 100%;
        flex: none;
        order: 3;
    }
}

@media (max-width: 600px) {

    .product-grid,
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .hero-slider {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* Add to end of styles.css */

/* Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: block;
}

.login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 3001;
    width: 90%;
    max-width: 450px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.modal-close {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.forgot-password {
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-footer p {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    padding: 60px 0;
    margin-top: 80px;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form-wrapper {
    flex: 0 0 450px;
}

.newsletter-form-inline {
    display: flex;
    gap: 12px;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.newsletter-form-inline button {
    padding: 16px 35px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form-inline button:hover {
    background: #d63041;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form-wrapper {
        flex: 1;
        width: 100%;
    }

    .newsletter-form-inline {
        flex-direction: column;
    }

    .newsletter-text h3 {
        font-size: 24px;
    }
}

/* Product Detail Modal */
.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 3001;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.product-modal-content {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.product-modal-images-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.main-modal-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f8f8;
    border: 1px solid #eee;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #eee;
    background: white;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

.product-modal-details {
    flex: 1.2;
}

.product-modal-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.3;
}

.product-modal-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.product-specs h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-specs li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.product-specs li strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .product-modal-content {
        flex-direction: column;
    }

    .product-modal-images-container {
        width: 100%;
    }
}

/* Updated Logo Styling */
.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0d5c2f;
    /* Rich dark green */
}

.logo-text span {
    color: #0d5c2f;
    /* Rich dark green for MOBILES too */
}

.logo-tagline {
    font-size: 10px;
    font-style: italic;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
}

/* Footer Contact Styling */
.footer-contact {
    margin-top: 15px;
    line-height: 1.8;
    font-size: 14px;
}

.footer-contact strong {
    color: #fff;
    font-weight: 600;
}

.footer-query {
    margin-top: 15px;
    font-size: 13px;
    color: #bbb;
    font-style: italic;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Add breathing animation */
@keyframes whatsapp-breathe {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite, whatsapp-breathe 3s infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        left: 15px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Social Media Icons in Header */
.nav-actions .social-icon {
    font-size: 18px;
    transition: var(--transition);
}

.nav-actions .social-icon:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.nav-actions .fa-instagram:hover {
    color: #E4405F;
}

.nav-actions .fa-x-twitter:hover {
    color: #000;
}

/* Ensure proper spacing */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Make brand logos more obviously clickable */
.category-item {
    cursor: pointer !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-item:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.category-item img {
    pointer-events: none;
    /* Ensure clicks go to parent */
}

.category-item p {
    pointer-events: none;
    /* Ensure clicks go to parent */
}

/* Variant Selector Styles */
.variant-selector {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.color-option:hover {
    border-color: #0d5c2f;
    transform: translateY(-2px);
}

.color-option.active {
    border-color: #0d5c2f;
    background: #0d5c2f;
    color: white;
}

.color-name {
    display: block;
}

/* Storage Options */
.storage-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.storage-option {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.storage-option:hover {
    border-color: #0d5c2f;
    transform: translateY(-2px);
}

.storage-option.active {
    border-color: #0d5c2f;
    background: #0d5c2f;
    color: white;
}

/* PTA Options */
.pta-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pta-option {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.pta-option:hover {
    border-color: #0d5c2f;
    transform: translateY(-2px);
}

.pta-option.active {
    border-color: #0d5c2f;
    background: #0d5c2f;
    color: white;
}

/* Stock Status */
.variant-stock {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Price Animation */
.product-modal-price {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {

    .color-option,
    .storage-option,
    .pta-option {
        font-size: 12px;
        padding: 8px 12px;
        min-width: unset;
    }
}

/* Cart Drawer Styles */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 10000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 4px 8px;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary);
    padding: 0 5px;
}

.remove-item {
    color: #ff4444;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Sidebar Sub-menu Styles */
.sidebar-submenu {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
    display: none;
}

.sidebar-menu li.has-submenu.active .sidebar-submenu {
    display: block;
}

.sidebar-submenu li {
    padding: 10px 15px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s ease;
}

.sidebar-submenu li:hover {
    color: var(--secondary);
    background: #fdfdfd;
}

.sidebar-menu li.has-submenu {
    position: relative;
}

.sidebar-menu li.has-submenu::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 12px;
}

.sidebar-menu li.has-submenu.active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Second Level Sub-menu Styles */
.sidebar-submenu .sidebar-submenu {
    padding-left: 15px;
    margin: 5px 0;
    border-left: 1px dashed #ddd;
}

.sidebar-submenu li.has-submenu::after {
    font-size: 10px;
    right: 15px;
}

.sidebar-submenu li.sidebar-sub-header {
    font-weight: 700;
    color: var(--primary);
    background: #fcfcfc;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding-top: 15px;
}

/* Repair Section */
.repair-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 60px 0;
    margin-top: 60px;
    border-top: 4px solid var(--secondary);
    color: white;
    text-align: center;
}

.repair-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.repair-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 20px rgba(119, 0, 255, 0.3);
}

.repair-icon {
    font-size: 32px;
    color: var(--secondary);
    transform: rotate(-15deg);
    transition: transform 0.3s ease;
}

.repair-wrapper:hover .repair-icon {
    transform: rotate(15deg) scale(1.1);
}

.repair-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.repair-text p {
    font-size: 18px;
    color: #ccc;
    font-weight: 500;
}

.btn-repair {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-repair:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Search Branding Overlay */
.search-branding {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    /* Let clicks pass through */
    transition: opacity 0.2s ease;
    z-index: 10;
}

.search-branding.hidden {
    opacity: 0;
}

.brand-m {
    font-weight: 800;
    color: var(--secondary);
    /* Green - ensure var existed or replace with #25D366 */
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: #f0fdf4;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--secondary);
}

.brand-text {
    font-family: 'Inter', sans-serif;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.text-green {
    color: var(--secondary);
    font-weight: 700;
}

/* Search Suggestions */
.search-bar {
    position: relative;
    /* Ensure relative context */
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: 0;
    /* Attached to bar */
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.search-suggestions.hidden {
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 3px 10px;
    /* Micro padding */
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f9f9f9;
}

.suggestion-img {
    width: 20px;
    /* Micro image */
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 6px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-size: 11px;
    /* Micro font */
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1;
}

.suggestion-price {
    font-size: 10px;
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: white;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px;
    opacity: 1;
    border-top: 1px solid #eee;
}

/* ==========================================================
   MOBILE REVAMP (STRICTLY MOBILE ONLY)
   ========================================================== */
@media (max-width: 768px) {

    /* Fix Header Height Glitch */
    .nav-content {
        flex-direction: row !important;
        /* Keep logo and menu on same line */
        justify-content: space-between !important;
        padding: 10px 15px !important;
        gap: 10px !important;
    }

    .search-bar {
        position: absolute !important;
        top: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 70% !important;
        /* Narrower width */
        max-width: 280px !important;
        padding: 0 !important;
        flex: none !important;
        height: 32px !important;
        /* Fixed smaller height */
        z-index: 100 !important;
        display: flex !important;
        align-items: center !important;
    }

    .search-bar input {
        padding: 4px 10px 4px 10px !important;
        /* Minimal padding */
        font-size: 11px !important;
        /* Smaller text */
        border-radius: 16px !important;
        height: 100% !important;
    }

    .search-bar button {
        padding: 3px 10px !important;
        /* Tiny button */
        right: 4px !important;
        font-size: 10px !important;
        height: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Scale branding down even more */
    .search-branding {
        left: 12px !important;
        transform: translateY(-50%) scale(0.6) !important;
    }

    /* Adjust Main padding to account for absolute search bar */
    main {
        margin-top: 60px !important;
    }

    .navbar {
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Logo Scaling */
    .brand-top {
        font-size: 20px !important;
    }

    .brand-bottom {
        font-size: 12px !important;
        letter-spacing: 6px !important;
    }

    /* Product Grid: Modern 2-Column */
    .product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 10px !important;
    }

    .product-card {
        padding: 10px !important;
    }

    .product-card h3 {
        font-size: 14px !important;
        height: 40px !important;
        margin-bottom: 5px !important;
    }

    .product-card .price {
        font-size: 16px !important;
    }

    /* Sidebar Fixes */
    .sidebar-menu {
        width: 85% !important;
        max-width: 320px !important;
    }

    /* Contact & About Page Mobile Polish */
    #contact-page,
    #about-page {
        padding: 20px 15px !important;
    }

    .contact-hero {
        padding: 30px 20px !important;
        border-radius: 15px !important;
    }

    .contact-hero h1 {
        font-size: 28px !important;
    }

    .contact-hero div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        /* Stack contact info boxes */
    }

    div[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        /* Stack address and form */
    }

}

/* reCAPTCHA scaling for small screens */
.g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
}

@media (max-width: 480px) {
    .brand-top {
        font-size: 18px !important;
    }

    .nav-actions {
        gap: 12px !important;
    }

    .nav-icon {
        font-size: 18px !important;
    }
}