:root {
    --primary-light: #FFEBEE; /* Lightest red for backgrounds */
    --primary-main: #EF9A9A;  /* Main light red */
    --primary-dark: #C62828;  /* Darker red for accents/buttons */
    --secondary-bg: #FFF8E1;  /* Creamy background */
    --text-dark: #4B3832;     /* Dark brown for body text */
    --text-light: #FFFFFF;    /* White text */
    --accent-gold: #D4AF37;   /* Gold for highlights */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-strong: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--secondary-bg);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* General Section Styling */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-of-type(even) {
    background-color: var(--primary-light);
}

/* Buttons */
.btn-primary-gradient {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-main));
    border: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-light);
    text-decoration: none !important; /* Remove underline */
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
}
.btn-primary-gradient:hover {
    background: linear-gradient(45deg, var(--primary-main), var(--primary-dark));
    box-shadow: 0 6px 15px var(--shadow-medium);
    transform: translateY(-2px);
    color: var(--text-light);
}

.btn-outline-primary-dark {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    transition: all 0.3s ease;
    text-decoration: none !important; /* Remove underline */
    padding: 10px 20px;
    border-radius: 8px;
}
.btn-outline-primary-dark:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
    box-shadow: 0 4px 8px var(--shadow-light);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    z-index: 1030;
}
.navbar-brand .text-primary-dark {
    color: var(--primary-dark) !important;
}
.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-dark);
}
.navbar-nav .nav-link.active {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-dark);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.hero-section .container {
    z-index: 2;
}
.hero-section h1 {
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* About Us Section */
.about-us img {
    max-height: 450px;
    object-fit: cover;
}

/* Product Carousel Section */
.product-carousel-section .carousel-item {
    padding: 40px;
    background-color: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}
.product-carousel-section .carousel-item img {
    max-height: 400px;
    width: auto !important;
    object-fit: contain;
    margin: 0 auto;
}
.product-carousel-section .carousel-control-prev-icon, .product-carousel-section .carousel-control-next-icon {
    background-color: var(--primary-dark);
    border-radius: 50%;
    padding: 15px;
}
.product-carousel-section .carousel-indicators button {
    background-color: var(--primary-dark);
    opacity: 0.5;
}
.product-carousel-section .carousel-indicators button.active {
    opacity: 1;
}

/* All Products Section (Grid with Filter/Search) */
.product-card {
    background-color: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure equal height */
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.product-card .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.product-card .card-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}
.product-card .card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.product-card .btn {
    width: 100%;
}

.product-filter-btn.active {
    background-color: var(--primary-dark);
    color: var(--text-light);
}
.search-input-group .form-control {
    border-color: var(--primary-main);
}
.search-input-group .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-dark-rgb), 0.25);
    border-color: var(--primary-dark);
}

/* Why Choose Us Section */
.feature-card {
    background-color: var(--text-light);
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}
.feature-card i {
    color: var(--primary-dark);
}

/* Testimonials Section */
.testimonial-card {
    background-color: var(--text-light);
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}
.testimonial-card img {
    border: 2px solid var(--primary-main);
}
.testimonial-card .text-warning {
    color: var(--accent-gold) !important;
}

/* Contact Us Section */
.contact-info {
    background-color: var(--text-light);
    box-shadow: 0 10px 30px var(--shadow-light);
}
.contact-info i {
    color: var(--primary-dark);
}
.contact-info a {
    color: var(--text-dark);
}
.contact-info a:hover {
    color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: #333333 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
.site-footer h5 {
    color: var(--text-light);
}
.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: var(--text-light);
}

/* Cart Modal Styling */
#cartModal .modal-content, #checkoutModal .modal-content, #orderConfirmationModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 15px 40px var(--shadow-medium);
}
#cartModal .modal-header, #checkoutModal .modal-header, #orderConfirmationModal .modal-header {
    border-bottom: none;
    padding: 20px 25px;
}
#cartModal .modal-title, #checkoutModal .modal-title, #orderConfirmationModal .modal-title {
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}
#cartModal .modal-body, #checkoutModal .modal-body, #orderConfirmationModal .modal-body {
    padding: 25px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    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: 10px;
    margin-right: 20px;
    box-shadow: 0 2px 8px var(--shadow-light);
}
.cart-item-details {
    flex-grow: 1;
}
.cart-item-details h6 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}
.cart-item-details p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}
.cart-item-quantity select {
    width: 70px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.cart-item-subtotal {
    font-weight: 600;
    color: var(--primary-dark);
    width: 100px;
    text-align: right;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.cart-item-remove:hover {
    color: #c82333;
}

#cart-summary h4 {
    color: var(--primary-dark);
}

/* Checkout Form Modal */
#checkoutModal .form-label {
    font-weight: 500;
    color: var(--text-dark);
}
#checkoutModal .form-control, #checkoutModal .form-select {
    border-radius: 8px;
    border-color: #ddd;
}
#checkoutModal .form-control:focus, #checkoutModal .form-select:focus {
    border-color: var(--primary-main);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-main-rgb), 0.25);
}

