/* === assets/css/style.css === */

/* --- 1. Root Variables & Global Base Styles --- */
:root {
    --primary-color: #ff9eb5; /* Hello Kitty pink */
    --secondary-color: #ffd6e0; /* Lighter pink */
    --dark-color: #333;
    --light-color: #fff;
    --text-color: #555;      /* General text */
    --border-color: #e0e0e0;
    --heading-font: 'Comic Sans MS', 'Chalkboard SE', 'Arial', sans-serif; /* Playful font for headings */
    --body-font: 'Sanrio', sans-serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}



.container {
    width: 90%;
    max-width: 1200px; /* Max width for content area */
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding */
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark-color);
}

section { /* Common spacing for sections */
    padding: 60px 0;
}
section:nth-child(even) { /* Optional: alternate section background */
    /* background-color: #fdf6f8; /* Very light pink */
}


/* --- 2. Header & Navigation --- */
/* === assets/css/style.css === */
/* ... (your existing :root, global, other section styles) ... */

/* --- Header & Navigation --- */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 10px 0; /* Slightly reduced padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.6rem; /* Slightly smaller logo for balance */
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Desktop Navigation */
nav#mainNav ul#primaryNavMenu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
nav#mainNav ul#primaryNavMenu li {
    margin-left: 20px; /* Adjust spacing */
}
nav#mainNav ul#primaryNavMenu li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem; /* Adjust font size */
    transition: color 0.3s;
    padding: 10px 5px; /* Padding for touch targets and underline space */
    position: relative;
    display: inline-block; /* For padding to work well */
    
}
nav#mainNav ul#primaryNavMenu li a:hover,
nav#mainNav ul#primaryNavMenu li a.active {
    color: var(--primary-color);
}
nav#mainNav ul#primaryNavMenu li a::after { /* Underline effect */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px; /* Adjust position of underline */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}
nav#mainNav ul#primaryNavMenu li a:hover::after,
nav#mainNav ul#primaryNavMenu li a.active::after {
    width: calc(100% - 10px); /* Underline width matches text content area */
}

.cart-nav-item { position: relative; }
.cart-icon-link .fa-shopping-cart { font-size: 1.1rem; } /* Adjust size */
.cart-count-badge {
    position: absolute;
    top: 0px; /* Adjust badge position */
    right: -8px; /* Adjust badge position */
    background-color: var(--secondary-color);
    color: var(--dark-text);
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 0.65rem;
    font-weight: bold;
    line-height: 1;
    min-width: 16px;
    text-align: center;
    border: 1px solid var(--primary-color);
}

/* Account Dropdown Desktop */
.dropdown-account { position: relative; }
.dropdown-account > a .dropdown-indicator {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}
.dropdown-account:hover > a .dropdown-indicator {
    transform: rotate(180deg);
}
.dropdown-menu-account {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px; /* Gap from parent */
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px; /* Wider dropdown */
    z-index: 1010;
    list-style: none;
    padding: 8px 0; /* Padding inside dropdown */
}
.dropdown-account:hover .dropdown-menu-account,
.dropdown-account .dropdown-menu-account.active { /* For JS toggle on touch */
    display: block;
}
.dropdown-menu-account li a {
    display: block;
    padding: 10px 20px; /* More padding for dropdown items */
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}
.dropdown-menu-account li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}
.dropdown-menu-account li a::after { display: none; } /* No underline in dropdown */
.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    overflow: hidden;
    background-color: var(--border-color);
}


/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    font-size: 1.8rem; /* Hamburger icon size */
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    z-index: 1005; /* Above nav menu when it slides */
}

/* --- Responsive Navigation --- */
@media (max-width: 880px) { /* Adjust this breakpoint as needed */
    .header-container {
        /* Keep logo and toggle on same line, nav below */
    }
    nav#mainNav {
        order: 3; /* Place nav after logo and toggle in flex order */
        width: 100%; /* Nav takes full width */
    }
    nav#mainNav ul#primaryNavMenu {
        display: none; /* Hide desktop menu items */
        flex-direction: column;
        width: 100%;
        position: absolute; /* Position it for slide down */
        top: 100%; /* Start below the header */
        left: 0;
        background-color: var(--light-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding-top: 10px;
        padding-bottom: 10px;
    }
    nav#mainNav ul#primaryNavMenu.mobile-nav-active {
        display: flex; /* Show when active class is added by JS */
    }
    nav#mainNav ul#primaryNavMenu li {
        margin-left: 0;
        width: 100%;
        text-align: center; /* Center mobile menu items */
    }
    nav#mainNav ul#primaryNavMenu li a {
        padding: 12px 20px; /* Larger tap targets */
        display: block; /* Make link take full width */
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }
     nav#mainNav ul#primaryNavMenu li:last-child a {
        border-bottom: none;
    }
    nav#mainNav ul#primaryNavMenu li a::after { /* Hide desktop underline on mobile */
        display: none;
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger icon */
    }

    /* Mobile Account Dropdown */
    .dropdown-account:hover .dropdown-menu-account, /* Disable hover for dropdown on mobile if using click toggle */
    .dropdown-account .dropdown-menu-account { /* Keep hidden by default */
        display: none; 
    }
    .dropdown-account .dropdown-menu-account.active { /* JS will add .active class */
        display: block;
        position: static; /* Stack within the mobile menu */
        box-shadow: none;
        border: none;
        border-top: 1px dashed var(--primary-light);
        width: 100%;
        margin-top: 0;
        background-color: #fdfbfb; /* Slightly different bg for nested mobile dropdown */
    }
    .dropdown-account > a .dropdown-indicator {
        /* Display indicator and handle its rotation via JS adding a class to parent .dropdown-account */
    }
    .dropdown-account.open > a .dropdown-indicator {
        transform: rotate(180deg);
    }
}

/* Flash Message Styling */
.flash-message-container .alert {
    border-radius: 6px; /* Consistent with other elements */
    margin-bottom: 0; /* Removed default alert margin as container handles it */
}




.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
nav ul li {
    margin-left: 25px;
}
nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding-bottom: 5px; /* For border effect on hover */
    position: relative;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}
nav ul li a::after { /* Underline effect on hover */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}
nav ul li a .fa-shopping-cart { font-size: 1.2rem; }


/* --- 3. Hero Slider Section (Targeting 1920x930 aspect ratio) --- */
/* === assets/css/style.css === */

/* --- 3. Hero Slider Section --- */








/* --- 4. General Button Styles --- */
.btn { /* Global button base */
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px; /* Rounded buttons for frontend */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.btn-pink { /* Primary button style */
    background-color: var(--primary-color);
    color: var(--light-color);
}
.btn-pink:hover {
    background-color: var(--secondary-color); /* Darker pink */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-outline-pink {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline-pink:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 158, 181, 0.3);
}





/* --- 5. School Supplies & Other Content Sections --- */
.school-supplies { /* Example section */
    text-align: center;
    background-color: var(--light-color);
}
.school-supplies h2,
.featured-products h2 { /* Common styling for section titles */
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}
.school-supplies .subtitle,
.featured-products .subtitle { /* Common styling for subtitles */
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* --- 6. Featured Products Grid --- */
.featured-products {
    background-color: #fcf5f7; /* Very light pinkish background */
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Slightly larger min card size */
    gap: 30px;
}
.product-card {
    background-color: var(--light-color);
    border-radius: 12px; /* Softer radius */
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.product-card .product-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card .product-image-container {
    width: 100%;
    height: 250px; /* Slightly taller image area */
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder bg for images */
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.06);
}
.product-card .product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}
.product-card h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin: 0 0 10px 0;
    font-weight: 600;
    height: 2.5em; /* Approx 2 lines */
    line-height: 1.25em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}



.product-card .product-actions {
    padding: 0px 10px 10px 10px; /* Adjust padding around the button */
    text-align: right; /* Align button to the right, or center/left as you prefer */
    margin-top: auto; /* Pushes actions to the bottom if card info height varies */
}


/* In assets/css/style.css */
.product-actions .add-to-cart-btn {
    background-color: var(--secondary-color); /* Or a different color for distinction */
    color: var(--dark-text); /* Or light text if bg is dark */
    width: auto; /* Don't make it full width by default */
    padding: 8px 12px; /* Smaller padding for icon button */
}
.product-actions .add-to-cart-btn i {
    margin-right: 0; /* No margin if only icon, or adjust if text is present */
}
.product-actions .add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.no-products-found {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px dashed var(--primary-light);
}
.no-products-found i {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 3rem; /* Ensure Font Awesome is linked */
}
.no-products-found h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}
.no-products-found p {
    margin-bottom: 25px;
}

.btn-icon {
    padding: 8px 10px; /* Adjust padding for icon button */
    line-height: 1;   /* For better icon alignment */
    border-radius: 50%; /* Makes it circular, optional */
    /* background-color: transparent; /* Optional: make it just the icon */
    /* border: 1px solid var(--primary-color); */ /* Optional: outline style */
    color: var(--primary-color, #EE4D2D); /* Icon color */
    font-size: 1.2rem; /* Icon size */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-icon:hover {
    background-color: var(--primary-color-light, #ffe8e1); /* Light hover background */
    color: var(--primary-color-dark, #d03e1a); /* Darker icon on hover */
}

.btn-icon i {
    /* Vertical alignment if needed, often fine by default */
}

/* If you want text with the icon button */
.btn-add-to-cart span {
    margin-left: 5px;
    font-size: 0.9em;
    vertical-align: middle; /* Align text with icon */
}


.product-card .product-actions .btn {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
}


/* --- 7. Footer --- */
footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.8); /* Slightly softer white */
    padding: 50px 0 30px 0;
    text-align: center;
    font-size: 0.9rem;
}
footer p { margin: 8px 0; }
footer .social-links { margin-top: 20px; }
footer .social-links a {
    color: var(--light-color);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}
footer .social-links a:hover { color: var(--primary-color); }


/* --- 8. Popup Styles --- */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); /* Darker overlay */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0; /* For fade-in transition */
    transition: opacity 0.3s ease-in-out;
}
.popup-overlay.active { /* Class to show popup */
    display: flex;
    opacity: 1;
}
.popup-container {
    background: var(--light-color);
    padding: 30px 35px;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    text-align: center;
    transform: scale(0.95); /* For pop-in effect */
    transition: transform 0.3s ease-in-out;
}
.popup-overlay.active .popup-container {
    transform: scale(1);
}
.popup-container .close-popup {
    position: absolute;
    top: 12px; right: 15px;
    background: none; border: none;
    font-size: 28px; font-weight: bold;
    color: #aaa; cursor: pointer;
    line-height: 1;
}
.close-popup:hover { color: var(--dark-color); }
.popup-container img.popup-image { /* Specific class for popup image */
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 6px;
}
.popup-container h2.popup-title { /* Specific class for popup title */
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
}
.popup-container .popup-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 25px;
}
.popup-container .btn-pink { margin-top: 10px; }






