/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-bg-white);
    color: var(--color-bg-white);
}

.btn-secondary:hover {
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
}

.section-title {
    font-size: var(--font-size-h2);
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    color: var(--color-secondary);
}

/* Top Bar */
.top-bar {
    background-color: var(--color-secondary);
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Header */
.header {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    /* Increased from 40px */
    width: auto;
    object-fit: contain;
    /* Ensure aspect ratio is maintained */
}

.mobile-menu-btn {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    text-align: center;
}

/* Wishlist Button */
.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    color: #ccc;
    transition: transform 0.2s;
}

.product-card .wishlist-btn:hover {
    transform: scale(1.1);
}

/* Account Tables & Lists */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.orders-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.auth-form input {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.auth-links {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.auth-links a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Account Dashboard */
.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.account-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.account-nav ul li {
    padding: 0.8rem;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.account-nav ul li:hover,
.account-nav ul li.active {
    color: var(--color-primary);
    font-weight: 600;
}

.account-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.shadow-hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5500;
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-link:hover {
    color: var(--color-primary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cart-icon img {
    width: 40px;
    /* Bigger size */
    height: 40px;
    object-fit: contain;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
    /* Make it pop */
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

/* Size Guide Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-md);
}

.cart-total {
    margin-top: 2rem;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    border-top: 2px solid var(--color-border);
    padding-top: 1rem;
}

.cart-total-row {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    font-weight: 500;
}

.cart-total-row span:first-child {
    color: var(--color-text-light);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.size-table th,
.size-table td {
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    text-align: center;
}

.size-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.size-guide-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #001f3f 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    align-items: stretch;
    /* Ensure equal height */
}

.product-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 320px;
    /* Force fixed height */
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
    flex-shrink: 0;

}

.product-image a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: transform 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.1);
    transition: transform var(--transition-normal);
}

.product-info {
    padding: 1rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.product-category {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 1rem;
    line-height: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title {
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
    /* Strict 2 lines */
}

.product-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto;
    line-height: 1;
}

/* Footer */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.footer-section ul li:hover {
    opacity: 1;
}

/* Responsive */


.category-banner {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 2.5rem;
    font-weight: 700;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
}

.shop-sidebar h3 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
}

/* Filters */
.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.filter-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-link,
.sub-filter-link {
    display: inline-block;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
    font-size: 0.95rem;
    cursor: pointer;
}

.filter-link:hover,
.sub-filter-link:hover,
.filter-link.active,
.sub-filter-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Filters */
.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.filter-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-link,
.sub-filter-link {
    display: inline-block;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
    font-size: 0.95rem;
    cursor: pointer;
}

.filter-link:hover,
.sub-filter-link:hover,
.filter-link.active,
.sub-filter-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}



/* Product Detail Page */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.product-gallery {
    background-color: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.thumbnail.active {
    border-color: var(--color-primary);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    padding: var(--spacing-md);
}

.product-meta {
    margin-bottom: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-sm);
}

.product-category-badge {
    background-color: var(--color-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.new-badge {
    background-color: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-title-large {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.product-price-large {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.product-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.option-group {
    margin-bottom: var(--spacing-lg);
}

.option-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.size-selector {
    display: flex;
    gap: var(--spacing-sm);
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-border);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(0, 206, 209, 0.05);
}

.customization-section {
    background-color: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.customization-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    margin-bottom: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.1);
}

.customization-section {
    background-color: #f8f9fa;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
}

.btn-large {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
}

.product-features {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-lg);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.product-features i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

/* Hero Trust Line */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust i {
    color: var(--color-accent);
}

/* Sections Spacing */
.sec-featured,
.sec-customization {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

/* Featured Section Utils */
.view-all-container {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Sections Backgrounds */
.section-bg-light {
    background-color: #f0f4f8;
    /* Slightly different from main bg */
    padding: 5rem 0;
    margin: 4rem 0;
}

/* Differentiation Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.feature-card {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Customization Banner Redesign */
.customization-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #001f3f 100%);
    border-radius: var(--radius-md);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.customization-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.customization-content p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #FFD700;
    /* Gold */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    color: var(--color-secondary);
}

.verified-badge {
    font-size: 0.8rem;
    color: #28a745;
    /* Green */
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

/* Emotional Section */
.emotional-section {
    background-color: var(--color-bg-white);
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.emotional-section h2 {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-family: serif;
    /* Optional: differentiate typography */
}

.emotional-section p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.8;
}



/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-question {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.faq-question::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 1rem;
    color: var(--color-text-light);
    display: none;
    line-height: 1.6;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Newsletter Popup */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.newsletter-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-lg);
    background-image: url('../assets/pattern-bg.png');
    /* Optional texture */
    background-size: cover;
}

.newsletter-content h3 {
    color: var(--color-accent);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.newsletter-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* Product Zoom Effect */
.product-image-container {
    overflow: hidden;
    position: relative;
    cursor: crosshair;
}

.product-image-zoom {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    /* Smooth follow */
}

.product-image-detail img.zoomed {
    opacity: 0;
    /* Hide original image when zoomed, show background zoom */
}

/* We will implement zoom logic via JS changing transform-origin and scale */

/* ---------------------------------------------------------
   CONSOLIDATED RESPONSIVE MOBILE STYLES (Max Width: 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.2rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile Header Cleanup */
    .nav-container {
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--color-secondary);
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 10px 0 20px rgba(0, 0, 0, 0.1);
        padding-top: 120px;
    }

    nav.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }

    /* Shop Layout Fix (THE MAIN ISSUE) */
    .shop-layout {
        grid-template-columns: 1fr !important;
        /* Force single column stacking */
        display: block !important;
    }

    #mobile-filter-open-btn,
    #mobile-filter-close-btn {
        display: flex !important;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 3000;
        padding: 2rem;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        overflow-y: auto;
        margin-bottom: 0;
    }

    .shop-sidebar.active {
        right: 0;
    }

    .shop-header h2 {
        margin-bottom: 0.25rem;
        font-size: 1.5rem;
    }

    #product-count {
        display: block;
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
        color: var(--color-text-light);
    }

    .shop-controls {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
    }

    .search-container input {
        width: 100%;
    }

    /* Grid Layout on Mobile */
    .product-grid {
        grid-template-columns: 1fr;
        /* Single column for better visibility or 1fr 1fr if small items */
        gap: 1rem;
    }

    /* Landing/Utility tweaks */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-title-large {
        font-size: 1.8rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
    }

    .emotional-section h2 {
        font-size: 2rem;
    }
}