/* Order Confirmation Modal */
#orderConfirmationModal .modal-body i {
    color: #28a745;
}
#orderConfirmationModal .modal-body p {
    color: var(--text-dark);
}

/* Cookie Banner */
.cookie-banner {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 1040; /* Above navbar */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.cookie-banner a {
    color: var(--text-light);
}
.cookie-banner .btn-light {
    background-color: var(--text-light);
    color: var(--primary-dark);
    font-weight: 600;
}
.cookie-banner .btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
}
.cookie-banner .btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
    section {
        padding: 60px 0;
    }
    .product-carousel-section .carousel-item {
        padding: 20px;
    }
    .product-carousel-section .carousel-item img {
        max-height: 250px;
        margin-bottom: 20px;
    }
    .product-carousel-section .carousel-item .text-md-start {
        text-align: center !important;
    }
    .navbar-nav {
        text-align: center;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner p {
        margin-bottom: 10px !important;
    }
    .cookie-banner div {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .cookie-banner .btn {
        flex-grow: 1;
        margin: 0 5px !important;
    }
    .product-card .card-text {
        min-height: unset; /* Remove min-height on smaller screens if needed */
    }
    .contact-info {
        padding: 30px !important;
    }
    .site-footer .col-lg-4 {
        text-align: center;
    }
    .site-footer ul {
        padding-left: 0;
    }
    .site-footer li {
        display: inline-block;
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .product-carousel-section .carousel-item {
        padding: 15px;
    }
    .product-carousel-section .carousel-item img {
        max-height: 200px;
    }
    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .cart-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .cart-item-details, .cart-item-quantity, .cart-item-subtotal {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .cart-item-remove {
        margin-left: 0;
        margin-top: 10px;
    }
    .search-input-group .btn {
        width: auto;
        flex-shrink: 0;
    }
    .search-input-group .form-control {
        flex-grow: 1;
    }
}
/* Wrapper for content to apply general padding */
.rightsCloudWrap {
    padding-top: 60px; /* Top padding for the wrapper */
    padding-bottom: 60px; /* Bottom padding for the wrapper */
    padding-left: 20px; /* Left padding for the wrapper */
    padding-right: 20px; /* Right padding for the wrapper */
    max-width: 1200px; /* Maximum width for content inside the wrapper */
    margin-left: auto; /* Center the wrapper horizontally */
    margin-right: auto; /* Center the wrapper horizontally */
}

/* Heading styles within the wrapper */
.rightsCloudWrap h1 {
    font-size: 2.8rem; /* Font size for H1 */
    margin-top: 0; /* No top margin for the first heading */
    margin-bottom: 0.5em; /* Bottom margin for H1 */
    line-height: 1.2; /* Line height for H1 */
}

.rightsCloudWrap h2 {
    font-size: 2.2rem; /* Font size for H2 */
    margin-top: 1.5em; /* Top margin for H2 */
    margin-bottom: 0.5em; /* Bottom margin for H2 */
    line-height: 1.3; /* Line height for H2 */
}

.rightsCloudWrap h3 {
    font-size: 1.8rem; /* Font size for H3 */
    margin-top: 1.5em; /* Top margin for H3 */
    margin-bottom: 0.5em; /* Bottom margin for H3 */
    line-height: 1.4; /* Line height for H3 */
}

.rightsCloudWrap h4 {
    font-size: 1.4rem; /* Font size for H4 */
    margin-top: 1.2em; /* Top margin for H4 */
    margin-bottom: 0.5em; /* Bottom margin for H4 */
    line-height: 1.5; /* Line height for H4 */
}

.rightsCloudWrap h5 {
    font-size: 1.2rem; /* Font size for H5 */
    margin-top: 1em; /* Top margin for H5 */
    margin-bottom: 0.5em; /* Bottom margin for H5 */
    line-height: 1.5; /* Line height for H5 */
}

/* Paragraph styles within the wrapper */
.rightsCloudWrap p {
    font-size: 1rem; /* Standard font size for paragraphs */
    margin-top: 0; /* No top margin for paragraphs */
    margin-bottom: 1em; /* Bottom margin for paragraphs */
    line-height: 1.7; /* Line height for paragraphs */
}

/* Unordered list styles within the wrapper */
.rightsCloudWrap ul {
    list-style: disc; /* Default disc style for unordered lists */
    margin-top: 1em; /* Top margin for lists */
    margin-bottom: 1em; /* Bottom margin for lists */
    padding-left: 25px; /* Indentation for list items */
}

/* List item styles within the wrapper */
.rightsCloudWrap li {
    font-size: 1rem; /* Font size for list items */
    margin-bottom: 0.5em; /* Bottom margin for individual list items */
    line-height: 1.6; /* Line height for list items */
}