/* --- Product Detail Page --- */
.product-detail-page {
    padding: 40px 0;
    background-color: #fff; /* Or a very light theme color */
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Adjust ratio as needed: images | info */
    gap: 40px;
    margin-top: 20px;
}

/* Product Gallery */
.product-gallery {
    /* Styles for the image column */
}
.main-image-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f9f9f9; /* Light bg for image area */
}
.main-image-container img#mainProductImage {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 500px; /* Max height for main image */
    object-fit: contain; /* Show whole image, might leave space */
    display: block;
    transition: transform 0.3s ease;
}
/* Optional: Zoom on hover for main image
.main-image-container:hover img#mainProductImage {
    transform: scale(1.05);
}
*/

.thumbnail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.thumbnail-images .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    opacity: 0.7;
}
.thumbnail-images .thumbnail:hover,
.thumbnail-images .thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Product Info Details */
.product-info-details {
    /* Styles for the text content column */
}
.product-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}
.product-price {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}
.product-stock {
    font-size: 0.9rem;
    color: #27ae60; /* Green for in stock */
    margin-bottom: 20px;
    font-weight: 500;
}
.product-stock:empty::before { /* Show 'N/A' if stock isn't set */
    content: "Stock: N/A";
    color: #777;
}
#productStockDisplay.out-of-stock { /* JS can add this class */
    color: #e74c3c; /* Red for out of stock */
}


.product-brand, .product-category-detail {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
}
.product-brand a, .product-category-detail a {
    color: var(--primary-color);
    text-decoration: none;
}
.product-brand a:hover, .product-category-detail a:hover {
    text-decoration: underline;
}

/* Variations Section */
.variations-section {
    margin-top: 25px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}
.variations-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}
.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.variation-option input[type="radio"] {
    display: none; /* Hide actual radio button */
}
.variation-option label {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}
.variation-option input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    font-weight: 500;
}
.variation-option input[type="radio"]:disabled + label,
.variation-option label.disabled-variation {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #e0e0e0;
}
.variation-option label:not(.disabled-variation):hover {
    border-color: var(--secondary-color);
}


/* Quantity Selector */
.quantity-selector {
    margin-top: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.quantity-selector label {
    font-weight: 500;
    font-size: 0.95rem;
}
.quantity-selector input[type="number"] {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

/* Add to Cart Button */
.add-to-cart-button {
    padding: 12px 30px;
    font-size: 1.05rem;
    width: 100%; /* Make button full width in its container */
    max-width: 300px; /* But not overly wide on large screens */
    display: block; /* To allow margin auto or width 100% */
    margin: 0 auto 20px auto; /* Center if max-width is less than 100% */
}
.add-to-cart-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.add-to-cart-button.disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}
.add-to-cart-button i {
    margin-right: 8px;
}

/* Full Description & Specifications */
.product-description-full, .product-specifications {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.product-description-full h3, .product-specifications h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}
.product-description-full p, .product-specifications ul {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}
.product-specifications ul {
    list-style: none;
    padding-left: 0;
}
.product-specifications li {
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.product-specifications li:last-child {
    border-bottom: none;
}
.product-specifications li strong {
    color: var(--dark-color);
    min-width: 120px; /* Align keys */
    display: inline-block;
}


/* Product Video Section */
.product-video-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.product-video-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}
.video-wrapper video {
    display: block;
    width: 100%;
    max-height: 450px; /* Limit video height */
}

/* Responsive for Product Detail */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr; /* Stack image and info */
    }
    .product-gallery {
        max-width: 500px; /* Limit gallery width when stacked */
        margin: 0 auto 30px auto; /* Center it */
    }
}
@media (max-width: 768px) {
    .thumbnail-images .thumbnail {
        width: 60px;
        height: 60px;
    }
}


/* --- Cart Page Styles --- */
.cart-page {
    padding: 40px 0;
    background-color: #fcf7f9; /* Light pinkish background for cart page */
}

.page-header-cart {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.page-header-cart h1 {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 5px;
}
.page-header-cart p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cart-empty h2 {
    font-size: 40px;
    font-weight: bold;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 10px;
}
.cart-empty p {
    margin-bottom: 25px;
    font-size: 1rem;
}
.cart-empty .btn-pink i {
    margin-right: 8px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Adjust ratio: items list | summary */
    gap: 30px;
}

.cart-items-list {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cart-items-list h2, .cart-summary h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto; /* Image | Details | Qty | Subtotal | Remove */
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.cart-item-details h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}
.cart-item-details h3 a {
    color: var(--dark-color);
    text-decoration: none;
}
.cart-item-details h3 a:hover {
    color: var(--primary-color);
}
.item-variation-details {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
}
.item-price {
    font-size: 0.9rem;
    color: var(--text-color);
}

.cart-item-quantity .quantity-update-form {
    display: flex;
    align-items: center;
}
.cart-item-quantity .quantity-input {
    width: 50px;
    text-align: center;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    font-size: 0.9rem;
}
.cart-item-quantity .update-qty-btn {
    padding: 6px 10px; /* Smaller button */
    font-size: 0.8rem;
}

.cart-item-subtotal p {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    text-align: right;
    min-width: 80px; /* Ensure some space for price */
}

.cart-item-remove .btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
}
.cart-item-remove .btn-remove:hover {
    color: #c0392b;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; /* Make summary sticky on scroll */
    top: 100px; /* Adjust based on your header height + some margin */
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}
.summary-row span:first-child {
    color: var(--text-color);
}
.summary-row span:last-child {
    font-weight: 500;
    color: var(--dark-color);
}
.summary-row.total-row span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}
.cart-summary hr {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 15px 0;
}
.checkout-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 15px;
}
.checkout-btn i {
    margin-right: 8px;
}
.continue-shopping-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.continue-shopping-link i {
    margin-right: 5px;
}
.continue-shopping-link:hover {
    text-decoration: underline;
}

/* Responsive Cart */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr; /* Stack items and summary */
    }
    .cart-summary {
        position: static; /* Unstick summary on smaller screens */
        margin-top: 30px;
    }
}
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr auto; /* Image | Details & Qty | Remove & Subtotal */
        grid-template-areas: 
            "img details remove"
            "img qty     subtotal";
        align-items: start; /* Align items to the top */
    }
    .cart-item-image { grid-area: img; }
    .cart-item-details { grid-area: details; margin-bottom: 10px; }
    .cart-item-quantity { grid-area: qty; }
    .cart-item-subtotal { grid-area: subtotal; text-align: right; margin-top: 5px; }
    .cart-item-remove { grid-area: remove; text-align: right; }

    .cart-item-quantity .quantity-update-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-quantity .update-qty-btn {
        margin-top: 5px;
    }
}
@media (max-width: 480px) {
     .cart-item {
        grid-template-columns: 60px 1fr; /* Very small screens: Image | Everything else stacked */
        grid-template-areas: 
            "img details"
            "img qty"
            "img subtotal"
            "img remove";
        gap: 5px 10px;
    }
    .cart-item-image img { width: 60px; height: 60px; }
    .cart-item-remove { justify-self: flex-end; }
}

/* Helper for screen readers only */
.sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important; /* 1 */
	-webkit-clip-path: inset(50%) !important;
		clip-path: inset(50%) !important;  /* 2 */
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important; /* 3 */
}



/* Header Cart Count Badge */
nav ul li.cart-nav-item {
    position: relative; /* For positioning the badge */
}
.cart-icon-link .cart-count-badge {
    position: absolute;
    top: -5px; /* Adjust position */
    right: -10px; /* Adjust position */
    background-color: var(--secondary-color); /* Darker pink or red */
    color: var(--dark-color); /* White or dark text */
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    min-width: 18px; /* Ensure it's somewhat circular even for single digit */
    text-align: center;
    border: 1px solid var(--primary-color);
}

/* Account Dropdown */
nav ul li.dropdown-account {
    position: relative;
}
nav ul li.dropdown-account > a { /* Target the main "Hi, User" link */
    cursor: pointer; /* Indicate it's clickable */
}

.dropdown-menu-account {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the "Hi, User" link */
    right: 0;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1010; /* Above other header content */
    list-style: none;
    padding: 10px 0; /* Padding inside the dropdown */
    margin-top: 5px; /* Small gap from parent link */
}
.dropdown-account:hover .dropdown-menu-account {
    display: block; /* Show on hover over the parent li */
}
.dropdown-menu-account li a {
    display: block;
    padding: 8px 15px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}
.dropdown-menu-account li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color); /* Or keep dark text */
}
.dropdown-menu-account li a::after { /* Remove underline effect from main nav */
    display: none;
}















/* Mobile Nav Basic (Needs JS for toggle) */
.mobile-nav-toggle {
    display: none; /* Hidden on larger screens */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}
