/* Modern Shop Redesign */
:root {
    /* Color Palette - Organic/Premium */
    --primary-green: #64bb3c;
        /* --primary-green: #10B981; */
    --primary-dark: #4A8F2D;
        /* --primary-dark: #059669; */
    --earth-dark: #374151; /* Charcoal for text */
    --earth-light: #F3F4F6; /* Light gray background */
    --pure-white: #FFFFFF;
    --soft-border: #E5E7EB;
    --whats: #25D366;
    
    /* Variables */
    --radius-md: 12px;
    --radius-pill: 9999px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(16, 185, 129, 0.15);
    --transition-fast: 0.2s ease;
    --font-main: 'Montserrat', sans-serif;
}

/* Natural Green Text Selection */
::selection {
    background-color: var(--brand-brown);
    color: var(--pure-white);
}

::-moz-selection {
    background-color: var(--brand-brown);
    color: var(--pure-white);
}

/* ::selection {
    background-color: var(--primary-green);
    color: var(--pure-white);
}

::-moz-selection {
    background-color: var(--primary-green);
    color: var(--pure-white);
} */

body {
    background-color: var(--earth-light);
    color: var(--earth-dark);
}

/* Page Header */
.shop-header {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.shop-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--earth-dark);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    font-weight: 400;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Product Card */
.product-card {
    background: var(--pure-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(16, 185, 129, 0.2);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: #f9fafb;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* height: 100%; Removed to allow natural height */
}

/* ... */

.product-desc {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* flex-grow: 1; Removed to prevent layout issues */
}

.product-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--soft-border);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.btn-order-now {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-order-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.7); /* Darker blur overlay */
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--pure-white);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--soft-border);
    padding-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--earth-dark);
    margin: 0;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #F3F4F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6B7280;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #E5E7EB;
    color: #111;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.product-summary {
    background: #F0FDF4;
    border: 1px solid #D1FAE5;
    padding: 12px 16px;
    border-radius: 8px;
    color: #065F46;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quantity Selector */
.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--soft-border);
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-submit-order {
    width: 100%;
    background: var(--earth-dark);
    color: white;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit-order:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Shop.js adds 'show' class for animation */
.modal-overlay.show {
    opacity: 1;
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Read More Link */
.read-more-link {
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px; /* Spacing before price/button */
    cursor: pointer;
    transition: color 0.2s;
}

.read-more-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Description Modal Specifics */
#descModal .modal-content {
    max-width: 600px;
}

#descModalTitle {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

#descModalText {
    color: var(--earth-dark);
    line-height: 1.6;
    font-size: 1rem;
}

/* Success Modal Styles */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
}

.success-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #D1FAE5;
    color: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--earth-dark);
    margin: 0 0 10px;
}

.success-subtext {
    color: #4B5563;
    font-size: 1rem;
    margin-bottom: 5px;
}

.success-email-note {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.btn-continue-shopping {
    background: #10B981;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-continue-shopping:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
