:root {
    --spica-font-sans: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    --spica-font-brand: Georgia, "Times New Roman", serif;
}

html,
body {
    font-family: var(--spica-font-sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #f8f8f8;
}

button,
input,
select,
textarea {
    font-family: inherit;
    letter-spacing: 0;
}
/* =========================
   HEADER TOP
========================= */

.header-top {
    background: #fdf7f8;
    border-bottom: 1px solid #f1dce2;
    padding: 12px 0;
    font-size: 15px;
    color: #4b3b42;
}
.top-auth {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-link {
    text-decoration: none;
    color: #4b3b42;
    transition: 0.3s;
}

    .top-link:hover {
        color: #b03a6f;
    }

/* =========================
   STICKY HEADER
========================= */

.header-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: white;
}

/* =========================
   HEADER MAIN
========================= */

.header-main {
    background: white;
}

/* =========================
   LOGO
========================= */

.main-logo {
    height: 65px;
    object-fit: contain;
}
/* =========================
   LOGO WRAPPER
========================= */

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 35px;
    font-weight: bold;
    color: #b03a6f;
    font-family: var(--spica-font-brand);
    transition: 0.3s;
}

    .logo-text:hover {
        color: #922b5a;
        
    }
/* =========================
   SEARCH BOX
========================= */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e9a5b5;
    border-radius: 50px;
    overflow: hidden;
    background: #fff5f7;
    height: 54px;
}

.search-icon {
    padding-left: 20px;
    color: #777;
    font-size: 18px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    background: transparent;
    font-size: 16px;
}

.search-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #b03a6f;
    color: white;
    font-size: 22px;
    transition: 0.3s;
}

    .search-btn:hover {
        background: #922b5a;
    }

/* =========================
   HEADER ICONS
========================= */

.header-icon {
    font-size: 28px;
    color: #4b3b42;
    transition: 0.3s;
}

    .header-icon:hover {
        color: #b03a6f;
    }
/* =========================
   USER AVATAR
========================= */

.user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9a5b5;
    transition: 0.3s;
}

    .user-avatar img:hover {
        transform: scale(1.08);
        border-color: #b03a6f;
    }
/* =========================
   MENU
========================= */

.menu-main {
    background: white;
    border-top: 1px solid #f1dce2;
    border-bottom: 1px solid #f1dce2;
}

    .menu-main .nav-link {
        color: #4b3b42 !important;
        font-size: 18px;
        margin-right: 28px;
        font-weight: 500;
        padding: 12px 0;
        transition: 0.3s;
    }

        .menu-main .nav-link:hover {
            color: #b03a6f !important;
        }

.active-link {
    color: #b03a6f !important;
    border-bottom: 3px solid #b03a6f;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px) {

    .main-logo {
        height: 70px;
        margin-bottom: 20px;
    }

    .search-box {
        margin-bottom: 20px;
    }
}

@media(max-width:768px) {

    .menu-main .nav-link {
        margin-right: 0;
    }

    .search-btn {
        width: 55px;
        height: 55px;
    }
}
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
/* =========================
   BANNER SLIDER
========================= */

.bannerSwiper {
    max-width: 1450px;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    background: #fff5f7;
}

.banner-image {
    width: 100%;
    height: 430px;
    object-fit: contain;
    background: #fff5f7;
}

/* NÚT */

.swiper-button-next,
.swiper-button-prev {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    color: #b03a6f;
    transition: 0.3s;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: #b03a6f;
        color: white;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px;
        font-weight: bold;
    }

/* DOT */

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #e9a5b5;
}


/* =========================
   HOME HERO
========================= */

.home-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: stretch;
}

.hero-category {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    z-index: 5;
    overflow: visible;
}

    .hero-category h5 {
        font-weight: bold;
        color: #1d2557;
        margin-bottom: 15px;
    }

    .hero-category a {
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: #4b3b42;
        padding: 10px 8px;
        border-radius: 12px;
        transition: 0.25s;
        font-size: 16px;
    }

.hero-category-item {
    position: relative;
}

.hero-category-main {
    min-height: 54px;
}

.hero-category-name {
    flex: 1;
    min-width: 0;
}

.hero-category-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
}

.hero-category-icon i {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dce4;
    border-radius: 50%;
    color: #1d2557;
    background: #f7f8fa;
}

.hero-category-icon.is-fallback img {
    display: none;
}

.hero-category-icon.is-fallback i {
    display: inline-flex;
}

.hero-category-arrow {
    color: #8a94a6;
    font-size: 12px;
}

.hero-subcategory-menu {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    width: 280px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 28, 45, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 20;
}

.hero-category-item::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 12px;
    height: 100%;
}

.hero-category-item:hover .hero-subcategory-menu,
.hero-category-item:focus-within .hero-subcategory-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-subcategory-title {
    padding: 4px 8px 10px;
    color: #1d2557;
    font-weight: 700;
    border-bottom: 1px solid #edf0f4;
    margin-bottom: 6px;
}

.hero-category .hero-subcategory-menu a {
    min-height: 40px;
    padding: 8px;
    gap: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.hero-category .hero-subcategory-menu a:hover {
    padding-left: 12px;
}

.hero-subcategory-menu a > i {
    width: 16px;
    color: #b03a6f;
    text-align: center;
}

.hero-category .hero-subcategory-all {
    margin-top: 6px;
    border-top: 1px solid #edf0f4;
    color: #1d2557;
    font-weight: 600;
    justify-content: space-between;
}

        .hero-category a img {
            width: 36px;
            height: 36px;
            object-fit: contain;
            flex-shrink: 0;
        }

        .hero-category a:hover {
            background: #fff1f4;
            color: #b03a6f;
            padding-left: 14px;
        }

.hero-banner {
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* responsive */
@media(max-width: 992px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-category {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

        .hero-category h5 {
            grid-column: 1 / -1;
        }

    .hero-subcategory-menu,
    .hero-category-item::after,
    .hero-category-arrow {
        display: none;
    }
}

@media(max-width: 768px) {
    .bannerSwiper,
    .banner-image {
        height: 260px;
    }
}
/* =========================
   TaiKhoan
========================= */

.account-box {
    max-width: 520px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

    .account-box h2 {
        text-align: center;
        color: #b03a6f;
        font-weight: bold;
        margin-bottom: 25px;
    }

.btn-account {
    width: 100%;
    border: none;
    background: #b03a6f;
    color: white;
    padding: 13px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
}

    .btn-account:hover {
        background: #922b5a;
    }

/* =========================
   PASSWORD TOGGLE
========================= */

.password-box {
    position: relative;
}

.password-input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 18px;
    transition: 0.3s;
}

    .toggle-password:hover {
        color: #b03a6f;
    }
/* =========================
   ThongTinCaNhan
========================= */
.profile-box {
    max-width: 650px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

    .profile-box h2 {
        text-align: center;
        color: #b03a6f;
        font-weight: bold;
        margin-bottom: 25px;
    }

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9a5b5;
}
.avatar-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.avatar-text {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    background: rgba(176, 58, 111, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    transition: 0.3s;
}

.avatar-upload:hover .avatar-text {
    opacity: 1;
}
/* =========================
   CSS cho quản lý + card sản phẩm
========================= */
.text-shop {
    color: #b03a6f;
}

.btn-shop {
    background: #b03a6f;
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
}

    .btn-shop:hover {
        background: #922b5a;
        color: white;
    }

.product-admin-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.admin-product-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
}

/* PRODUCT HOME */

.product-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.product-list-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
    max-width: 720px;
}

.product-type-filter {
    display: grid;
    grid-template-columns: minmax(190px, 260px) 1fr;
    gap: 22px;
    align-items: start;
    padding: 18px 0;
    margin: -8px 0 28px;
    border-top: 1px solid #e6e8ec;
    border-bottom: 1px solid #e6e8ec;
}

.product-type-filter-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #1d2557;
}

.product-type-filter-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-type-filter-heading > span {
    color: #747b87;
    font-size: 13px;
}

.product-type-eyebrow {
    color: #b03a6f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-type-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-type-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d9dde5;
    border-radius: 8px;
    color: #394150;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.product-type-links a:hover {
    color: #b03a6f;
    border-color: #b03a6f;
}

.product-type-links a.active {
    color: #fff;
    border-color: #1d2557;
    background: #1d2557;
}

.product-empty-state {
    padding: 64px 20px;
    text-align: center;
    color: #747b87;
    border-top: 1px solid #e6e8ec;
    border-bottom: 1px solid #e6e8ec;
}

.product-empty-state > i {
    font-size: 38px;
    color: #b03a6f;
    margin-bottom: 14px;
}

.product-empty-state h4 {
    color: #1d2557;
    font-size: 20px;
}

.product-list-search {
    height: 48px;
    min-width: 280px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e9a5b5;
    border-radius: 14px;
    background: #fff5f7;
    padding: 0 14px;
}

.product-list-search i {
    color: #b03a6f;
    flex-shrink: 0;
}

.product-list-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
}

