.shop-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 55px;
    border-radius: 22px;
    color: #ffffff;
    background-color: #181818;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.shop-hero-content {
    max-width: 720px;
}

.shop-hero-shop-name {
    color: #ffc107;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.shop-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    margin-bottom: 15px;
}

.shop-hero p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.category-card {
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    background: #ffffff;
    color: #212529;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, .12);
    }

.category-image-wrap {
    height: 150px;
    background: #f1f3f5;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 52px;
}

.category-card-body {
    padding: 16px;
}

.category-name {
    font-size: 18px;
    font-weight: 800;
}

.category-description {
    margin-top: 5px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.product-card {
    overflow: hidden;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    }

.product-image-wrap {
    height: 280px;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #868e96;
    background: #f1f3f5;
    font-weight: 700;
}

.product-name {
    min-height: 48px;
    margin-top: 4px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .shop-hero {
        min-height: 300px;
        padding: 30px 24px;
        border-radius: 16px;
    }

        .shop-hero p {
            font-size: 17px;
        }

    .product-image-wrap {
        height: 210px;
    }
}

.category-section {
    margin-top: 6px;
}

.section-title {
    font-size: 26px;
    font-weight: 900;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 12px;
}

.category-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: #ffffff;
    color: #16181b;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .category-mini-card:hover {
        transform: translateY(-2px);
        border-color: #ffc107;
        box-shadow: 0 7px 18px rgba(0, 0, 0, .08);
        color: #16181b;
    }

.category-mini-image {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f3f5;
}

    .category-mini-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .category-mini-image span {
        font-size: 24px;
    }

.category-mini-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

@media (max-width: 1200px) {
    .category-strip {
        grid-template-columns: repeat(4, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
    }

    .category-strip {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .category-mini-card {
        flex: 0 0 170px;
        min-height: 68px;
    }

    .category-mini-image {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }
}

.shop-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 36px 48px;
    border-radius: 18px;
    color: #fff;
    background-color: #181818;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 28px !important;
}

.shop-hero-content {
    max-width: 560px;
}

.shop-hero-shop-name {
    color: #ffc107;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.shop-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 10px;
}

.shop-hero p {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    margin-bottom: 20px;
}

.shop-hero .btn {
    font-size: 16px;
    padding: 10px 20px;
}
.category-section {
    margin-bottom: 24px !important;
}

    .category-section .section-title {
        font-size: 24px;
        margin-bottom: 0;
    }

.category-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.category-mini-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fff;
    color: #16181b;
    text-decoration: none;
    transition: .18s ease;
}

    .category-mini-card:hover {
        transform: translateY(-2px);
        border-color: #ffc107;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .07);
    }

.category-mini-image {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f3f5;
}

    .category-mini-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .category-mini-image span {
        font-size: 19px;
    }

.category-mini-name {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}
.shop-hero {
    min-height: 240px;
    display: flex;
    align-items: center;
    padding: 34px 44px;
    margin-bottom: 24px;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    background-color: #181818;
    background-size: cover;
    background-position: center;
}

.shop-hero-content {
    max-width: 540px;
}

.shop-hero-shop-name {
    margin-bottom: 5px;
    color: #ffc107;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .7px;
}

.shop-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.08;
    font-weight: 900;
}

.shop-hero p {
    margin-bottom: 17px;
    font-size: 16px;
    font-weight: 600;
}

.shop-hero .btn {
    padding: 9px 18px;
    font-size: 15px;
}

.category-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

    .section-header h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 900;
    }

    .section-header > a:not(.btn) {
        color: #212529;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

.section-subtitle {
    margin-top: 2px;
    color: #6c757d;
    font-size: 13px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 9px;
}

.category-mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 7px 9px;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    background: #fff;
    color: #16181b;
    text-decoration: none;
    transition: .18s ease;
}

    .category-mini-card:hover {
        transform: translateY(-2px);
        border-color: #ffc107;
        box-shadow: 0 5px 14px rgba(0, 0, 0, .07);
        color: #16181b;
    }

.category-mini-image {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background: #f1f3f5;
}

    .category-mini-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .category-mini-image span {
        font-size: 18px;
    }

.category-mini-name {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.product-section {
    margin-top: 6px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #e4e7eb;
    border-radius: 13px;
    background: #fff;
    transition: .18s ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 9px 22px rgba(0, 0, 0, .09);
    }

.product-image-wrap {
    height: 210px;
    background: #fff;
    border-bottom: 1px solid #eceff2;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #8a9199;
    background: #f3f5f7;
    font-size: 13px;
    font-weight: 700;
}

.product-card .card-body {
    padding: 13px;
}

.product-category {
    margin-bottom: 2px;
    color: #d39e00;
    font-size: 11px;
    font-weight: 800;
}

.product-brand {
    color: #6c757d;
    font-size: 11px;
}

.product-name {
    min-height: 40px;
    margin: 3px 0 7px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.product-price {
    font-size: 18px;
    font-weight: 900;
}

.product-stock {
    margin-top: 2px;
    color: #6c757d;
    font-size: 11px;
}

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

@media (max-width: 768px) {
    .shop-hero {
        min-height: 210px;
        padding: 25px 22px;
        border-radius: 14px;
    }

        .shop-hero h1 {
            font-size: 29px;
        }

        .shop-hero p {
            font-size: 14px;
        }

    .category-strip {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 5px;
    }

    .category-mini-card {
        flex: 0 0 140px;
        min-height: 50px;
    }

    .section-header h2 {
        font-size: 21px;
    }

    .product-image-wrap {
        height: 170px;
    }

    .product-card .card-body {
        padding: 10px;
    }

    .product-name {
        min-height: 36px;
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }
}
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.product-image-wrap {
    height: 170px;
}

.product-card .card-body {
    padding: 11px 12px;
}

.product-name {
    min-height: 36px;
    margin: 3px 0 6px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.product-price {
    font-size: 17px;
    font-weight: 900;
}

.product-category,
.product-brand,
.product-stock {
    font-size: 10px;
}
@media (max-width: 991px) {
    .product-image-wrap {
        height: 165px;
    }
}

@media (max-width: 576px) {
    .product-image-wrap {
        height: 145px;
    }

    .product-card .card-body {
        padding: 9px;
    }

    .product-name {
        min-height: 34px;
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }
}
.product-gallery {
    position: relative;
    overflow: hidden;
}

.product-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    opacity: 0;
    transform: scale(.98);
    transition: opacity .28s ease, transform .32s ease;
    pointer-events: none;
}

    .product-gallery-image.active {
        opacity: 1;
        transform: scale(1);
    }

.product-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #111;
    font-size: 22px;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .18s ease, background-color .18s ease;
}

.product-gallery-prev {
    left: 8px;
}

.product-gallery-next {
    right: 8px;
}

.product-card:hover .product-gallery-arrow {
    opacity: 1;
}

.product-gallery-arrow:hover {
    background: #ffc107;
}

.product-gallery-count {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    padding: 3px 7px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.product-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: 4;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}

.product-gallery-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    transition: width .18s ease, background-color .18s ease;
}

    .product-gallery-dot.active {
        width: 16px;
        border-radius: 10px;
        background: #ffc107;
    }