@media (max-width: 768px) { /* Or your nav breakpoint */
    header nav > ul {
        display: none; /* Hide main nav items */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    header nav > ul.mobile-nav-active {
        display: flex; /* Show when active */
    }
    header nav > ul li {
        margin-left: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
     header nav > ul li:last-child { border-bottom: none; }
    header nav > ul li a {
        padding: 15px;
        display: block; /* Make links take full width */
    }
    .mobile-nav-toggle { display: block; }

    /* Adjust account dropdown for mobile if needed */
    .dropdown-menu-account {
        position: static; /* Or adjust differently */
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        margin-top: 0;
    }
    .dropdown-account:hover .dropdown-menu-account {
        /* Hover might not work well on touch, JS toggle is better */
    }
}




/* --- Account Page Styles --- */
.account-page {
    padding: 40px 0;
    background-color: #fcf7f9;
}

/* ========== ACCOUNT PAGES STYLING ========== */

/* Main Layout Improvements */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* Account Sidebar Enhancement */
.account-sidebar {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.account-sidebar h3 {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a i, 
.sidebar-nav a svg {
    width: 20px;
    color: var(--primary-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 105, 180, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-nav a:hover i,
.sidebar-nav a:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-nav a.active {
    background: linear-gradient(145deg, var(--primary-color), #ff8cb3);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.sidebar-nav a.active i,
.sidebar-nav a.active svg {
    color: white;
    opacity: 1;
}

/* Account Content Enhancement */
.account-content {
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.account-content h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.account-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ffb6c1);
    border-radius: 2px;
}

.account-content h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 25px 0 20px;
    font-weight: 600;
}

/* Form Styling */
.profile-form {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.1);
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #495057;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-pink {
    background: linear-gradient(145deg, var(--primary-color), #ff8cb3);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-pink:hover {
    background: linear-gradient(145deg, #ff7bb5, #ff9cc0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--dark-color);
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline-pink {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-pink:hover {
    background: linear-gradient(145deg, var(--primary-color), #ff8cb3);
    color: white;
    transform: translateY(-2px);
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert p {
    margin: 0;
}

.alert-danger {
    background-color: #fff5f5;
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #f0fff4;
    color: #28a745;
    border-left: 4px solid #28a745;
}

/* Address Cards */
.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.address-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 105, 180, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.15);
    border-color: rgba(255, 105, 180, 0.3);
}

.address-card.default-address {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(145deg, #fff9fc, #ffffff);
}

.address-card h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.address-card .default-badge {
    background: linear-gradient(145deg, var(--primary-color), #ff8cb3);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.address-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.address-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 105, 180, 0.1);
    padding-top: 15px;
}

.address-actions .btn {
    flex: 1;
    min-width: 80px;
}

/* Page Headers */
.page-header-cart {
    background: linear-gradient(145deg, #fff9fc, #ffffff);
    padding: 30px 35px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.page-header-cart h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.page-header-cart h1:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Simple Table Styling */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.simple-table th {
    background: linear-gradient(145deg, #f8f9fa, #f1f3f5);
    color: var(--dark-color);
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simple-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.95rem;
}

.simple-table tr:last-child td {
    border-bottom: none;
}

.simple-table tr:hover td {
    background-color: #fff9fc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.processing {
    background-color: #cce5ff;
    color: #004085;
}

/* Account Details Summary */
.account-details-summary {
    background: linear-gradient(145deg, #fff9fc, #ffffff);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.account-details-summary p {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #495057;
    display: flex;
    align-items: baseline;
}

.account-details-summary strong {
    color: var(--dark-color);
    min-width: 150px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        margin-bottom: 20px;
    }
    
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .account-content {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .address-list {
        grid-template-columns: 1fr;
    }
    
    .page-header-cart {
        padding: 20px;
    }
    
    .page-header-cart h1 {
        font-size: 1.6rem;
    }
    
    .account-content h2 {
        font-size: 1.5rem;
    }
    
    .sidebar-nav {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .address-actions {
        flex-direction: column;
    }
    
    .address-actions .btn {
        width: 100%;
    }
    
    .account-details-summary p {
        flex-direction: column;
        gap: 5px;
    }
    
    .account-details-summary strong {
        min-width: auto;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: var(--dark-color);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* Form Validation Styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33.33%;
    background-color: #dc3545;
}

.password-strength-bar.medium {
    width: 66.66%;
    background-color: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background-color: #28a745;
}




/* --- RESPONSIVE ADJUSTMENTS --- */

/* Generally for Tablets and Larger Mobiles (e.g., landscape) */
@media (max-width: 992px) {
    .container {
        width: 95%; /* Slightly more width on tablets */
    }

    /* Header & Nav */
    nav ul li {
        margin-left: 20px; /* Slightly less spacing */
    }

    /* Slider */
    .slide-content h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); }
    .slide-content p { font-size: clamp(0.9rem, 2.2vw, 1.2rem); }

    /* Product Grids */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Adjust card size for tablets */
        gap: 25px;
    }

    /* Product Detail Page */
    .product-detail-layout {
        grid-template-columns: 1fr; /* Stack image and info */
        gap: 30px;
    }
    .product-gallery {
        max-width: 500px; 
        margin: 0 auto 30px auto; 
    }

    /* Cart Page */
    .cart-layout {
        grid-template-columns: 1fr; /* Stack cart items and summary */
    }
    .cart-summary {
        position: static; /* Unstick summary */
        margin-top: 30px;
    }

    /* Account Page */
    .account-layout {
        grid-template-columns: 1fr; /* Stack account sidebar and content */
    }
    .account-sidebar {
        margin-bottom: 30px;
    }
}


/* Generally for Mobile Devices (e.g., portrait) */
@media (max-width: 768px) {
    /* Header & Mobile Navigation */
    .header-container {
        flex-direction: row; /* Keep logo and toggle on one line */
        justify-content: space-between; /* Push toggle to the right */
        position: relative; /* For absolute positioning of nav menu */
    }
    header nav { /* The <nav> element itself */
        /* This part is for a dropdown/slide-in mobile menu, requires JS toggle */
        position: absolute;
        top: 100%; /* Position it right below the header */
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999; /* Below main header but above content */
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    header nav.mobile-nav-active { /* JS adds this class */
        max-height: 500px; /* Or enough to show all items */
    }
    header nav ul { /* The <ul> inside <nav> */
        flex-direction: column;
        width: 100%;
        padding: 0; /* Reset padding if any from desktop */
    }
    header nav ul li {
        margin-left: 0;
        width: 100%;
        text-align: left; /* Or center if preferred for mobile menu items */
        border-bottom: 1px solid var(--border-color);
    }
    header nav ul li:last-child { border-bottom: none; }
    header nav ul li a {
        padding: 15px 20px; /* More touch-friendly padding */
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-nav-toggle { /* The hamburger button */
        display: block; /* Show it */
    }
    /* Hide dropdown on mobile by default, JS can handle showing it or simplify to static links */
    nav ul li.dropdown-account:hover .dropdown-menu-account {
        display: none;
    }
    nav ul li.dropdown-account.open .dropdown-menu-account { /* JS would add 'open' class on tap */
         display: block;
         position: static; /* Make it flow normally in mobile nav */
         box-shadow: none;
         border: none;
         border-top: 1px solid var(--border-color);
         margin-top: 0;
    }


    


    /* Section Titles */
    .school-supplies h2, .featured-products h2, .new-arrivals h2,
    .page-header-cart h1, .account-page .page-header-cart h1,
    .auth-form-wrapper h1 {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }
    .school-supplies .subtitle, .featured-products .subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }

    /* Product Grids */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Smaller cards for mobile */
        gap: 15px;
    }
    .product-card h3 { font-size: 1rem; height: 2.4em; /* Still aim for ~2 lines */ }
    .product-card .price { font-size: 1.1rem; }
    .product-card .product-image-container { height: 200px; }


    /* Cart Page Mobile */
    .cart-item {
        grid-template-columns: 70px 1fr auto; /* Image | Details & Qty | Remove & Subtotal */
        grid-template-areas: 
            "img details remove"
            "img qty     subtotal";
        align-items: start;
        gap: 10px 15px; /* Adjust gap */
    }
    .cart-item-image img { width: 70px; height: 70px; }
    .cart-item-details h3 { font-size: 1rem; }
    .item-variation-details { font-size: 0.8rem; }
    .cart-item-quantity .quantity-update-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-quantity .update-qty-btn { margin-top: 8px; width: 100%; }


    /* Auth Forms (Login/Register) */
    .auth-container { max-width: 100%; } /* Allow form to take more width */
    .auth-form-wrapper { padding: 25px 20px; }
    .auth-form-wrapper .form-row { flex-direction: column; gap: 0; } /* Stack first/last name */
    .auth-form-wrapper .form-row .form-group.col-md-6 { flex-basis: 100%; }


    /* Account Page Mobile */
    .account-sidebar ul li a { padding: 12px 15px; } /* Slightly larger tap targets */
    .account-content { padding: 20px; }
}





nav ul li.dropdown-account > a .dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block; /* Ensure it's visible */
}
nav ul li.dropdown-account:hover > a .dropdown-arrow { /* Desktop hover */
    transform: rotate(180deg);
}

/* --- Mobile Navigation Specific Styles --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
    z-index: 1005;
    line-height: 1; /* Ensure icon is vertically aligned */
}
.mobile-nav-toggle .icon-menu,
.mobile-nav-toggle .icon-close {
    display: inline-block; /* Or block if you prefer */
}

@media (max-width: 992px) { /* Your chosen breakpoint */
    .header-container nav#mainNav { /* Target the nav element */
        order: 3; /* Push nav below logo and toggle if header is flex */
        width: 100%; /* Take full width for mobile layout */
    }

     /* Mobile Account Dropdown Link Styling */
     nav#mainNav > ul li.dropdown-account > a.has-submenu { /* Target the specific link */
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer; /* Make it clear it's clickable for submenu */
    }
    nav#mainNav > ul li.dropdown-account > a.has-submenu .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    /* When the PARENT LI has the .open class, rotate arrow */
    nav#mainNav > ul li.dropdown-account.open > a.has-submenu .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Mobile Account Submenu */
    .dropdown-menu-account {
        display: none; /* CRITICAL: Hidden by default */
        list-style: none;
        padding-left: 0;
        margin: 0;
        background-color: #fdf6f8; /* Slightly different background for submenu items */
        /* border-top: 1px solid var(--primary-light); Removed for cleaner look, parent li will have border */
    }
    /* When the PARENT LI has the .open class, show the submenu */
    li.dropdown-account.open .dropdown-menu-account {
        display: block; /* CRITICAL: Show the submenu */
    }
    .dropdown-menu-account li a {
        padding: 10px 20px 10px 35px; /* Indent submenu items */
        font-size: 0.9rem;
        border-bottom: 1px solid #f0f0f0;
    }
     .dropdown-menu-account li:last-child a {
        border-bottom: none;
    }
    .dropdown-menu-account li a:hover {
        background-color: var(--primary-light);
    }
}





/* --- Product Rating Summary (on product detail page info column) --- */
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping if space is tight */
}
.stars-outer {
    position: relative;
    display: inline-block;
    font-size: 1.1rem; /* Adjust star size */
}
.stars-outer::before { /* Background stars (empty) */
    content: "\f005 \f005 \f005 \f005 \f005"; /* Font Awesome 5 solid stars */
    font-family: "Font Awesome 5 Free";
    font-weight: 400; /* Regular for empty stars */
    color: #ddd; /* Light grey for empty stars */
}
.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0%; /* Default to 0, set by inline style */
}
.stars-inner::before { /* Foreground stars (filled) */
    content: "\f005 \f005 \f005 \f005 \f005"; /* Font Awesome 5 solid stars */
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* Solid for filled stars */
    color: #f8b82e; /* Gold/Yellow for filled stars */
}
.rating-average-text {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 0.95rem;
}
.total-reviews-text, .no-reviews-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* --- Product Reviews Section --- */
.product-reviews-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.product-reviews-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.reviews-list {
    margin-bottom: 40px;
}
.review-item {
    background-color: var(--light-color);
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.review-item .review-rating .stars-outer { font-size: 1rem; } /* Slightly smaller stars for individual reviews */
.review-title {
    font-size: 1.2rem;
    margin-top: 8px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}
.review-author-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}
.review-author-date strong { color: var(--text-color); }
.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-wrap; /* Preserve line breaks from textarea */
}
.view-more-reviews { text-align: center; margin-top: 20px; }


/* Review Submission Form */
.review-form-container {
    background-color: #fdf6f8; /* Very light pink */
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
}
.review-form-container h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}
.review-form-container .form-group { margin-bottom: 15px; }
.review-form-container .form-group label { font-weight: 500; }
.review-form-container textarea { min-height: 100px; }

.star-rating-input {
    display: inline-flex; /* Align stars horizontally */
    flex-direction: row-reverse; /* Make stars fill from right to left on hover/selection */
    justify-content: flex-end; /* Align to the end (right) */
}
.star-rating-input input[type="radio"] {
    display: none; /* Hide actual radio buttons */
}
.star-rating-input label {
    font-size: 1.8rem; /* Size of star icons */
    color: #ddd; /* Color of empty stars */
    cursor: pointer;
    padding: 0 2px; /* Spacing between stars */
    transition: color 0.2s;
}
/* When a radio is checked, color all preceding labels (stars) */
.star-rating-input input[type="radio"]:checked ~ label {
    color: #f8b82e; /* Gold for selected stars */
}
/* On hover, color the hovered star and all preceding ones */
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { /* Color stars to the left on hover */
    color: #f8b82e;
}

.star-rating-input label.hover {
    color: #f8b82e !important; /* Override other states for hover */
}



/* Ensure auth-page styles apply broadly */
.forgot-password-page,
.reset-password-page {
    /* They will inherit from .auth-page */
}



/* --- Review Images Display --- */
.review-images-display {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.review-image-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.2s ease;
}
.review-image-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}



/* === assets/css/style.css === */
/* ... (your existing styles) ... */

/* --- Fixed Social Media Bar --- */
.fixed-social-bar {
    position: fixed;
    top: 50%; /* Vertically center */
    transform: translateY(-50%);
    z-index: 999; /* Below header (if header is 1000), but above most content */
    display: flex;
    flex-direction: column; /* Stack icons vertically */
    gap: 8px; /* Space between icons */
}

.fixed-social-bar.left-social-bar {
    left: 15px; /* Adjust distance from the left edge */
}

/* If you wanted a right social bar:
.fixed-social-bar.right-social-bar {
    right: 15px;
}
*/

.fixed-social-bar .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;  /* Icon container size */
    height: 40px; /* Icon container size */
    border-radius: 50%; /* Circular icons */
    text-decoration: none;
    color: var(--light-color); /* Icon color */
    font-size: 1.2rem; /* Icon font size */
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.fixed-social-bar .social-icon:hover {
    transform: scale(1.15) translateX(3px); /* Slight pop and move effect on hover */
}

/* Specific brand colors */
.fixed-social-bar .facebook-icon { background-color: #1877F2; }
.fixed-social-bar .instagram-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fixed-social-bar .tiktok-icon { background-color: #000000; /* Or #FE2C55 (red), #00F2EA (teal) for the new logo parts */ }
.fixed-social-bar .youtube-icon { background-color: #FF0000; }

/* Responsive: Hide or adjust on smaller screens if it gets too intrusive */
@media (max-width: 768px) {
    .fixed-social-bar.left-social-bar {
        left: 10px; /* Closer to edge on mobile */
    }
    .fixed-social-bar .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    /* Example: Hide completely on very small screens if needed
    @media (max-width: 480px) {
        .fixed-social-bar {
            display: none;
        }
    }
    */
}




/* --- Fixed Chat Widget (Bottom Right) --- */
.fixed-chat-widget {
    position: fixed;
    bottom: 25px; /* Distance from bottom */
    right: 25px;  /* Distance from right */
    z-index: 998; /* Below fixed social bar if it overlaps, but above most content */
    
    background-color: var(--primary-color); /* Use your theme's primary color */
    color: var(--light-color);
    width: 60px;  /* Size of the button */
    height: 60px; /* Size of the button */
    border-radius: 50%; /* Circular button */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1.8rem; /* Icon size */
    text-decoration: none;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.fixed-chat-widget:hover {
    background-color: var(--secondary-color); /* Darker shade on hover */
    transform: scale(1.1); /* Slight pop effect */
}

.fixed-chat-widget .chat-widget-text { /* If you add text next to/below icon */
    font-size: 0.8rem;
    margin-left: 5px; /* Example if text is next to icon */
    /* display: none; /* Initially hide text, show on hover or larger screens */
}

/* Example: If you want text and icon stacked, and text appears on hover */
/*
.fixed-chat-widget {
    width: auto;
    padding: 10px 15px;
    border-radius: 30px;
    flex-direction: row;
    gap: 8px;
}
.fixed-chat-widget i { font-size: 1.5rem; }
.fixed-chat-widget .chat-widget-text { display: none; font-size: 0.9rem; }
.fixed-chat-widget:hover .chat-widget-text { display: inline; }
*/


/* Responsive adjustments for chat widget if needed */
@media (max-width: 768px) {
    .fixed-chat-widget {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}



/* --- Chat Modal Styles --- */
.chat-modal-overlay {
    display: none; /* Hidden by default, JS will toggle */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    z-index: 10000; /* Above everything */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.chat-modal-overlay.active {
    display: flex; /* Use flex to enable centering */
    opacity: 1;
}

.chat-modal-container {
    max-width: 400px; /* Was 450px, adjust as preferred */
    max-height: 75vh; /* Can be a bit taller */
}

.chat-modal-header h3 {
    font-size: 1rem; /* Slightly smaller header text */
}

.chat-messages-area {
    padding: 15px; /* Consistent padding */
    display: flex;
    flex-direction: column; /* Stack messages */
    gap: 12px; /* Space between messages */
}

.chat-message {
    display: flex;
    max-width: 80%; /* Bubbles don't take full width */
    align-items: flex-end; /* Align avatar with bottom of bubble */
}

.chat-message .message-avatar {
    width: 32px; /* Slightly smaller avatar */
    height: 32px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.chat-message.shop-message {
    align-self: flex-start; /* Shop messages on the left */
}
.chat-message.shop-message .message-avatar {
    margin-right: 8px;
}

.chat-message.customer-message {
    align-self: flex-end; /* Customer messages on the right */
    flex-direction: row-reverse; /* Avatar on the right for customer */
}
.chat-message.customer-message .message-avatar {
    margin-left: 8px;
    margin-right: 0;
    background-color: var(--primary-color); /* Customer avatar color */
    color: var(--light-color);
}
.chat-message.customer-message .message-avatar.shop-avatar { /* Just in case class is mixed */
     background-color: var(--secondary-color);
     color: var(--primary-color);
}


.message-content {
    padding: 10px 14px;
    border-radius: 18px; /* More rounded bubbles */
    line-height: 1.4;
    font-size: 0.9rem;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    border: none; /* Remove previous border */
}

.chat-message.shop-message .message-content {
    background-color: #e9e9eb; /* Light grey for shop messages */
    color: var(--dark-color);
    border-top-left-radius: 4px; /* Slightly less round on one corner for tail effect */
}
.chat-message.customer-message .message-content {
    background-color: var(--primary-color); /* Theme color for customer messages */
    color: var(--light-color);
    border-top-right-radius: 4px; /* Tail effect */
}

.message-content p {
    margin: 0 0 3px 0;
}
.message-content .message-time {
    font-size: 0.65rem; /* Smaller timestamp */
    color: #888; /* Grey timestamp */
    display: block;
    margin-top: 3px;
}
.chat-message.customer-message .message-content .message-time {
    color: rgba(255,255,255,0.7); /* Lighter timestamp for customer bubble */
    text-align: right;
}


.chat-input-area {
    padding: 10px 15px; /* Slightly less padding */
    border-top: 1px solid var(--border-color);
    background-color: var(--light-color); /* White input area */
}
.chat-input-area .chat-form { /* Target the form specifically */
    display: flex;
    align-items: flex-end; /* Align items to bottom, good for growing textarea */
    gap: 10px;
}

.chat-input-area .chat-textarea { /* Target the textarea specifically */
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #dcdfe6; /* Softer border */
    border-radius: 20px; /* Pill shape input */
    resize: none;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 80px; /* Limit growth to about 3-4 lines */
    overflow-y: auto; /* Scroll if content exceeds max-height */
    font-family: var(--body-font); /* Ensure consistent font */
}
.chat-input-area .chat-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 158, 181, 0.2);
    outline: none;
}

.chat-input-area .btn-send-chat { /* Target the send button */
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%; /* Circular send button */
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.chat-input-area .btn-send-chat:hover {
    background-color: var(--secondary-color);
}
.chat-input-area .btn-send-chat i {
    margin-right: 0; /* Remove margin if only icon */
}

.chat-input-area .chat-disclaimer { /* Style for the small text */
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 8px;
    text-align: center;
}



/* ============================================= */
/* Font Definitions                              */
/* ============================================= */

/* Font Node X (only for specific headings) */
@font-face {
    font-family: 'Font Node X';
    src: local('FontNodeX-Bold'), 
         local('Font-Node-X-Bold'),
         local('FontNodeX'),
         local('Font-Node-X');
    font-weight: bold;
    font-style: normal;
  }
  
  /* Sanrio font (for other elements) */
  @font-face {
    font-family: 'Sanrio';
    src: local('Sanrio'), 
         local('Sanrio-Fun'),
         local('Sanrio Regular');
    font-weight: normal;
    font-style: normal;
  }
  
  /* ============================================= */
  /* Targeted Heading Styles                       */
  /* ============================================= */
  
  .contact-page-frontend .page-hero h1,
  .contact-info-area h3, 
  .contact-form-area h3 {
    font-family: 'Font Node X', sans-serif;
    font-weight: bold;
    letter-spacing: 0.5px;
  }
  
  /* ============================================= */
  /* Sanrio Font Application                       */
  /* ============================================= */
  
  body {
    font-family: 'Sanrio', sans-serif;
  }
  
  /* Make sure form inputs keep system font */
  .contact-form-area .form-group input,
  .contact-form-area .form-group textarea,
  .contact-form-area .form-group label {
    font-family: inherit;
  }
  
  /* ============================================= */
  /* Original Styles (Preserved)                   */
  /* ============================================= */
  
  .contact-page-frontend .page-hero {
    background-color: var(--primary-light);
    padding: 80px 0;
    text-align: center;
  }
  
  .contact-page-frontend .page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  }
  
  .contact-page-frontend .page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
  }
  
  .contact-form-section {
    padding: 60px 0;
    background-color: var(--light-color);
  }
  
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
  }
  
  .contact-info-area h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .contact-info-area p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .contact-info-area ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
  }
  
  .contact-info-area li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
  }
  
  .contact-info-area li i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
  }
  
  .contact-info-area li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-info-area li a:hover {
    color: var(--primary-color);
  }
  
  .contact-social-links p {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  .contact-social-links a {
    color: var(--dark-color);
    margin-right: 15px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
  }
  
  .contact-social-links a:hover {
    color: var(--primary-color);
  }
  
  .contact-form-area h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .contact-form-area .form-group {
    margin-bottom: 20px;
  }
  
  .contact-form-area .form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9em;
    margin-bottom: 6px;
  }
  
  .contact-form-area .form-group input,
  .contact-form-area .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
  }
  
  .contact-form-area .form-group input:focus,
  .contact-form-area .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .contact-form-area .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .contact-form-area button.btn-pink {
    padding: 12px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Sanrio', sans-serif;
  }
  
  .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
  }
  
  .form-row .form-group {
    padding: 0 15px;
    flex: 1;
    min-width: 250px;
  }
  
  /* ============================================= */
  /* Responsive Adjustments                        */
  /* ============================================= */
  @media (max-width: 820px) {
    .contact-layout {
      grid-template-columns: 1fr;
    }
    
    .contact-info-area {
      margin-bottom: 40px;
    }
    
    .contact-page-frontend .page-hero h1 {
      font-size: 2.2rem;
    }
    
    .form-row .form-group {
      flex: 100%;
      margin-bottom: 15px;
    }
  }
  
  @media (max-width: 480px) {
    .contact-page-frontend .page-hero {
      padding: 60px 0;
    }
    
    .contact-page-frontend .page-hero h1 {
      font-size: 1.8rem;
    }
    
    .contact-info-area h3,
    .contact-form-area h3 {
      font-size: 1.4rem;
    }
    
    .contact-social-links a {
      font-size: 1.2rem;
      margin-right: 10px;
    }
  }





/* === assets/css/style.css === */
/* ... (your existing :root, global, header, footer, auth-page, account-page base styles) ... */

/* --- General Account Section Content --- */
.account-content h2 { /* Common heading for sections within account content */
    font-size: 1.6rem;
    color: var(--dark-color); /* Or var(--primary-color) if you prefer */
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.account-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}
.account-content .alert { /* Ensure alerts inside account content are styled */
    margin-top: 0; /* Overlap with h2 margin if it's the first element */
}

/* --- My Orders Page Specific --- */
.my-orders-page .data-table th,
.my-orders-page .data-table td {
    font-size: 0.9rem; /* Slightly smaller font for order table */
}
.my-orders-page .data-table .btn-sm {
    padding: 5px 10px;
}

/* --- Edit Profile & Change Password Forms --- */
/* These will largely use global .form-group, .form-row, .btn styles */
.profile-form .form-group { /* Specific spacing if needed */
    margin-bottom: 20px;
}
.profile-form .form-actions {
    margin-top: 25px;
    text-align: left; /* Align button to the left for these forms */
}
.profile-form .form-actions .btn-pink {
    padding: 10px 25px;
}

/* --- Address Book Page Specific --- */
.address-book-page .account-content h2,
.address-book-page .account-content h3 { /* H3 for "Add New Address" */
    /* color: var(--primary-color); */ /* Can make H3s pink too */
}

.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.address-card {
    background-color: #ffffff; /* White background for cards */
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes actions to bottom */
}

.address-card.default-address {
    border-left: 5px solid var(--primary-color); /* Highlight default address */
    background-color: #fffafb; /* Very light pink for default */
}

.address-card h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-card .default-badge {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--light-text);
    background-color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px; /* Space before actions */
    flex-grow: 1; /* Allow p to take space before actions */
}

.address-actions {
    margin-top: 10px; /* Spacing if p is short */
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on small card width */
    gap: 8px;
}
.address-actions .btn { /* General styling for buttons in address actions */
    padding: 6px 12px;
    font-size: 0.85rem;
}
.address-actions form {
    margin: 0; /* Remove default form margin if any */
}


/* Ensure .account-sidebar styles are robust */
.account-sidebar {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content; /* So it doesn't stretch unnecessarily */
}
.account-sidebar h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.account-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-sidebar li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.95rem;
    transition: background-color 0.3s, color 0.3s, padding-left 0.3s;
}
.account-sidebar li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-color); /* Icon color */
    transition: color 0.3s;
}
.account-sidebar li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding-left: 15px; /* Indent on hover */
}
.account-sidebar li a.active {
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 500;
    padding-left: 15px;
}
.account-sidebar li a.active i {
    color: var(--light-text); /* Icon color on active link */
}