.product-list-sort {
    width: 180px;
    height: 48px;
    border-radius: 12px;
}

.product-list-submit {
    height: 48px;
    border: none;
    white-space: nowrap;
}

.catalog-page {
    margin-top: 30px;
    margin-bottom: 56px;
}

.catalog-page .product-list-heading {
    justify-content: flex-end;
}

.catalog-page .product-list-tools {
    max-width: calc(100% - 254px);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 14px;
    min-width: 0;
}

.catalog-sidebar h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid #dfe3e8;
    color: #20242a;
    font-size: 17px;
    font-weight: 700;
}

.catalog-all-link,
.catalog-category-link,
.catalog-type-tree a {
    display: flex;
    align-items: center;
    color: #303640;
    text-decoration: none;
}

.catalog-all-link {
    padding: 14px 0 9px;
    font-size: 14px;
    font-weight: 600;
}

.catalog-back-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
    padding: 9px 13px;
    border: 1px solid #d7dce3;
    border-radius: 999px;
    color: #303640;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.catalog-back-source:hover {
    border-color: #b03a6f;
    color: #b03a6f;
    box-shadow: 0 8px 20px rgba(176, 58, 111, 0.12);
}

.catalog-category-group {
    padding: 6px 0;
}

.catalog-category-link {
    gap: 7px;
    min-height: 30px;
    font-size: 14px;
    font-weight: 600;
}

.catalog-category-link i {
    width: 8px;
    color: #8b929c;
    font-size: 10px;
    transition: transform 0.18s ease;
}

.catalog-category-group.open .catalog-category-link i {
    transform: rotate(90deg);
}

.catalog-all-link:hover,
.catalog-category-link:hover,
.catalog-type-tree a:hover,
.catalog-all-link.active,
.catalog-category-link.active,
.catalog-type-tree a.active {
    color: #b03a6f;
}

.catalog-type-tree {
    display: grid;
    gap: 2px;
    padding: 5px 0 3px 15px;
}

.catalog-type-tree a {
    min-height: 29px;
    padding-left: 8px;
    border-left: 2px solid #e3e6eb;
    font-size: 13px;
}

.catalog-type-tree a.active {
    border-left-color: #b03a6f;
    font-weight: 700;
}

.catalog-results {
    min-width: 0;
}

.catalog-sortbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 11px 14px;
    background: #f1f2f4;
}

.catalog-sort-label {
    color: #505762;
    font-size: 14px;
    white-space: nowrap;
}

.catalog-quick-sort {
    display: flex;
    gap: 8px;
}

.catalog-quick-sort a,
.catalog-price-sort select {
    height: 40px;
    border: 1px solid #dfe2e7;
    border-radius: 4px;
    background: #fff;
    color: #303640;
    font-size: 14px;
}

.catalog-quick-sort a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 0 14px;
    text-decoration: none;
}

.catalog-quick-sort a:hover,
.catalog-quick-sort a.active {
    border-color: #b03a6f;
    background: #b03a6f;
    color: #fff;
}

.catalog-price-sort {
    margin: 0;
}

.catalog-price-sort select {
    width: 170px;
    padding: 0 34px 0 12px;
    outline: none;
}

.catalog-page-jump {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.catalog-page-jump > span {
    margin-right: 12px;
    color: #424851;
    font-size: 13px;
}

.catalog-page-jump > span strong {
    color: #b03a6f;
}

.catalog-page-jump a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dfe2e7;
    background: #fff;
    color: #505762;
    text-decoration: none;
}

.catalog-page-jump a + a {
    border-left: 0;
}

.catalog-page-jump a.disabled,
.catalog-pagination a.disabled {
    color: #b8bdc5;
    background: #f6f7f8;
    pointer-events: none;
}

.catalog-result-summary {
    padding: 13px 2px 10px;
    color: #737a84;
    font-size: 13px;
}

.catalog-result-summary strong {
    color: #1d2557;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}

.catalog-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.catalog-product-card:hover {
    border-color: #b03a6f;
    box-shadow: 0 7px 18px rgba(31, 39, 51, 0.12);
    transform: translateY(-2px);
}

.catalog-product-card > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.catalog-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff5f7;
    padding: 10px;
}

.catalog-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    background: #fff;
}

.catalog-image-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #a1a7b0;
    font-size: 34px;
}

.catalog-product-info {
    padding: 11px 10px 12px;
}

.catalog-product-type {
    overflow: hidden;
    margin: 0 0 5px;
    color: #737a84;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-product-info h2 {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    margin: 0;
    color: #252a31;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-product-price {
    margin-top: 10px;
    color: #d23a4a;
    font-size: 17px;
    font-weight: 700;
}

.catalog-product-meta {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    margin-top: 8px;
    color: #757c86;
    font-size: 11px;
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.catalog-pagination a,
.catalog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #505762;
    text-decoration: none;
}

.catalog-pagination span {
    color: #8a919c;
    cursor: default;
}

.catalog-pagination a:hover {
    border-color: #c9cdd4;
}

