/* ==========================================================================
   Table of Contents
   ==========================================================================
   1. Full Site Styles
      - Body & Typography 
      - Navigation Bar Desktop
      - Navigation Mobile
      - Footer
   2. Home Page Styles (index.html)
      - Main Image Section & Quote
      - Image Grid Section
   3. Shop Pages Style (all shop pages)
      - Product Cards
      - Color Options & Icons
      - Star Ratings
      - Product Modal
   4. Products Page Styles (products.html)
      - (Primarily uses Image Grid styles from Index)
   5. Contact Page Styles (contact.html)
      - Page Layout & Headers
      - Form Styles & Validation Feedback
      - Map Area
      - Contact Info Address Block
      - Equal Height Columns
   6. About Page Styles (about.html)
      - Page Layout & Headers
      - Profile Sections
      - Added Image Style
   7. Modal Styles For Pop Up
   8. Home Page Popup Modal Styles
   9. Media Queries & Responsive Styles
      - Adjustments for different screen sizes
   ========================================================================== */

/* ==========================================================================
   1. Global Styles
   ========================================================================== */

/* --- Body & Typography Defaults --- */
body {
    font-family: 'Cambria', 'Georgia', serif;
    background-color: #E5E7E6;
    color: #333;
}

.index-body,
.shop-body,
.products-body,
.contact-body,
.about-body {
    padding-bottom: 170px; 
}

.index-body {
    margin-top: 70px; 
}
.shop-body,
.products-body,
.contact-body,
.about-body {
    padding-top: 70px;
    margin-top: 0;
}


/* --- Navigation Bar (Desktop) --- */
.navbar {
    background-color: #E5E7E6 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 15px;
}

.navbar-nav .nav-link {
    color: #333;
    transition: color 0.3s ease;
    font-weight: bold;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1.1rem; 
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #8A3324;
    text-decoration: none; 
}

.navbar-nav .nav-link.active {
    color: #E9692C;
    text-decoration: none;
}

.navbar .d-flex .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    color: #333;
}
.navbar .d-flex .nav-link:hover {
    color: #8A3324;
}

/* --- Desktop Search Bar --- */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    cursor: pointer;
    margin-right: 10px;
    transition: opacity 0.2s ease-in-out;
    font-size: 1.1rem;
}

.search-icon:hover {
    opacity: 0.8;
}

.search-input-wrapper {
    position: relative;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
}

.search-input-wrapper.active {
    position: relative;
    z-index: 1031; 
    background-color: #E5E7E6; 
    width: 200px;
    overflow: visible;
}

.search-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9rem;
    width: 100%;
    box-shadow: none;
    position: relative;
    z-index: 1; 
}

