/* --- Global Color Palette & Variables --- */
:root {
    --bg-cream: #f9f5f0;
    --card-white: #ffffff;
    --text-muted: #8c857d;
    --brand-dark: #4a453e;
    --brand-accent: #d4e93c; /* Neon yellow-green */
    --input-border: #e2ddd6;
    --shadow-soft: 0 10px 30px rgba(74, 69, 62, 0.05);
}

body {
    background-color: var(--bg-cream);
    color: var(--brand-dark);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Shared Components --- */
.navbar {
    background-color: var(--card-white);
    border-bottom: 1px solid var(--input-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--brand-dark) !important;
    text-transform: uppercase;
}

/* --- SHOP PAGE STYLES --- */
.main-title {
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -1px;
}

#product-list .card {
    height: 100%; /* Ensure cards take up the same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--input-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--card-white);
}

#product-list .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

#product-list .card-img-top {
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Ensure images fit within the dimensions */
}

.btn-chewiwi {
    background-color: var(--brand-accent);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-chewiwi:hover {
    background-color: #c2d634;
    transform: translateY(-2px);
    color: #000;
}

/* --- CART PAGE STYLES --- */
.cart-container {
    background-color: var(--card-white);
    border-radius: 24px;
    border: 1px solid var(--input-border);
    box-shadow: var(--shadow-soft);
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0eeeb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid var(--input-border);
}

.product-name {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 2px;
}

/* Quantity Control */
.qty-control {
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    padding: 2px 6px;
    background: #fff;
}

.btn-qty {
    background-color: transparent;
    border: none;
    color: var(--brand-dark);
    font-weight: bold;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
}

.btn-qty:hover {
    color: var(--brand-accent);
    transform: scale(1.2);
}

 qty-input {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Trash & Action Buttons */
.btn-remove {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.btn-remove:hover {
    color: #ff6b6b;
}

.btn-checkout {
    background-color: ;
    color: #000;
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    border: none;
}

.btn-checkout:hover {
    background-color: #c2d634;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 233, 60, 0.3);
}

/* --- CHECKOUT PAGE STYLES --- */
.checkout-card, .summary-container {
    background-color: var(--card-white);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.custom-input {
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 15px;
}

.country-readonly {
    background-color: #f3f0ec !important;
    cursor: default;
}

.address-box {
    height: 120px;
    resize: none;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dashed-line {
    border-top: 1px dashed var(--input-border);
    opacity: 1;
}

.text-success {
    color: #2d5a27 !important;
}

.btn-place-order {
    background-color: var(--brand-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    background-color: #c2d634;
    transform: translateY(-2px);
}

/* --- Styles from product_details.html --- */
body {
    background-color: #f6f5ef;
    font-family: Arial, sans-serif;
}

.product-wrapper {
    border: 2px solid #6b4b2a;
    padding: 60px 40px;
    min-height: 100vh;
}

.main-image {
    width: 400px;
    height: 400px;
    border: 3px solid #c59b23;
    border-radius: 15px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.thumb {
    height: 90px;
    width: 90px;
    border: 3px solid #c59b23;
    background-color: #ddd;
    border-radius: 5px;
}

.product-title {
    color: #5b432e;
    font-weight: 800;
}

.price {
    color: #228b22;
    font-size: 2rem;
    font-weight: bold;
}

.desc-line {
    height: 16px;
    background-color: #000;
    border-radius: 20px;
    margin-bottom: 35px;
}

.quantity-box {
    border: 2px solid #9b7b2b;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.quantity-box button {
    border: none;
    background: transparent;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    font-weight: bold;
}

.quantity-box span {
    width: 50px;
    text-align: center;
    font-size: 1.5rem;
}

.cart-btn {
    background-color: #c8ff1a;
    border: 2px solid #9b7b2b;
    border-radius: 10px;
    width: 230px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Styles from homepage.html --- */
.hero-section {
    background-color: #e9e7d4;
    border: 2px solid #7b5b2b;
    border-top: none;
    padding: 50px 0;
}

.hero-left {
    background-color: #5b4a3b;
    color: white;
    padding: 40px;
    border-radius: 10px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-btn,
.view-btn,
.cart-btn {
    background-color: #c8ff1a;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 12px;
    padding: 10px 130px;
}

.hero-image {
    background-color: #ddd;
    height: 250px;
    border-radius: 10px;
}

.section-title {
    color: #c59b23;
    font-weight: bold;
}

.food-card {
    border: 3px solid #c59b23;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(to top, #8b6d3f, #f3efd5);
    transition: 0.3s;
}

.food-card:hover {
    transform: translateY(-5px);
}

.food-img {
    background-color: #ddd;
    height: 250px;
}

.footer {
    background-color: #5b432e;
    padding: 60px 0;
}

.footer-line {
    height: 6px;
    background-color: #f5f1d8;
    border-radius: 20px;
    margin-bottom: 20px;
}

.footer-bottom {
    height: 30px;
    background-color: #c8ff1a;
}
.btn-chewiwi:hover {
    background-color: #c2d634;
    transform: translateY(-2px);
    color: #000;
}

/* --- CART PAGE STYLES --- */
.cart-container {
    background-color: var(--card-white);
    border-radius: 24px;
    border: 1px solid var(--input-border);
    box-shadow: var(--shadow-soft);
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0eeeb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid var(--input-border);
}

.product-name {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 2px;
}

/* Quantity Control */
.qty-control {
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    padding: 2px 6px;
    background: #fff;
}

.btn-qty {
    background-color: transparent;
    border: none;
    color: var(--brand-dark);
    font-weight: bold;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
}

.btn-qty:hover {
    color: var(--brand-accent);
    transform: scale(1.2);
}

.qty-input {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Trash & Action Buttons */
.btn-remove {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.btn-remove:hover {
    color: #ff6b6b;
}

.btn-checkout {
    background-color: var(--brand-accent);
    color: #000;
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    border: none;
}

.btn-checkout:hover {
    background-color: #c2d634;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 233, 60, 0.3);
}

/* --- CHECKOUT PAGE STYLES --- */
.checkout-card, .summary-container {
    background-color: var(--card-white);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.custom-input {
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 15px;
}

.country-readonly {
    background-color: #f3f0ec !important;
    cursor: default;
}

.address-box {
    height: 120px;
    resize: none;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dashed-line {
    border-top: 1px dashed var(--input-border);
    opacity: 1;
}

.text-success {
    color: #2d5a27 !important;
}

.btn-place-order {
    background-color: var(--brand-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    background-color: #c2d634;
    transform: translateY(-2px);
}

.bottom-info {
    background: linear-gradient(180deg, #fff, #f3f0ec);
}

.bottom-card {
    background: white;
    border: 1px solid var(--input-border);
    transition: 0.3s ease;
}

.bottom-card:hover {
    transform: translateY(-5px);
}

.placeholder-box {
    width: 100%;
    height: 120px;
    background: #e9e4dd;
    border-radius: 12px;
}