.catalog-pagination a.active {
    border-color: #b03a6f;
    background: #b03a6f;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: white;
    border: 1px solid #f0dfe6;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.product-card > a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-5px);
        border-color: #e8b6ca;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    }

.product-img-box {
    aspect-ratio: 1 / 1;
    background: #fff5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

    .product-img-box img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        padding: 0;
        border-radius: 10px;
        background: #fff;
        transition: transform 0.22s ease;
    }

.product-card:hover .product-img-box img {
    transform: scale(1.03);
}

.product-info {
    padding: 14px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-category {
    color: #b03a6f;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info h5 {
    color: #1d2557;
    font-size: 16px;
    line-height: 1.35;
    min-height: 44px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #d70018;
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
}

.product-stock {
    color: #777;
    font-size: 13px;
    margin-top: 6px;
    margin-top: auto;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

/* PRODUCT DETAIL */

.product-detail-page {
    padding: 32px 0 56px;
    background: #fff;
}

.product-detail-alert {
    margin-bottom: 20px;
}

.product-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid #d7dce3;
    border-radius: 999px;
    color: #303640;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-detail-back:hover {
    border-color: #b03a6f;
    color: #b03a6f;
    box-shadow: 0 8px 20px rgba(176, 58, 111, 0.12);
}

.product-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.08fr);
    gap: 44px;
    align-items: start;
}

.product-gallery {
    min-width: 0;
}

.product-detail-img {
    width: 100%;
    height: min(620px, 66vh);
    min-height: 480px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #fff;
    padding: 0;
}

.product-gallery-main {
    position: relative;
    min-height: min(620px, 66vh);
    border: 1px solid #e2e5e9;
    border-radius: 6px;
    background: #f7f7f8;
    overflow: hidden;
}

.product-detail-image-fallback {
    min-height: min(620px, 66vh);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #9097a1;
}

.product-detail-image-fallback i {
    font-size: 48px;
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 12px;
}

.product-gallery-thumb {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    padding: 3px;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    background: #fff;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: #b03a6f;
    box-shadow: inset 0 0 0 1px #b03a6f;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-variant-picker {
    margin: 0;
    padding: 0;
    border: 0;
}

.product-variant-picker legend {
    float: none;
    width: auto;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.product-variant-picker legend span {
    font-weight: 400;
    color: #59606b;
}

.product-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.product-variant-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-variant-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #cfd4db;
    border-radius: 6px;
    background: #fff;
    color: #343a43;
    cursor: pointer;
}

.product-variant-option input:checked + span {
    border-color: #b03a6f;
    color: #fff;
    background: #b03a6f;
    box-shadow: inset 0 0 0 1px #b03a6f;
}

.product-variant-option.active span,
button.product-variant-option.active {
    border-color: #b03a6f;
    color: #fff;
    background: #b03a6f;
    box-shadow: inset 0 0 0 1px #b03a6f;
}

.product-variant-option.disabled span {
    color: #a8adb5;
    background: #f3f4f5;
    text-decoration: line-through;
    cursor: not-allowed;
}

.product-summary {
    min-width: 0;
    padding-top: 4px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #727984;
    font-size: 14px;
}

.product-breadcrumb a {
    color: #b03a6f;
    text-decoration: none;
}

.product-breadcrumb i {
    font-size: 9px;
}

.product-detail-title {
    margin: 0;
    color: #17191d;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: 0;
}

.product-rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3e5e8;
    font-size: 14px;
}

.product-rating-stars {
    color: #f5a623;
}

.product-rating-summary a {
    color: #4b5563;
}

.product-share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b03a6f;
}

.product-detail-price {
    color: #d70018;
    font-size: 36px;
    font-weight: bold;
    margin: 22px 0 12px;
}

.product-unit-detail {
    color: #727984;
    font-size: 16px;
    font-weight: 500;
}

.product-stock-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.product-stock-line.is-available > i {
    color: #168653;
}

.product-stock-line.is-unavailable > i {
    color: #dc3545;
}

.product-stock-divider {
    width: 1px;
    height: 16px;
    margin: 0 4px;
    background: #d5d8dc;
}

.product-purchase-form {
    display: grid;
    gap: 24px;
}

.product-quantity-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.product-option-label {
    font-size: 15px;
    font-weight: 700;
}

.product-quantity-stepper {
    display: grid;
    grid-template-columns: 42px 54px 42px;
    height: 44px;
    overflow: hidden;
    border: 1px solid #cfd4db;
    border-radius: 6px;
}

.product-quantity-stepper button,
.product-quantity-stepper input {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: center;
}

.product-quantity-stepper button:hover:not(:disabled) {
    background: #f2f3f4;
}

.product-quantity-stepper input {
    border-inline: 1px solid #e1e3e6;
    appearance: textfield;
}

.product-quantity-stepper input::-webkit-inner-spin-button {
    appearance: none;
}

.product-purchase-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(150px, .8fr);
    gap: 10px;
}

.product-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
}

.btn-add-cart {
    background: #fff1f4;
    color: #b03a6f;
    border: 1px solid #d36b96;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-add-cart:hover {
    background: #b03a6f;
    color: white;
}

.btn-buy-now {
    background: #b03a6f;
    border: 1px solid #b03a6f;
    color: white;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-buy-now:hover {
    background: #902956;
    color: #fff;
}

.product-purchase-actions .btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.product-service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e3e5e8;
    color: #59606b;
    font-size: 13px;
}

.product-service-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-service-row i {
    color: #168653;
}

.product-information {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 44px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #dfe2e6;
}

.product-information h2 {
    margin: 0 0 18px;
    font-size: 23px;
    font-weight: 700;
}

.product-review-heading p {
    margin: -10px 0 18px;
    color: #6c7380;
}

.product-review-form {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    padding: 16px 0 22px;
    border-bottom: 1px solid #e3e5e8;
}

.product-review-form .btn {
    border-radius: 6px;
}

.product-review-list {
    margin-top: 20px;
}

.product-review-login {
    padding: 14px 0 20px;
    border-bottom: 1px solid #e3e5e8;
}

.product-review-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #78808b;
}

.product-review-empty i {
    font-size: 24px;
}

    .btn-buy-now:hover {
        background: #922b5a;
        color: white;
    }