/* Common table styling for account pages if needed */
.account-page .data-table.simple-table {
    box-shadow: none; /* Remove shadow for simple tables */
    margin-top: 10px;
}
.account-page .data-table.simple-table th {
    background-color: #f8f9fa; /* Lighter header for simple tables */
    color: var(--dark-text);
    font-weight: 600;
}


/* Ensure .form-row and .col-md-6 work for profile forms */
.profile-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Ensure gap is defined */
    margin-bottom: 0; /* Handled by form-group */
}
.profile-form .form-group.col-md-6 {
    flex-basis: calc(50% - 10px); /* For two columns in a row */
}
@media (max-width: 768px) {
    .profile-form .form-row .form-group.col-md-6 {
        flex-basis: 100%; /* Stack on mobile */
    }
}




/* === assets/css/style.css === */
/* ... (your existing styles) ... */

/* --- Checkout Page Styles --- */
.checkout-page { padding: 40px 0; background-color: #fcf7f9; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form | Summary */
    gap: 30px;
    align-items: flex-start; /* Align items to top */
}
.checkout-details-form .form-section,
.checkout-summary {
    background-color: var(--light-color);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.checkout-details-form h2, .checkout-summary h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.checkout-details-form .form-group label { font-weight: 500; }
.checkout-details-form .form-group input[type="text"],
.checkout-details-form .form-group input[type="email"],
.checkout-details-form .form-group input[type="tel"],
.checkout-details-form .form-group textarea,
.checkout-details-form .form-group select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-color);
    border-radius: 4px; box-sizing: border-box; font-size: 0.95em;
}
.checkout-details-form textarea { min-height: 80px; resize: vertical; }

