/* Global Styles */
:root {
    --primary-purple: #6A0DAD;
    --secondary-red: #DC143C;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    box-sizing: border-box;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-purple);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .site-name {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    .site-name {
        font-size: 1.25rem !important;
    }
    .navbar-brand .logo-img {
        max-height: 30px !important;
    }
}

.site-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-purple);
}

/* Header/Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1030;
}

.navbar-brand {
    color: var(--primary-purple) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
}

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

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 600;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.1s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-red) !important;
}

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

.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%28106, 13, 173, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.navbar-nav {
    flex-wrap: nowrap;
}

@media (max-width: 1100px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    .navbar-collapse:not(.show) {
        display: none;
    }
}

.cart-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-button .bi-cart {
    font-size: 1.5rem;
}

.cart-icon-button .badge {
    position: absolute;
    top: 0px;
    right: 5px;
    font-size: 0.7em;
    padding: 0.3em 0.5em;
}

@media (max-width: 1100px) {
    .cart-icon-button {
        justify-content: flex-start;
        padding-left: 1rem;
    }
    .cart-icon-button .badge {
        position: static;
        margin-left: 0.5rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-image: url('photos/uploads/stationery-desk-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(106, 13, 173, 0.7), rgba(220, 20, 60, 0.7));
    z-index: 1;
}

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

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

.about-us img {
    max-width: 100%;
    height: auto;
}

/* Product Showcase */
.products-showcase {
    background-color: var(--light-bg);
}

.product-card {
    border: none;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

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

.product-card .card-img-top {
    height: 320px;
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--primary-purple);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    color: var(--dark-text);
    flex-grow: 1;
}

.product-price {
    font-size: 1.2rem;
    color: var(--secondary-red);
}

.btn-primary {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    transition: background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

.btn-primary:hover {
    background-color: #5a0a9a;
    border-color: #5a0a9a;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.25rem rgba(106, 13, 173, 0.25);
}

/* Why Choose Us Section */
.advantages-section {
    background-color: var(--white);
}

.advantage-item {
    background-color: var(--light-bg);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.advantage-item .icon-large {
    font-size: 3rem;
    color: var(--secondary-red);
}

.advantage-item h3 {
    color: var(--primary-purple);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Contact Us Section */
.contact-us {
    background-color: var(--light-bg);
}

.contact-info {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-info i {
    color: var(--primary-purple);
}

/* Footer */
footer {
    background-color: var(--primary-purple);
    color: var(--white);
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.1s ease-in-out;
}

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

/* Modals */
.modal-content {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.modal-header {
    background-color: var(--primary-purple);
    color: var(--white);
    border-bottom: none;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

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

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

.modal-body .icon-large-modal {
    font-size: 4rem;
}

.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-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 0.25rem;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
}

.cart-item-price {
    color: var(--secondary-red);
    font-weight: 600;
}

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

.cart-item-subtotal {
    font-weight: 600;
    color: var(--primary-purple);
    min-width: 80px;
    text-align: right;
}

.cart-summary {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

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

.btn-danger {
    background-color: var(--secondary-red);
    border-color: var(--secondary-red);
}

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

.btn-danger:focus,
.btn-danger.focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25);
}

/* Cookie Consent Modal specific styles */
#cookieConsentModal {
    z-index: 1060; /* Higher than other modals */
}

#cookieConsentModal .modal-header {
    background-color: var(--primary-purple);
    color: var(--white);
}

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

#cookieConsentModal .modal-footer {
    flex-wrap: wrap;
}

#cookieConsentModal .modal-footer > div {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 575px) {
    #cookieConsentModal .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    #cookieConsentModal .modal-footer > div {
        flex-direction: column;
        width: 100%;
    }
    #cookieConsentModal .modal-footer button {
        width: 100%;
    }
}

.btn {
    text-decoration: none !important;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

/* Responsive adjustments for buttons in cart */
@media (max-width: 575px) {
    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .cart-item-details {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: center;
    }
    .cart-item-subtotal {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}
/* Parent container styling */
.complianceCoreSlot {
    padding-top: 20px; /* Top padding for the slot content */
    padding-inline: 20px; /* Left and right padding for the slot content */
    /* You might want to add max-width or other layout styles here */
}

/* Heading 1 styling */
.complianceCoreSlot h1 {
    font-size: 2.2rem; /* Moderate size for H1, not excessively large */
    font-weight: 700; /* Bold font weight */
    line-height: 1.2; /* Good line height for readability */
    margin-block: 1.5rem 1rem; /* Top and bottom margin */
    color: #333; /* Default dark text color */
}

/* Heading 2 styling */
.complianceCoreSlot h2 {
    font-size: 1.8rem; /* Moderate size for H2 */
    font-weight: 700;
    line-height: 1.3;
    margin-block: 1.4rem 0.9rem;
    color: #333;
}

/* Heading 3 styling */
.complianceCoreSlot h3 {
    font-size: 1.5rem; /* Moderate size for H3 */
    font-weight: 700;
    line-height: 1.3;
    margin-block: 1.3rem 0.8rem;
    color: #333;
}

/* Heading 4 styling */
.complianceCoreSlot h4 {
    font-size: 1.2rem; /* Moderate size for H4 */
    font-weight: 700;
    line-height: 1.4;
    margin-block: 1.2rem 0.7rem;
    color: #333;
}

/* Heading 5 styling */
.complianceCoreSlot h5 {
    font-size: 1.1rem; /* Moderate size for H5, slightly larger than body text */
    font-weight: 700;
    line-height: 1.4;
    margin-block: 1.1rem 0.6rem;
    color: #333;
}

/* Paragraph styling */
.complianceCoreSlot p {
    font-size: 1rem; /* Standard body text size (e.g., 16px if base is 16px) */
    line-height: 1.6; /* Generous line height for readability */
    margin-bottom: 1rem; /* Space below paragraphs */
    color: #555; /* Slightly lighter text color for body */
}

/* Unordered list styling */
.complianceCoreSlot ul {
    list-style-type: disc; /* Default disc bullets */
    margin-block: 1rem; /* Top and bottom margin for the list */
    padding-inline-start: 25px; /* Indent for bullet points */
    color: #555;
}

/* List item styling */
.complianceCoreSlot li {
    font-size: 1rem; /* Standard text size for list items */
    line-height: 1.6; /* Generous line height */
    margin-bottom: 0.5rem; /* Space between list items */
    color: #555;
}

.list-inline-item {
    font-size: 14px;
}

@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 200px;
    }
}