@media (hover: none) {
    .product-gallery-arrow {
        opacity: 1;
    }
}
.product-upload-preview {
    overflow: hidden;
    border-radius: 12px;
}

.product-upload-preview-image {
    height: 180px;
    background: #f5f6f8;
    border-bottom: 1px solid #e5e7eb;
}

    .product-upload-preview-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }
.product-price-area {
    min-height: 48px;
    margin-top: 4px;
}

.product-original-price {
    color: #8a8f98;
    font-size: 12px;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.product-sale-price {
    color: #dc2626;
    font-size: 18px;
    font-weight: 900;
}

.product-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 10px;
    font-weight: 900;
}

.product-price {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}
.navbar-shop-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
}

.navbar-shop-name {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .3px;
}

@media (max-width: 768px) {
    .navbar-shop-logo {
        width: 38px;
        height: 38px;
    }

    .navbar-shop-name {
        font-size: 15px;
    }
}
.shop-navbar {
    min-height: 72px;
    padding: 8px 0;
    background: #17191c;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.shop-navbar-container {
    max-width: 1280px;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 420px;
    margin: 0;
    color: #ffffff;
    text-decoration: none;
}

    .shop-brand:hover {
        color: #ffffff;
    }

.navbar-shop-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(255, 193, 7, .8);
    padding: 3px;
}

.navbar-logo-placeholder {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffc107;
    color: #111111;
    font-weight: 900;
}

.shop-brand-text {
    min-width: 0;
}

.navbar-shop-name {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .3px;
    white-space: nowrap;
}

.navbar-shop-subtitle {
    max-width: 300px;
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-navbar .nav-link {
    position: relative;
    padding: 10px 13px !important;
    border-radius: 9px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 700;
    transition: color .18s ease, background-color .18s ease;
}

    .shop-navbar .nav-link:hover {
        color: #ffc107;
        background: rgba(255, 255, 255, .06);
    }

.shop-navbar .admin-menu {
    color: #ffc107;
}

.shop-navbar .dropdown-menu {
    min-width: 210px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.shop-navbar .dropdown-item {
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 14px;
}

    .shop-navbar .dropdown-item:hover {
        background: #fff4cc;
    }

.shop-page-container {
    max-width: 1280px;
}

@media (max-width: 991px) {
    .shop-navbar {
        min-height: 64px;
    }

    .navbar-shop-logo,
    .navbar-logo-placeholder {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .navbar-shop-name {
        font-size: 15px;
    }

    .navbar-shop-subtitle {
        display: none;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        border-radius: 12px;
        background: #202327;
    }

    .shop-navbar .nav-link {
        padding: 10px 12px !important;
    }
}

.product-sale-label {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 5;
    padding: 4px 8px;
    border-radius: 7px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.product-brand {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-name {
    min-height: 39px;
    margin: 0 0 6px;
    color: #111827;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 900;
}

.product-description-preview {
    display: -webkit-box;
    min-height: 38px;
    margin-bottom: 10px;
    overflow: hidden;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-sale-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #eef0f2;
}

.product-stock {
    color: #198754;
    font-size: 10px;
    font-weight: 800;
}

    .product-stock.low-stock {
        color: #d97706;
    }

    .product-stock.out-of-stock {
        color: #dc2626;
    }

.product-more {
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
}

.empty-product-box {
    padding: 42px 20px;
    border: 1px dashed #d5d9de;
    border-radius: 14px;
    color: #7b838d;
    text-align: center;
    background: #f8f9fa;
}

.shop-information-section {
    margin-top: 38px;
    padding: 22px 0 6px;
    border-top: 1px solid #e5e7eb;
}

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

.shop-information-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shop-information-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff4cc;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.shop-information-title {
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 900;
}

.shop-information-text {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .shop-information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .product-description-preview {
        min-height: 34px;
        font-size: 10px;
    }

    .shop-information-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
.product-list-page {
    padding-bottom: 30px;
}

.product-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

    .product-list-header h1 {
        margin: 0;
        font-size: 32px;
        font-weight: 900;
    }

.product-list-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.product-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(420px, 100%);
}

    .product-search-form .form-control {
        min-width: 0;
    }

.product-filter-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding: 10px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 13px;
}

    .product-filter-result a {
        color: #b45309;
        font-weight: 800;
        text-decoration: none;
    }

@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.product-list-page .product-image-wrap {
    height: 185px;
}

.product-list-page .product-card .card-body {
    padding: 12px;
}

.product-list-page .product-name {
    min-height: 38px;
    font-size: 14px;
}

.product-list-page .product-description-preview {
    min-height: 35px;
    font-size: 10px;
}

.product-list-page .product-price,
.product-list-page .product-sale-price {
    font-size: 17px;
}

@media (max-width: 991px) {
    .product-list-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .product-search-form {
        width: 100%;
    }

    .product-list-page .product-image-wrap {
        height: 170px;
    }
}

@media (max-width: 576px) {
    .product-list-header h1 {
        font-size: 26px;
    }

    .product-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .product-list-page .product-image-wrap {
        height: 150px;
    }
}
.admin-product-page {
    padding: 14px 0 45px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-page-eyebrow {
    margin-bottom: 5px;
    color: #b77900;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.admin-page-header h1 {
    margin: 0;
    color: #15181c;
    font-size: 32px;
    font-weight: 900;
}

.admin-page-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.admin-add-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 900;
}

.admin-add-icon {
    font-size: 20px;
    line-height: 1;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.admin-summary-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 108px;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.admin-summary-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef2f7;
    color: #1f2937;
    font-size: 19px;
    font-weight: 900;
}

    .admin-summary-icon.success {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-summary-icon.warning {
        background: #fef3c7;
        color: #b45309;
    }

    .admin-summary-icon.danger {
        background: #fee2e2;
        color: #b91c1c;
    }

.admin-summary-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.admin-summary-value {
    margin-top: 1px;
    color: #111827;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 900;
}

.admin-summary-detail {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 10px;
}

.admin-filter-card {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) 1fr 1fr auto;
    align-items: end;
    gap: 12px;
}

.admin-filter-field label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.admin-filter-actions {
    display: flex;
    gap: 7px;
}

    .admin-filter-actions .btn {
        min-width: 80px;
    }

.admin-product-table-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}

    .admin-table-header h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 900;
    }

    .admin-table-header span {
        color: #6b7280;
        font-size: 11px;
    }

.admin-product-table thead th {
    padding: 12px 14px;
    border-bottom: 0;
    background: #171a1f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-product-table tbody td {
    padding: 13px 14px;
    border-color: #edf0f2;
    vertical-align: middle;
    font-size: 12px;
}

.admin-product-table tbody tr:hover {
    background: #fafafa;
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 290px;
}

.admin-product-image {
    position: relative;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f4f5f7;
}

    .admin-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3px;
        background: #ffffff;
    }

.admin-no-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #9ca3af;
    font-size: 9px;
    font-weight: 700;
}

