/* Global Styles */
:root {
    --primary-color: #F8C8DC; /* Soft Rose Pink */
    --secondary-color: #A2D9CE; /* Soft Teal */
    --dark-color: #333333;
    --light-bg-color: #FDF5E6; /* Old Lace */
    --white-color: #FFFFFF;
    --text-color: #333333;
}

hmtl, body{
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg-color);
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
}

.text-white {
    color: var(--white-color);
}

.display-1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.display-4 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.display-5 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.h4 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.site-name {
    font-size: clamp(1.25rem, 5vw, 1.8rem);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
}

.navbar-brand .site-name {
    color: var(--dark-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border-color: rgba(0,0,0,.1);
}

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

.btn-primary:hover {
    background-color: #e0b4c8;
    border-color: #e0b4c8;
    color: var(--dark-color);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-success:hover {
    background-color: #8ac0b5;
    border-color: #8ac0b5;
    color: var(--dark-color);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: var(--white-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.bg-light-pink {
    background-color: #FFF0F5; /* Lavender Blush */
}

/* Navbar */
.navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1030;
}

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

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

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

.offcanvas-title {
    color: var(--white-color);
}

.offcanvas-body .nav-link {
    color: var(--dark-color);
}

.offcanvas-body .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-image: url('assets/graphics/hero-flowers-field.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding-top: 70px; /* Adjust for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Product Showcase Slider */
#product-showcase .carousel-item {
    height: 500px;
}

#product-showcase .carousel-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

#product-showcase .carousel-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

#product-showcase .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    padding-bottom: 3rem;
    text-align: center;
}

#product-showcase .carousel-control-prev-icon,
#product-showcase .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 1rem;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.product-img {
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.card-text {
    min-height: 100px; /* Ensure consistent height for descriptions */
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white-color);
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-card .bi-quote {
    color: var(--primary-color);
}

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

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

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

/* Cart Offcanvas */
#cartOffcanvas .offcanvas-header {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#cartOffcanvas .offcanvas-title {
    color: var(--white-color);
}

.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.25rem;
    margin-right: 1rem;
}

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

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.cart-item-price,
.cart-item-subtotal {
    font-size: 0.9rem;
    color: #555;
}

.cart-item-quantity {
    width: 60px;
    margin: 0 0.5rem;
}

#checkout-form-container {
    background-color: var(--white-color);
}

#order-confirmation-message {
    background-color: #d4edda;
    color: #155724;
}

/* Add to Cart Modal */
#addToCartModal .modal-header {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#addToCartModal .modal-title {
    color: var(--white-color);
}

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

/* Cookie Banner */
.cookie-banner {
    z-index: 1040;
    background-color: var(--dark-color) !important;
    color: var(--white-color) !important;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.cookie-banner a {
    color: var(--secondary-color) !important;
    font-weight: bold;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1020;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .navbar-collapse.show {
        right: 0;
    }

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

    .navbar-nav .nav-item {
        margin-bottom: 1rem;
    }

    .navbar-toggler {
        display: block;
    }

    .offcanvas-end {
        width: 80%;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
    }

    .display-1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .display-4 {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .display-5 {
        font-size: clamp(1.2rem, 7vw, 2rem);
    }

    .h4 {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }

    .site-name {
        font-size: clamp(1rem, 6vw, 1.5rem);
    }

    #product-showcase .carousel-item {
        height: 300px;
    }

    #product-showcase .carousel-caption {
        padding-bottom: 1rem;
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .cookie-banner .d-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner .d-flex > * {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .cookie-banner .d-flex > *:last-child {
        margin-bottom: 0;
    }

    .card-text {
        min-height: auto;
    }
}
/* Parent container for terms and conditions */
.termsCaveBox {
    padding: 40px 25px; /* Top/bottom padding 40px, left/right padding 25px */
    /* You might want to add a max-width or background-color here if needed,
       but the request only specified padding. */
}

/* Heading 1 styles - Not excessively large */
.termsCaveBox h1 {
    font-size: 28px; /* Slightly larger than body, but not huge */
    line-height: 1.2; /* Tighter line height for headings */
    font-weight: 700; /* Bold */
    margin-top: 30px; /* Space above heading */
    margin-bottom: 15px; /* Space below heading */
}

/* Heading 2 styles */
.termsCaveBox h2 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Heading 3 styles */
.termsCaveBox h3 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Heading 4 styles */
.termsCaveBox h4 {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
}

/* Heading 5 styles */
.termsCaveBox h5 {
    font-size: 17px; /* Slightly larger than paragraph text */
    line-height: 1.5;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
}

/* Paragraph styles */
.termsCaveBox p {
    font-size: 16px; /* Standard body text size */
    line-height: 1.6; /* Good readability */
    margin-top: 0; /* No top margin by default, let headings handle spacing */
    margin-bottom: 1em; /* Space between paragraphs */
}

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

/* Ordered list styles (often used with ul/li, good to include for completeness) */
.termsCaveBox ol {
    list-style-type: decimal; /* Default numbers */
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 25px;
}

/* List item styles */
.termsCaveBox li {
    font-size: 16px; /* Inherit or explicitly set */
    line-height: 1.6; /* Consistent with paragraph line height */
    margin-bottom: 0.5em; /* Space between list items */
}
