* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b6f47;
    --dark-color: #2c2416;
    --light-color: #f5f5f5;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--dark-color);
    min-height: 100vh;
    position: relative;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    box-shadow: none;
}

.logo {
    max-width: 70%;
    height: auto;
    max-height: 200px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.tagline {
    font-size: 2.8rem;
    margin-top: 10px;
    font-weight: 400;
    font-family: 'Parkplace', 'Times New Roman', serif;
    background: linear-gradient(180deg, #d7ecff 0%, #7cb7ff 40%, #1f5fae 70%, #c2d5ec 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(20, 66, 122, 0.45);
}

.main-title {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.description {
    font-size: 2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tab-button {
    padding: 15px 30px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tab-button.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.tab-content {
    background: rgba(255, 255, 255, 0.75);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid {
    display: grid;
    gap: 25px;
    margin-bottom: 20px;
}

.grid-6 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.card h3 {
    padding: 20px;
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.order-section {
    text-align: center;
    margin-top: 50px;
}

.order-button {
    padding: 20px 60px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.order-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secondary-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.secondary-order-button {
    padding: 12px 28px;
    font-size: 1rem;
    min-width: 260px;
}

.info-pane {
    text-align: center;
    padding: 30px 20px;
}

.info-pane h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-pane p {
    font-size: 1.1rem;
    color: #666;
}

.allergenes-intro {
    font-weight: 600;
    margin-bottom: 12px;
}

.allergenes-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 24px;
}

.allergenes-legend span {
    background: #fff;
    border: 1px solid #e8d8c2;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.95rem;
    color: #5a4327;
}

.allergenes-sections {
    text-align: left;
    display: grid;
    gap: 16px;
}

.allergenes-sections section {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #ecdcc8;
    border-radius: 10px;
    padding: 14px;
}

.allergenes-sections h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.allergenes-sections ul {
    padding-left: 18px;
}

.supplements-note {
    margin-bottom: 20px;
    color: #444;
}

.supplements-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    text-align: left;
}

.supplements-group {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
}

.supplements-group h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.supplements-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supplements-group li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-modal {
    max-width: 1000px;
}

.order-modal {
    max-width: 700px;
}

.takeaway-modal {
    max-width: 760px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--secondary-color);
}

.order-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.order-option {
    background: linear-gradient(135deg, var(--light-color) 0%, white 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.order-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.option-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.order-option h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.order-option p {
    color: #666;
    font-size: 1rem;
}

.contact-info {
    text-align: left;
    margin: 18px 0;
    background: #f7f4ef;
    border-radius: 12px;
    padding: 14px;
}

.contact-info p {
    margin: 6px 0;
    color: #555;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 12px;
}

.remove-cart-item {
    border: none;
    border-radius: 8px;
    background: #fce7e7;
    color: #8f1f1f;
    padding: 8px 10px;
    cursor: pointer;
}

.empty-cart {
    color: #777;
    margin-top: 10px;
}

.cart-total {
    margin-top: 14px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.whatsapp-button {
    margin-top: 15px;
    width: 100%;
    font-size: 1rem;
    background: #1d8f3a;
}

.whatsapp-button:hover {
    background: #23a846;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

#modalMediaContainer {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

#modalMediaContainer img,
#modalMediaContainer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-info h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.product-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.price {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-top: 20px !important;
}

.supplement-selectors {
    margin-top: 12px;
}

.add-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.add-line label {
    color: #4f3f2d;
    font-weight: 600;
}

.add-line select,
.add-line input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 10px;
}

.add-cart-button {
    margin-top: 16px;
    width: 100%;
    font-size: 1rem;
}


.product-option-selectors {
    margin-top: 12px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f4ef;
    border: 1px solid #e4d8c6;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.95rem;
}

.checkbox-item input {
    accent-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 4vh auto;
        padding: 20px;
        max-height: 92vh;
        overflow-y: auto;
    }

    .logo {
        max-width: 80%;
        max-height: 150px;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .tab-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .product-details {
        grid-template-columns: 1fr;
    }

    #modalMediaContainer {
        height: 250px;
    }

    .order-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .quantity-btn {
        width: 56px;
        height: 56px;
    }

    .secondary-order-button {
        width: min(100%, 320px);
        font-size: 0.95rem;
    }

    .grid-6,
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 20px 10px;
    }

    header {
        padding: 10px;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .grid {
        gap: 15px;
    }

    .grid-6,
    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}


.traceability-intro {
    font-weight: 600;
    margin-bottom: 14px;
}

.traceability-list {
    display: grid;
    gap: 10px;
}

.traceability-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7efe2;
    border: 1px solid #dcc7a9;
    border-radius: 10px;
    padding: 10px 12px;
    flex-wrap: wrap;
}

.traceability-product {
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 160px;
}

.traceability-origin {
    color: #4a3722;
    min-width: 140px;
}

.traceability-arrow {
    color: #8b6f47;
    font-weight: 700;
}

.traceability-stamp-slot {
    margin-left: auto;
    width: 58px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6f5638;
    background: #fffdf8;
    border: 1px dashed #c8a67a;
    border-radius: 6px;
}

.payment-intro {
    margin-top: 8px;
    color: #5e4a32;
}

.payment-summary {
    margin-top: 14px;
}

.payment-summary-box {
    background: #f8f4ee;
    border: 1px solid #e2d4bf;
    border-radius: 12px;
    padding: 14px;
}

.payment-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed #ccb190;
    padding: 10px 0;
}

.payment-line p {
    margin-top: 4px;
    color: #6f5a40;
    font-size: 0.92rem;
}

.payment-total {
    margin-top: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.payment-note {
    margin-top: 8px;
    font-size: 0.92rem;
    color: #6f5a40;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
