/* style.css */

/* ================== */
/* GLOBAL STYLES */
/* ================== */
:root {
    --primary-color: #0070ba; /* Blue */
    --secondary-color: #cc0000; /* Red */
    --text-dark: #333;
    --text-light: #555;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: var(--text-dark);
}

.announcement-bar {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9em;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0; 
    z-index: 1000;
    flex-wrap: wrap;
}

/* ================== */
/* HEADER & NAV */
/* ================== */

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    flex-shrink: 0; 
}

/* --- HAMBURGER STYLES START --- */

#hamburger-btn {
    display: none; 
    font-size: 1.8em;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Desktop Navigation (horizontal) */
nav {
    display: flex;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 25px;
}

/* --- MOBILE STYLES --- */
@media (max-width: 767px) {
    #hamburger-btn {
        display: block; 
        order: 2; 
    }

    .cart-icon {
        order: 3; 
    }

    nav {
        display: none; 
        width: 100%; 
        order: 4; 
        margin-top: 15px;
    }

    nav ul {
        flex-direction: column; 
        width: 100%;
    }

    nav.is-open {
        display: block; 
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 5px 0;
        overflow: hidden;
    }
    
    nav li {
        margin: 0;
        width: 100%;
        border-top: 1px solid #f0f0f0; 
    }
    
    nav li:first-child {
        border-top: none; 
    }

    nav a {
        padding: 15px;
        min-width: auto; 
        text-align: center !important; 
        display: block; 
        border-bottom: none !important; 
    }

    nav a.active, nav a:hover {
        border-bottom: none !important; 
        background-color: #f8f8f8;
        color: var(--primary-color);
    }
}
/* --- END HAMBURGER STYLES --- */


nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1em;
    padding-bottom: 5px;
    min-width: 80px; 
    text-align: center;
    display: inline-block;
    transition: color 0.3s;
}

nav a.active, nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

nav a#contact-link:hover {
    border-bottom: none;
    color: var(--primary-color);
}

.cart-icon {
    font-size: 1.5em;
    color: var(--text-dark);
    position: relative;
    cursor: pointer;
    flex-shrink: 0; 
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.6em;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 50%;
}

/* ================== */
/* MAIN CONTENT */
/* ================== */
main.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: none;
    box-shadow: none;
}

h1 {
    color: var(--text-dark);
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-light);
    margin-top: 0;
}

h2 {
    text-align: center;
    font-size: 2em;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    border: none;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ================== */
/* TRUST FEATURES */
/* ================== */
.trust-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.feature {
    flex-basis: 30%;
    min-width: 200px;
    text-align: center;
    padding: 10px;
}

.feature i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature h4 {
    margin: 10px 0 5px 0;
    font-size: 1.1em;
    color: var(--text-dark);
}

.feature p {
    font-size: 0.9em;
    color: var(--text-light);
}

/* ================== */
/* PRODUCT GRID */
/* ================== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-grid .package {
        height: 100%; 
    }
}

/* ================== */
/* PACKAGE "CARD" */
/* ================== */
.package {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.9em;
    transform: rotate(45deg);
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.package h3 {
    font-size: 1.6em;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.package-description {
    font-size: 1em;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
}

.features-list {
    text-align: left;
    margin: 15px 0;
    padding-left: 25px;
    color: var(--text-light);
    font-size: 0.95em;
}

.features-list li {
    margin-bottom: 8px;
    list-style-type: '🦞';
    padding-left: 10px;
}

.price-box {
    margin-top: auto;
    padding-top: 20px;
}

.old-price {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 10px;
}

.package .price {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0;
    padding-top: 0;
    display: inline;
}

.package .buy-button {
    width: 100%;
    font-size: 1.2em;
    font-weight: 600;
    padding: 15px 0;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white; 
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 5;
    position: relative;
    border: none; 
    border-radius: 5px; 
}

.package .buy-button:hover {
    background-color: #00568c; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 112, 186, 0.3); 
}

/* ================== */
/* SHIPPING DETAILS */
/* ================== */
.shipping-details {
    text-align: left;
    background: #fff;
    padding: 30px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.shipping-details h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.shipping-details p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-light);
}

.shipping-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.shipping-details li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    line-height: 1.5;
}

.shipping-details li::before {
    font-family: "Font Awesome 6 Free";
    content: '\f00c'; /* fa-check */
    font-weight: 900;
    color: var(--primary-color); 
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.2em;
}

.shipping-disclaimer {
    background-color: #fff8e1; 
    border: 1px solid #ffecb3; 
    border-left: 5px solid #ffc107; 
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 25px;
}

.shipping-disclaimer h4 {
    margin: 0 0 10px 0;
    color: #c66900;
}

.shipping-disclaimer h4 i {
    margin-right: 8px;
}

.shipping-disclaimer p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #5f4300;
    margin: 5px 0 0 0;
}

/* ACCORDION STYLES */
.details-accordion {
    margin-top: 40px;
}
.details-accordion h2 {
    text-align: center;
}
.accordion-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
.accordion-header {
    background-color: #fff;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 30px;
    font-size: 1.3em;
    font-weight: 700; 
    color: var(--primary-color); 
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--primary-color); 
}
.accordion-header.is-open i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-light);
}
.accordion-content p {
    margin: 0;
    padding: 0 30px 20px 30px;
}
.accordion-content.is-open {
    max-height: 300px; 
    padding-top: 0;
}

/* REVIEWS SECTION */
.reviews {
    margin-top: 40px;
}
.reviews h2 {
    text-align: center;
}
.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.review-stars {
    color: #ffc107; /* Gold */
    font-size: 1.5em;
    margin-bottom: 10px;
}
.review-text {
    font-size: 1.1em;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}
.review-author {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 15px;
}

/* REVIEW FORM STYLES */
.review-form-section {
    background: #fff;
    padding: 30px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.review-form-section h2 {
    text-align: left;
    margin-top: 0;
}
.review-form-section p {
    font-size: 1.1em;
    color: var(--text-light);
    line-height: 1.6;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select { 
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1em;
    box-sizing: border-box; 
}
.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background-color: #00568c;
}

/* ================== */
/* "ABOUT US" STYLES */
/* ================== */
.content-card {
    background: #fff;
    padding: 40px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.content-card h1 {
    text-align: left;
    margin-top: 0;
}

.story-text {
    font-size: 1.2em;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ================== */
/* FOOTER & MODAL */
/* ================== */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #999;
}

.modal-hidden {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--text-dark);
}

#cart-items-list {
    margin: 20px 0;
    text-align: left;
    min-height: 50px;
}

.modal-notes-section {
    margin-top: 15px;
}

.modal-shipping-note {
    text-align: center;
    font-size: 1.1em;
    color: #006400;
    background-color: #f0fff0;
    border: 1px solid #c0eec0;
    padding: 10px;
    border-radius: 5px;
}

.modal-comment-note {
    text-align: left;
    font-size: 0.9em;
    color: #444;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    line-height: 1.4;
}

.modal-address-note {
    text-align: left;
    font-size: 0.9em;
    color: #c66900; 
    background-color: #fff8e1; 
    border: 1px solid #ffecb3;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    line-height: 1.4;
}

/* NEW MODAL REFUND NOTE (Lines 560-568) */
.modal-refund-note {
    text-align: center;
    font-size: 1em;
    color: var(--secondary-color);
    background-color: #fff0f0;
    border: 1px solid #f9c0c0;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

#continue-shopping-button {
    background-color: #777;
    color: white;
}

#checkout-button {
    background-color: var(--primary-color); 
    color: white;
}