/* Global Styles */
:root {
    --primary-color: #64B5F6; /* Light Blue */
    --secondary-color: #2196F3; /* Medium Blue */
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

/* Adaptive Typography for Headings */
h1 {
    font-size: 2.5rem; /* Desktop */
}
h2 {
    font-size: 2.2rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.2rem; /* Tablet */
    }
    h2 {
        font-size: 2rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem; /* Mobile */
        line-height: 1.2;
    }
    h2 {
        font-size: 1.6rem; /* Mobile */
    }
    .site-name {
        font-size: 1rem!important; /* Mobile */
    }
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.navbar-toggler {
    border: none;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

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

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background-image: url('assets/content/water-splash-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 100px; /* Adjust for fixed header */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    z-index: 1;
}

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

.hero-image {
    max-width: 600px;
    margin-top: 2rem;
    height: auto;
}

/* About Us Section */
.about-us-section {
    background-color: var(--light-bg);
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
    height: 380px; /* Fixed height for product images */
    object-fit: cover;
    width: 100%;
    padding: 15px;
}
@media (max-width:767px) {
    .product-card .card-img-top {
        object-fit: contain;
    }
}
.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    min-height: 3rem; /* Ensure consistent title height */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Why Choose Us & Payment Methods & Contact Info Sections */
.why-choose-us-section .rounded, .payment-methods-section .rounded, .contact-info-section .rounded {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.why-choose-us-section .rounded:hover, .payment-methods-section .rounded:hover, .contact-info-section .rounded:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.why-choose-us-section i, .payment-methods-section i, .contact-info-section i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #343a40 !important;
    padding-bottom: 70px; /* Adjust for cookie banner */
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: #fff;
}

/* Cart Modal */
#cartModal .modal-header, #checkoutModal .modal-header, #orderConfirmationModal .modal-header {
    border-bottom: 1px solid #eee;
}

#cartModal .modal-footer, #checkoutModal .modal-footer, #orderConfirmationModal .modal-footer {
    border-top: 1px solid #eee;
}

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

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

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

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

.cart-item-details h6 {
    margin-bottom: 0.25rem;
}

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

.cart-item-quantity select {
    width: 60px;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

.cart-button .cart-count {
    font-size: 0.75rem;
    vertical-align: super;
    margin-left: 0.25rem;
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1070; /* Higher than Bootstrap modals (1050) */
}

@media (max-width: 767px) {
    .cookie-banner .container {
        flex-direction: column;
    }
    .cookie-banner p {
        margin-bottom: 1rem !important;
    }
    .cookie-banner .btn {
        width: 100%;
    }
    .cookie-banner .btn:first-child {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Ensure buttons do not clip text */
.btn {
    white-space: normal;
    word-break: break-word;
    text-align: center;
    text-decoration: none;
}

/* Mobile navigation adjustments */
@media (max-width: 1199px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        height: fit-content;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    .cart-button {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 1rem;
    }
    .offcanvas-body {
        display: flex;
        flex-direction: column;
    }

}
@media (min-width:1200px) {
        .navbar-nav{
            flex-grow: 1    ;
        }
}
/* Base padding for the legal content container */
.legalFoldBox {
    padding: 20px 25px; /* Top/bottom and left/right padding for the content box */
}

/* Heading 1 styles */
.legalFoldBox h1 {
    font-size: 28px; /* Moderate size for main headings */
    font-weight: 700; /* Bold for prominence */
    line-height: 1.2; /* Tighter line spacing for headings */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
}

/* Heading 2 styles */
.legalFoldBox h2 {
    font-size: 24px; /* Slightly smaller than h1 */
    font-weight: 600; /* Moderately bold */
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* Heading 3 styles */
.legalFoldBox h3 {
    font-size: 20px; /* Further reduced size */
    font-weight: 500; /* Medium boldness */
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
}

/* Heading 4 styles */
.legalFoldBox h4 {
    font-size: 18px; /* Closer to body text size */
    font-weight: 500;
    line-height: 1.3;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
}

/* Heading 5 styles */
.legalFoldBox h5 {
    font-size: 16px; /* Same as body text, but bold */
    font-weight: 500;
    line-height: 1.4;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

/* Paragraph styles */
.legalFoldBox p {
    font-size: 16px; /* Standard body text size */
    line-height: 1.6; /* Good readability for body text */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.legalFoldBox ul {
    list-style-type: disc; /* Default disc bullets */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for bullet points */
}

/* List item styles */
.legalFoldBox li {
    font-size: 16px; /* Inherit or set explicitly for consistency */
    line-height: 1.5; /* Line height for list items */
    margin-bottom: 0.5em; /* Space between list items */
}