.admin-image-count {
    position: absolute;
    right: 3px;
    bottom: 3px;
    padding: 2px 4px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .72);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
}

.admin-product-name {
    margin-bottom: 5px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.admin-product-meta {
    margin-top: 2px;
    color: #6b7280;
    font-size: 10px;
}

.admin-category-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 7px;
    background: #f3f4f6;
    color: #374151;
    font-size: 10px;
    font-weight: 800;
}

.admin-original-price {
    color: #9ca3af;
    font-size: 10px;
    text-decoration: line-through;
}

.admin-sale-price {
    color: #dc2626;
    font-size: 14px;
    font-weight: 900;
}

.admin-normal-price {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.admin-stock-badge,
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

    .admin-stock-badge.success,
    .admin-status-badge.active {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-stock-badge.warning {
        background: #fef3c7;
        color: #b45309;
    }

    .admin-stock-badge.danger {
        background: #fee2e2;
        color: #b91c1c;
    }

    .admin-status-badge.inactive {
        background: #e5e7eb;
        color: #4b5563;
    }

.admin-action-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 8px;
    border: 1px solid;
    border-radius: 7px;
    background: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

    .admin-action-button.view {
        border-color: #d1d5db;
        color: #374151;
    }

    .admin-action-button.edit {
        border-color: #2563eb;
        color: #2563eb;
    }

    .admin-action-button.delete {
        border-color: #dc2626;
        color: #dc2626;
    }

    .admin-action-button:hover {
        background: #f3f4f6;
    }

.admin-empty-products {
    padding: 50px 20px;
    text-align: center;
}

.admin-empty-icon {
    margin-bottom: 12px;
    font-size: 40px;
}

.admin-empty-products h3 {
    font-size: 18px;
    font-weight: 900;
}

.admin-empty-products p {
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-add-button {
        justify-content: center;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .admin-product-info {
        min-width: 230px;
    }
}
.product-detail-page {
    padding: 4px 0 45px;
}

.detail-gallery {
    position: sticky;
    top: 92px;
}

.detail-main-image {
    position: relative;
    height: 560px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f5f6f8;
}

.detail-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 14px;
    object-fit: contain;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .28s ease, transform .32s ease;
    pointer-events: none;
}

    .detail-gallery-image.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

.detail-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}

.detail-gallery-prev {
    left: 14px;
}

.detail-gallery-next {
    right: 14px;
}

.detail-gallery-arrow:hover {
    background: #ffc107;
}

.detail-gallery-counter {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 4;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.detail-thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 4px;
    overflow-x: auto;
}

.detail-thumbnail {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    padding: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #ffffff;
}

    .detail-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .detail-thumbnail.active {
        border-color: #ffc107;
    }

.detail-no-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #8b9199;
    font-weight: 700;
}

.detail-product-info {
    padding: 8px 0;
}

.detail-breadcrumb {
    display: flex;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.detail-product-name {
    margin: 7px 0 14px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
    color: #6b7280;
    font-size: 13px;
}

.detail-stock.available {
    color: #15803d;
    font-weight: 800;
}

.detail-stock.unavailable {
    color: #dc2626;
    font-weight: 800;
}

.detail-description-box {
    margin-bottom: 22px;
    padding: 17px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f8f9fa;
}

.detail-description-title {
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 900;
}

.detail-description-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-line;
}

.detail-buy-form {
    padding-top: 2px;
}

.quantity-control {
    display: inline-grid;
    grid-template-columns: 42px 80px 42px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 9px;
}

.quantity-button {
    border: 0;
    background: #f3f4f6;
    font-size: 21px;
    font-weight: 800;
}

.quantity-input {
    width: 100%;
    border: 0;
    border-right: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
    text-align: center;
    outline: none;
}

@media (max-width: 991px) {
    .detail-gallery {
        position: static;
    }

    .detail-main-image {
        height: 460px;
    }

    .detail-product-name {
        font-size: 31px;
    }
}

@media (max-width: 576px) {
    .detail-main-image {
        height: 340px;
        border-radius: 14px;
    }

    .detail-gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .detail-thumbnail {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .detail-product-name {
        font-size: 27px;
    }
}
.admin-category-page {
    padding: 14px 0 45px;
}

.admin-category-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

    .admin-category-summary > div {
        padding: 10px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #ffffff;
        color: #6b7280;
        font-size: 12px;
    }

    .admin-category-summary strong {
        margin: 0 4px;
        color: #111827;
        font-size: 16px;
        font-weight: 900;
    }

.admin-category-table-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.admin-category-table thead th {
    padding: 12px 14px;
    border-bottom: 0;
    background: #171a1f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-category-table tbody td {
    padding: 13px 14px;
    border-color: #edf0f2;
    font-size: 12px;
}

.admin-category-table tbody tr:hover {
    background: #fafafa;
}

.admin-category-image {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #f5f6f8;
}

    .admin-category-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 5px;
    }

.admin-category-no-image {
    font-size: 26px;
}

.admin-category-name {
    margin-bottom: 4px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.admin-category-description {
    max-width: 460px;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.5;
}

.admin-category-slug {
    color: #9ca3af;
    font-size: 9px;
}

.admin-category-count {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 7px;
    background: #eef2f7;
    color: #374151;
    font-size: 10px;
    font-weight: 800;
}

.admin-category-order {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #fff4cc;
    color: #8a5a00;
    font-size: 11px;
    font-weight: 900;
}

.admin-empty-categories {
    padding: 50px 20px;
    text-align: center;
}

    .admin-empty-categories h3 {
        margin-bottom: 6px;
        font-size: 18px;
        font-weight: 900;
    }

    .admin-empty-categories p {
        color: #6b7280;
        font-size: 12px;
    }
.admin-category-form-page {
    padding: 14px 0 45px;
}

.category-status-box {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #f8f9fa;
}

.category-image-preview {
    width: 100%;
    height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #cfd4da;
    border-radius: 14px;
    background: #f5f6f8;
}

    .category-image-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 14px;
    }

.category-image-empty {
    color: #8b9199;
    text-align: center;
    font-size: 12px;
}