.payment-methods .form-group {
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
}
.payment-methods .form-group:last-child { border-bottom: none; }
.payment-methods input[type="radio"] { margin-right: 10px; vertical-align: middle; }
.payment-methods .radio-label { font-weight: 500; cursor: pointer; }

.checkout-summary { position: sticky; top: 100px; /* Make summary sticky */ }
.summary-items .summary-item { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 8px 0; border-bottom: 1px dotted #f0f0f0;}
.summary-items .summary-item:last-child { border-bottom: none; }
.summary-items .summary-item span:first-child { color: var(--text-color); }
.summary-items .summary-item span:last-child { font-weight: 500; }
.checkout-summary .summary-row { font-size: 1rem; } /* Make summary totals a bit larger */
.checkout-summary .checkout-btn { margin-top: 25px; }

@media (max-width: 992px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; margin-top: 30px; }
}




/* === assets/css/style.css === */
/* ... (your existing styles) ... */

/* --- Customer Order Detail Page --- */
.order-detail-customer-page .page-header-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow button to wrap on small screens */
}
.order-detail-customer-page .page-header-cart h1 {
    margin-bottom: 0; /* Adjust if button wraps */
}

.order-detail-content {
    margin-top: 20px;
}

.order-summary-box,
.order-items-box,
.order-shipping-address-box,
.order-final-summary-box,
.order-customer-notes-box,
.order-tracking-box {
    margin-bottom: 25px;
    background-color: var(--light-color); /* Ensure consistent background for sections */
    padding: 20px 25px; /* Consistent padding */
}
.order-summary-box h3, /* Common h3 style for these boxes */
.order-items-box h3,
.order-shipping-address-box h3,
.order-final-summary-box h3,
.order-customer-notes-box h3,
.order-tracking-box h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 20px; /* Row gap, Column gap */
    font-size: 0.95rem;
}
.order-meta-grid div strong {
    color: var(--dark-color);
}

.order-items-detailed-list .cart-item { /* Using cart-item structure */
    grid-template-columns: 80px 1fr auto; /* Image | Details | Subtotal */
    gap: 15px;
    align-items: flex-start;
}
.order-items-detailed-list .cart-item-image img {
    width: 80px;
    height: 80px;
}
.order-items-detailed-list .item-qty {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 3px;
}

