/* ===========================
   GLOBAL STYLES & RESET
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5016;
    --secondary-color: #f59e0b;
    --accent-red: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: 'Poppins', sans-serif;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    font-weight: 600;
    color: var(--text-dark);
    -webkit-transition: color 0.3s;
    -o-transition: color 0.3s;
    transition: color 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    -webkit-transition: right 0.3s ease;
    -o-transition: right 0.3s ease;
    transition: right 0.3s ease;
    z-index: 2000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 40px;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===========================
   HERO SECTION
   =========================== */
#hero {
    background: -webkit-gradient(linear, left top, right bottom, from(#f0fdf4), to(#dbeafe));
    background: -o-linear-gradient(top left, #f0fdf4 0%, #dbeafe 100%);
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    padding: 80px 0;
}

.hero-content {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 50px 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-yellow {
    color: var(--secondary-color);
}

.highlight-red {
    color: var(--accent-red);
}

.highlight-green {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 8px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--white);
}

.cta-button.primary:hover {
    background: #1f3a0f;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.hero-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    -o-object-fit: cover;
    object-fit: cover;
}

/* ===========================
   PRODUCTS SECTION
   =========================== */
#products {
    padding: 80px 0;
    background: var(--white);
}

#products h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 40px;
}

.category-filter {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

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

.products-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(300px, 1fr))[auto-fill];
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.product-card:hover .product-image img {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.product-badge.popular {
    background: var(--accent-red);
}

.product-badge.fresh {
    background: var(--primary-color);
}

.product-badge.value {
    background: var(--secondary-color);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-options {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.size-badge {
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.product-price {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 15px;
}

.price-tag {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.order-btn:hover {
    background: #1f3a0f;
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* ===========================
   FEATURES SECTION
   =========================== */
#about {
    padding: 80px 0;
    background: var(--bg-light);
}

#about h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(280px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.feature-item:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===========================
   CONTACT/ORDER SECTION
   =========================== */
#contact {
    padding: 80px 0;
    background: -webkit-gradient(linear, left top, right bottom, from(#f0fdf4), to(#ffffff));
    background: -o-linear-gradient(top left, #f0fdf4 0%, #ffffff 100%);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

#contact h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1.6fr 40px 1fr;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    margin-top: 50px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
}

.order-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
}

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

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 15px;
}

.form-group label::after {
    content: ' *';
    color: var(--accent-red);
}

.optional-label::after {
    content: ' (Optional)' !important;
    color: var(--text-light);
    font-weight: 400;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    background: var(--white);
}

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

.form-group input::-webkit-input-placeholder,
.form-group textarea::-webkit-input-placeholder {
    color: #9ca3af;
}

.form-group input::-moz-placeholder,
.form-group textarea::-moz-placeholder {
    color: #9ca3af;
}

.form-group input:-ms-input-placeholder,
.form-group textarea:-ms-input-placeholder {
    color: #9ca3af;
}

.form-group input::-ms-input-placeholder,
.form-group textarea::-ms-input-placeholder {
    color: #9ca3af;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 45px;
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    margin-top: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #1f3a0f;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(45, 80, 22, 0.3);
}

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

.error-message {
    color: var(--accent-red);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: var(--success-color);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--accent-red);
}

.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    -webkit-animation: spin 0.6s linear infinite;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* Contact Information */
.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    -ms-flex-item-align: start;
    align-self: start;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 35px;
    font-weight: 700;
}

.contact-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.contact-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 28px;
    min-width: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.contact-item div {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 600;
}

.contact-item a {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    -webkit-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
    word-break: break-word;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-item p {
    opacity: 0.95;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.quick-order {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-order h4 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.quick-order p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 14px;
}

.quick-order .cta-button {
    width: 100%;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 700;
    padding: 14px;
    font-size: 16px;
}

.quick-order .cta-button:hover {
    background: #d97706;
    color: var(--white);
}

/* ===========================
   MODAL
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.modal.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    margin-bottom: 25px;
    font-size: 24px;
}

/* ===========================
   NOTIFICATION
   =========================== */
.notification {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 20px 30px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 4000;
    -webkit-animation: slideIn 0.3s ease;
    animation: slideIn 0.3s ease;
}

.notification.active {
    display: block;
}

@-webkit-keyframes slideIn {
    from {
        -webkit-transform: translateX(400px);
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        -webkit-transform: translateX(400px);
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* ===========================
   FOOTER
   =========================== */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Large Desktops (1200px and above) */
@media (min-width: 1200px) {
    .contact-wrapper {
        -ms-grid-columns: 1.8fr 50px 1fr;
        grid-template-columns: 1.8fr 1fr;
        gap: 50px;
    }
    
    .order-form-container {
        padding: 50px;
    }
}

/* Standard Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .contact-wrapper {
        -ms-grid-columns: 1.5fr 40px 1fr;
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
    }
    
    .order-form-container {
        padding: 40px;
    }
    
    .contact-info {
        padding: 35px 30px;
    }
}
