/* ============================================
   GrowGut Product Page - Premium Styles (Optimized)
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2D5A27;
    --primary-light: #4A7C42;
    --primary-dark: #1A3A16;
    --accent: #8BC34A;
    --accent-light: #AED581;
    --background: #FAFAF8;
    --surface: #FFFFFF;
    --text: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #E8E8E8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #2D5A27 0%, #4A7C42 100%);
    --gradient-accent: linear-gradient(135deg, #8BC34A 0%, #AED581 100%);
    --gradient-hero: linear-gradient(180deg, #F5F9F3 0%, #FAFAF8 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    will-change: transform;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: inherit;
}

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

.logo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text {
    color: var(--primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

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

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

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: var(--gradient-hero);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* Image Gallery - Optimized */
.gallery-section {
    position: static;
    contain: layout style;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .gallery-section {
        position: sticky;
        top: 100px;
    }
}

.main-image-container {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout;
    max-width: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    will-change: opacity;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.gallery-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev {
    left: 8px;
}

.gallery-nav.next {
    right: 8px;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
    background: var(--surface);
    -webkit-tap-highlight-color: transparent;
}

.thumbnail:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.thumbnail:active {
    transform: scale(0.95);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

@media (min-width: 768px) {
    .thumbnail {
        width: 64px;
        height: 64px;
    }
}

/* Product Info */
.product-info {
    padding: 20px 0;
}

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0 6px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 3rem;
        margin: 16px 0 8px;
        letter-spacing: -1px;
    }
}

@media (min-width: 1024px) {
    .product-title {
        font-size: 3.5rem;
    }
}

.product-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .product-tagline {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .price-section {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
        margin-bottom: 32px;
    }
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

@media (min-width: 768px) {
    .price {
        font-size: 2.5rem;
    }
}

.quantity-info {
    font-size: 1rem;
    color: var(--text-muted);
}

.benefits-quick {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text);
}

.benefit-icon {
    font-size: 1.2rem;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .product-highlights {
        gap: 16px;
        margin-bottom: 32px;
    }
}

.highlight {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.highlight-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.highlight-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.3);
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

@media (min-width: 768px) {
    .cta-button {
        display: inline-flex;
        width: auto;
        padding: 18px 36px;
        font-size: 1.1rem;
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(45, 90, 39, 0.35);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button svg {
    transition: transform 0.15s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

/* Sections */
.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 48px;
    }
}

/* Benefits Section */
.benefits-section {
    background: var(--surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    padding: 40px 32px;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Ingredients Section */
.ingredients-section {
    background: var(--primary);
    color: white;
}

.ingredients-section .section-title {
    color: white;
}

.ingredients-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .ingredients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 40px;
    }
}

.ingredient-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ingredient-category:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.ingredient-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ingredient-category p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.allergen-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.allergen-badge {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* Usage Section */
.usage-section {
    background: var(--gradient-hero);
}

.usage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .usage-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin-bottom: 40px;
    }
}