.search-input:focus {
    outline: none;
    border-color: #8A3324;
    box-shadow: 0 0 0 0.2rem rgba(138, 51, 36, 0.25);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1050; 
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.search-suggestions a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestions a:hover {
    background-color: #f0f0f0;
}


/* --- Cart Dropdown  --- */
.navbar .d-flex .dropdown-toggle {
     color: #333;
     position: relative;
     font-size: 1.1rem;
}
.navbar .d-flex .dropdown-toggle::after {
    display: none;
}
.navbar .d-flex .dropdown-toggle:hover {
    color: #8A3324;
}

.cart-item-count { 
    position: absolute;
    top: -5px;
    right: -8px; 
    background-color: #E9692C;
    color: white;
    border-radius: 50%;
    padding: 0.1em 0.4em;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    min-width: 1.2em; 
    text-align: center;
    display: none; 
    z-index: 1;
}

.cart-dropdown-menu {
    min-width: 320px;
    max-width: 350px;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cart-dropdown-menu .dropdown-header {
    font-weight: bold;
    padding: 10px 15px;
}
#cart-items-container {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 3px;
}

.cart-item-details {
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-options {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 5px;
    line-height: 1;
    margin-left: 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.remove-item-btn:hover {
    color: #a71d2a;
    opacity: 1;
}

.cart-dropdown-menu .checkout-btn {
    font-weight: bold;
    display: block;
    margin: 10px 15px 5px 15px;
    text-align: center;
    padding: 8px;
}


/* --- Navigation Mobile --- */
.offcanvas {
    width: 75%;
    max-width: 300px;
    background-color: #E5E7E6;
    border-right: 1px solid #ccc;
}

.offcanvas-header {
    background-color: #E5E7E6;
    border-bottom: 1px solid #ccc;
}
.offcanvas-title img {
    max-height: 60px;
}

.offcanvas-body .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 1.1rem;
    color: #333;
}
.offcanvas-body .navbar-nav .nav-link.active {
    color: #E9692C;
    background-color: rgba(0,0,0,0.05);
}
.offcanvas-body .navbar-nav .nav-link:hover {
    color: #8A3324;
    background-color: rgba(0,0,0,0.03);
}

.offcanvas .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.125rem;
    position: static;
    width: 100%;
}

.offcanvas .dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #212529;
    background-color: transparent;
    border: 0;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.offcanvas .dropdown-item:hover,
.offcanvas .dropdown-item:focus {
    background-color: #e9ecef;
    color: #1e2125;
}

.search-container-mobile .input-group .input-group-text {
    background-color: #fff; 
    border-left: 0;
}

/* Mobile Search Suggestions Dropdown */
.search-suggestions-mobile {
    display: none;
    position: absolute; 
    left: 0;
    right: 0; 
    top: 100%; 
    z-index: 1055; 
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-suggestions-mobile .list-group-item {
    font-size: 0.9rem; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none; 
    border-bottom: 1px solid #eee; 
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    cursor: pointer; 
}
.search-suggestions-mobile .list-group-item:last-child {
    border-bottom: none;
}
.search-suggestions-mobile .list-group-item:hover {
    background-color: #f0f0f0;
}

/* Mobile Cart Icon Adjustments */
.mobile-cart-icon {
    position: relative; 
    display: inline-block;
    color: #333; 
}
.mobile-cart-icon:hover {
     color: #8A3324;
}

/* --- Footer --- */
footer {
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40;
    padding: 1rem 0;
    z-index: 100; 
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* ==========================================================================
   2. Index Page Styles (index.html)
   ========================================================================== */

/* --- Main Image Section --- */
.main-image-section {
    padding-bottom: 0;
    position: relative;
    height: 70vh;
    overflow: hidden;
    background-color: #E5E7E6;
}

.main-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- Quote Overlay --- */
.quote-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    width: 85%;
    max-width: 750px;
    border-radius: 5px;
}

.last-word {
    font-weight: bold;
    font-size: 3rem;
    display: block;
    margin-top: 10px;
    color: #E9692C;
}

/* --- Image Grid Section (Used on Index & Products) --- */
.image-grid-section {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #E5E7E6;
}

.image-grid-item {
    margin-bottom: 30px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-container:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.image-container:hover img {
    transform: scale(1.06);
}

.image-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
}

.image-title::before,
.image-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.4s ease-out; 
}

/* Position and Gradient for the top line */
.image-title::before {
    top: -6px;
    transform-origin: left;
    background: linear-gradient(to right, #FFF000, #E9692C); 
}

/* Position and Gradient for the bottom line */
.image-title::after {
    bottom: -6px; 
    transform-origin: right;
    background: linear-gradient(to left, #FFF000, #E9692C);
}

.image-container:hover .image-title::before,
.image-container:hover .image-title::after {
    transform: scaleX(1);
}


/* ==========================================================================
   3. Shop Page Styles (shop.html)
   ========================================================================== */

/* --- Product Cards --- */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 8px 8px 0 0;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
}

.card-body {
     padding: 1rem;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
     text-align: center;
}

.item-details {
    margin-top: auto;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.card-title a.product-link {
     color: #333;
     text-decoration: none;
     transition: color 0.2s ease;
}
.card-title a.product-link:hover {
    color: #8A3324;
}

.card-text {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.5rem;
}

.card-text small.text-muted {
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

/* --- Color Options (on Card) --- */
.color-options {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.color-icon {
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 50%;
    border: 1px solid #ccc;
    line-height: 1;

    display: inline-block;
}
.color-icon::before {
    display: block;
    transform: scale(0.8);
}

.color-icon:hover {
    transform: scale(1.2);
}

/* --- Star Ratings (on Card) --- */
.star-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.star-rating i {
    margin: 0 1px;
    cursor: pointer;
    font-size: 0.9rem;
}

.star-rating .rating-value {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 5px;
}

/* --- Product Modal Specific Styles --- */
.modal-content {
    border-radius: 8px;
    border: none;
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}
.modal-body {
    padding: 0;
}
.modal-body > .row > div {
    padding: 1.5rem;
}

.modal-product-image {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 5px;
}

.modal-product-title {
    margin-bottom: 0.75rem;
    font-size: 1.7rem;
    font-weight: bold;
    color: #333;
}

.modal-product-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.modal-star-rating {
    margin-bottom: 1.5rem;
    color: #ffc107;
}

.modal-star-rating .modal-star {
    cursor: pointer;
    margin-right: 0.2rem;
    font-size: 1.2rem;
}
.modal-star-rating .modal-rating-value {
     font-size: 1rem;
     color: #6c757d;
     margin-left: 8px;
}

.modal-color-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-color-icon {
    font-size: 1.8rem;
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 50%;
    padding: 0.1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 1;
}
.modal-color-icon::before {
     display: block;
     transform: scale(0.8);
}

.modal-color-icon.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

#sizeChoice {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.modal-product-price {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #000;
}

#productModal .add-to-cart-btn { 
    background-color: #E9692C;
    border-color: #E9692C;
    color: #ffffff;
    --bs-btn-bg: #E9692C;
    --bs-btn-border-color: #E9692C;
    --bs-btn-hover-bg: #d65a1a;
    --bs-btn-hover-border-color: #c65014;
    --bs-btn-active-bg: #c65014;
    --bs-btn-active-border-color: #b84a10;
    --bs-btn-focus-shadow-rgb: 233, 105, 44;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
}


/* ==========================================================================
   4. Products Page Styles (products.html)
   ========================================================================== */


/* ==========================================================================
   5. Contact Page Styles (contact.html)
   ========================================================================== */

/* --- Page Layout & Headers --- */
.contact-section-title {
    padding-top: 0;
    margin-top: 0;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 3px solid #E9692C;
    padding-bottom: 0.75rem;
    display: inline-block; 
}

.contact-body main.container .row > div { 
    margin-bottom: 1.5rem;
}
/* Responsive adjustments for row spacing */
@media (min-width: 768px) {
    .contact-body main.container .row > div {
         margin-bottom: 0; 
    }

     .contact-body main.container .row:first-of-type {
        margin-bottom: 3rem;
    }
}

/* --- Form Styles & Validation --- */
#infoForm {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left; 
}

#infoForm .text-danger {
    font-size: 1rem;
    margin-left: 2px;
    color: #dc3545;
    vertical-align: middle;
}

#infoForm .form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
    text-align: left; 
}
/* Bootstrap validation display */
.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