.order-totals-and-addresses-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Address | Totals summary */
    gap: 25px;
    margin-top: 20px;
}
.order-shipping-address-box address {
    font-style: normal;
    line-height: 1.6;
    font-size: 0.95rem;
}
.order-final-summary-box .summary-row {
    font-size: 1rem;
}
.order-final-summary-box .summary-row.total-row span {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .order-totals-and-addresses-layout {
        grid-template-columns: 1fr; /* Stack address and totals summary */
    }
    .order-items-detailed-list .cart-item {
        grid-template-columns: 60px 1fr; /* Image | Details + Subtotal stacked */
        grid-template-areas: 
            "img details"
            "img subtotal";
        align-items: center;
    }
    .order-items-detailed-list .cart-item-image img { width: 60px; height: 60px; }
    .order-items-detailed-list .cart-item-subtotal { text-align: left; margin-top: 5px; }
}


.payment-methods .form-group.payment-option {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.payment-methods .form-group.payment-option:hover {
    border-color: var(--primary-color);
}
.payment-methods input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
    transform: scale(1.2); /* Make radio slightly larger */
}
.payment-methods .radio-label {
    font-weight: 500;
    cursor: pointer;
    display: inline-flex; /* Align icon and text */
    align-items: center;
}
.payment-methods .radio-label i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 20px; /* Align icons */
    text-align: center;
}

.payment-instructions {
    display: none; /* Hidden by default, JS toggles */
    font-size: 0.85em;
    margin-left: 30px; /* Indent instructions */
    margin-top: 8px;
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px dashed var(--secondary-color);
    border-radius: 4px;
    color: var(--text-color);
}
.payment-instructions p {
    margin: 0 0 8px 0;
}
.payment-instructions p:last-child {
    margin-bottom: 0;
}

.checkout-terms {
    font-size: 0.8em;
    text-align: center;
    margin-top: 15px;
    color: #777;
}
.checkout-terms a {
    color: var(--primary-color);
    text-decoration: underline;
}


/* In assets/css/style.css */
.product-specifications > ul > li > ul { /* Target nested UL for features */
    list-style: disc; /* Or circle, or none if you prefer */
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}
.product-specifications > ul > li > ul li {
    padding: 2px 0;
    border-bottom: none; /* Remove main li border for feature list items */
    font-size: 0.9em; /* Slightly smaller for features */
}













/* Header Logo Image */
.logo-link {
    display: inline-block; /* Allows setting height/width on the link if needed, and good for image inside */
    line-height: 0; /* Helps remove any extra space below the image if link is inline-block */
}

.header-logo-image {
    height: 90px; /* EXAMPLE: Adjust to your desired logo height */
    width: auto;   /* Maintain aspect ratio */
    vertical-align: middle; /* Good practice for images inside links */
}






/* --- Slider Section Styles --- */
.main-banner-slider-section {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* Aspect ratio (adjust as needed, 40% = ~2.5:1 ratio) */
    overflow: hidden;
    background-color: #FFB6C1;
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    visibility: hidden;
    z-index: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, visibility 1s;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    z-index: 1;
}

.slide-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 20px;
    box-sizing: border-box;
}

.main-banner-title {
    font-size: clamp(1.5rem, 4vw, 3rem); /* Responsive font size */
    margin-bottom: 10px;
    color: #fff;
}

.main-banner-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 20px;
    color: #eee;
}

.main-banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff69b4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: background-color 0.3s ease;
}

.main-banner-btn:hover {
    background-color: #ff4a9a;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #ff69b4;
    border-color: #ff69b4;
    transform: scale(1.2);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-banner-slider-section {
        padding-bottom: 70%; /* Taller aspect ratio for mobile */
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .main-banner-slider-section {
        padding-bottom: 100%; /* Square aspect ratio for very small screens */
    }
    
    .main-banner-btn {
        padding: 10px 20px;
    }
}







/* Fallback (same as previous good version) */
.static-hero-fallback {
    height: 500vh;
    min-height: 1000px;
    max-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--primary-light, #ffe4e1);
    color: var(--dark-color, #333);
}
.static-hero-fallback > .container {
    width: 100%;
    max-width: 100px;
}
.static-hero-fallback h1 {font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5em;}
.static-hero-fallback p {font-size: clamp(1rem, 2vw, 1.2rem);}





/* AJAX Cart Message Styles */
.ajax-cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745; /* Success green */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50px); /* Start slightly above */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s ease-out;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
}

.ajax-cart-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ajax-cart-message.error {
    background-color: #dc3545; /* Error red */
}

.ajax-cart-message-title {
    margin: 0 0 5px;
    font-size: 1.1em;
    font-weight: bold;
}

.ajax-cart-message-text {
    margin: 0;
    font-size: 0.9em;
}

/* Optional: Style for the cart count in the header */
.cart-count {
    background-color: var(--primary-color); /* Or accent color, adjust to your theme */
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75em;
    vertical-align: super;
    margin-left: -5px; /* Adjust to position correctly next to cart icon */
    min-width: 20px;
    text-align: center;
    display: inline-block;
}







/* --- About Us Page --- */

/* Animated Banner styles (as provided previously - assumed to be correct) */
.about-page-banner-section {
    position: relative;
    width: 100%;
    background-color: #e0e0e0;
}

.page-banner-slider-container {
    position: relative;
    width: 100%;
    height: 50vh;     /* ADJUST: Example: 50% of viewport height. */
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.page-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
    padding: 15px;
    box-sizing: border-box;
}

.page-banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
}

.page-banner-slide .slide-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-banner-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px 30px;
    max-width: 750px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.page-banner-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.4em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-banner-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

.page-banner-slider-controls,
.page-banner-slider-dots {
    /* ... Your existing styles for controls and dots for the top banner ... */
    /* (Copied from previous valid example for completeness if needed) */
}
.page-banner-slider-controls {
    position: absolute; top: 50%; left: 15px; right: 15px; transform: translateY(-50%);
    display: flex; justify-content: space-between; z-index: 10; pointer-events: none;
}
.page-banner-slider-controls .slider-control {
    background-color: rgba(0,0,0,0.3); color: white; border: none; width: 40px; height: 40px;
    line-height: 40px; text-align: center; cursor: pointer; font-size: 24px; border-radius: 50%;
    pointer-events: auto; transition: background-color 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.page-banner-slider-controls .slider-control:hover { background-color: rgba(0,0,0,0.55); }
.page-banner-slider-dots {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.page-banner-slider-dots .slider-dot {
    width: 10px; height: 10px; background-color: rgba(255,255,255,0.4); border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1); cursor: pointer; padding: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.page-banner-slider-dots .slider-dot:hover { background-color: rgba(255,255,255,0.7); }
.page-banner-slider-dots .slider-dot.active { background-color: white; transform: scale(1.1); }


/* --- Single Static Image Section (Below Banner on About Us Page) --- */
.about-static-image-section {
    padding: 40px 0; /* Add vertical spacing for the section */
    background-color: #fff; /* Or any desired background for this section */
    text-align: center; /* This is key to centering the inline-block image */
}

/* Styling for the single static image - NOT full width, centered */
.about-static-image-section .container .about-single-image {
    display: inline-block; /* Allows text-align:center on parent to work, and respects max-width */
    
    /* --- CONTROL THE SIZE OF THE IMAGE HERE --- */
    /* Strategy: Set a percentage width of its container, with a max pixel width */
    width: 85%;         /* Example: Image takes up 85% of the .container's width */
    max-width: 800px;   /* Example: But it won't get wider than 800px */
    /* --- You can also add a max-height if you want to limit its vertical size --- */
    /* max-height: 500px; */
    /* --- END CONTROL SIZE --- */

    height: auto;       /* CRUCIAL to maintain aspect ratio with width/max-width */
    object-fit: cover;  /* How the image behaves if its aspect ratio is forced by max-height.
                           'cover' will fill the dimensions and crop.
                           'contain' will show the whole image and might not fill if max-height limits it.
                           If only width/max-width is used, object-fit has less impact as height is auto. */
    border-radius: 8px; /* Optional rounded corners */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Optional subtle shadow */
    vertical-align: middle; /* Good practice for inline-block images */
}

/* Placeholder style for the static image if the file is missing */
.about-static-image-section .container .image-placeholder.static-image-placeholder {
    display: inline-block; /* Match the image display for centering */
    width: 85%;            /* Match the image width strategy */
    max-width: 800px;      /* Match the image max-width */
    height: 450px;         /* Give placeholder a decent fixed height */
    background-color: #e8e8e8;
    /* display: flex; */ /* Not needed if inline-block + text-align for inner content */
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.1rem;
    border-radius: 8px;
    /* margin: 0 auto; */ /* Not needed if parent is text-align: center and this is inline-block */
    text-align: center; /* Center the text within the placeholder */
}

/* Fallback for the entire About Us page (if no banner and no static image) */
.simplified-about-layout .container > p {
    padding: 50px 15px;
    text-align: center;
    font-size: 1.1rem;
    color: #666;
}

/* If the static image is used AS the main banner (fallback) */
.about-static-image-section.as-main-banner {
    padding: 0; /* Remove section padding if it's acting as edge-to-edge banner */
    text-align: left; /* Reset text-align if image inside is 100% width */
}
.about-static-image-section.as-main-banner .container.full-width-container { /* Assuming this class is added in PHP if it's the main banner */
    max-width: 100%;
    padding: 0;
}
.about-static-image-section.as-main-banner .about-single-image {
    display: block;
    width: 100%;
    max-width: none; /* Override specific max-width */
    height: auto;
    max-height: 50vh; /* Match other banner heights */
    object-fit: cover;
    border-radius: 0; /* No radius for edge-to-edge */
    box-shadow: none; /* No shadow for edge-to-edge */
}







/* --- Site Footer (P&G Inspired) --- */
.site-footer {
    position: relative;
    background-color: #ffffff;
    color: #ffffff; 
    
    padding-top: 80px; 
    margin-top: 50px; 
}



.footer-content-wrapper {
    background-color: #ffffff; 
    padding: 40px 0 30px 0; 
    position: relative; 
    z-index: 2; 
}

.footer-back-to-top {
    text-align: center;
    margin-bottom: 35px; /* Space below "Back to top" */
}

.btn-back-to-top {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid rgba(255, 255, 255, 0.7); /* Slightly transparent border */
    color: #000000;
    text-decoration: none;
    border-radius: 22px; /* More rounded */
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    opacity: 0; /* Hidden by default, JS will show it */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.btn-back-to-top.visible { /* Class added by JS */
    opacity: 1;
    visibility: visible;
}


.btn-back-to-top:hover {
    background-color: #000000;
    color: #003da5; /* Match footer background on hover */
}

.footer-links-grid {
    display: grid;
    /* Create 5 columns for the example, last two might be narrower */
    grid-template-columns: repeat(3, 1fr) repeat(2, 0.8fr); /* Example: 3 wider, 2 narrower */
    gap: 25px 20px; /* Row gap, Column gap */
    margin-bottom: 35px;
}

.footer-column h4 {
    font-size: 18px; /* P&G style is small, bold, uppercase */
   
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: #000000; /* A lighter, less saturated blue/grey for headings */
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;

}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem; /* Standard link size */
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    /* color: #d1e0ff; */ /* Slightly lighter blue on hover */
    text-decoration: underline;
}

.footer-column ul li a i.fa-xs { /* External link icon */
    margin-left: 5px;
    font-size: 0.65em; /* Make it smaller */
    opacity: 0.6;
    position: relative;
    top: -1px; /* Fine-tune alignment */
}
.footer-column ul li a .footer-inline-icon { /* For privacy/ad choices icons */
    height: 11px; /* Adjust size */
    width: auto;
    margin-left: 5px;
    vertical-align: text-bottom; /* Better alignment with text */
    position: relative;
    top: -1px;
}


.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* More subtle border */
    padding-top: 25px;
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 15px 20px; /* Row and column gap for wrapped items */
    font-size: 0.75rem; /* Smaller text for bottom bar */
    color: #000000; /* Lighter text color */
}

.footer-region .btn-region {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #0a0a0a;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex; /* For icon and text alignment */
    align-items: center;
}
.footer-region .btn-region i {
    margin-right: 5px;
    font-size: 0.9em;
}

.footer-copyright {
    /* Removed text-align: center to allow natural flow with flexbox */
    /* flex-grow: 1; */ /* Removed to allow natural sizing */
}

.footer-social-icons {
    display: flex;
    gap: 15px; /* Space between social icons */
}
.footer-social-icons a {
    color: #080808;
    font-size: 1rem; /* Slightly larger social icons */
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social-icons a:hover {
    color: #d1e0ff;
    transform: translateY(-2px); /* Slight lift on hover */
}

.footer-aux-links .btn-cookie-consent {
    background-color: transparent;
    /* border: 1px solid rgba(255, 255, 255, 0.5); */ /* Optional border */
    border: none;
    color: #000000;
    padding: 5px 0px; /* Remove padding if just text link */
    /* border-radius: 15px; */
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}
.footer-aux-links .btn-cookie-consent:hover {
    /* background-color: #ffffff; */
    /* color: #003da5; */
    text-decoration: underline;
}

/* Responsive adjustments for footer */
@media (max-width: 1024px) { /* Adjust breakpoint for when columns start re-arranging */
    .footer-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 50px; /* Less padding for smaller swoosh effect */
    }
    .footer-swoosh-container {
        transform: translateY(-70%); /* Adjust swoosh pull for smaller view */
    }
    .footer-content-wrapper {
        padding: 60px 0 20px 0;
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        gap: 20px 15px;
    }
    .footer-column {
        margin-bottom: 25px;
    }
    .footer-column:last-child {
        margin-bottom: 0;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        gap: 12px;
    }
    .footer-region, .footer-copyright, .footer-social-icons, .footer-aux-links {
        width: 100%; /* Make each take full width to stack nicely */
        text-align: center; /* Center text content */
        margin-bottom: 10px;
    }
    .footer-social-icons {
        justify-content: center; /* Center social icons */
    }
    .footer-copyright {
        order: 1; /* Copyright first in stack on mobile */
    }
    .footer-social-icons { order: 2; }
    .footer-region { order: 3; }
    .footer-aux-links { order: 4; }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr; /* Single column */
        text-align: left; /* Or center if preferred */
    }
    .footer-column h4 {
        margin-bottom: 10px;
    }
    .footer-column ul li {
        margin-bottom: 8px;
    }
}