.usage-step {
    background: var(--surface);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usage-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.usage-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.usage-step p {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.storage-info {
    display: flex;
    justify-content: center;
}

.storage-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    color: var(--text);
}

.storage-icon {
    font-size: 1.5rem;
}

/* Buy Section */
.buy-section {
    background: linear-gradient(135deg, #1A3A16 0%, #2D5A27 50%, #4A7C42 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.buy-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.buy-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .buy-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        text-align: left;
    }
}

.buy-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.buy-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.buy-price .per-box {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
}

.buy-features {
    list-style: none;
}

.buy-features li {
    padding: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    /* Slight bright background to separate from dark area  */
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    /* Important to keep it white on the dark green background */
}

.qr-container,
.qr-image-wrapper {
    /* using wrapper from HTML */
    background: white;
    padding: 16px;
    border-radius: var(--radius-lg);
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    max-width: 100%;
}

.qr-code,
.qr-image {
    /* handling both classes */
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

@media (min-width: 400px) {

    .qr-code,
    .qr-image {
        width: 220px;
        height: 220px;
    }
}

.qr-instruction {
    margin-top: 16px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.payment-amount-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.highlighted-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upi-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.upi-id-chip {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
}

.upi-label {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.upi-value {
    padding: 8px 12px;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-upi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}

.copy-upi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: var(--background);
}

.copy-upi-btn:active {
    transform: translateY(0);
}

.copy-upi-btn svg {
    color: var(--primary);
}

/* New Buy Section Styles */
.buy-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .buy-title {
        font-size: 2.5rem;
    }
}

.buy-subtitle {
    text-align: center;
    opacity: 0.85;
    font-size: 1rem;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .buy-subtitle {
        font-size: 1.1rem;
        margin-bottom: 48px;
    }
}

.buy-content-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .buy-content-new {
        grid-template-columns: minmax(auto, 600px);
        justify-content: center;
    }
}

/* Order Form Styles */
.order-form-section {
    width: 100%;
    order: 2;
}

/* Payment Section - Left Side */
.payment-section {
    order: 1;
}

.order-form-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 480px) {
    .order-form-card {
        padding: 32px;
    }
}

.order-form-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 400px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border);
    background: white;
    font-size: 1.3rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.qty-btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
}

.qty-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.quantity-selector input {
    width: 60px;
    height: 44px;
    border: 2px solid var(--border);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 0;
}

/* Order Summary */
.order-summary {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--primary);
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Submit Button */
.submit-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.3);
    margin-top: 8px;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(45, 90, 39, 0.4);
}

.submit-order-btn:active {
    transform: translateY(0);
}

.submit-order-btn svg {
    transition: transform 0.15s ease;
}

.submit-order-btn:hover svg {
    transform: translateX(3px);
}

/* Payment Section */
.payment-section {
    position: sticky;
    top: 100px;
}

.payment-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.payment-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary);
}

.payment-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.payment-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-card .qr-container {
    margin: 0 auto;
}

.payment-card .qr-instruction {
    color: var(--text-muted);
    margin-top: 12px;
}

/* Product Mini Summary */
.product-summary {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.product-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    margin-bottom: 16px;
}

.product-mini img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.product-mini strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2px;
}

.product-mini span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mini-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.mini-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-modal h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.success-modal button {
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.success-modal button:hover {
    transform: translateY(-2px);
}

/* Screenshot Upload Styles */
.screenshot-upload-group {
    margin-top: 8px;
}

.screenshot-upload-group .label-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.screenshot-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: var(--background);
}

.screenshot-upload-area:hover {
    border-color: var(--primary);
    background: rgba(45, 90, 39, 0.03);
}

