/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #2d5016;
    --primary-light: #4a7c2c;
    --primary-dark: #1a3309;
    --accent-color: #f4a460;
    --accent-light: #f8c794;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #faf8f5;
    --bg-cream: #f5f1e8;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Global image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    content-visibility: auto;
}

/* Lazy loading transitions */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy-loaded {
    opacity: 1;
}

/* Image loading skeleton */
.product-image img:not(.lazy-loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

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

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
    margin-top: 70px;
    padding: 4rem 0;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: left;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 500px;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    display: inline-block;
}

.hero-products {
    position: relative;
}

.hero-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 500px;
}

.hero-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.hero-product-img:hover {
    transform: translateY(-10px) scale(1);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* ===================================
   Products Section
   =================================== */
.products-section {
    padding: 5rem 0;
    background: var(--bg-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

/* Image loading optimization */
.product-card img,
.hero-product-img,
.modal-image {
    will-change: opacity;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.product-card img {
    opacity: 1 !important;
}

.product-card img.lazy-loaded,
.hero-product-img.lazy-loaded {
    opacity: 1 !important;
}

.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 Aspect Ratio (Square) */
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Image loading optimization */
.product-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
    contain-intrinsic-size: 400px 400px;
}

.product-image img.loaded {
    opacity: 1;
}

.image-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(45, 80, 22, 0.9);
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Navigation arrows on hover */
.product-card:hover .product-nav-arrows {
    opacity: 1;
}

.product-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 3;
}

.product-nav-arrow {
    background: rgba(45, 80, 22, 0.9);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: auto;
    transition: var(--transition);
}

.product-nav-arrow:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.handmade-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Rainbow Pill Animation for Product Modal */
.rainbow-pill {
    display: inline-block;
    background: linear-gradient(
        90deg,
        rgba(255, 100, 100, 0.8),
        rgba(255, 180, 100, 0.8),
        rgba(255, 255, 150, 0.8),
        rgba(150, 255, 150, 0.8),
        rgba(150, 200, 255, 0.8),
        rgba(200, 150, 255, 0.8),
        rgba(255, 100, 100, 0.8)
    );
    background-size: 300% 100%;
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: rainbow-slide 8s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@keyframes rainbow-slide {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-size {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-values {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.value-icon {
    font-size: 2.5rem;
}

.value-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.about-image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    padding: 5rem 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.faq-question {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 5rem 0;
    background: var(--bg-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    background: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===================================
   Shopping Cart Sidebar
   =================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.cart-header h3 {
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-cart-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 0.5rem;
}

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

.cart-item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--bg-light);
}

.shipping-progress {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    border-radius: var(--border-radius);
}

.shipping-progress-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.shipping-progress-text.qualified {
    color: var(--primary-color);
}

.shipping-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    position: relative;
}

.shipping-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

/* Coupon Section */
.coupon-section {
    margin: 1rem 0;
}

.coupon-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.coupon-input-wrapper input {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.coupon-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-apply-coupon {
    padding: 0.7rem 1.2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    background: var(--primary-light);
}

.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 6px;
    display: none;
}

.coupon-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.coupon-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===================================
   Product Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 3000;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal.active {
    display: block;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    position: relative;
    padding-top: 60px;
    overflow-x: hidden;
}

.modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    max-width: 100%;
    overflow-x: hidden;
}

.product-detail-images {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.main-image-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    padding: 2rem;
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1; /* Consistent square ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    loading: lazy;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 80, 22, 0.8);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.image-nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(45, 80, 22, 0.9);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0.5rem;
}

.thumbnail:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Real Product Photos Gallery */
.real-photos-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.real-photos-gallery::-webkit-scrollbar {
    height: 6px;
}

.real-photos-gallery::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.real-photos-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.real-photo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.real-photo-img:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.real-photo-img.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.product-detail-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.quantity-selector {
    margin: 1rem 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    color: var(--text-dark);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-detail-size {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.product-detail-size strong {
    color: var(--primary-color);
}

/* ===================================
   Related Products Section
   =================================== */
.related-products {
    border-top: 2px solid var(--bg-light);
    padding-top: 2rem;
    margin-top: 2rem;
}

.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-product-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

.related-product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--white);
    padding: 1rem;
    display: block;
}

.related-product-info {
    padding: 1rem;
    text-align: center;
}

.related-product-info h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ===================================
   Product Page About Section
   =================================== */
.product-page-about {
    border-top: 2px solid var(--bg-light);
    padding: 3rem 0;
    margin-top: 3rem;
}

.product-page-about h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.about-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.about-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Product Page Reviews Section
   =================================== */
.product-page-reviews {
    border-top: 2px solid var(--bg-light);
    padding: 3rem 0;
    margin-top: 3rem;
    background: var(--bg-light);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.product-page-reviews h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-author {
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

/* ===================================
   Product Page Footer
   =================================== */
.product-page-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
    margin-left: -2rem;
    margin-right: -2rem;
}

.product-page-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.product-page-footer .footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-page-footer .footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.product-page-footer .footer-section ul {
    list-style: none;
    padding: 0;
}

.product-page-footer .footer-section ul li {
    margin-bottom: 0.5rem;
}

.product-page-footer .footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.product-page-footer .footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.product-page-footer .social-links {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.product-page-footer .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.related-product-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===================================
   Checkout Styles
   =================================== */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.checkout-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-cream);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-size: 1.2rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-form h3 {
    color: var(--primary-color);
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-notice {
    background: #e8f5e9;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.checkout-notice p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

/* Order Success */
.order-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.order-success h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.success-message {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: left;
}

.success-message p {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.highlight-email {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-summary-success {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: left;
}

.order-summary-success h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-cream);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-size: 1.2rem;
}

.success-actions {
    margin-top: 2rem;
}

/* ===================================
   Newsletter Popup
   =================================== */
/* ===================================
   Product Suggestions Popup
   =================================== */
.suggestions-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.suggestions-popup.active {
    display: flex;
}

.suggestions-popup-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 850px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.suggestions-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-light);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    z-index: 10;
}

.suggestions-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.suggestions-body {
    padding: 1.5rem 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.success-message {
    text-align: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.success-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 40px;
    margin-bottom: 0.5rem;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.suggestions-body h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0;
    text-align: center;
}

.suggestions-body h3 {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.suggestions-grid {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0.75rem 0;
    margin-bottom: 0;
    flex-shrink: 1;
    min-height: 0;
}

.suggestion-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.suggestion-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.suggestion-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    background: var(--white);
    padding: 0.5rem;
}

.suggestion-card h4 {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.suggestion-card .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.suggestion-card .btn {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.85rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .suggestions-popup-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .suggestions-body {
        padding: 1.5rem 1rem;
    }
    
    .suggestions-body h2 {
        font-size: 1.25rem;
    }
    
    .success-icon {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1.25rem;
    }
    
    .suggestions-body h2 {
        font-size: 1.1rem;
    }
    
    .suggestions-body h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .suggestions-grid {
        gap: 0.75rem;
    }
    
    .suggestion-card {
        width: 150px;
    }
    
    .suggestion-card img {
        height: 120px;
    }
}

/* ===================================
   Newsletter Popup
   =================================== */
.newsletter-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.newsletter-popup.active {
    display: flex;
}

.newsletter-popup-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newsletter-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-light);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    z-index: 10;
}

.newsletter-close:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: rotate(90deg);
}

.newsletter-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.newsletter-body h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.newsletter-body > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.newsletter-form button {
    font-size: 1.1rem;
    padding: 1rem;
}

.newsletter-privacy {
    margin-top: 1rem;
    color: var(--text-light);
}

.newsletter-privacy small {
    font-size: 0.85rem;
}

.newsletter-success {
    padding: 3rem 2rem;
    text-align: center;
}

.newsletter-success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.newsletter-success h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-success p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.discount-code {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.discount-code-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.discount-code-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.copy-code-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Mobile Optimization for Newsletter */
@media (max-width: 640px) {
    .newsletter-popup-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .newsletter-body {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-body h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-icon {
        font-size: 3rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        font-size: 1rem;
    }
    
    .discount-code-value {
        font-size: 1.5rem;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .logo-image {
        height: 40px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content,
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .product-page-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-page-footer .social-links {
        align-items: center;
    }
    
    .thumbnail-gallery {
        justify-content: center;
    }
    
    /* Tablet Product Modal Improvements */
    .modal-body {
        padding: 1.5rem;
    }
    
    .product-detail {
        gap: 2rem;
    }
    
    .main-image-container {
        padding: 1.5rem;
    }
    
    .product-detail-info h2 {
        font-size: 1.75rem;
    }
    
    .product-detail-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        flex-direction: column;
    }
    
    /* Mobile Product Modal Optimizations */
    .modal {
        overflow-x: hidden;
    }
    
    .modal-content {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .modal-body {
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .product-detail {
        gap: 1rem;
        padding: 0.5rem 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .product-detail-images,
    .product-detail-info {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .main-image-container {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-description {
        font-size: 0.95rem;
    }
    
    .product-features {
        gap: 0.5rem;
    }
    
    .product-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .quantity-controls {
        max-width: 140px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .quantity-input {
        width: 50px;
        height: 35px;
        font-size: 1rem;
    }
    
    .thumbnail-gallery,
    .real-photos-gallery {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 0.5rem 0;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        padding: 0.3rem;
        flex-shrink: 0;
    }
    
    .real-photo-img {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .image-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .image-counter {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .rainbow-pill {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .product-category {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Related products on mobile */
    .related-products-section {
        padding: 1.5rem 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .related-products-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .related-products-grid {
        width: 100%;
        max-width: 100%;
        gap: 1rem;
    }
    
    /* Real photos section */
    .real-photos-section {
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .real-photos-section h3 {
        font-size: 1.1rem;
    }
    
    /* Ensure all content sections stay within bounds */
    .product-page-about,
    .product-features,
    .product-detail-description {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }
}

/* ===================================
   Video Thumbnail in Gallery
   =================================== */
.video-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.video-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    background: #000;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    pointer-events: none;
    transition: var(--transition);
}

.video-thumbnail-wrapper:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.play-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
    padding-left: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.video-thumbnail-wrapper:hover .play-icon {
    background: white;
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* Video in main preview area */
#mainProductVideo {
    max-height: 600px;
    object-fit: contain;
}

@media (max-width: 768px) {
    #mainProductVideo {
        max-height: 400px;
    }
    
    /* Enhanced touch targets for mobile */
    .thumbnail,
    .real-photo-img,
    .image-nav-btn,
    .quantity-btn,
    .btn {
        -webkit-tap-highlight-color: rgba(45, 80, 22, 0.2);
        touch-action: manipulation;
    }
    
    /* Prevent text selection on interactive elements */
    .image-nav-btn,
    .quantity-btn,
    .modal-close,
    .thumbnail,
    .real-photo-img {
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Smooth scrolling for galleries */
    .thumbnail-gallery,
    .real-photos-gallery {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better spacing for mobile taps */
    .product-features li {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Improve button tap area */
    .btn {
        min-height: 44px;
    }
    
    /* Hero Section Responsive */
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-product-grid {
        max-width: 400px;
        margin: 0 auto;
        gap: 1rem;
    }
}
