/* Import base variables from main styles */
:root {
    /* Color Palette - Green Garden Inspired */
    --primary-red: #2E7D32;
    --secondary-red: #43A047;
    --light-red: #C8E6C9;
    --dark-red: #1B5E20;
    
    /* Neutral Earth Tones */
    --beige-light: #F1F8F4;
    --beige: #E8F5E9;
    --beige-dark: #C8E6C9;
    --cream: #F9FFF9;
    
    /* Accent Colors */
    --text-dark: #1B5E20;
    --text-medium: #2E7D32;
    --text-light: #66BB6A;
    --white: #FFFFFF;
    --success: #2E7D32;
    
    /* Shadows and Effects */
    --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.08);
    --shadow-md: 0 4px 16px rgba(46, 125, 50, 0.12);
    --shadow-lg: 0 8px 32px rgba(46, 125, 50, 0.16);
    --shadow-xl: 0 12px 48px rgba(46, 125, 50, 0.2);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Lora', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--beige-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Navigation (Same as main page) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(211, 47, 47, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-red);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-medium);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.btn-nav {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nav.active {
    background: var(--dark-red);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 6rem var(--spacing-md) var(--spacing-sm);
    background: var(--white);
    border-bottom: 1px solid var(--beige-dark);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== Product Section ===== */
.product-section {
    padding: var(--spacing-lg) 0;
    background: var(--white);
}

.product-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* ===== Product Images ===== */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image-container {
    position: relative;
    background: var(--beige-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--beige-dark);
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.thumbnail-container {
    display: flex;
    gap: var(--spacing-sm);
}

.thumbnail {
    width: calc(33.333% - var(--spacing-sm));
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px solid var(--beige-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
}

.thumbnail.placeholder {
    background: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.thumbnail.active {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.thumbnail:hover {
    border-color: var(--primary-red);
}

/* ===== Product Details ===== */
.product-details {
    padding-right: var(--spacing-md);
}

.brand-tag {
    display: inline-block;
    background: var(--light-red);
    color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star {
    color: #FFC107;
    font-size: 1.25rem;
}

.star.filled {
    color: #FFC107;
}

.star.half {
    background: linear-gradient(90deg, #FFC107 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-left: 0.5rem;
}

.review-count {
    color: var(--text-medium);
    font-size: 0.875rem;
}

/* ===== Horizontal Buy Section ===== */
.buy-section-horizontal {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.03) 0%, rgba(255, 249, 240, 1) 100%);
    border: 2px solid var(--light-red);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.price-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: var(--spacing-md);
    border-right: 2px solid var(--beige-dark);
}

.discount-badge {
    position: absolute;
    top: -12px;
    right: 12px;
    background: var(--success);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.price-main {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    font-family: var(--font-heading);
    line-height: 1;
}

.price-original {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-top: -4px;
}

.price-meta {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

.quantity-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: var(--spacing-md);
    border-right: 2px solid var(--beige-dark);
}

.quantity-block label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actions-block {
    display: flex;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 280px;
}

.delivery-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--beige-dark);
}

.delivery-item {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== Product Info ===== */
.product-info,
.specifications,
.ingredients-info {
    margin-bottom: var(--spacing-md);
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--beige-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(211, 47, 47, 0.05);
    transform: translateX(4px);
}

.features-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Specifications ===== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.spec-item {
    background: var(--beige-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.spec-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== Ingredients ===== */
.ingredients-text {
    color: var(--text-medium);
    line-height: 1.8;
    background: var(--beige-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
}

/* ===== Order Box ===== */
.order-box {
    position: sticky;
    top: 100px;
    background: var(--white);
    border: 2px solid var(--beige-dark);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--beige-dark);
    margin-bottom: var(--spacing-sm);
}

.price-label {
    font-size: 1rem;
    color: var(--text-medium);
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    font-family: var(--font-heading);
}

/* ===== Delivery Info ===== */
.delivery-info {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--beige-dark);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-medium);
}

.info-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Stock Status ===== */
.stock-status {
    margin-bottom: var(--spacing-sm);
}

.in-stock {
    color: var(--success);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== Quantity Controls ===== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-red);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--dark-red);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#quantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--white);
    color: var(--text-dark);
}

/* ===== Action Buttons ===== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    flex: 1;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
}

.btn-buy-now {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
}

/* ===== Trust Badges ===== */
.trust-badges {
    display: flex;
    justify-content: space-around;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--beige-dark);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-medium);
}

.trust-icon {
    font-size: 1.5rem;
}

/* ===== Related Products ===== */
.related-section {
    padding: var(--spacing-lg) 0;
    background: var(--beige-light);
}

.section-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    width: 100%;
    height: 200px;
    background: var(--beige-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
}

.related-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.related-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.coming-soon {
    display: inline-block;
    background: var(--text-light);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: var(--beige);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

.footer-brand h3 {
    color: var(--primary-red);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--beige-dark);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--beige-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--beige-dark);
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .product-layout {
        grid-template-columns: 400px 1fr;
    }

    .buy-section-horizontal {
        flex-wrap: wrap;
    }

    .price-block,
    .quantity-block,
    .delivery-block {
        border-right: none;
        border-left: none;
        padding-right: 0;
        padding-left: 0;
        border-bottom: 2px solid var(--beige-dark);
        padding-bottom: var(--spacing-sm);
    }

    .actions-block {
        width: 100%;
        padding-top: var(--spacing-sm);
    }

    .delivery-block {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 350px;
        height: 100vh;
        background: rgba(250, 247, 242, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem var(--spacing-md) var(--spacing-md);
        gap: 0;
        box-shadow: -4px 0 32px rgba(211, 47, 47, 0.2);
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--beige-dark);
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-sm) 0;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .product-images {
        position: relative;
        top: 0;
    }

    .main-image-container {
        min-height: 500px;
    }

    .main-product-image {
        max-height: 500px;
    }
}

@media (max-width: 640px) {
    .breadcrumb {
        padding-top: 5rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .price-main {
        font-size: 2.25rem;
    }

    .buy-section-horizontal {
        padding: var(--spacing-sm);
    }

    .actions-block {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