.screenshot-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(45, 90, 39, 0.08);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.upload-placeholder p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 6px;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.remove-screenshot {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-screenshot:hover {
    transform: scale(1.1);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Loading State */
.submit-order-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-order-btn.loading span {
    display: none;
}

.submit-order-btn.loading::after {
    content: 'Uploading...';
}

/* Details Section */
.details-section {
    background: var(--surface);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.detail-card {
    padding: 32px;
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.detail-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.detail-card li:last-child {
    border-bottom: none;
}

.detail-card li strong {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--gradient-hero);
    padding: 80px 0;
}

.testimonials-section .section-title {
    color: var(--text);
}

.testimonials-section .section-subtitle {
    color: var(--text-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-top: 48px;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    box-shadow: var(--shadow-sm);
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.05s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.15s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(5) {
    animation-delay: 0.25s;
}

.testimonial-card:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.testimonial-text::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.testimonials-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px auto 0;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.testimonials-refresh-btn svg {
    transition: transform 0.3s ease;
}

.testimonials-refresh-btn:hover svg {
    transform: rotate(180deg);
}

/* Testimonials refresh button styling only - grid is already mobile-first above */

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 40px 0 20px;
}

@media (min-width: 768px) {
    .footer {
        padding: 60px 0 24px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-badges {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Fade In Animation - GPU Optimized */
.fade-in {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
}

.fade-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Responsive Design - Supplemental overrides */
@media (max-width: 1024px) {
    .gallery-section {
        position: static;
    }

    .payment-section {
        position: static;
        order: 1;
    }

    .order-form-section {
        order: 2;
    }

    .buy-features {
        display: inline-block;
        text-align: left;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .buy-info h2 {
        font-size: 1.8rem;
    }

    .buy-price {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-tagline {
        font-size: 1rem;
    }

    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price {
        font-size: 1.8rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .product-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .highlight {
        padding: 12px 8px;
    }

    .highlight-label {
        font-size: 0.65rem;
    }

    .highlight-value {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* Gallery */
    .main-image-container {
        aspect-ratio: 1;
    }

    .thumbnail-strip {
        gap: 6px;
    }

    .thumbnail {
        width: 52px;
        height: 52px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    /* Benefits */
    .benefit-card {
        padding: 28px 20px;
    }

    .benefit-card-icon {
        font-size: 2.2rem;
        margin-bottom: 14px;
    }

    .benefit-card h3 {
        font-size: 1.1rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    /* Ingredients */
    .ingredient-category {
        padding: 20px;
    }

    .allergen-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .allergen-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    /* Usage */
    .usage-step {
        padding: 24px 16px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .usage-step h3 {
        font-size: 0.9rem;
    }

    .usage-step p {
        font-size: 1rem;
    }

    .storage-card {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    /* Buy Section */
    .buy-title {
        font-size: 1.6rem;
    }

    .buy-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    /* Order Form */
    .order-form-card {
        padding: 20px;
    }

    .order-form-card h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .order-form {
        gap: 16px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .qty-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .quantity-selector input {
        width: 80px;
        height: 48px;
        font-size: 1.2rem;
    }

    .order-summary {
        padding: 16px;
    }

    .summary-row {
        font-size: 0.9rem;
    }

    .summary-row.total {
        font-size: 1.1rem;
    }

    .submit-order-btn {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
    }

    /* Screenshot Upload */
    .screenshot-upload-area {
        padding: 20px 16px;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .upload-placeholder p {
        font-size: 0.9rem;
    }

    .upload-hint {
        font-size: 0.75rem;
    }

    /* Payment Card */
    .payment-card {
        padding: 24px 20px;
    }

    .payment-card h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .payment-step {
        font-size: 0.85rem;
    }

    .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .qr-code {
        width: 160px;
        height: 160px;
    }

    .qr-instruction {
        font-size: 0.85rem;
    }

    .product-mini img {
        width: 50px;
        height: 50px;
    }

    .product-mini strong {
        font-size: 0.9rem;
    }

    .product-mini span {
        font-size: 0.8rem;
    }

    .mini-features li {
        font-size: 0.85rem;
    }

    /* Details */
    .detail-card {
        padding: 24px 20px;
    }

    .detail-card h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .detail-card li {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-brand {
        font-size: 1.1rem;
    }

    .footer-info p {
        font-size: 0.85rem;
    }

    .footer-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* Success Modal */
    .success-modal-content {
        padding: 32px 24px;
    }

    .success-icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .success-modal h3 {
        font-size: 1.4rem;
    }

    .success-modal p {
        font-size: 0.9rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* UPI Copy Section */
.upi-copy-section {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upi-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upi-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

#upiIdText {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(45, 90, 39, 0.1);
}

.copy-feedback {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
    height: 1.2em;
}

.copy-feedback.show {
    opacity: 1;
}

/* ============================================
   UPI Block — inside QR Card
   ============================================ */
.upi-block {
    width: 100%;
    margin-top: 16px;
    background: var(--gradient-hero);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.upi-id-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upi-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
}

.upi-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.2px;
}

.copy-upi-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 10px rgba(45, 90, 39, 0.3);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.copy-upi-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(45, 90, 39, 0.4);
}

.copy-upi-btn:active {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 420px) {
    .upi-block {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-upi-btn {
        justify-content: center;
    }
}