#successMessage {
    display: none;
    text-align: left;
}

/* --- Map Area --- */
#map {
    display: block;
    max-width: 100%;
    width: 100%;
    border: 1px solid #ccc !important;
    border-radius: 8px;
    min-height: 400px;
}

/* --- Contact Info Address Block --- */
.contact-body address { 
    font-style: normal;
    line-height: 1.7;
    color: #555;
    margin-top: 0.5rem;
}

/* Style the company name */
.contact-body address .company-name {
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

/* Style the links */
.contact-body address a {
    color: #000000; 
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-body address a:hover {
    color: #555;
    text-decoration: underline;
}

/* --- Make Map and Form Columns Equal Height --- */
.contact-column {
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column;
}

.contact-column iframe#map {
   border: 1px solid #dee2e6 !important; 
   min-height: 450px; 
   border-radius: 5px; 
}

.contact-column form {
    text-align: left; 
}

.contact-column #successMessage,
.contact-column .invalid-feedback {
     text-align: left;
}


/* ==========================================================================
   6. About Page Styles (about.html)
   ========================================================================== */

/* --- Page Layout & Headers --- */
.about-body .col-md-6 > h2 {
    padding-top: 50px;
    margin-top: 0;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 3px solid #E9692C;
    padding-bottom: 0.75rem;
    display: inline-block;
}

/* --- Styles for the image --- */
.about-page-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Profile Sections --- */
.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 50%;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: #E9692C;
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.about-body h4 {
    font-weight: bold;
    margin-top: 0;
}
.about-body .text-center p { 
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left; 
    padding-left: 1rem;
    padding-right: 1rem;
}

.blockquote {
    font-size: 1.1rem;
    font-style: italic;
    border-left: 4px solid #E9692C;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    margin-top: 1.5rem;
    border-radius: 5px;
}

.blockquote-footer {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* ==========================================================================
   7. Modal Styles (General & Specific)
   ========================================================================== */

/* Add padding INSIDE the checkout modal body */
#checkoutModal .modal-body {
    padding: 1.5rem;
}

/* Style the Place Order button in the checkout modal */
#checkoutModal .modal-body button.btn-primary {
    background-color: #E9692C;
    border-color: #E9692C; 
    color: #ffffff;         
    --bs-btn-bg: #E9692C;
    --bs-btn-border-color: #E9692C;
    --bs-btn-hover-bg: #d65a1a;        
    --bs-btn-hover-border-color: #c65014; 
    --bs-btn-active-bg: #c65014;      
    --bs-btn-active-border-color: #b84a10; 
    --bs-btn-focus-shadow-rgb: 233, 105, 44; 
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Ensure text within modal body aligns left if needed */
#checkoutModal .modal-body,
#checkoutModal .modal-body h6,
#checkoutModal .modal-body label {
    text-align: left;
}
#checkoutModal .modal-body #checkout-total {
    text-align: right;
}

#checkoutModal .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 100px);
    overflow: hidden;
}
#checkoutModal .modal-dialog-scrollable .modal-body {
   overflow-y: auto;
}