/* --- General Info Page Styles --- */
.info-page .page-hero {
    padding: 60px 0; /* Adjust padding */
    text-align: center;
    /* background-color: var(--primary-light); /* Already inline, but can be class based */
}
.info-page .page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--dark-color); /* Or var(--primary-color) */
    margin: 0;
}
.info-page .page-hero p { /* Optional subtitle for hero */
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 10px;
}

.info-page .page-content-section {
    padding: 40px 0 60px 0;
}
.info-page .content-block {
    max-width: 800px; /* Constrain text width for readability */
    margin: 0 auto;
    background-color: var(--light-color); /* Optional: if section bg is different */
    padding: 30px; /* Optional: if you want a boxed content look */
    border-radius: 8px; /* Optional */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.03); /* Optional */
}
.info-page .content-block h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}
.info-page .content-block h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-top: 30px;
    margin-bottom: 15px;
}
.info-page .content-block p,
.info-page .content-block ul,
.info-page .content-block ol {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: var(--text-color);
}
.info-page .content-block ul,
.info-page .content-block ol {
    padding-left: 25px; /* Indent lists */
}
.info-page .content-block li {
    margin-bottom: 0.5em;
}
.info-page .content-block a {
    color: var(--primary-color);
    text-decoration: underline;
}
.info-page .content-block a:hover {
    color: var(--secondary-color);
}
.info-page .content-block hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}
/* For tables on info pages like shipping */
.info-page .data-table.simple-table { margin-top: 10px; }
.info-page .data-table.simple-table th { background-color: #f8f9fa; color: var(--dark-text); font-weight:600; }
.info-page .data-table.simple-table caption { caption-side: bottom; text-align: left; font-size: 0.85em; color: #777; padding-top: 10px; }






.recommended-for-you-section {
    background-color: #f5f5f5; /* Light gray background, similar to Shopee */
    padding: 20px 0 30px 0;
    border-bottom: 1px solid var(--border-color); /* Separator line */
}

.recommended-for-you-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Space between header and product grid */
}

.recommended-for-you-section .section-title {
    font-size: 1rem; /* Shopee uses smaller, uppercase, grayish titles for these sections */
    color: rgba(0,0,0,.54); /* Grayish text */
    text-transform: uppercase;
    font-weight: 500; /* Or 400 for lighter */
    margin: 0;
    text-align: left;
}

.recommended-for-you-section .see-all-link {
    font-size: 0.8rem;
    color: #EE4D2D; /* Shopee orange */
    text-decoration: none;
    font-weight: 400;
}
.recommended-for-you-section .see-all-link i {
    font-size: 0.8em; /* Make chevron slightly smaller */
    margin-left: 2px;
}

/* Styling for the product cards within "Recommended for You" */
/* It reuses .horizontal-scroll-grid, .product-card, .compact-card, .top-product-card */
/* You might want to ensure .top-product-card specifically doesn't have the "TOP" badge from index.php if it's not appropriate here */
.recommended-for-you-section .product-card {
    min-width: 150px; /* Adjust card width for this section */
    max-width: 180px;
    background-color: var(--light-color);
    border: none; /* Shopee cards in this section often have no border */
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.05); /* Very subtle shadow */
}
.recommended-for-you-section .product-image-container {
    height: 150px; /* Adjust image height */
}
.recommended-for-you-section .product-info {
    padding: 8px; /* Tighter padding */
}
.recommended-for-you-section .product-info h3 {
    font-size: 0.8rem; /* Smaller title */
    height: 2.4em; /* Limit to 2 lines */
    margin-bottom: 4px;
    font-weight: 400; /* Lighter font weight */
    color: rgba(0,0,0,.87);
}
.recommended-for-you-section .product-info .price {
    font-size: 0.95rem; /* Smaller price */
    color: #EE4D2D; /* Shopee orange for price */
    font-weight: 500;
}
.recommended-for-you-section .discount-badge { /* If you use this */
    top: 0; right: 0; font-size: 0.6rem; padding: 1px 4px;
    background-color: rgba(255,216,64,0.9); color: #EE4D2D;
    border-top-right-radius: 2px; border-bottom-left-radius: 2px;
}
.recommended-for-you-section .shopee-mall-badge { /* Example for a "Mall" badge */
    position: absolute;
    top: 5px; left: 5px;
    background-color: #d0011b; /* Shopee Mall Red */
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 2px;
}
.recommended-for-you-section .product-feedback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(0,0,0,.54);
    margin-top: 4px;
}
.recommended-for-you-section .stars-display-small i.fas.fa-star { /* Filled star */
    color: #FFCE3D; /* Shopee gold/yellow for stars */
}
.recommended-for-you-section .stars-display-small i.far.fa-star { /* Empty star */
    color: #d5d5d5;
}

/* Main product listing (below filters) might need some top margin now */
.products-page-section .main-products-content {
    margin-top: 20px; /* If a hero/recommended section is above the filters */
}
.products-sidebar { /* Renamed from .sidebar to avoid admin conflict */
    flex: 0 0 280px;
    /* ... your existing filter sidebar styles ... */
}


/* === assets/css/style.css === */
/* ... (your existing styles) ... */

/* --- Content Banners Styling (e.g., after Recommended Products) --- */
.content-banner-block {
    padding: 30px 0; /* Adjust as needed */
}

.content-banners-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Your existing grid */
}

.content-banner-item {
    overflow: hidden; /* Important for containing the scaled image */
    border-radius: 8px; /* Apply border-radius to the container if image has it */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Optional: add a subtle shadow */
    position: relative; /* If you ever want to add text overlays */
}

.content-banner-item a { /* Make the link fill the item for better clickability */
    display: block;
    line-height: 0; /* Removes extra space if image is inline-block inside link */
}

