/* Global Styles */
:root {
    --primary-color: #8B4513; /* SaddleBrown - a rich coffee color */
    --secondary-color: #D2B48C; /* Tan - a lighter coffee tone */
    --light-coffee: #F5DEB3; /* Wheat - very light coffee background */
    --dark-coffee: #4A2C2A; /* Darker brown for text/elements */
    --text-color: #333;
    --text-muted-custom: #6c757d; /* Custom muted text color */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-coffee);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-coffee);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6a340f;
    border-color: #6a340f;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.bg-light-coffee {
    background-color: var(--light-coffee);
}

.text-dark-coffee {
    color: var(--dark-coffee) !important;
}

.text-muted-custom {
    color: var(--text-muted-custom) !important;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Navbar */
.header {
    z-index: 1030;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: var(--dark-coffee);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.offcanvas-header {
    background-color: var(--primary-color);
    color: white;
}

.offcanvas-title {
    color: white;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Adaptive Typography */
.display-3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Mobile: ~2.5rem, Desktop: ~3.5rem */
}

.display-5 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Mobile: ~1.8rem, Desktop: ~2.8rem */
}

.fs-4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem) !important; /* Mobile: ~1.25rem, Desktop: ~1.5rem */
}

.fs-5 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem) !important; /* Mobile: ~1.1rem, Desktop: ~1.25rem */
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px; /* Adjust for fixed header */
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

.spotlight-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.spotlight-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.spotlight-item.active {
    opacity: 1;
}

.countdown-timer {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-coffee);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.countdown-timer h3 {
    color: var(--primary-color);
}

.timer-box {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    min-width: 80px;
}

.timer-box small {
    font-size: 0.75rem;
}

/* Sections General */
section {
    padding: 4rem 0;
}

/* About Us Section */
#about img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Our Advantages Section */
.advantage-card {
    border: 1px solid var(--secondary-color);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* Products Section */
.product-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 200px; /* Fixed height for product images */
    object-fit: cover;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .price {
    color: var(--primary-color);
}

.add-to-cart-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shipping Zones Comparison */
.shipping-chart {
    height: 320px;
    border: 1px solid var(--secondary-color);
}

.chart-bar {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.chart-bar .bar {
    width: 60%;
    background-color: var(--primary-color);
    border-radius: 0.25rem 0.25rem 0 0;
    transition: height 1s ease-out;
}

/* Delivery Information */
.delivery-card {
    border: 1px solid var(--secondary-color);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* Guarantee & FAQ */
.accordion-button {
    color: var(--dark-coffee);
    background-color: #fff;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-color);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(175deg) brightness(0.8); /* Adjust icon color */
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1) grayscale(100%) brightness(200%); /* White icon for active state */
}

.accordion-item {
    border: 1px solid var(--secondary-color);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-coffee);
    color: white;
}

.footer a {
    color: var(--secondary-color);
}

.footer a:hover {
    color: var(--primary-color);
}

/* Modals (Cart, Checkout, Order Confirmation) */
.modal-content {
    border-radius: 0.75rem;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
}

.modal-body {
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    margin-bottom: 0.25rem;
    color: var(--dark-coffee);
}

.cart-item-details .text-muted-custom {
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls .form-select {
    width: 70px;
}

.cart-item-controls .btn-danger {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

#cartTotal {
    color: var(--primary-color);
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1040; /* Above modals */
    max-width: 350px;
    animation-duration: 0.5s;
    border: 1px solid var(--secondary-color);
}

.cookie-banner h5 {
    color: var(--dark-coffee);
}

#cookieSettingsModal {
    z-index: 1050; /* Above cookie banner */
}

#cookieSettingsModal .modal-header {
    background-color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link, #openCartBtn {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
    }
    #openCartBtn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 500px;
        padding-top: 90px;
    }
    .display-3 {
        font-size: 2rem;
    }
    .lead {
        font-size: 1rem;
    }
    .timer-box {
        min-width: 60px;
        padding: 0.5rem;
    }
    .timer-box span {
        font-size: 1.5rem;
    }
    .timer-box small {
        font-size: 0.6rem;
    }
    .product-card img {
        height: 150px;
    }
    .product-card .price {
        font-size: 1.25rem;
    }
    .add-to-cart-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    .chart-bar {
        width: 23%; /* Adjust for smaller screens */
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
    }
    .cart-item-details h6 {
        font-size: 0.9rem;
    }
    .cart-item-controls .form-select {
        width: 60px;
        font-size: 0.875rem;
    }
    .cart-item-controls .btn-danger {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .display-3 {
        font-size: 2.8rem;
    }
    .display-5 {
        font-size: 2.2rem;
    }
    .fs-4 {
        font-size: 1.35rem !important;
    }
    .fs-5 {
        font-size: 1.15rem !important;
    }
    .hero-section {
        padding-top: 100px;
    }
}

@media (min-width: 1024px) {
    .display-3 {
        font-size: 3.5rem;
    }
    .display-5 {
        font-size: 2.8rem;
    }
    .fs-4 {
        font-size: 1.5rem !important;
    }
    .fs-5 {
        font-size: 1.25rem !important;
    }
}
/*
 * New stock typography styles for .secureTermsHub content.
 * These styles are designed to provide basic readability and structure
 * without overly large heading sizes.
 */

.secureTermsHub {
    /* Padding for the main content container */
    padding: 40px 20px; /* Top/bottom padding 40px, left/right padding 20px */
    max-width: 960px; /* Optional: Sets a max-width for better readability on wide screens */
    margin: 0 auto; /* Optional: Centers the container if max-width is applied */
}

.secureTermsHub h1 {
    /* H1 heading styles */
    font-size: 2em; /* Relative to parent font-size, e.g., 32px if base is 16px */
    font-weight: 700; /* Bold */
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #333; /* A common dark grey for text */
}

.secureTermsHub h2 {
    /* H2 heading styles */
    font-size: 1.75em;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    color: #333;
}

.secureTermsHub h3 {
    /* H3 heading styles */
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    color: #333;
}

.secureTermsHub h4 {
    /* H4 heading styles */
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    color: #333;
}

.secureTermsHub h5 {
    /* H5 heading styles */
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    color: #333;
}

.secureTermsHub p {
    /* Paragraph styles */
    font-size: 1em; /* Standard paragraph font size */
    line-height: 1.6; /* Good for readability */
    margin-bottom: 1em; /* Space after each paragraph */
    color: #444; /* Slightly lighter grey for body text */
}

.secureTermsHub ul {
    /* Unordered list styles */
    list-style-type: disc; /* Standard bullet points */
    padding-left: 1.5em; /* Indentation for bullet points */
    margin-bottom: 1em; /* Space after the list */
    color: #444;
}

.secureTermsHub li {
    /* List item styles */
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 0.5em; /* Space between list items */
    color: #444;
}

main{
    overflow: hidden !important;
}

.modal-backdrop.show{
    z-index: 100;
}