@media(max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media(max-width: 992px) {
    .product-detail-main {
        grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
        gap: 24px;
    }

    .product-information {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .product-detail-title {
        font-size: 32px;
    }

    .product-list-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .product-list-tools {
        max-width: none;
    }

    .product-type-filter {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
    }

    .catalog-page .product-list-tools {
        max-width: calc(100% - 206px);
    }

    .catalog-sortbar {
        flex-wrap: wrap;
    }

    .catalog-page-jump {
        margin-left: 0;
    }
}

@media(max-width: 768px) {
    .product-detail-page {
        padding-top: 18px;
    }

    .product-detail-main {
        grid-template-columns: 1fr;
    }

    .product-detail-img {
        height: 420px;
        min-height: 0;
    }

    .product-gallery-main,
    .product-detail-image-fallback {
        min-height: 420px;
    }

    .product-purchase-actions {
        grid-template-columns: 1fr 1fr;
    }

    .product-service-row {
        grid-template-columns: 1fr;
    }

    .product-review-form {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .product-review-form textarea {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .product-list-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .product-list-search,
    .product-list-sort,
    .product-list-submit {
        width: 100%;
        min-width: 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-page {
        margin-top: 22px;
    }

    .catalog-page .product-list-tools {
        max-width: none;
    }

    .catalog-layout {
        display: block;
    }

    .catalog-sidebar {
        position: static;
        margin-bottom: 16px;
    }

    .catalog-category-tree {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        overflow-x: auto;
        padding: 7px 0 4px;
        scrollbar-width: thin;
    }

    .catalog-all-link {
        display: none;
    }

    .catalog-category-group {
        flex: 0 0 auto;
        padding: 0;
    }

    .catalog-category-group.open {
        display: grid;
        flex: 1 0 100%;
        order: -1;
        gap: 7px;
    }

    .catalog-category-link {
        min-height: 38px;
        padding: 7px 11px;
        border: 1px solid #d9dde4;
        border-radius: 4px;
        background: #fff;
    }

    .catalog-category-link i {
        display: none;
    }

    .catalog-type-tree {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding: 0 0 3px;
    }

    .catalog-type-tree a {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 6px 10px;
        border: 1px solid #d9dde4;
        border-radius: 4px;
        background: #fff;
    }

    .catalog-type-tree a.active {
        border-color: #1d2557;
        background: #1d2557;
        color: #fff;
    }

    .catalog-category-link.active,
    .catalog-category-group.open .catalog-category-link {
        border-color: #b03a6f;
        background: #fff2f6;
    }

    .catalog-sortbar {
        align-items: stretch;
        padding: 10px;
    }

    .catalog-sort-label {
        width: 100%;
    }

    .catalog-quick-sort {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .catalog-quick-sort a {
        min-width: 0;
        padding: 0 8px;
    }

    .catalog-price-sort,
    .catalog-price-sort select {
        width: 100%;
    }

    .catalog-page-jump {
        justify-content: flex-end;
        width: 100%;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .catalog-product-meta {
        flex-direction: column;
        gap: 2px;
    }

}

@media(max-width: 480px) {
    .product-detail-img {
        height: 340px;
    }

    .product-gallery-main,
    .product-detail-image-fallback {
        min-height: 340px;
    }

    .product-detail-title {
        font-size: 28px;
    }

    .product-detail-price {
        font-size: 30px;
    }

    .product-purchase-actions {
        grid-template-columns: 1fr;
    }

    .product-review-form {
        grid-template-columns: 1fr;
    }

    .product-review-form textarea {
        grid-column: auto;
        grid-row: auto;
    }
}
.preview-product-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 20px;
    display: none;
    border: 2px solid #e9a5b5;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #e8eaed;
}

.review-star {
    color: #ffc107;
    font-size: 15px;
}

.review-item-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 5px;
}

.review-item-head small {
    color: #858c96;
}

.review-item p {
    margin: 8px 0 0;
}
.category-admin-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.category-admin-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
}
.empty-box {
    color: #777;
}

    .empty-box i {
        font-size: 55px;
        color: #b03a6f;
        margin-bottom: 15px;
    }

    .empty-box h5 {
        color: #1d2557;
        font-weight: bold;
    }
.delete-box {
    max-width: 850px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 5px 22px rgba(0,0,0,0.08);
    text-align: center;
}

.delete-icon {
    font-size: 55px;
    color: #dc3545;
    margin-bottom: 15px;
}

.delete-box h2 {
    color: #b03a6f;
    font-weight: bold;
}

.delete-warning {
    color: #777;
    font-size: 18px;
}

.delete-product-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff5f7;
    padding: 15px;
}

.category-admin-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #eee;
    background: white;
    padding: 4px;
}

.search-input {
    height: 55px;
    border-radius: 14px;
}

.empty-box i {
    font-size: 55px;
    color: #b03a6f;
    margin-bottom: 10px;
}

.empty-box h5 {
    font-weight: bold;
    color: #1d2557;
}

.category-edit-img,
.category-detail-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    background: #fff5f7;
    padding: 15px;
    border-radius: 22px;
    border: 2px solid #e9a5b5;
}
.product-unit {
    font-size: 16px;
    color: #777;
    font-weight: 500;
}

.product-unit-detail {
    font-size: 22px;
    color: #666;
}
.cart-header {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background: #dc3545;
    color: white;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   MINI CART
========================= */
.mini-cart {
    position: relative;
    z-index: 10010;
}

.mini-cart-trigger {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #212529;
    text-decoration: none;
    position: relative;
    font-size: 30px;
}

.mini-cart-trigger:hover,
.mini-cart-trigger:focus-visible {
    color: #b03a6f;
}

.mini-cart-badge {
    position: absolute;
    top: 0;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.mini-cart-panel {
    width: min(400px, calc(100vw - 24px));
    position: absolute;
    top: calc(100% + 12px);
    right: -12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.mini-cart::after {
    content: "";
    position: absolute;
    top: 100%;
    right: -12px;
    width: 420px;
    max-width: calc(100vw - 12px);
    height: 16px;
}

.mini-cart:hover .mini-cart-panel,
.mini-cart:focus-within .mini-cart-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mini-cart-arrow {
    width: 14px;
    height: 14px;
    position: absolute;
    top: -8px;
    right: 27px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    border-left: 1px solid #e9ecef;
    transform: rotate(45deg);
}

.mini-cart-title {
    padding: 14px 16px 10px;
    color: #6c757d;
    font-size: 14px;
}

.mini-cart-items {
    max-height: 340px;
    overflow-y: auto;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    color: #212529;
    text-decoration: none;
}

.mini-cart-item:hover {
    color: #212529;
    background: #fff6f8;
}

.mini-cart-item img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
}

.mini-cart-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-cart-item-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
}

.mini-cart-item-info small {
    color: #6c757d;
    font-size: 12px;
}

.mini-cart-item-price {
    color: #dc3545;
    font-size: 14px;
    white-space: nowrap;
}

.mini-cart-footer {
    padding: 12px 16px;
    border-top: 1px solid #eef0f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mini-cart-footer > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: #6c757d;
    font-size: 12px;
}

.mini-cart-footer strong {
    color: #dc3545;
    font-size: 15px;
}

.mini-cart-footer .btn {
    border-radius: 4px;
    padding: 8px 14px;
    white-space: nowrap;
}

.mini-cart-empty {
    min-height: 260px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
}

.mini-cart-empty i {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff0f4;
    color: #b03a6f;
    font-size: 34px;
}

.mini-cart-empty strong {
    color: #212529;
    margin-bottom: 4px;
}

.mini-cart-empty span {
    font-size: 13px;
}

/* =========================
   CUSTOMER CART
========================= */
.customer-cart-page {
    min-height: 65vh;
    background: #f5f5f5;
}

.customer-cart-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.customer-cart-heading h1 {
    margin: 0 0 4px;
    color: #b03a6f;
    font-size: 32px;
    font-weight: 750;
}

.customer-cart-heading p,
.customer-cart-heading > span {
    margin: 0;
    color: #6c757d;
}

.customer-cart-table-head,
.customer-cart-row {
    display: grid;
    grid-template-columns: minmax(330px, 1.7fr) 130px 210px 145px 80px;
    gap: 16px;
    align-items: center;
}

.customer-cart-table-head {
    margin-bottom: 12px;
    padding: 17px 20px;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
    color: #6c757d;
}

.customer-cart-table-head span:not(:first-child) {
    text-align: center;
}

.customer-cart-select-product,
.customer-cart-selection-actions label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cart-check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    accent-color: #b03a6f;
    cursor: pointer;
}

.customer-cart-list {
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
}

.customer-cart-store {
    min-height: 58px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #eceff1;
}

.customer-cart-store i {
    color: #b03a6f;
}

.customer-cart-store span {
    color: #6c757d;
    font-size: 13px;
}

.customer-cart-row {
    min-height: 132px;
    padding: 20px;
    border-bottom: 1px solid #eceff1;
}

.customer-cart-row:last-child {
    border-bottom: 0;
}

.customer-cart-product {
    min-width: 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.customer-cart-product-wrap {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.customer-cart-image {
    width: 96px;
    height: 96px;
    display: block;
    background: #f8f9fa;
    border: 1px solid #eceff1;
}

.customer-cart-image img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
}

.customer-cart-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.customer-cart-product-info > a {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

.customer-cart-product-info > a:hover {
    color: #b03a6f;
}

.customer-cart-product-info span,
.customer-cart-product-info small {
    color: #6c757d;
    font-size: 13px;
}

.customer-cart-cell {
    min-width: 0;
    text-align: center;
}

.customer-cart-price {
    color: #495057;
    white-space: nowrap;
}

.customer-cart-subtotal {
    color: #dc3545;
    white-space: nowrap;
}

.customer-cart-quantity-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.customer-cart-stepper {
    display: grid;
    grid-template-columns: 36px 54px 36px;
    height: 36px;
}

.customer-cart-stepper button,
.customer-cart-stepper input {
    border: 1px solid #dfe3e6;
    background: #fff;
    text-align: center;
}

.customer-cart-stepper button:first-child {
    border-radius: 4px 0 0 4px;
}

.customer-cart-stepper button:last-child {
    border-radius: 0 4px 4px 0;
}

.customer-cart-stepper input {
    width: 54px;
    border-right: 0;
    border-left: 0;
    outline: none;
    appearance: textfield;
}

.customer-cart-stepper input::-webkit-inner-spin-button,
.customer-cart-stepper input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.customer-cart-stepper button:hover {
    color: #b03a6f;
    background: #fff6f8;
}

.customer-cart-update {
    padding: 0;
    border: 0;
    background: transparent;
    color: #b03a6f;
    font-size: 12px;
}

.customer-cart-remove button {
    border: 0;
    background: transparent;
    color: #495057;
}

.customer-cart-remove button:hover {
    color: #dc3545;
}

.customer-cart-remove button i {
    display: none;
}

.customer-cart-checkout {
    margin-top: 18px;
    padding: 18px 20px;
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #eceff1;
    border-radius: 6px;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
}

.customer-cart-checkout-count {
    font-size: 16px;
}

.customer-cart-checkout-total {
    color: #dc3545;
    font-size: 24px;
    font-weight: 750;
    white-space: nowrap;
}

.customer-cart-checkout .btn {
    min-width: 180px;
    border-radius: 4px;
}

.customer-cart-selection-actions {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.customer-cart-selection-actions button {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #495057;
}

.customer-cart-selection-actions button:hover {
    color: #dc3545;
}

.customer-cart-selection-actions button:disabled,
.customer-cart-checkout button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.customer-confirm-modal {
    border: 0;
    border-radius: 6px;
}

.customer-cart-empty {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
}

.customer-cart-empty i {
    width: 100px;
    height: 100px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff0f4;
    color: #b03a6f;
    font-size: 44px;
}

.customer-cart-empty h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.customer-cart-empty p {
    color: #6c757d;
}

@media (max-width: 1199.98px) {
    .customer-cart-table-head,
    .customer-cart-row {
        grid-template-columns: minmax(270px, 1fr) 110px 150px 125px 60px;
        gap: 12px;
    }

    .customer-cart-product {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }

    .customer-cart-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 991.98px) {
    .mini-cart-panel,
    .mini-cart::after {
        display: none;
    }

    .customer-cart-table-head {
        display: none;
    }

    .customer-cart-list {
        display: grid;
        gap: 12px;
        background: transparent;
        border: 0;
    }

    .customer-cart-store {
        background: #fff;
        border: 1px solid #eceff1;
        border-radius: 6px;
    }

    .customer-cart-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
        padding: 16px;
        background: #fff;
        border: 1px solid #eceff1;
        border-radius: 6px;
    }

    .customer-cart-product {
        grid-column: 1 / -1;
    }

    .customer-cart-product-wrap {
        grid-column: 1 / -1;
    }

    .customer-cart-cell {
        text-align: left;
    }

    .customer-cart-cell::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: #6c757d;
        font-size: 12px;
    }

    .customer-cart-quantity-form {
        align-items: flex-start;
    }

    .customer-cart-remove button i {
        display: inline-block;
    }
}

@media (max-width: 575.98px) {
    .customer-cart-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .customer-cart-heading h1 {
        font-size: 26px;
    }

    .customer-cart-row {
        grid-template-columns: 1fr;
    }

    .customer-cart-product {
        grid-column: auto;
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .customer-cart-image {
        width: 76px;
        height: 76px;
    }

    .customer-cart-checkout {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 14px;
    }

    .customer-cart-selection-actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: space-between;
    }

    .customer-cart-checkout-count {
        font-size: 13px;
    }

    .customer-cart-checkout-total {
        font-size: 20px;
    }

    .customer-cart-checkout .btn {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    body:has(.customer-cart-page) .chatbox-wrapper {
        display: none;
    }
}

/* =========================
   CUSTOMER CHECKOUT
========================= */
.customer-checkout-page {
    min-height: 70vh;
    background: #f5f5f5;
}

.customer-checkout-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-checkout-heading > a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe3e6;
    border-radius: 50%;
    background: #fff;
    color: #495057;
}

.customer-checkout-heading span {
    color: #b03a6f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.customer-checkout-heading h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 750;
}

.checkout-section {
    margin-bottom: 16px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
}

.checkout-address {
    border-top: 3px solid #b03a6f;
}

.checkout-section-title {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-title i {
    color: #b03a6f;
}

.checkout-section-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.checkout-address-grid {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(190px, 0.8fr) minmax(320px, 2fr);
    gap: 20px;
    align-items: end;
}

.checkout-recipient {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-recipient span,
.checkout-field label {
    color: #6c757d;
    font-size: 13px;
}

.checkout-field label {
    display: block;
    margin-bottom: 6px;
}

.checkout-field .form-control {
    min-height: 44px;
    border-radius: 4px;
}

.checkout-product-head,
.checkout-product-row {
    display: grid;
    grid-template-columns: minmax(340px, 1.8fr) 140px 110px 150px;
    gap: 18px;
    align-items: center;
}

.checkout-product-head {
    padding-bottom: 16px;
    color: #6c757d;
}

.checkout-product-head span:not(:first-child),
.checkout-product-row > div:not(:first-child),
.checkout-product-row > strong {
    text-align: right;
}

.checkout-store-row {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid #eceff1;
    border-bottom: 1px solid #eceff1;
}

.checkout-store-row i {
    color: #b03a6f;
}

.checkout-store-row span {
    color: #6c757d;
    font-size: 13px;
}

.checkout-product-row {
    min-height: 112px;
    padding: 16px 0;
    border-bottom: 1px solid #eceff1;
}

.checkout-product-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.checkout-product-main img {
    width: 78px;
    height: 78px;
    padding: 2px;
    object-fit: contain;
    border: 1px solid #eceff1;
}

.checkout-product-main > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-product-main a {
    color: #212529;
    font-weight: 600;
    text-decoration: none;
}

.checkout-product-main span {
    color: #6c757d;
    font-size: 13px;
}

.checkout-products-total {
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.checkout-products-total strong {
    color: #dc3545;
    font-size: 20px;
}

.checkout-voucher {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 540px);
    align-items: start;
    gap: 20px;
}

.checkout-voucher .checkout-section-title {
    margin: 10px 0 0;
}

.checkout-voucher .input-group .form-control,
.checkout-voucher .input-group .btn {
    min-height: 44px;
    border-radius: 4px;
}

.checkout-payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkout-payment-options label {
    cursor: pointer;
}

.checkout-payment-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-payment-options span {
    min-height: 46px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dfe3e6;
    border-radius: 4px;
    background: #fff;
}

.checkout-payment-options input:checked + span {
    border-color: #b03a6f;
    background: #fff5f8;
    color: #9f2f62;
    box-shadow: inset 0 0 0 1px #b03a6f;
}

.checkout-summary {
    display: grid;
    grid-template-columns: 1fr minmax(340px, 440px);
}

.checkout-price-breakdown {
    display: grid;
    gap: 12px;
}

.checkout-price-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.checkout-price-breakdown span {
    color: #6c757d;
}

.checkout-grand-total {
    padding-top: 14px;
    border-top: 1px solid #eceff1;
}

.checkout-grand-total strong {
    color: #dc3545;
    font-size: 28px;
}

.checkout-order-button {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border-radius: 4px;
}

.checkout-price-breakdown small {
    color: #6c757d;
    text-align: center;
}

.checkout-confirm-modal {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.checkout-confirm-modal .modal-header,
.checkout-confirm-modal .modal-footer {
    border-color: #eef0f2;
}

.checkout-confirm-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #b03a6f;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.checkout-confirm-summary {
    display: grid;
    gap: 12px;
}

.checkout-confirm-summary > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f4;
}

.checkout-confirm-summary span {
    color: #6c757d;
}

.checkout-confirm-summary strong {
    color: #212529;
    overflow-wrap: anywhere;
}

.checkout-confirm-total strong {
    color: #dc3545;
    font-size: 20px;
}

.checkout-confirm-note {
    margin: 14px 0 0;
    padding: 12px;
    color: #495057;
    background: #fff7fb;
    border: 1px solid #f3c4d7;
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .checkout-address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-address-field {
        grid-column: 1 / -1;
    }

    .checkout-product-head,
    .checkout-product-row {
        grid-template-columns: minmax(260px, 1fr) 115px 80px 125px;
        gap: 12px;
    }

    .checkout-summary {
        grid-template-columns: 1fr minmax(320px, 400px);
    }
}

@media (max-width: 767.98px) {
    .checkout-section {
        padding: 20px;
    }

    .checkout-product-head {
        display: none;
    }

    .checkout-product-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .checkout-product-main {
        grid-column: 1 / -1;
    }

    .checkout-product-row > div:not(:first-child),
    .checkout-product-row > strong {
        text-align: left;
    }

    .checkout-product-row > div:not(:first-child)::before,
    .checkout-product-row > strong::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #6c757d;
        font-size: 12px;
        font-weight: 400;
    }

    .checkout-voucher,
    .checkout-summary {
        grid-template-columns: 1fr;
    }

    .checkout-voucher .checkout-section-title {
        margin: 0;
    }

    .checkout-summary-spacer {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .checkout-confirm-summary > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 575.98px) {
    .customer-checkout-heading h1 {
        font-size: 25px;
    }

    .checkout-section {
        padding: 17px 15px;
    }

    .checkout-address-grid {
        grid-template-columns: 1fr;
    }

    .checkout-address-field {
        grid-column: auto;
    }

    .checkout-product-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-product-row > strong {
        grid-column: 1 / -1;
    }

    .checkout-products-total {
        align-items: flex-end;
        flex-direction: column;
        gap: 4px;
    }

    .checkout-payment-options {
        display: grid;
    }

    .checkout-grand-total strong {
        font-size: 24px;
    }

    body:has(.customer-checkout-page) .chatbox-wrapper {
        display: none;
    }
}
.chatbox-wrapper {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 99999;
}

.chatbox-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #b03a6f;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(176,58,111,0.35);
    transition: 0.2s;
}

.chatbox-button:hover {
    background: #922b5a;
    transform: translateY(-2px);
}

.chatbox-card {
    width: min(390px, calc(100vw - 30px));
    height: min(560px, calc(100vh - 110px));
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.22);
    position: absolute;
    right: 0;
    bottom: 75px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1dce2;
}

.chatbox-header {
    background: #b03a6f;
    color: white;
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.chatbox-header strong {
    display: block;
    line-height: 1.2;
}

.chatbox-header span {
    display: block;
    font-size: 12px;
    opacity: 0.88;
    margin-top: 2px;
}

.chatbox-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.chatbox-actions button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbox-actions button:hover {
    background: rgba(255,255,255,0.22);
}

.chatbox-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #fff8fa;
    scrollbar-width: thin;
    scrollbar-color: #d49ab5 #fff0f5;
}

.chat-message {
    padding: 10px 13px;
    border-radius: 14px;
    margin-bottom: 10px;
    max-width: 88%;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

    .chat-message.bot {
        background: white;
        border: 1px solid #f1dce2;
        color: #4b3b42;
        border-top-left-radius: 6px;
    }

    .chat-message.user {
        background: #b03a6f;
        color: white;
        margin-left: auto;
        border-top-right-radius: 6px;
    }

.chat-message-line + .chat-message-line {
    margin-top: 8px;
}

.chat-product-link {
    margin-top: 9px;
    min-height: 34px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #b03a6f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.chat-product-link:hover {
    color: #fff;
    background: #922b5a;
}

.chatbox-suggest {
    padding: 8px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid #eee;
}

    .chatbox-suggest button {
        border: none;
        background: #fff1f4;
        color: #b03a6f;
        border-radius: 20px;
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .chatbox-suggest button:hover {
        background: #e9a5b5;
        color: white;
    }

.chatbox-input {
    display: flex;
    border-top: 1px solid #eee;
}

    .chatbox-input input {
        flex: 1;
        border: none;
        padding: 12px;
        outline: none;
        min-width: 0;
    }

    .chatbox-input button {
        border: none;
        background: #b03a6f;
        color: white;
        width: 52px;
        flex-shrink: 0;
    }

    .chatbox-input button:hover {
        background: #922b5a;
    }

    .chatbox-input button:disabled,
    .chatbox-input input:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

@media(max-width: 576px) {
    .chatbox-wrapper {
        right: 15px;
        bottom: 15px;
    }

    .chatbox-card {
        right: -5px;
        bottom: 70px;
    }
}
.unit-admin-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    padding: 0;
}

.unit-admin-table {
    table-layout: fixed;
    min-width: 1120px;
    margin-bottom: 0;
}

    .unit-admin-table th,
    .unit-admin-table td {
        vertical-align: middle;
    }

        .unit-admin-table th:nth-child(1),
        .unit-admin-table td:nth-child(1) {
            width: 220px;
            white-space: nowrap;
        }

        .unit-admin-table th:nth-child(2),
        .unit-admin-table td:nth-child(2) {
            width: 120px;
            white-space: nowrap;
        }

        .unit-admin-table th:nth-child(3),
        .unit-admin-table td:nth-child(3) {
            width: 330px;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

        .unit-admin-table th:nth-child(4),
        .unit-admin-table td:nth-child(4) {
            width: 140px;
            white-space: nowrap;
        }

        .unit-admin-table th:nth-child(5),
        .unit-admin-table td:nth-child(5) {
            width: 310px;
            white-space: nowrap;
        }

        .unit-admin-table td.unit-action-col {
            text-align: left;
        }

.unit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

    .unit-actions .btn {
        min-width: 58px;
        white-space: nowrap;
    }
.category-list-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    padding: 0;
}

.category-list-table {
    table-layout: fixed;
    min-width: 1180px;
    margin-bottom: 0;
}

    .category-list-table th,
    .category-list-table td {
        vertical-align: middle;
    }

        .category-list-table th:nth-child(1),
        .category-list-table td:nth-child(1) {
            width: 130px;
            white-space: nowrap;
        }

        .category-list-table th:nth-child(2),
        .category-list-table td:nth-child(2) {
            width: 220px;
            white-space: nowrap;
        }

        .category-list-table th:nth-child(3),
        .category-list-table td:nth-child(3) {
            width: 360px;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

        .category-list-table th:nth-child(4),
        .category-list-table td:nth-child(4) {
            width: 140px;
            white-space: nowrap;
        }

        .category-list-table th:nth-child(5),
        .category-list-table td:nth-child(5) {
            width: 330px;
            white-space: nowrap;
        }

        .category-list-table td.action-col {
            text-align: left;
        }

.category-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

    .category-actions .btn {
        min-width: 58px;
        white-space: nowrap;
    }

/* =========================
   CUSTOMER HEADER REFINEMENT
========================= */
.header-top {
    padding: 7px 0;
    font-size: 14px;
}

.top-link {
    border: 0;
    background: transparent;
}

.header-main .container {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

.main-logo {
    height: 52px;
}

.logo-text {
    font-size: 30px;
}

.search-box {
    height: 44px;
}

.search-icon {
    padding-left: 18px;
    font-size: 16px;
}

.search-input {
    padding: 9px 14px;
    font-size: 15px;
}

.search-btn {
    width: 46px;
    height: 44px;
    font-size: 20px;
}

.header-icon {
    font-size: 25px;
}

.user-avatar {
    padding: 0;
    border: 0;
    background: transparent;
}

.user-avatar img {
    width: 38px;
    height: 38px;
}

.account-menu,
.customer-notice {
    position: relative;
    z-index: 10012;
}

.account-menu-panel,
.customer-notice-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.account-menu::after,
.customer-notice::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 210px;
    height: 14px;
}

.account-menu:hover .account-menu-panel,
.account-menu:focus-within .account-menu-panel,
.customer-notice:hover .customer-notice-panel,
.customer-notice:focus-within .customer-notice-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.account-menu-panel::before,
.customer-notice-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    border-left: 1px solid #e9ecef;
    transform: rotate(45deg);
}

.account-menu-name {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #eef0f2;
    color: #b03a6f;
    font-weight: 700;
}

.account-menu-name img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.account-menu-panel a {
    display: block;
    padding: 10px 16px;
    color: #212529;
    text-decoration: none;
    font-size: 14px;
}

.account-menu-panel a:hover {
    color: #b03a6f;
    background: #fff6f8;
}

.customer-notice-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.customer-notice-panel {
    width: 250px;
    padding: 14px 16px;
}

.customer-notice-panel strong,
.customer-notice-panel span {
    display: block;
}

.customer-notice-panel span {
    margin-top: 4px;
    color: #6c757d;
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .main-logo {
        height: 50px;
        margin-bottom: 10px;
    }

    .search-box {
        margin-bottom: 12px;
    }
}

@media (max-width: 575.98px) {
    .logo-text {
        font-size: 25px;
    }

    .account-menu-panel,
    .customer-notice-panel {
        right: -10px;
    }
}

/* =========================
   CUSTOMER ORDERS
========================= */
.customer-orders-page {
    min-height: 70vh;
    background: #f5f5f5;
}

.customer-orders-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.customer-orders-heading span {
    color: #b03a6f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.customer-orders-heading h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 750;
}

.customer-orders-heading .btn {
    border-radius: 4px;
}

.customer-orders-tabs {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
    overflow: hidden;
}

.customer-orders-tabs a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    text-decoration: none;
    border-right: 1px solid #eceff1;
    font-weight: 600;
}

.customer-orders-tabs a:last-child {
    border-right: 0;
}

.customer-orders-tabs a:hover,
.customer-orders-tabs a.active {
    color: #b03a6f;
    background: #fff6f8;
}

.customer-orders-tabs a.active {
    box-shadow: inset 0 -3px 0 #b03a6f;
}

.customer-orders-list {
    display: grid;
    gap: 14px;
}

.customer-order-card {
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
}

.customer-order-card-head,
.customer-order-card-foot {
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.customer-order-card-head {
    border-bottom: 1px solid #eceff1;
}

.customer-order-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-order-card-head span:not(.order-status) {
    color: #6c757d;
    font-size: 13px;
}

.order-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.order-status.waiting {
    color: #7a5600;
    background: #fff3cd;
}

.order-status.confirmed {
    color: #084298;
    background: #cfe2ff;
}

.order-status.shipping {
    color: #055160;
    background: #cff4fc;
}

.order-status.done {
    color: #0f5132;
    background: #d1e7dd;
}

.order-status.cancelled {
    color: #842029;
    background: #f8d7da;
}

.order-status.other {
    color: #41464b;
    background: #e2e3e5;
}

.customer-order-products {
    display: grid;
}

.customer-order-product {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f4;
}

.customer-order-product:hover {
    color: #212529;
    background: #fffafa;
}

.customer-order-product img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #eceff1;
}

.customer-order-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-order-product-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.customer-order-product-info small {
    color: #6c757d;
}

.customer-order-product-price,
.customer-order-total strong {
    color: #dc3545;
    font-weight: 750;
    white-space: nowrap;
}

.customer-order-card-foot {
    background: #fffdfd;
}

.customer-order-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-order-total span {
    color: #6c757d;
}

.customer-order-total strong {
    font-size: 20px;
}

.customer-order-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-order-actions .btn {
    min-width: 100px;
    border-radius: 4px;
}

.customer-orders-empty {
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
}

.customer-orders-empty i {
    margin-bottom: 16px;
    color: #b03a6f;
    font-size: 46px;
}

.customer-orders-empty h2 {
    font-size: 22px;
}

.customer-orders-empty p {
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .customer-orders-heading,
    .customer-order-card-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-orders-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-orders-tabs a {
        border-bottom: 1px solid #eceff1;
    }

    .customer-order-product {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .customer-order-product img {
        width: 68px;
        height: 68px;
    }

    .customer-order-product-price {
        grid-column: 2;
    }

    .customer-order-actions,
    .customer-order-actions form,
    .customer-order-actions .btn {
        width: 100%;
    }
}

.customer-notice-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #dc3545;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.customer-notice-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.customer-notice-list a,
.customer-notice-all {
    display: block;
    color: #212529;
    text-decoration: none;
}

.customer-notice-list a {
    padding: 8px 0;
    border-top: 1px solid #f0f2f4;
}

.customer-notice-list a:hover,
.customer-notice-all:hover {
    color: #b03a6f;
}

.customer-notice-list small {
    display: block;
    margin-top: 3px;
    color: #6c757d;
    line-height: 1.35;
}

.customer-notice-all {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f4;
    font-weight: 700;
    font-size: 13px;
}

.customer-orders-bulk {
    margin-bottom: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 6px;
}

.customer-orders-bulk label,
.customer-order-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-orders-bulk button {
    min-height: 38px;
    padding: 0 14px;
    color: #dc3545;
    background: #fff;
    border: 1px solid #f0a7b0;
    border-radius: 4px;
    font-weight: 700;
}

.customer-orders-bulk button:disabled {
    color: #adb5bd;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.customer-order-title {
    min-width: 0;
}

.customer-order-title > span {
    min-width: 0;
}

.customer-order-title strong,
.customer-order-title small {
    display: block;
}

.customer-order-title strong {
    color: #212529;
}

.cart-check {
    width: 18px;
    height: 18px;
    accent-color: #b03a6f;
}

.checkout-save-address {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #495057;
}

.checkout-save-address input {
    width: 17px;
    height: 17px;
    accent-color: #b03a6f;
}

.policy-page {
    padding: 38px 0 24px;
    background: #fafafa;
}

.policy-hero {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7e9ec;
}

.policy-hero span {
    display: block;
    margin-bottom: 8px;
    color: #b03a6f;
    font-weight: 700;
    text-transform: uppercase;
}

.policy-hero h1 {
    margin: 0 0 10px;
    color: #20223f;
    font-size: 34px;
    font-weight: 700;
}

.policy-hero p {
    max-width: 820px;
    margin: 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.65;
}

.policy-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.policy-sidebar a {
    padding: 10px 12px;
    color: #343a40;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.policy-sidebar a:hover {
    color: #b03a6f;
    background: #fff3f8;
}

.policy-content {
    display: grid;
    gap: 18px;
}

.policy-card {
    scroll-margin-top: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.policy-card h2 {
    margin: 0 0 14px;
    color: #20223f;
    font-size: 24px;
    font-weight: 700;
}

.policy-card h3 {
    margin: 20px 0 10px;
    color: #343a40;
    font-size: 18px;
    font-weight: 700;
}

.policy-card p,
.policy-card li {
    color: #495057;
    line-height: 1.75;
}

.policy-card p {
    margin-bottom: 12px;
}

.policy-card ul,
.policy-card ol {
    margin-bottom: 0;
    padding-left: 20px;
}

.policy-card li + li {
    margin-top: 8px;
}

.policy-note-grid,
.policy-size-table,
.policy-contact-grid {
    display: grid;
    gap: 12px;
}

.policy-note-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
}

.policy-size-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.policy-note-grid div,
.policy-size-table div {
    padding: 14px;
    background: #f8f9fa;
    border: 1px solid #eceff1;
    border-radius: 8px;
}

.policy-note-grid strong,
.policy-size-table strong {
    display: block;
    margin-bottom: 6px;
    color: #20223f;
}

.policy-note-grid span,
.policy-size-table span {
    color: #667085;
    line-height: 1.55;
}

.policy-contact {
    border-color: #f3c4d7;
    background: #fff7fb;
}

.policy-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-contact-grid span {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #343a40;
    font-weight: 700;
}

.policy-contact-grid i {
    margin-top: 4px;
    color: #b03a6f;
}

@media (max-width: 767.98px) {
    .customer-orders-bulk {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-orders-bulk button {
        width: 100%;
    }

    .customer-order-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-order-title {
        width: 100%;
    }

    .policy-hero h1 {
        font-size: 28px;
    }

    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .policy-note-grid,
    .policy-size-table,
    .policy-contact-grid {
        grid-template-columns: 1fr;
    }
}

.footer-shop {
    color: #d8dadd;
    background: #202020;
}

.footer-shop h5 {
    margin-bottom: 18px;
    color: #fff;
    font-family: var(--spica-font-sans);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.footer-shop a {
    color: #d8dadd;
    text-decoration: none;
}

.footer-shop a:hover {
    color: #fff;
}

.footer-service-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 0 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-service-row div {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.footer-service-row i {
    color: #f7b6cf;
    font-size: 22px;
}

.footer-service-row span {
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}

.footer-brand {
    margin-bottom: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.footer-list,
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li,
.footer-links li {
    margin-bottom: 10px;
    line-height: 1.45;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-list i {
    width: 18px;
    margin-top: 4px;
    color: #fff;
    text-align: center;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.footer-socials a:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.footer-payments span {
    min-width: 48px;
    padding: 5px 9px;
    color: #1f1f1f;
    background: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.footer-newsletter span {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
}

.footer-newsletter form {
    display: flex;
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.footer-newsletter input {
    min-width: 0;
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 0;
    outline: 0;
}

.footer-newsletter button {
    width: 46px;
    border: 0;
    color: #fff;
    background: #b03a6f;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bfc2c7;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .footer-service-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .footer-service-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