/* ==========================================================================
   8. Popup Modal Styles
   ========================================================================== */

#welcomePopupModal .popup-image {
    height: 100%;
    object-fit: cover;
    border-radius: var(--bs-modal-inner-border-radius) 0 0 var(--bs-modal-inner-border-radius);
}

#welcomePopupModal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    border: none;
    padding: 0.5rem;
}

#welcomePopupModal .btn-close {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 0.4em;
    margin: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#welcomePopupModal .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.9);
}


#welcomePopupModal .col-md-6 .d-flex { 
    padding: 2rem;
}

#popupEmailError {
    width: 100%;
    text-align: left;
}
#popupEmailInput.is-invalid {
    border-color: #dc3545;
}

/* Style the Continue button in the welcome popup */
#welcomePopupModal .btn-primary {
    background-color: #E9692C; 
    border-color: #E9692C;    
    color: #ffffff;          
    font-size: var(--bs-btn-font-size-lg); 
    line-height: var(--bs-btn-line-height); 
    padding-top: 0.8rem; 
    padding-bottom: 0.8rem; 
    padding-left: var(--bs-btn-padding-x-lg);
    padding-right: var(--bs-btn-padding-x-lg);
    border: radius 0.3em;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


/* ==========================================================================
   9. Media Queries & Responsive Styles
   ========================================================================== */

/* --- Medium devices (tablets, 768px and up) --- */
@media (min-width: 768px) {
    footer {
        text-align: left;
    }

    .main-image-section .col-md-8 {
        width: 66.666667%;
    }

    .quote-overlay {
        font-size: 2.5rem;
    }
    .last-word {
        font-size: 3.5rem;
    }
}

/* --- Large devices (desktops, 992px and up) --- */
@media (min-width: 992px) {
    .image-title {
        font-size: 1.8rem;
    }

    #welcomePopupModal .modal-lg {
        max-width: 850px;
    }
}


/* --- Extra small devices (portrait phones, less than 576px) --- */
@media (max-width: 575.98px) {
    .quote-overlay {
        font-size: 1.4rem;
        padding: 15px;
        width: 90%;
    }
    .last-word {
        font-size: 1.8rem;
    }

    .image-title {
        font-size: 1.3rem;
        padding: 8px 10px;
    }
    .image-title::before { top: -4px; height: 2px; }
    .image-title::after { bottom: -4px; height: 2px; }


    .index-body, .shop-body, .products-body, .contact-body, .about-body {
        padding-bottom: 220px;
    }

     footer .row > div {
         text-align: center !important;
         margin-bottom: 15px;
     }
     footer form {
         justify-content: center;
     }

      .about-body .col-md-6 > h2, 
      .contact-body .col-lg-10 > h2, 
      .contact-section-title { 
        font-size: 1.5rem;
        padding-top: 20px; 
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }


    .modal-dialog {
        margin: 0.5rem;
    }

    #welcomePopupModal .modal-dialog {
        margin: 0.5rem;
    }
     #welcomePopupModal .col-md-6 .d-flex {
        padding: 1.5rem;
    }
     #welcomePopupModal h4 { font-size: 1.3rem;}
     #welcomePopupModal p { font-size: 0.9rem;}
}

/* --- Small devices (landscape phones, 576px and up) --- */
@media (min-width: 576px) {
    .image-grid-item {
        margin-bottom: 30px;
    }
}

/* --- Medium devices (tablets, less than 992px) --- */
@media (max-width: 991.98px) {
    .navbar .d-flex.search-container {
        display: none !important;
    }

     .navbar-nav {
        align-items: flex-start;
        text-align: left;
    }


}

/* --- Responsive adjustments for About Page elements --- */
@media (max-width: 768px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .blockquote {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
     .about-body .col-md-6 > h2,
     .contact-section-title { 
        padding-top: 30px; 
        font-size: 1.6rem;
    }
}


/* --- Responsive adjustments for Product Modal --- */
@media (max-width: 768px) {
    #productModal .modal-dialog {
        margin: 0.5rem;
    }
    #productModal .modal-body .row {
        flex-direction: column;
    }
    #productModal .modal-body .col-md-6 {
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    #productModal .modal-body .col-md-6:last-child {
        margin-bottom: 0;
    }

    #productModal .modal-product-image {
        max-height: 250px;
    }
    #productModal .modal-product-title {
        font-size: 1.4rem;
    }
    #productModal .modal-product-price {
        font-size: 1.3rem;
    }
    #productModal .modal-star-rating .modal-star {
        font-size: 1.1rem;
    }
    #productModal .modal-color-icon {
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
     #productModal .add-to-cart-btn {
        width: 100%;
    }
}