.category-image-empty-icon {
    margin-bottom: 8px;
    font-size: 42px;
}
.product-display-setting {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8f9fa;
}
.product-option-section {
    margin: 20px 0;
}

.product-option-group {
    margin-bottom: 20px;
}

.product-option-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 900;
}

.selected-option-text {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.product-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-option-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid #d8dde3;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    transition: .15s ease;
}

    .product-option-button:hover {
        border-color: #ffc107;
    }

    .product-option-button.active {
        border-color: #ffc107;
        background: #fff7d6;
        box-shadow: 0 0 0 2px rgba(255, 193, 7, .18);
    }

    .product-option-button.disabled {
        color: #a0a6ae;
        background: #f5f6f7;
        text-decoration: line-through;
        cursor: not-allowed;
    }

.option-color {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 50%;
}

.option-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 5px;
}
.product-option-admin-page {
    padding: 14px 0 50px;
}

.option-group-list {
    display: grid;
    gap: 18px;
}

.option-admin-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.option-admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.option-group-title {
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.option-group-subtitle {
    margin-top: 3px;
    color: #6b7280;
    font-size: 11px;
}

.option-admin-card-body {
    padding: 17px;
}

.option-value-list {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.option-value-row {
    display: grid;
    grid-template-columns: 34px minmax(130px, 1.5fr) minmax(100px, 1fr) minmax(90px, .8fr) 70px 55px auto;
    align-items: end;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e8ebef;
    border-radius: 10px;
    background: #ffffff;
}

.option-value-color-preview {
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: linear-gradient( 135deg, #f3f4f6 25%, #ffffff 25%, #ffffff 50%, #f3f4f6 50%, #f3f4f6 75%, #ffffff 75% );
    background-size: 10px 10px;
}

.option-value-field label,
.option-value-active label {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 9px;
    font-weight: 700;
}

.option-value-active {
    text-align: center;
}

    .option-value-active .form-check-input {
        margin: 7px auto 0;
    }

.option-value-actions {
    display: flex;
    gap: 5px;
}

.option-add-value-form {
    padding: 14px;
    border: 1px dashed #d1d5db;
    border-radius: 11px;
    background: #fafafa;
}

.option-value-empty {
    padding: 20px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    color: #8b9199;
    text-align: center;
    font-size: 11px;
}

.option-empty-state {
    padding: 60px 20px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    text-align: center;
    background: #fafafa;
}

.option-empty-icon {
    margin-bottom: 12px;
    font-size: 42px;
}

.option-empty-state h3 {
    font-size: 18px;
    font-weight: 900;
}

.option-empty-state p {
    color: #6b7280;
    font-size: 12px;
}

.option-create-group-card {
    position: sticky;
    top: 92px;
}

.option-admin-guide {
    margin-top: 18px;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff8df;
}

    .option-admin-guide h3 {
        margin-bottom: 12px;
        font-size: 15px;
        font-weight: 900;
    }

    .option-admin-guide > div {
        display: grid;
        gap: 3px;
        margin-bottom: 12px;
    }

    .option-admin-guide strong {
        font-size: 12px;
    }

    .option-admin-guide span {
        color: #6b7280;
        font-size: 10px;
    }

@media (max-width: 1200px) {
    .option-value-row {
        grid-template-columns: 30px minmax(120px, 1fr) minmax(90px, 1fr) 90px 65px;
    }

    .option-value-active,
    .option-value-actions {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .option-value-row {
        grid-template-columns: 34px 1fr;
    }

    .option-value-field,
    .option-value-active,
    .option-value-actions {
        grid-column: 1 / -1;
    }

    .option-value-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .option-create-group-card {
        position: static;
    }
}
.variant-admin-section {
    padding-top: 6px;
}

.variant-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

    .variant-admin-header h2 {
        margin: 0;
        font-size: 21px;
        font-weight: 900;
    }

    .variant-admin-header p {
        margin: 4px 0 0;
        color: #6b7280;
        font-size: 12px;
    }

.variant-table-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.variant-admin-table thead th {
    padding: 12px 13px;
    border: 0;
    background: #171a1f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.variant-admin-table tbody td {
    padding: 12px 13px;
    border-color: #edf0f2;
    font-size: 11px;
}

.variant-name {
    min-width: 140px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.variant-value-ids {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 9px;
}

.variant-edit-form {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) minmax(140px, 1fr) 90px 75px 60px auto;
    align-items: center;
    gap: 8px;
}

.variant-active {
    text-align: center;
}

.variant-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.variant-empty-state {
    padding: 38px 20px;
    color: #6b7280;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 991px) {
    .variant-admin-header {
        align-items: stretch;
        flex-direction: column;
    }

        .variant-admin-header form,
        .variant-admin-header button {
            width: 100%;
        }

    .variant-edit-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .variant-active,
    .variant-actions {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .variant-edit-form {
        grid-template-columns: 1fr;
    }

    .variant-active,
    .variant-actions {
        grid-column: 1;
    }

    .variant-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
.home-banner-carousel {
    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.home-banner-slide {
    position: relative;
    height: 310px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 18px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-banner-content {
    width: min(600px, 75%);
    padding: 40px 48px;
    color: #fff;
}

    .home-banner-content h1 {
        margin-bottom: 8px;
        font-size: 40px;
        line-height: 1.15;
        font-weight: 900;
    }

    .home-banner-content p {
        margin-bottom: 20px;
        font-size: 16px;
        font-weight: 600;
    }

    .home-banner-content .btn {
        padding: 10px 20px;
        border-radius: 9px;
    }

.home-banner-carousel .carousel-control-prev,
.home-banner-carousel .carousel-control-next {
    width: 7%;
    opacity: 0;
    transition: opacity .2s ease;
}

.home-banner-carousel:hover .carousel-control-prev,
.home-banner-carousel:hover .carousel-control-next {
    opacity: 1;
}

.home-banner-carousel .carousel-indicators {
    margin-bottom: 11px;
}

    .home-banner-carousel .carousel-indicators button {
        width: 24px;
        height: 4px;
        border: 0;
        border-radius: 999px;
    }

@media (max-width: 768px) {
    .home-banner-slide {
        height: 240px;
    }

    .home-banner-content {
        width: 88%;
        padding: 28px;
    }

        .home-banner-content h1 {
            font-size: 28px;
        }

        .home-banner-content p {
            font-size: 13px;
        }
}

@media (max-width: 576px) {
    .home-banner-slide {
        height: 200px;
        background-position: center;
    }

    .home-banner-content {
        padding: 20px;
    }

        .home-banner-content h1 {
            font-size: 23px;
        }

        .home-banner-content p {
            display: none;
        }
}

.admin-banner-page,
.admin-banner-form-page {
    padding: 14px 0 50px;
}

.admin-banner-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .admin-banner-summary span {
        padding: 9px 13px;
        border: 1px solid #e5e7eb;
        border-radius: 9px;
        background: #ffffff;
        font-size: 12px;
    }

.admin-banner-list {
    display: grid;
    gap: 18px;
}

.admin-banner-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.admin-banner-preview {
    position: relative;
    height: 250px;
    background: #111;
}

    .admin-banner-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.admin-banner-order {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.admin-banner-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

    .admin-banner-status.active {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-banner-status.inactive {
        background: #e5e7eb;
        color: #4b5563;
    }

.admin-banner-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
}

    .admin-banner-content h2 {
        margin: 0 0 5px;
        font-size: 17px;
        font-weight: 900;
    }

    .admin-banner-content p {
        margin: 0 0 8px;
        color: #6b7280;
        font-size: 12px;
    }

.admin-banner-meta {
    color: #6b7280;
    font-size: 10px;
}

.admin-banner-actions {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.admin-banner-empty {
    padding: 60px 20px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    text-align: center;
}

.banner-upload-preview {
    width: 100%;
    height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #cfd4da;
    border-radius: 12px;
    background: #f5f6f8;
}

    .banner-upload-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.banner-upload-empty {
    color: #8b9199;
    font-size: 12px;
}

@media (max-width: 768px) {
    .admin-banner-preview {
        height: 190px;
    }

    .admin-banner-content {
        flex-direction: column;
    }

    .admin-banner-actions {
        flex-wrap: wrap;
    }
}
.shop-cart-page {
    padding: 18px 0 60px;
}

.shop-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

    .shop-cart-header h1 {
        margin: 0 0 5px;
        color: #111827;
        font-size: 34px;
        font-weight: 900;
    }

    .shop-cart-header p {
        margin: 0;
        color: #6b7280;
        font-size: 14px;
    }

.shop-cart-list {
    display: grid;
    gap: 14px;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.shop-cart-item-image {
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-right: 1px solid #e5e7eb;
    background: #f7f8fa;
}

    .shop-cart-item-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        padding: 8px;
    }

.shop-cart-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
}

.shop-cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

    .shop-cart-item-top h2 {
        margin: 0 0 7px;
        color: #111827;
        font-size: 18px;
        font-weight: 900;
    }

.shop-cart-option {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #fff3cd;
    color: #805500;
    font-size: 12px;
    font-weight: 800;
}

.shop-cart-sku {
    overflow-wrap: anywhere;
    color: #6b7280;
    font-size: 11px;
}

.shop-cart-item-bottom {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 14px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #edf0f2;
}

.shop-cart-price-block,
.shop-cart-quantity-block,
.shop-cart-total-block {
    display: grid;
    gap: 3px;
}

    .shop-cart-price-block span,
    .shop-cart-quantity-block span,
    .shop-cart-total-block span {
        color: #6b7280;
        font-size: 11px;
    }

    .shop-cart-price-block strong,
    .shop-cart-quantity-block strong {
        color: #111827;
        font-size: 14px;
    }

.shop-cart-total-block {
    text-align: right;
}

    .shop-cart-total-block strong {
        color: #111827;
        font-size: 17px;
        font-weight: 900;
    }

.shop-cart-summary {
    position: sticky;
    top: 95px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

    .shop-cart-summary h2 {
        margin: 0 0 20px;
        color: #111827;
        font-size: 20px;
        font-weight: 900;
    }

.shop-cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 13px;
}

    .shop-cart-summary-row strong {
        color: #111827;
    }

.shop-cart-summary-divider {
    height: 1px;
    margin: 18px 0;
    background: #e5e7eb;
}

.shop-cart-grand-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

    .shop-cart-grand-total span {
        color: #111827;
        font-size: 15px;
        font-weight: 800;
    }

    .shop-cart-grand-total strong {
        color: #dc2626;
        font-size: 23px;
        font-weight: 900;
    }

.shop-cart-empty {
    padding: 70px 20px;
    border: 1px dashed #d1d5db;
    border-radius: 15px;
    background: #fafafa;
    text-align: center;
}

.shop-cart-empty-icon {
    margin-bottom: 12px;
    font-size: 44px;
}

.shop-cart-empty h2 {
    margin-bottom: 7px;
    font-size: 21px;
    font-weight: 900;
}

.shop-cart-empty p {
    margin-bottom: 20px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .shop-cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .shop-cart-header {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-cart-item {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .shop-cart-item-image {
        width: 110px;
        height: 130px;
    }

    .shop-cart-item-bottom {
        grid-template-columns: 1fr 70px;
    }

    .shop-cart-total-block {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .shop-cart-item {
        grid-template-columns: 1fr;
    }

    .shop-cart-item-image {
        width: 100%;
        height: 210px;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .shop-cart-item-top {
        flex-direction: column;
    }

    .shop-cart-item-bottom {
        grid-template-columns: 1fr 1fr;
    }
}
.contact-page {
    padding: 18px 0 60px;
}

.contact-hero {
    margin-bottom: 24px;
    padding: 38px 42px;
    border-radius: 18px;
    background: linear-gradient(120deg, #111827, #1f2937);
    color: #ffffff;
}

.contact-eyebrow {
    margin-bottom: 6px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.contact-hero h1 {
    margin: 0 0 8px;
    font-size: 38px;
    font-weight: 900;
}

.contact-hero p {
    max-width: 680px;
    margin: 0;
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 22px;
}

.contact-main-card,
.contact-help-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.contact-main-card {
    padding: 26px;
}

.contact-help-card {
    padding: 24px;
}

.contact-shop-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f2;
}

.contact-shop-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border: 2px solid #fbbf24;
    border-radius: 50%;
    background: #ffffff;
}

.contact-shop-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 900;
}

.contact-shop-header p {
    margin: 0;
    color: #6b7280;
}

.contact-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 10px;
    background: #fff3cd;
    font-size: 20px;
}

.contact-info-label {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 12px;
}

.contact-info-value {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.contact-help-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 900;
}

.contact-help-list {
    display: grid;
    gap: 11px;
}

.contact-help-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #374151;
    font-size: 14px;
}

    .contact-help-item span {
        width: 25px;
        height: 25px;
        display: grid;
        place-items: center;
        flex: 0 0 25px;
        border-radius: 50%;
        background: #dcfce7;
        color: #15803d;
        font-size: 12px;
        font-weight: 900;
    }

.contact-note {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .contact-hero {
        padding: 28px 22px;
    }

        .contact-hero h1 {
            font-size: 30px;
        }

    .contact-info-list {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        flex-direction: column;
    }

        .contact-actions .btn {
            width: 100%;
        }
}
.home-products-section {
    margin-top: 28px;
}

    .home-products-section + .home-products-section {
        margin-top: 34px;
    }

.all-products-section {
    padding-top: 26px;
    border-top: 1px solid #e5e7eb;
}

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

.home-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e7ec;
    border-radius: 13px;
    background: #ffffff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .home-product-card:hover {
        z-index: 2;
        transform: translateY(-3px);
        border-color: #d5a800;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .09);
    }

.home-product-media {
    position: relative;
    height: 175px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid #edf0f3;
    background: #f7f8fa;
}

.home-product-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    object-fit: contain;
    padding: 9px;
}

    .home-product-photo.active {
        display: block;
    }

.home-product-no-image {
    color: #9ca3af;
    font-size: 12px;
}

.home-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .13);
}

    .home-product-badge.new {
        background: #2563eb;
    }

    .home-product-badge.recommended {
        background: linear-gradient(135deg, #f59e0b, #e87800);
    }

.home-product-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    padding: 5px 8px;
    border-radius: 7px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.home-product-badge + .home-product-discount {
    top: 38px;
}

.home-product-image-count {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .82);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
}

.home-product-discount + .home-product-image-count {
    top: 38px;
}

.home-product-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 155px;
    padding: 10px 12px 9px;
}

.home-product-brand {
    overflow: hidden;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-product-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    margin: 0 0 4px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: auto;
}

.home-product-old-price {
    color: #9ca3af;
    font-size: 10px;
    text-decoration: line-through;
}

.home-product-price,
.home-product-sale-price {
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.home-product-sale-price {
    color: #dc2626;
}

.home-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #edf0f3;
}

.home-stock-status,
.home-product-detail {
    font-size: 9px;
    font-weight: 800;
}

    .home-stock-status.ready {
        color: #15803d;
    }

    .home-stock-status.limited {
        color: #d97706;
    }

    .home-stock-status.sold-out {
        color: #dc2626;
    }

.home-product-detail {
    color: #4b5563;
}

.home-product-card:hover .home-product-detail {
    color: #d97706;
}

.product-gallery-arrow {
    z-index: 6;
}

.product-gallery-dots {
    z-index: 6;
}

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

@media (max-width: 991px) {
    .home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-product-media {
        height: 155px;
    }

    .home-product-content {
        min-height: 165px;
        padding: 10px;
    }

    .home-product-title {
        font-size: 13px;
    }

    .home-product-price,
    .home-product-sale-price {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .home-product-media {
        height: 140px;
    }

    .home-product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
.home-product-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 34px;
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-full-detail-section {
    margin-top: 42px;
    padding: 28px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.product-full-detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.product-full-detail-eyebrow {
    margin-bottom: 5px;
    color: #d97706;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
}

.product-full-detail-header h2 {
    margin: 0;
    color: #111827;
    font-size: 25px;
    font-weight: 900;
}

.product-full-detail-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .product-full-detail-section {
        margin-top: 28px;
        padding: 20px;
    }

    .product-full-detail-header h2 {
        font-size: 21px;
    }

    .product-full-detail-content {
        font-size: 14px;
        line-height: 1.8;
    }
}
.product-full-detail-section {
    margin-top: 42px;
    padding: 28px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.product-full-detail-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.product-full-detail-eyebrow {
    margin-bottom: 5px;
    color: #d97706;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
}

.product-full-detail-header h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
}

.product-full-detail-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

    .product-full-detail-content h2,
    .product-full-detail-content h3,
    .product-full-detail-content h4 {
        margin: 28px 0 12px;
        color: #111827;
        font-weight: 900;
    }

    .product-full-detail-content p {
        margin-bottom: 14px;
    }

    .product-full-detail-content img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 22px auto;
        border-radius: 12px;
    }

    .product-full-detail-content ul,
    .product-full-detail-content ol {
        margin-bottom: 18px;
        padding-left: 24px;
    }

    .product-full-detail-content table {
        width: 100%;
        margin: 20px 0;
        border-collapse: collapse;
    }

    .product-full-detail-content th,
    .product-full-detail-content td {
        padding: 11px 13px;
        border: 1px solid #dfe3e8;
        text-align: left;
    }

    .product-full-detail-content th {
        background: #f3f4f6;
        color: #111827;
        font-weight: 800;
    }

    .product-full-detail-content iframe {
        display: block;
        max-width: 100%;
        margin: 22px auto;
    }

@media (max-width: 767px) {
    .product-full-detail-section {
        margin-top: 28px;
        padding: 18px;
    }

    .product-full-detail-content {
        font-size: 14px;
    }
}
.home-slider-section {
    margin-top: 28px;
}

    .home-slider-section + .home-slider-section {
        margin-top: 32px;
    }

.home-slider-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.home-slider-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

    .home-slider-button:hover {
        border-color: #f2b800;
        background: #fbbf24;
        color: #111827;
    }

    .home-slider-button:disabled {
        cursor: default;
        opacity: .35;
    }

.home-product-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

    .home-product-slider::-webkit-scrollbar {
        height: 7px;
    }

    .home-product-slider::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #f3f4f6;
    }

    .home-product-slider::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #cbd5e1;
    }

.home-slider-item {
    flex: 0 0 230px;
    min-width: 230px;
    scroll-snap-align: start;
}

    /* ให้การ์ดสูงตามเนื้อหา ไม่ยืดเต็มพื้นที่ */
    .home-slider-item .home-product-card {
        height: 100%;
    }

@media (max-width: 991px) {
    .home-slider-item {
        flex-basis: 210px;
        min-width: 210px;
    }
}

@media (max-width: 767px) {
    .section-header {
        align-items: flex-start;
        gap: 12px;
    }

    .home-slider-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .home-slider-item {
        flex-basis: 175px;
        min-width: 175px;
    }

    .home-product-slider {
        gap: 10px;
    }
}
.shop-guide-page {
    padding: 22px 0 60px;
}

.shop-guide-hero {
    padding: 36px 40px;
    border-radius: 18px;
    background: linear-gradient(120deg, #111827, #20242a);
    color: #ffffff;
}

.shop-guide-eyebrow {
    margin-bottom: 6px;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.shop-guide-hero h1 {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: 900;
}

.shop-guide-hero p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.7;
}

.shop-guide-content {
    margin-top: 24px;
    padding: 30px 34px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #374151;
    font-size: 15px;
    line-height: 1.85;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

    .shop-guide-content h2 {
        margin: 30px 0 14px;
        padding-bottom: 10px;
        border-bottom: 2px solid #fbbf24;
        color: #111827;
        font-size: 24px;
        font-weight: 900;
    }

        .shop-guide-content h2:first-child {
            margin-top: 0;
        }

    .shop-guide-content h3 {
        margin: 24px 0 10px;
        color: #111827;
        font-size: 19px;
        font-weight: 900;
    }

    .shop-guide-content img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 24px auto;
        border-radius: 12px;
    }

    .shop-guide-content table {
        width: 100%;
        margin: 22px 0;
        border-collapse: collapse;
    }

    .shop-guide-content th,
    .shop-guide-content td {
        padding: 11px 13px;
        border: 1px solid #dfe3e8;
    }

    .shop-guide-content th {
        background: #f3f4f6;
        color: #111827;
        font-weight: 800;
    }

.shop-guide-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 767px) {
    .shop-guide-hero {
        padding: 28px 22px;
    }

        .shop-guide-hero h1 {
            font-size: 29px;
        }

    .shop-guide-content {
        padding: 20px;
    }

    .shop-guide-actions {
        flex-direction: column;
    }
}
.about-page {
    padding: 24px 0 60px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    overflow: hidden;
    border-radius: 20px;
    background: #15171a;
    color: #fff;
}

.about-hero-content {
    padding: 52px 48px;
}

.about-eyebrow {
    margin-bottom: 7px;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.about-hero h1 {
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 900;
}

.about-hero p {
    max-width: 650px;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.8;
}

.about-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.about-hero-image {
    min-height: 360px;
}

    .about-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.about-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.about-trust-card {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
}

.about-trust-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 13px;
    background: #fff3c4;
    font-size: 23px;
}

.about-trust-card h3 {
    margin-bottom: 7px;
    font-size: 17px;
    font-weight: 900;
}

.about-trust-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
}

.about-store-section,
.about-content-section,
.about-contact-section {
    margin-top: 30px;
}

.about-store-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about-store-image {
    height: 260px;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f4f6;
}

    .about-store-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.about-content-section {
    padding: 30px 34px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #374151;
    line-height: 1.85;
}

    .about-content-section img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 22px auto;
        border-radius: 12px;
    }

.about-contact-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 24px;
    padding: 30px;
    border-radius: 18px;
    background: #f7f8fa;
}

.about-contact-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    color: #374151;
}

