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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefdfb;
}

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

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #f4b942 0%, #f6a326 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 55px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-title {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #333;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger animation when active */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: color 0.3s;
}

.dropdown-toggle:hover {
    color: #333;
}

.nav-dropdown .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    list-style: none;
    transition: opacity 0.2s, visibility 0.2s;
    margin-top: 0.5rem;
}

/* Show dropdown on click (via .open class) */
.nav-dropdown.open .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

.nav-dropdown .dropdown-menu li {
    padding: 0;
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333 !important;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-dropdown .dropdown-menu a:hover {
    background: #f6a326;
    color: #fff !important;
}

.btn-order {
    background-color: #fff;
    color: #f6a326 !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
}

.btn-order:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(246, 163, 38, 0.15), rgba(244, 185, 66, 0.15)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f4b942" opacity="0.1" width="1200" height="400"/></svg>');
    padding: 3rem 0;
    text-align: center;
}

.hero-logo {
    width: 280px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #f6a326;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #e59315;
}

.btn-secondary {
    background-color: #333;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: #fefdfb;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f6a326;
}

/* Products Section */
.products {
    padding: 4rem 0;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f4b942 0%, #f6a326 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-info .size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f6a326;
    margin-bottom: 1rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
}

/* Forms */
.form-section {
    padding: 4rem 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #f6a326;
}

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

.helptext {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Messages/Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Success Pages */
.success-container {
    text-align: center;
    padding: 4rem 0;
}

.success-container .icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.success-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* About Page */
.about-section {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f6a326;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-content li {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    width: 100px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-section h3 {
    color: #f6a326;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #f6a326;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f6a326;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.cottage-food-notice {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .navbar .container {
        position: relative;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #f4b942 0%, #f6a326 100%);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        padding-top: 1rem;
    }

    /* Mobile dropdown */
    .nav-dropdown .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        display: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin: 0.5rem 0 0 0;
        border-radius: 4px;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-dropdown .dropdown-menu a {
        color: #fff !important;
    }

    .nav-dropdown .dropdown-menu a:hover {
        background: rgba(255,255,255,0.2);
    }

    .dropdown-toggle {
        width: 100%;
    }

    .nav-brand a {
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-title {
        font-size: 1.2rem;
    }

    .hero-logo {
        width: 200px;
    }

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

    .hero p {
        font-size: 1rem;
    }

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

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

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

/* Checkout Styles */
.checkout-section {
    padding: 3rem 0;
}

.checkout-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.order-summary, .customer-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-summary h3, .customer-info h3 {
    color: #f6a326;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f6a326;
}

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

.item-details h4 {
    margin-bottom: 0.25rem;
    color: #333;
}

.item-size, .item-quantity {
    color: #666;
    font-size: 0.9rem;
}

.item-price {
    text-align: right;
}

.unit-price {
    color: #666;
    font-size: 0.9rem;
}

.line-total {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.total-amount {
    color: #f6a326;
}

.order-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.order-notes h4 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-group {
    margin-bottom: 1rem;
}

.customer-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.checkout-actions form {
    display: inline;
}

.btn-primary {
    background-color: #f6a326;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e59315;
}

.payment-note {
    color: #666;
    margin-top: 0.5rem;
}

/* Order Status Styles */
.order-status-section {
    padding: 3rem 0;
}

.order-status-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.status-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.status-badge.status-pending,
.status-badge.status-unpaid {
    background-color: #ffeaa7;
    color: #856404;
}

.status-badge.status-awaiting_payment,
.status-badge.status-pending {
    background-color: #bee5eb;
    color: #0c5460;
}

.status-badge.status-paid,
.status-badge.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.status-cancelled,
.status-badge.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.order-date {
    color: #666;
}

.status-details {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.detail-row .label {
    color: #666;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.order-items, .shipping-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-items h3, .shipping-info h3 {
    color: #f6a326;
    margin-bottom: 1rem;
}

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

.shipping-info .name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.shipping-info .contact {
    margin-top: 0.5rem;
    color: #666;
}

.payment-actions {
    text-align: center;
    margin: 2rem 0;
}

.payment-instructions {
    color: #666;
    font-size: 1.1rem;
}

.help-section {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.help-section h3 {
    margin-bottom: 0.5rem;
}

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

.back-link a {
    color: #f6a326;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .checkout-grid,
    .order-details-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .status-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Legal Pages (Privacy Policy, Terms) */
.legal-section {
    padding: 3rem 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

.footer-legal {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #f6a326;
}

