/* ==========================================================================
   KidsKart — Frontend Styles
   Theme driven: colors via CSS variables injected in layouts/frontend.php
   ========================================================================== */

/* ---------- Base ---------- */
:root {
    --font-family: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    font-size: var(--font-size, 16px);
    color: var(--text-color, #2d3436);
    background-color: var(--body-bg, #fdf2f6);
    line-height: 1.6;
}

a { color: var(--primary, #ff6b9d); text-decoration: none; }
a:hover { color: var(--primary, #ff6b9d); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; }

img { max-width: 100%; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
    background: var(--primary, #ff6b9d);
    color: #fff;
    font-size: .85rem;
    padding: .45rem 1rem;
    letter-spacing: .3px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--header-bg, #fff);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    z-index: 1030;
}

.navbar-brand { padding: 0; }

.brand-logo { object-fit: contain; }

.brand-text {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary, #ff6b9d);
}

.header-search .form-control {
    border-radius: 50rem;
    padding-left: 1.2rem;
    border: 2px solid #e9ecef;
}

.header-search .search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 40px;
    border: none;
    border-radius: 50rem;
    background: var(--button-bg, var(--primary, #ff6b9d));
    color: var(--button-text, #fff);
}

.icon-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color, #2d3436);
    font-size: 1.2rem;
    transition: background .2s, color .2s;
}
.icon-link:hover { background: rgba(0, 0, 0, .05); color: var(--primary, #ff6b9d); }

.count-badge {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: .65rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50rem;
    padding: 0 5px;
}

.header-toggle { font-size: 1.3rem; }

/* ---------- Main navigation ---------- */
.main-nav { border-top: 1px solid #f1f3f5; }

.main-menu > li { position: relative; }

.main-menu > li > a {
    display: block;
    padding: .8rem 1.1rem;
    color: var(--text-color, #2d3436);
    font-weight: 500;
    font-size: .95rem;
}
.main-menu > li > a:hover, .main-menu > li > a.active { color: var(--primary, #ff6b9d); }
.main-menu > li > a.active { font-weight: 600; }

.main-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    padding: .5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s;
    z-index: 100;
}
.main-menu li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-menu .dropdown a { display: block; padding: .5rem 1.2rem; font-size: .9rem; color: #495057; }
.main-menu .dropdown a:hover { background: #f8f9fa; color: var(--primary, #ff6b9d); }

.mobile-menu a { display: block; padding: .65rem 0; color: var(--text-color, #2d3436); font-weight: 500; }
.mobile-menu a i { margin-right: .5rem; color: var(--primary, #ff6b9d); }

/* ---------- Search suggestions ---------- */
.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
    z-index: 1050;
    overflow: hidden;
}
.search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1rem;
    cursor: pointer;
}
.search-suggestions .suggestion-item:hover { background: #f8f9fa; }
.search-suggestions .suggestion-item img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.search-suggestions .suggestion-name { font-size: .85rem; color: var(--text-color, #2d3436); }
.search-suggestions .suggestion-price { font-size: .8rem; color: var(--primary, #ff6b9d); font-weight: 600; }
.search-suggestions .suggestion-empty { padding: 1rem; color: #6c757d; font-size: .9rem; text-align: center; }

/* ---------- Flash messages ---------- */
.flash-container { width: 100%; max-width: 480px; padding: 0 1rem; }
.flash-container .alert { border-radius: 14px; }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; }
.hero-slide { position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden; }
.hero-caption { position: relative; z-index: 2; padding: 3rem 0; }
.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary, #ff6b9d);
    font-weight: 600;
    font-size: .85rem;
}
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; }
.btn-hero {
    background: var(--button-bg, var(--primary, #ff6b9d));
    color: var(--button-text, #fff);
    border: none;
    padding: .7rem 1.6rem;
    border-radius: var(--radius, 12px);
    font-weight: 600;
}
.btn-hero:hover { opacity: .92; color: var(--button-text, #fff); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-newsletter {
    background: var(--button-bg, var(--primary, #ff6b9d));
    border-color: var(--button-bg, var(--primary, #ff6b9d));
    color: var(--button-text, #fff);
    border-radius: var(--radius, 12px);
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-newsletter:hover, .btn-newsletter:focus, .btn-newsletter:active {
    background: var(--primary, #ff6b9d);
    border-color: var(--primary, #ff6b9d);
    color: var(--button-text, #fff);
    opacity: .9;
}
.btn-outline-primary {
    border-color: var(--primary, #ff6b9d);
    color: var(--primary, #ff6b9d);
    border-radius: var(--radius, 12px);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--primary, #ff6b9d);
    border-color: var(--primary, #ff6b9d);
    color: #fff;
}

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 2rem; }
.section-title { font-size: 1.8rem; font-weight: 800; }
.section-subtitle { color: #6c757d; max-width: 560px; margin: .4rem auto 0; }
.view-all {
    color: var(--primary, #ff6b9d);
    font-weight: 600;
    font-size: .9rem;
}
.view-all i { transition: transform .2s; }
.view-all:hover i { transform: translateX(4px); }

/* ---------- Category cards ---------- */
.categories-section { background: #fff; }
.category-card {
    display: block;
    text-align: center;
    padding: 1.25rem .75rem;
    border-radius: var(--radius, 12px);
    border: 1px solid #f1f3f5;
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .08); }
.category-img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin-bottom: .6rem;
    background: #f8f9fa;
    overflow: hidden;
}
.category-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-name { font-weight: 600; font-size: .92rem; color: var(--text-color, #2d3436); }
.category-count { font-size: .78rem; color: #adb5bd; }

.product-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }
.product-slide {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* ---------- Product cards ---------- */
.product-card {
    background: #fff;
    border-radius: var(--radius, 12px);
    overflow: hidden;
    border: 1px solid #f1f3f5;
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    width: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0, 0, 0, .09); }
.product-thumb { position: relative; }
.product-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f8f9fa; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badges { position: absolute; top: .7rem; left: .7rem; z-index: 2; }
.badge-sale { background: #ff4d6d; color: #fff; font-weight: 600; }
.badge-new { background: var(--secondary, #4ecdc4); color: #fff; font-weight: 600; }
.badge-stock { background: #f8f9fa; color: #495057; font-weight: 500; font-size: .72rem; }

.wishlist-btn {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1rem;
    transition: .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    cursor: pointer;
}
.wishlist-btn:hover { color: #ff4d6d; }
.wishlist-btn.active { color: #ff4d6d; background: #fff; }

.product-info { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-brand { font-size: .75rem; color: #adb5bd; text-transform: uppercase; letter-spacing: .6px; }
.product-name { font-weight: 600; font-size: .95rem; color: var(--text-color, #2d3436); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-rating { font-size: .8rem; }
.product-price { margin-top: auto; padding-top: .5rem; }
.price-current { font-weight: 700; font-size: 1.05rem; color: var(--primary, #ff6b9d); }
.price-old { text-decoration: line-through; color: #adb5bd; font-size: .85rem; margin-left: .35rem; }
.product-actions {
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: .7rem;
    display: flex;
    gap: .5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    z-index: 3;
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-actions .add-to-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .6rem .9rem;
    border: none;
    border-radius: 50rem;
    background: var(--primary, #ff6b9d);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 8px 18px rgba(255, 107, 157, .35);
}
.product-actions .add-to-cart:hover { background: #e5538a; transform: translateY(-2px); }
.product-actions .add-to-cart:active { transform: translateY(0); }
.product-actions .add-to-cart:disabled {
    background: #f1f3f5;
    color: #adb5bd;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Brands ---------- */
.brands-section { background: #fff; }
.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    padding: .8rem;
    border: 1px solid #f1f3f5;
    border-radius: var(--radius, 12px);
    filter: grayscale(1);
    opacity: .75;
    transition: .25s;
    background: #fff;
}
.brand-card:hover { filter: grayscale(0); opacity: 1; }
.brand-card img { max-height: 56px; max-width: 100%; object-fit: contain; }

/* ---------- Promo / newsletter ---------- */
.promo-section { position: relative; border-radius: 20px; overflow: hidden; }
.promo-caption {  z-index: 2; text-align: center;  }
.promo-card { background: #fff; border-radius: var(--radius, 12px); overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.promo-card img { height: 240px; width: 100%; object-fit: cover; }
.promo-card .card-body { padding: 1.5rem; }

.newsletter-section {
    background: var(--primary, #ff6b9d);
    color: #fff;
    border-radius: 20px;
}
.newsletter-form .form-control { border-radius: 50rem; border: none; padding: .7rem 1.2rem; }
.newsletter-form .btn-newsletter { background: #fff; color: var(--primary, #ff6b9d); border-radius: 50rem; padding: .7rem 1.4rem; font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius, 12px);
    padding: 1.75rem;
    border: 1px solid #f1f3f5;
    height: 100%;
}
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 1.3rem;
    color: #adb5bd;
}
.testimonial-text { font-size: .95rem; color: #495057; font-style: italic; }

/* ---------- Page banner ---------- */
.page-banner { background: linear-gradient(135deg, var(--primary, #ff6b9d), var(--secondary, #4ecdc4)); color: #fff; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255, 255, 255, .85); }
.page-banner .breadcrumb-item.active { color: #fff; }

/* ---------- Catalog / filters ---------- */
.filter-sidebar { border: 1px solid #f1f3f5; border-radius: var(--radius, 12px); }
.filter-body { padding: 1rem; }
.filter-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .75rem;
}
.filter-group { padding: 1rem 0; border-bottom: 1px solid #f1f3f5; }
.filter-group:last-child { border-bottom: 0; }
.filter-input:checked + .color-dot,
.color-dot-label:hover .color-dot,
.color-dot-input:checked ~ .color-dot { outline: 3px solid var(--primary, #ff6b9d); outline-offset: 2px; }
.color-dot {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: .15s;
}
.color-dot-input { display: none; }
.size-chip {
    display: inline-block;
    padding: .35rem .8rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: .82rem;
    cursor: pointer;
    transition: .15s;
}
.size-chip-input { display: none; }
.size-chip-input:checked ~ .size-chip { background: var(--primary, #ff6b9d); border-color: var(--primary, #ff6b9d); color: #fff; }

.btn-filter-toggle { border: 1px solid #dee2e6; border-radius: 10px; margin: .75rem; }

.catalog-toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.view-toggle { display: inline-flex; gap: .25rem; }
.view-toggle .btn { border: 1px solid #dee2e6; color: #6c757d; }
.view-toggle .btn.active { background: var(--primary, #ff6b9d); border-color: var(--primary, #ff6b9d); color: #fff; }
.result-count { color: #6c757d; font-size: .9rem; }

/* List view */
.product-card-list { flex-direction: row; }
.product-card-list .product-img { width: 200px; flex-shrink: 0; }
.product-card-list .product-name { min-height: 0; }

/* ---------- Product detail ---------- */
.product-gallery { position: relative; }
.main-image {
    border-radius: var(--radius, 12px);
    border: 1px solid #f1f3f5;
    background: #fff;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: zoom-in;
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.thumb-btn {
    width: 74px;
    height: 74px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: #f8f9fa;
    transition: .15s;
}
.thumb-btn.active { border-color: var(--primary, #ff6b9d); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.gallery-view-btn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #212529;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s;
}
.main-image:hover .gallery-view-btn,
.gallery-view-btn:focus-visible { opacity: 1; }
.gallery-count-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 999px;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

/* ---------- Product image lightbox ---------- */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}
.product-lightbox.open { display: block; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, .92);
}
.lightbox-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 1.25rem;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.lightbox-close:hover { background: #dc3545; }
.lightbox-figure {
    margin: 0;
    max-width: min(900px, 94vw);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-figure img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.lightbox-caption {
    margin-top: .6rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    text-align: center;
}
.lightbox-product {
    font-size: .9rem;
    opacity: .85;
    max-width: 70vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lightbox-counter {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .5px;
    background: rgba(255, 255, 255, .14);
    padding: .2rem .7rem;
    border-radius: 999px;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .32); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 94vw;
}
.lightbox-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #fff;
    opacity: .65;
    transition: opacity .15s, border-color .15s;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb:hover { opacity: 1; }
.lightbox-thumb.active { border-color: var(--primary, #ff6b9d); opacity: 1; }
@media (max-width: 576px) {
    .lightbox-prev { left: .5rem; }
    .lightbox-next { right: .5rem; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
}

.product-detail-title { font-size: 1.6rem; font-weight: 800; }
.product-price-lg { font-size: 1.8rem; font-weight: 800; color: var(--primary, #ff6b9d); }
.product-rating-detail { color: #6c757d; font-size: .9rem; }
.product-short-info { color: #6c757d; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 42px;
    border: none;
    background: #f8f9fa;
    font-size: 1rem;
    cursor: pointer;
}
.qty-btn:hover { background: #e9ecef; }
.qty-stepper input {
    width: 52px;
    height: 42px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.product-actions-static .btn { border-radius: 10px; font-weight: 600; }

.color-dot.selected { outline: 3px solid var(--primary, #ff6b9d); outline-offset: 2px; }

.product-tabs .nav-link { font-weight: 600; color: #6c757d; }
.product-tabs .nav-link.active { color: var(--primary, #ff6b9d); }

.rating-star { font-size: 1.6rem; color: #dee2e6; cursor: pointer; transition: .15s; }
.rating-star.active { color: #ffc107; }

.reviews-area .review-item { border-bottom: 1px solid #f1f3f5; padding: 1rem 0; }
.reviews-area .review-item:last-child { border-bottom: 0; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: #f1f3f5; display: flex; align-items: center; justify-content: center; }
.review-image { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }

/* ---------- Cart ---------- */
.cart-table .cart-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}
.cart-qty-input { width: 44px; text-align: center; border: 1px solid #dee2e6; border-radius: 6px; height: 30px; }
.item-total { font-weight: 700; }
.summary-lines .border-bottom { padding: .6rem 0; }

/* ---------- Checkout ---------- */
.payment-option {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: .9rem 1rem;
    cursor: pointer;
    transition: .15s;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.payment-option.selected { border-color: var(--primary, #ff6b9d); background: rgba(255, 107, 157, .06); }
.shipping-method {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: .85rem 1rem;
    cursor: pointer;
    transition: .15s;
}
.shipping-method.selected { border-color: var(--primary, #ff6b9d); background: rgba(255, 107, 157, .06); }

/* ---------- Auth pages ---------- */
.auth-card {
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    padding: 2.25rem;
}
.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 107, 157, .12);
    color: var(--primary, #ff6b9d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* ---------- Account ---------- */
.account-sidebar { background: #fff; border-radius: var(--radius, 12px); border: 1px solid #f1f3f5; padding: 1rem; }
.account-nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .9rem;
    border-radius: 10px;
    color: #495057;
    font-weight: 500;
    font-size: .92rem;
}
.account-nav a:hover, .account-nav a.active { background: rgba(255, 107, 157, .1); color: var(--primary, #ff6b9d); }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.stat-card { background: #fff; border-radius: var(--radius, 12px); padding: 1.1rem; border: 1px solid #f1f3f5; }
.stat-label { color: #6c757d; font-size: .8rem; }
.stat-value { font-size: 1.4rem; font-weight: 800; }

/* ---------- Contact ---------- */
.contact-info i { color: var(--primary, #ff6b9d); }

/* ---------- Success / error pages ---------- */
.success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

/* ---------- Swiper overrides ---------- */
.swiper-pagination-bullet-active { background: var(--primary, #ff6b9d); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg, #2d3436); color: rgba(255, 255, 255, .75); margin-top: 4rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links a { color: rgba(255, 255, 255, .65); font-size: .92rem; display: inline-block; padding: .2rem 0; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .4rem; font-size: .9rem; }
.footer-contact i { color: var(--primary, #ff6b9d); margin-top: .15rem; }
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: .2s;
}
.social-links a:hover { background: var(--primary, #ff6b9d); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--button-bg, var(--primary, #ff6b9d));
    color: var(--button-text, #fff);
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- CMS content ---------- */
.cms-content h2, .cms-content h3 { margin-top: 1.5rem; }
.cms-content img { border-radius: 12px; }
.cms-content ul { padding-left: 1.2rem; }
.cms-content a { text-decoration: underline; }

/* ---------- Toast notifications ---------- */
.toast-box {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1080;
    max-width: min(90vw, 400px);
    margin-bottom: 0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
    animation: toast-in 0.3s ease;
    word-break: break-word;
}
.toast-box.hide {
    opacity: 0;
    transform: translateY(0.5rem);
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px) {
    .toast-box { right: 0.75rem; left: 0.75rem; bottom: 0.75rem; max-width: none; }
}

/* ---------- Utility helpers ---------- */
.text-primary { color: var(--primary, #ff6b9d) !important; }
.text-success { color: #198754 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-slide { min-height: 340px; }
    .product-actions { opacity: 1; transform: none; }
}

@media (max-width: 767.98px) {
    .hero-slide { min-height: 300px; }
    .product-card-list { flex-direction: column; }
    .product-card-list .product-img { width: 100%; }
    .flash-container { max-width: 100%; }
}