.about-contact-buttons {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.about-map {
    overflow: hidden;
    border-radius: 14px;
    background: #e5e7eb;
}

    .about-map iframe {
        display: block;
    }

@media (max-width: 991px) {
    .about-hero,
    .about-contact-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .about-hero-content {
        padding: 34px 24px;
    }

    .about-hero h1 {
        font-size: 31px;
    }

    .about-trust-grid,
    .about-store-gallery {
        grid-template-columns: 1fr;
    }

    .about-store-image {
        height: 220px;
    }

    .about-contact-buttons,
    .about-hero-actions {
        flex-direction: column;
    }
}
.admin-orders-page,
.admin-order-detail-page {
    padding: 28px 0 60px;
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.order-summary-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

    .order-summary-card span {
        display: block;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
    }

    .order-summary-card strong {
        display: block;
        margin: 5px 0 2px;
        color: #111827;
        font-size: 28px;
        font-weight: 900;
    }

    .order-summary-card small {
        color: #9ca3af;
    }

    .order-summary-card.pending {
        border-left: 4px solid #f59e0b;
    }

    .order-summary-card.preparing {
        border-left: 4px solid #8b5cf6;
    }

    .order-summary-card.shipped {
        border-left: 4px solid #2563eb;
    }

    .order-summary-card.completed {
        border-left: 4px solid #16a34a;
    }

    .order-summary-card.cancelled {
        border-left: 4px solid #dc2626;
    }

.sales-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.sales-summary-card {
    padding: 18px 20px;
    border-radius: 14px;
    background: #17191c;
    color: #ffffff;
}

    .sales-summary-card span {
        display: block;
        color: #d1d5db;
        font-size: 12px;
    }

    .sales-summary-card strong {
        display: block;
        margin-top: 5px;
        color: #fbbf24;
        font-size: 22px;
    }

.order-filter-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

    .order-filter-card label {
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 800;
    }

.order-filter-actions {
    display: flex;
    gap: 7px;
}

.order-table-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.order-table thead {
    background: #17191c;
    color: #ffffff;
}

.order-table th {
    padding: 14px 13px;
    font-size: 12px;
}

.order-table td {
    padding: 14px 13px;
}

.order-status-badge {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

    .order-status-badge.pending {
        background: #fff3c4;
        color: #a16207;
    }

    .order-status-badge.preparing {
        background: #ede9fe;
        color: #6d28d9;
    }

    .order-status-badge.shipped {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .order-status-badge.completed {
        background: #dcfce7;
        color: #15803d;
    }

    .order-status-badge.cancelled {
        background: #fee2e2;
        color: #b91c1c;
    }

.order-detail-status {
    padding: 8px 13px;
    border-radius: 999px;
    background: #17191c;
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 1199px) {
    .order-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 767px) {
    .order-summary-grid,
    .sales-summary-grid,
    .order-filter-card {
        grid-template-columns: 1fr;
    }

    .order-filter-actions {
        width: 100%;
    }

        .order-filter-actions .btn {
            flex: 1;
        }
}
.home-brand-section {
    margin-top: 34px;
    padding: 24px 0 28px;
    border-top: 1px solid #e5e7eb;
}

.brand-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

    .brand-section-header h2 {
        margin: 0 0 3px;
        color: #111827;
        font-size: 23px;
        font-weight: 900;
    }

    .brand-section-header p {
        margin: 0;
        color: #6b7280;
        font-size: 12px;
    }

.brand-slider-actions {
    display: flex;
    gap: 7px;
}

.brand-slider-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

    .brand-slider-button:hover {
        border-color: #f2b600;
        background: #fbbf24;
        transform: translateY(-1px);
    }

.brand-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.brand-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 10px;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    user-select: none;
}

    .brand-slider.dragging {
        cursor: grabbing;
        scroll-behavior: auto;
    }

    .brand-slider::-webkit-scrollbar {
        height: 6px;
    }

    .brand-slider::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #f3f4f6;
    }

    .brand-slider::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #cbd5e1;
    }

.brand-slider-item {
    flex: 0 0 190px;
    min-width: 190px;
    height: 105px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 16px;
    border: 1px solid #e1e5ea;
    border-radius: 13px;
    background: #ffffff;
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .brand-slider-item:hover {
        border-color: #f0b900;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
        transform: translateY(-3px);
    }

    .brand-slider-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
    }

.brand-slider-name {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 767px) {
    .brand-section-header {
        align-items: flex-start;
    }

    .brand-slider-item {
        flex-basis: 145px;
        min-width: 145px;
        height: 88px;
        padding: 13px;
    }
}
/* =========================
   BRAND SLIDER
   ========================= */

.home-brand-section {
    margin-top: 30px;
    padding: 26px 0 30px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.brand-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

    .brand-section-header h2 {
        margin: 0 0 4px;
        color: #111827;
        font-size: 23px;
        font-weight: 900;
    }

    .brand-section-header p {
        margin: 0;
        color: #6b7280;
        font-size: 12px;
    }

.brand-slider-actions {
    display: flex;
    gap: 7px;
}

.brand-slider-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

    .brand-slider-button:hover {
        border-color: #f5b700;
        background: #fbbf24;
    }

.brand-slider-wrapper {
    overflow: hidden;
}

.brand-slider {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

/* การ์ดโลโก้ */
.brand-slider-item {
    flex: 0 0 170px;
    min-width: 170px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid #e2e6eb;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .brand-slider-item:hover {
        transform: translateY(-2px);
        border-color: #f2b900;
        box-shadow: 0 7px 18px rgba(15, 23, 42, .08);
    }

    /* สำคัญ: ไม่ให้รูปขยายเต็มกรอบ */
    .brand-slider-item img {
        display: block;
        width: auto;
        height: auto;
        max-width: 125px;
        max-height: 54px;
        object-fit: contain;
        object-position: center;
        pointer-events: none;
    }

/* กรณีไม่มีรูป */
.brand-slider-name {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.brand-slider::-webkit-scrollbar {
    height: 5px;
}

.brand-slider::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 999px;
}

.brand-slider::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .brand-slider-item {
        flex-basis: 140px;
        min-width: 140px;
        height: 82px;
        padding: 14px 16px;
    }

        .brand-slider-item img {
            max-width: 105px;
            max-height: 45px;
        }
}
.seo-google-preview {
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.seo-preview-url {
    margin-bottom: 4px;
    color: #202124;
    font-size: 13px;
}

.seo-preview-title {
    margin-bottom: 5px;
    color: #1a0dab;
    font-size: 20px;
    line-height: 1.3;
}

.seo-preview-description {
    max-width: 700px;
    color: #4d5156;
    font-size: 14px;
    line-height: 1.55;
}
.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 13px;
}

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

        .product-breadcrumb a:hover {
            color: #d99b00;
            text-decoration: underline;
        }

    .product-breadcrumb > span:last-child {
        color: #111827;
        font-weight: 700;
    }
/* ===================================
   PRODUCT SEO EDITOR
   =================================== */

.seo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #f8fafc;
}

.seo-toolbar-title {
    margin-bottom: 3px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.seo-toolbar-description {
    color: #6b7280;
    font-size: 12px;
}

.seo-score-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.seo-score-circle {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 21px;
    border: 7px solid #d1d5db;
    border-radius: 50%;
    color: #374151;
}

    .seo-score-circle strong {
        font-size: 25px;
        font-weight: 900;
        line-height: 1;
    }

    .seo-score-circle span {
        font-size: 11px;
        font-weight: 700;
    }

    .seo-score-circle.poor {
        border-color: #ef4444;
        color: #b91c1c;
    }

    .seo-score-circle.fair {
        border-color: #f59e0b;
        color: #a16207;
    }

    .seo-score-circle.good {
        border-color: #22c55e;
        color: #15803d;
    }

.seo-score-title {
    margin-bottom: 4px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.seo-score-description {
    color: #6b7280;
    font-size: 13px;
}

.seo-check-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.seo-check-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

    .seo-check-item.passed {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #15803d;
    }

    .seo-check-item.failed {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

.seo-check-icon {
    font-size: 16px;
    font-weight: 900;
}

.seo-character-counter {
    margin-top: 5px;
    color: #6b7280;
    font-size: 11px;
    text-align: right;
}

.seo-google-preview {
    padding: 20px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #ffffff;
}

.seo-preview-url {
    margin-bottom: 4px;
    color: #202124;
    font-size: 13px;
    word-break: break-all;
}

.seo-preview-title {
    margin-bottom: 5px;
    color: #1a0dab;
    font-size: 20px;
    line-height: 1.3;
}

.seo-preview-description {
    max-width: 720px;
    color: #4d5156;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 991px) {
    .seo-check-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .seo-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

        .seo-toolbar .btn {
            width: 100%;
        }

    .seo-score-card {
        align-items: flex-start;
    }

    .seo-check-list {
        grid-template-columns: 1fr;
    }
}
/* ===================================
   HOME CATEGORY WITH IMAGE
   =================================== */

.category-section {
    margin-bottom: 28px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

    .category-strip .home-category-item {
        width: 100%;
        height: 58px;
        min-width: 0;
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        overflow: hidden;
        border: 1px solid #dfe3e8;
        border-radius: 11px;
        background: #ffffff;
        color: #111827 !important;
        text-decoration: none !important;
        box-sizing: border-box;
        transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

        .category-strip .home-category-item:hover {
            border-color: #f2b600;
            box-shadow: 0 7px 18px rgba(15, 23, 42, .09);
            color: #111827 !important;
            text-decoration: none !important;
            transform: translateY(-2px);
        }

    .category-strip .home-category-image {
        width: 42px;
        height: 42px;
        min-width: 42px;
        max-width: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        overflow: hidden;
        border-radius: 9px;
        background: #f4f6f8;
    }

        .category-strip .home-category-image img {
            width: 100% !important;
            height: 100% !important;
            min-width: 0 !important;
            max-width: 42px !important;
            max-height: 42px !important;
            display: block !important;
            object-fit: contain !important;
            object-position: center;
        }

    .category-strip .home-category-fallback {
        font-size: 20px;
        line-height: 1;
    }

    .category-strip .home-category-name {
        min-width: 0;
        overflow: hidden;
        color: #111827;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

@media (max-width: 767px) {
    .category-strip {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        padding-bottom: 7px;
    }

        .category-strip .home-category-item {
            min-width: 180px;
            flex: 0 0 180px;
        }
}
/* PRODUCT DETAIL GALLERY FIX */

.detail-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f7f8fa;
}

.detail-gallery-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: none;
    object-fit: contain !important;
    object-position: center;
    background: #fff;
}

    .detail-gallery-image.active {
        display: block;
    }

.detail-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-50%);
}

.detail-gallery-prev {
    left: 14px;
}

.detail-gallery-next {
    right: 14px;
}

.detail-gallery-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.detail-thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.detail-thumbnail {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    padding: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #fff;
}

    .detail-thumbnail.active {
        border-color: #f5b800;
    }

    .detail-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        display: block;
        object-fit: contain !important;
    }
@media (max-width: 767px) {
    .product-detail-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .detail-main-image {
        border-radius: 12px;
    }

    .detail-gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .detail-gallery-prev {
        left: 8px;
    }

    .detail-gallery-next {
        right: 8px;
    }

    .detail-thumbnail {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .detail-product-name {
        font-size: 27px;
    }
}