/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #5D4E37;
    background: linear-gradient(135deg, #FFF8F0 0%, #F5F0E8 100%);
}


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

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8B4513;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8B4513;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/hero-cookie.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: inset 0 0 100px rgba(139, 69, 19, 0.1);
    z-index: 10;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-image {
    display: none;
}

.hero-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.hero-text p {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #D2691E;
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.order-buttons .cta-button {
    text-align: center;
    margin: 0;
}

@media (min-width: 768px) {
    .order-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }

    .order-buttons .cta-button {
        flex: 1;
    }
}

.delivery-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid rgba(210, 105, 30, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.delivery-info p {
    color: #8B4513;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.address-checker {
    margin-top: 1rem;
}

.address-checker input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #D2691E;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    box-sizing: border-box;
}

/* Google Places Autocomplete styling */
.pac-container {
    background: white;
    border: 2px solid #D2691E;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -2px;
}

.pac-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 1rem;
    color: #8B4513;
}

.pac-item:hover,
.pac-item-selected {
    background: #FFF8F0;
    color: #D2691E;
}

.pac-item-query {
    font-weight: bold;
    color: #8B4513;
}

.pac-matched {
    font-weight: bold;
    color: #D2691E;
}

.address-checker input:focus {
    outline: none;
    border-color: #B8860B;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.check-button {
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.check-button:hover {
    background: #B8860B;
    transform: translateY(-1px);
}

#delivery-result {
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.delivery-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.delivery-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FFF8F0 0%, #F5F0E8 100%);
    position: relative;
    z-index: 10;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23D2691E" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="%238B4513" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="%23D2691E" opacity="0.1"/><circle cx="70" cy="80" r="2" fill="%238B4513" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.about h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 2rem;
}

.about>.container>p {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(210, 105, 30, 0.2);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
    border-color: rgba(210, 105, 30, 0.4);
}

.feature h4 {
    font-size: 1.3rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Popular Items Section */
.popular-items {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F5F5DC 0%, #FFF8DC 100%);
    position: relative;
    z-index: 10;
}

.popular-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 Q60 30 50 50 Q40 30 50 10" fill="%23D2691E" opacity="0.05"/><path d="M20 60 Q30 80 20 100 Q10 80 20 60" fill="%238B4513" opacity="0.05"/><path d="M80 70 Q90 90 80 110 Q70 90 80 70" fill="%23D2691E" opacity="0.05"/></svg>') repeat;
    pointer-events: none;
}

.popular-items h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 3rem;
}

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

.item-preview {
    background: linear-gradient(135deg, white 0%, #FFF8F0 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(210, 105, 30, 0.1);
    position: relative;
    overflow: hidden;
}

.item-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(210, 105, 30, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.item-preview:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
    border-color: rgba(210, 105, 30, 0.3);
}

.item-preview:hover::before {
    transform: scale(1);
}

.item-preview h4 {
    font-size: 1.4rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.item-preview p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #D2691E;
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: #8B4513;
    color: white;
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    background: #8B4513;
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 10;
}

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

.footer-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #FFF8DC;
}

.footer-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

/* Menu Page Styles */
.menu-header {
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 100%);
    padding: 3rem 0;
    text-align: center;
}

.menu-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.menu-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.menu-section {
    padding: 4rem 0;
    background: white;
}

.menu-categories {
    margin-bottom: 4rem;
}

.category {
    margin-bottom: 3rem;
}

.category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.category h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #D2691E;
    margin: 0.5rem auto 0;
}

.menu-items {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: #FFF8DC;
    border-radius: 10px;
    border-left: 4px solid #D2691E;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.item-info {
    flex: 1;
    margin-right: 1rem;
}

.item-info h4 {
    font-size: 1.3rem;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.item-info p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.allergens {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #D2691E;
    white-space: nowrap;
}

.order-button {
    display: inline-block;
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.order-button:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.quick-order {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF8F0, #F5F0E8);
    border-radius: 15px;
    border: 2px solid rgba(210, 105, 30, 0.2);
}

.quick-order h4 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.quick-order-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-order-btn {
    display: inline-block;
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
    text-align: center;
}

.quick-order-btn:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

@media (min-width: 768px) {
    .quick-order-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }

    .quick-order-btn {
        flex: 1;
    }
}

.bulk-order-info {
    background: #F5F5DC;
    padding: 3rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.bulk-order-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 2rem;
}

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

.bulk-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bulk-item h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.bulk-item p {
    color: #666;
    font-size: 0.9rem;
}

.order-cta {
    text-align: center;
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 100%);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.order-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.order-cta p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Active navigation link */
.nav-links a.active {
    color: #8B4513;
    font-weight: 600;
}

/* Order Page Styles */
.order-header {
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 100%);
    padding: 3rem 0;
    text-align: center;
}

.order-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.order-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.order-form-section {
    padding: 4rem 0;
    background: white;
}

.order-container {
    max-width: 900px;
    margin: 0 auto;
}

.order-section {
    background: #FFF8DC;
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.order-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 2rem;
    text-align: center;
}

.cookie-category {
    margin-bottom: 2rem;
}

.cookie-category h4 {
    font-size: 1.3rem;
    color: #8B4513;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #D2691E;
}

.cookie-options {
    display: grid;
    gap: 1rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #D2691E;
    transition: transform 0.2s ease;
}

.cookie-option:hover {
    transform: translateX(3px);
}

.cookie-info {
    flex: 1;
    margin-right: 1rem;
}

.cookie-info label {
    font-weight: 600;
    color: #8B4513;
    cursor: pointer;
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: #D2691E;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #8B4513;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D2691E;
}

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

.order-summary {
    background: #F5F5DC;
}

.summary-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.no-items {
    text-align: center;
    color: #999;
    font-style: italic;
}

.summary-totals {
    border-top: 2px solid #D2691E;
    padding-top: 1rem;
}

.subtotal,
.discount,
.total {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B4513;
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.payment-section {
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 100%);
}

.payment-notice {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    border-left: 4px solid #4CAF50;
}

.stripe-form {
    margin-bottom: 2rem;
}

#card-element {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #ddd;
}

#card-errors {
    color: #e74c3c;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.submit-order-btn {
    width: 100%;
    background: #D2691E;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.submit-order-btn:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.submit-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.order-terms {
    margin-top: 1rem;
    text-align: center;
}

.order-terms p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Order form mobile styles */
.cookie-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.quantity-input {
    align-self: flex-end;
    width: 100px;
}

.order-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        height: 70px;
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #8B4513;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .about h3,
    .popular-items h3 {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-image img {
        height: 250px;
    }

    .about,
    .popular-items {
        padding: 3rem 0;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}