.content-banner-item img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Match parent if item has overflow hidden */
    display: block; /* Remove extra space below image */
    
    /* --- NEW: For Hover Effect --- */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth zoom transition */
    cursor: pointer; /* Change cursor to pointer on image */
}

.content-banner-item a:hover img, /* Apply zoom when hovering the link (which contains the image) */
.content-banner-item img:hover { /* Also apply if somehow only image is hovered (less likely with <a> block) */
    transform: scale(1.05); /* Zoom image slightly (e.g., 5% bigger) */
    /* Optional: Add a slightly more pronounced shadow on hover */
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* This would need to be on .content-banner-item */
}
/* If .content-banner-item has a box-shadow and you want it to lift:
.content-banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
*/



/* --- Custom Image Modal Styles --- */
.custom-image-modal-overlay {
    display: none; /* Hidden by default, JS toggles */
    position: fixed;
    z-index: 10001; /* Ensure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is too long, though image should fit */
    background-color: rgba(0,0,0,0.85); /* Darker overlay */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Padding for the overlay itself */
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.custom-image-modal-overlay.active {
    display: flex; /* Use flex to center content */
    opacity: 1;
}

/* This div wraps the image and the X button that sits on the image */
.custom-image-modal-main-content {
    position: relative; /* For positioning the close button on the image */
    margin: auto; /* Helps with centering if flex alignment is not enough */
    background-color: #1c1c1c; /* Dark background behind image if image is smaller */
    padding: 5px; /* Small padding around the image within its dark box */
    border-radius: 5px; /* Rounded corners for the image box */
    max-width: 90%;
    max-height: 90vh; /* Max height for the entire image container */
    display: flex; /* To help with image scaling if needed */
    flex-direction: column; /* Stack image and caption */
    align-items: center; /* Center image if it's smaller than container */
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out .1s; /* Slight delay on content pop */
}
.custom-image-modal-overlay.active .custom-image-modal-main-content {
    transform: scale(1);
}


#modalDetailedImage {
    display: block; /* Remove extra space below image */
    max-width: 100%;
    max-height: calc(85vh - 60px); /* Max height for image, leaving space for caption */
    /* Max height adjusted considering caption */
    object-fit: contain; /* Ensure whole image is visible */
    border-radius: 3px; /* Slight rounding if image itself isn't transparent */
}

.custom-image-modal-caption {
    margin-top: 10px;
    padding: 5px 15px;
    color: #ccc; /* Light caption text on dark modal background */
    font-size: 0.9em;
    text-align: center;
    width: 100%; /* Take width of parent */
    box-sizing: border-box;
}

/* Close button positioned ON THE IMAGE (or its immediate container) */
.custom-image-modal-close-on-image {
    position: absolute;
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for visibility */
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    padding: 0px 8px 3px 8px; /* Adjust padding to center the '×' nicely */
    border-radius: 50%; /* Circular button */
    cursor: pointer;
    z-index: 10; /* Ensure it's above the image */
    transition: background-color 0.2s ease, color 0.2s ease;
}
.custom-image-modal-close-on-image:hover {
    background-color: rgba(255, 0, 0, 0.7); /* Redder on hover */
    color: white;
}







/* --- Homepage Videos Section --- */
.homepage-videos-section {
    background-color: #f8f9fa; /* Light background for this section */
    padding: 40px 0;
}
.homepage-videos-section .section-title {
    margin-bottom: 30px;
    text-align: center;
}

.videos-grid {
    display: grid;
    /* For 2 videos per row on larger screens, 1 on smaller */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    /* If you want 3 or 4 per row, adjust minmax: minmax(280px, 1fr) for 4, minmax(320px, 1fr) for 3 */
    gap: 25px;
}

.video-item-card {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    overflow: hidden; /* If thumbnail has different radius */
}

.video-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
    background-color: #e0e0e0; /* Fallback if image fails to load */
    /* Maintain aspect ratio, e.g., 16:9 */
    padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
}
.video-thumbnail-wrapper img.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-item-card:hover .video-thumbnail-wrapper img.video-thumbnail {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.3);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.video-item-card:hover .play-button-overlay {
    opacity: 1;
}
.play-button-overlay i {
    font-size: 3.5rem; /* Play button icon size */
    color: rgba(255,255,255,0.9);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.video-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 15px 15px 5px 15px;
    /* Truncate if needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-item-description {
    font-size: 0.85rem;
    color: var(--text-color);
    padding: 0 15px 15px 15px;
    line-height: 1.5;
    /* Truncate if needed */
    height: 3em; /* Approx 2 lines */
    overflow: hidden;
}


/* --- Custom Video Modal Styles --- */
.custom-video-modal-overlay {
    display: none; position: fixed; z-index: 10002; /* Higher than image modal */
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.9); /* Darker for video */
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease-in-out;
}
.custom-video-modal-overlay.active { display: flex; opacity: 1; }

.custom-video-modal-content {
    position: relative;
    background-color: #000; /* Black background for video player */
    padding: 0; /* No padding around the video player itself */
    border-radius: 5px;
    width: 90%;
    max-width: 854px; /* For 16:9 video at 480p height */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out .1s;
}
.custom-video-modal-overlay.active .custom-video-modal-content {
    transform: scale(1);
}

/* Aspect ratio box for responsive video iframe/tag */
#videoPlayerContainer {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}
#videoPlayerContainer iframe,
#videoPlayerContainer video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.custom-video-modal-close {
    position: absolute;
    top: -35px; /* Position above the video box */
    right: 0px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: none; border: none;
    transition: color 0.2s;
}
.custom-video-modal-close:hover { color: #ccc; }

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
     .custom-video-modal-content { max-width: 95%; }
     .custom-video-modal-close { top: -30px; right: 5px; }
}



.content-block-with-background-video {
    position: relative;
    width: 100%;
    /* Define a height or aspect ratio for these blocks */
    height: 450px; /* Example fixed height, adjust as needed */
    /* Or use padding-top for aspect ratio:
    padding-top: 40%; /* Example aspect ratio */
    overflow: hidden;
    margin-bottom: 30px; /* Space between blocks */
    background-color: #e0e0e0; /* Fallback if video doesn't load */
    border-radius: 8px; /* Optional */
    display: flex; /* For layout with accompanying text if used */
}

/* If text is NOT an overlay but beside the video */
.content-block-with-background-video.text-left-video-right .background-video-wrapper { order: 2; flex: 1.2; }
.content-block-with-background-video.text-left-video-right .accompanying-text-content { order: 1; flex: 1; padding: 30px; }

.content-block-with-background-video.video-left-text-right .background-video-wrapper { order: 1; flex: 1.2; }
.content-block-with-background-video.video-left-text-right .accompanying-text-content { order: 2; flex: 1; padding: 30px; }

.content-block-with-background-video.video-full-bleed .background-video-wrapper {
    width: 100%; /* Take full width of parent block */
}


.background-video-wrapper {
    position: absolute; /* If block has fixed height/aspect */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Clip the video */
    z-index: 1; /* Behind overlay content */
}

video.bg-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial: makes video cover the wrapper, crops if needed */
}

.video-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* On top of video, below any other interactive elements */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 40px;
    box-sizing: border-box;
    color: var(--light-color); /* Default text color for overlay */
    /* Optional: Add a slight dark gradient to ensure text readability */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.video-overlay-content h1 { /* Or h2 if it's not the main page title */
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 15px;
    color: var(--light-color);
}
.video-overlay-content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    margin-bottom: 20px;
    max-width: 600px;
    color: var(--light-color);
}
/* Accompanying text styles if used beside the video */
.accompanying-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* background-color: rgba(255,255,255,0.9); Example if it overlaps video slightly */
}
.accompanying-text-content h2 { color: var(--primary-color); }


/* Styles for clickable video items (YouTube/Vimeo) if you want them in same section */
.clickable-video-item {
    /* Uses .video-item-card styles from previous response */
    /* You might put these in a different grid or section than background videos */
}

/* ===== FIXED MOBILE NAVIGATION - ADD THIS AT THE END OF YOUR CSS ===== */
@media screen and (max-width: 768px) {
    /* Force header container to proper layout */
    .header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }
    
    /* Hide the main navigation by default on mobile */
    #mainNav {
        display: none !important;
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        z-index: 9999 !important;
        padding: 20px !important;
        border-top: 2px solid #ff69b4 !important;
    }
    
    /* Show navigation when active class is added */
    #mainNav.active {
        display: block !important;
    }
    
    /* Style the navigation menu */
    #primaryNavMenu {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #primaryNavMenu li {
        width: 100% !important;
        margin: 0 !important;
    }
    
    #primaryNavMenu li a {
        display: block !important;
        padding: 15px 20px !important;
        background: #f8f9fa !important;
        color: #333 !important;
        text-decoration: none !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        border-radius: 8px !important;
        border: 1px solid #eee !important;
    }
    
    #primaryNavMenu li a:hover,
    #primaryNavMenu li a.active {
        background: linear-gradient(135deg, #ff69b4, #89CFF0) !important;
        color: white !important;
    }
    
    /* Show mobile toggle button */
    .mobile-nav-toggle {
        display: block !important;
        background: linear-gradient(135deg, #ff69b4, #89CFF0) !important;
        border: none !important;
        color: white !important;
        font-size: 1.5rem !important;
        padding: 10px 15px !important;
        border-radius: 50px !important;
        cursor: pointer !important;
        z-index: 10000 !important;
    }
    
    /* Hide desktop dropdown stuff on mobile */
    .dropdown-menu-account {
        display: none !important;
    }
    
    /* Adjust logo size for mobile */
    .header-logo-image {
        max-height: 40px !important;
    }
    
    /* Adjust flash message container */
    .flash-message-container {
        margin-top: 80px !important;
        padding: 0 20px !important;
    }
    
    /* Ensure body padding is correct */
    body {
        padding-top: 80px !important;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    #mainNav {
        top: 60px !important;
        padding: 15px !important;
    }
    
    #primaryNavMenu li a {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
    }
    
    .header-logo-image {
        max-height: 35px !important;
    }
    
    .flash-message-container {
        margin-top: 70px !important;
    }
    
    body {
        padding-top: 70px !important;
    }
    
    .mobile-nav-toggle {
        font-size: 1.3rem !important;
        padding: 8px 12px !important;
    }
}






