:root {
    --brand: #c49f59;
    --brand-dark: #a88445;
    --text: #2c2c2c;
    --muted: #6c757d;
    --bg: #ffffff;
    --border: #eee;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; }
.border-brand { border-color: var(--brand) !important; }

.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-brand:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.btn-outline-brand {
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline-brand:hover {
    background-color: var(--brand);
    color: #fff;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    max-width: min(220px, 55vw);
    padding: 0;
    margin: 0;
    line-height: 1;
}

.navbar-brand img {
    display: block;
    max-height: 48px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    max-width: 200px;
    margin-bottom: 0.75rem;
}

.footer-logo {
    display: block;
    max-height: 56px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* —— Product card (modern) —— */
.product-card {
    --card-radius: 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 159, 89, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(196, 159, 89, 0.12);
}

.product-card__media-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 200px;
    background: linear-gradient(165deg, #faf8f5 0%, #f3efe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow: hidden;
}

.product-card__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__img {
    transform: scale(1.04);
}

.product-card__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: calc(100% - 1.5rem);
}

.product-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card__badge--sale {
    background: #dc3545;
    color: #fff;
}

.product-card__badge--featured {
    background: var(--brand);
    color: #fff;
}

.product-card__badge--tag {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem 1.15rem 1.2rem;
    gap: 0.35rem;
}

.product-card__brand {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    line-height: 1.3;
}

.product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card__title a:hover {
    color: var(--brand);
}

.product-card__excerpt {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-card__price {
    font-weight: 700;
    line-height: 1.2;
}

.product-card__price--sale {
    font-size: 1.1rem;
    color: var(--brand);
}

.product-card__price--old {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: line-through;
}

.product-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.product-card__cta i {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.product-card__cta:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.product-card__cta:hover i {
    transform: translateX(3px);
}

.product-grid > [class*="col"] {
    display: flex;
}

/* Legacy label hooks (shop/other) */
.product-card .card-labels,
.product-card .card-img-wrap {
    display: none;
}

/* —— Homepage —— */
.home-page {
    background: #fafafa;
}

.home-hero {
    background: linear-gradient(180deg, #fff 0%, #faf8f5 55%, #fafafa 100%);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.home-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.home-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    max-width: 640px;
    margin: 0 auto 1rem;
    color: var(--text);
}

.home-hero__lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.home-trust {
    background: #fff;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.home-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-trust__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

.home-trust__item i {
    font-size: 1.35rem;
    color: var(--brand);
}

.home-products {
    padding: 2.5rem 0 4rem;
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.home-section-head__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.home-section-head__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.home-section-head__link {
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.home-section-head__link:hover {
    opacity: 0.8;
    color: var(--brand-dark);
}

.home-empty {
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.home-pagination .pagination {
    gap: 0.25rem;
}

.home-pagination .page-link {
    border-radius: 8px;
    border-color: var(--border);
    color: var(--text);
}

.home-pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
}

/* —— Shop filters —— */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .shop-layout {
        grid-template-columns: 260px 1fr;
        gap: 2rem;
    }
}

.shop-layout__filters {
    position: sticky;
    top: 88px;
}

.shop-filters {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-filters__title {
    color: var(--text);
}

.shop-filters__clear {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.shop-filters__clear:hover {
    color: var(--brand-dark);
}

.shop-filters__inline-clear {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.shop-filters__inline-clear:hover {
    color: var(--brand-dark);
}

.shop-filters__group + .shop-filters__group {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.shop-filters__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.shop-filters__check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 0.35rem;
}

.shop-filters__check input {
    accent-color: var(--brand);
}

.shop-filters__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.shop-filters__size {
    margin: 0;
    cursor: pointer;
}

.shop-filters__size input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-filters__size span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.shop-filters__size input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.shop-filters__size:hover span {
    border-color: var(--brand);
}

.shop-filters__prices {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shop-filters__price {
    margin: 0;
    cursor: pointer;
}

.shop-filters__price input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-filters__price span {
    display: block;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.shop-filters__price input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.shop-filters__price:hover span {
    border-color: var(--brand);
}

.shop-filters__apply {
    margin-top: 1.25rem;
    border-radius: 10px;
    font-weight: 600;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.shop-toolbar__filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 10px;
    font-weight: 600;
}

.shop-toolbar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
}

.shop-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--muted);
}

.shop-toolbar__sort .form-select {
    min-width: 10rem;
    border-radius: 10px;
}

.shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.shop-active-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.shop-active-filters__chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.shop-active-filters__chip i {
    font-size: 0.85rem;
    opacity: 0.6;
}

.shop-active-filters__chip--clear {
    color: var(--brand);
    border-color: rgba(196, 159, 89, 0.4);
    background: rgba(196, 159, 89, 0.08);
}

.shop-filters-offcanvas {
    --bs-offcanvas-width: min(320px, 90vw);
}

.shop-filters-offcanvas .shop-filters {
    border: none;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 575.98px) {
    .product-card__media {
        min-height: 160px;
        padding: 0.85rem;
    }

    .product-card__body {
        padding: 0.85rem 0.9rem 1rem;
    }

    .product-card__title {
        font-size: 0.875rem;
        min-height: 2.6em;
    }

    .home-hero {
        padding: 2rem 0 1.75rem;
    }

    .home-products {
        padding: 1.75rem 0 3rem;
    }
}

.gallery-main {
    border-radius: 12px;
    border: 1px solid var(--border);
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
}
.gallery-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}
.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--brand);
}

.checkout-section {
    scroll-margin-top: 100px;
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.cart-badge {
    font-size: .65rem;
    min-width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    top: 2px;
    right: -4px;
}

/* —— Product size variants —— */
.size-options .btn-check:disabled + label {
    cursor: not-allowed;
    pointer-events: none;
}

.size-option-wrap .text-danger {
    font-size: 0.65rem;
    line-height: 1.1;
}

#variantTable .variant-row td {
    vertical-align: middle;
}

#variantTable .variant-price {
    min-width: 5.5rem;
}

@media (max-width: 575.98px) {
    #variantTable thead th {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    #variantTable .form-control-sm,
    #variantTable .form-select-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.35rem;
    }
}

/* —— Admin panel layout —— */
.admin-body {
    overflow-x: hidden;
    margin: 0;
}

.admin-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

.admin-overlay.show {
    display: block;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1050;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.admin-sidebar__logo {
    max-height: 40px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.admin-sidebar__nav {
    padding: 0.5rem 0.75rem 1.5rem;
    overflow-y: auto;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--brand);
    color: #fff;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1020;
    flex-shrink: 0;
}

.admin-topbar__title {
    font-weight: 600;
    font-size: 1.05rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-content {
    flex: 1 0 auto;
    padding: 1rem 1.15rem;
    min-width: 0;
}

.admin-page-head {
    margin-bottom: 0.75rem;
}

.admin-content > .h3,
.admin-content > h1.h3 {
    margin-bottom: 0.75rem !important;
}

.admin-content .alert {
    margin-bottom: 0.75rem;
}

.admin-notify-menu {
    min-width: 280px;
}

.admin-notify-badge {
    font-size: 0.6rem;
}

.admin-settings-preview {
    max-height: 56px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    background: #fff;
}

body.admin-sidebar-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-content {
        padding: 0.75rem;
    }
}

@media (min-width: 992px) {
    .admin-sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start;
        height: 100vh;
        max-height: 100vh;
    }

    .admin-content {
        padding: 1.15rem 1.35rem 1.35rem;
    }
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: .5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

.price-old {
    text-decoration: line-through;
    color: var(--muted);
    font-size: .9rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all .2s;
}
.social-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.product-page .gallery-zoom-wrap { overflow: hidden; border-radius: 12px; cursor: crosshair; }
.gallery-zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--brand);
    background-repeat: no-repeat;
    background-size: 200%;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.product-page .gallery-main { aspect-ratio: 1; object-fit: contain; background: #fafafa; }
.product-detail-tabs .nav-link.active { color: var(--brand); border-color: var(--border) var(--border) #fff; }
.spec-table th { background: #fafafa; font-weight: 600; }
.sticky-order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    z-index: 1030;
}
body:has(.sticky-order-bar) { padding-bottom: 72px; }
.color-options .btn-check:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.size-options .btn-check:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.qty-control .form-control { max-width: 56px; }
.bg-success-subtle { background-color: #d1e7dd !important; }
.img-preview { width: 80px; height: 80px; object-fit: cover; }
.discount-badge { z-index: 2; }
.admin-product-form h5 { border-bottom: 1px solid var(--border); padding-bottom: .5rem; }

/* Cart drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.cart-drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -8px 0 32px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}
.cart-drawer-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
    flex-shrink: 0;
}

.cart-drawer-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

body.cart-drawer-open { overflow: hidden; }

#openCartDrawer { line-height: 1; }

/* Admin rich text editor (CKEditor 4) */
.admin-product-form .rich-text-editor {
    min-height: 120px;
}

.admin-product-form .product-editor-wrap {
    min-height: 460px;
}

.admin-product-form .cke_chrome {
    border-radius: 10px !important;
    border-color: var(--border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: visible;
}

.admin-product-form .cke_top {
    display: block !important;
    visibility: visible !important;
    min-height: 40px;
}

.admin-product-form .cke_top {
    background: #fafafa !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 6px 8px !important;
}

.admin-product-form .cke_bottom {
    background: #fafafa !important;
    border-top: 1px solid var(--border) !important;
}

.admin-product-form .cke_toolgroup {
    border-radius: 6px !important;
}

.admin-product-form .cke_notification_warning {
    display: none !important;
}

/* Frontend product description HTML */
.product-html-content {
    line-height: 1.7;
    color: var(--text);
}

.product-html-content h1,
.product-html-content h2,
.product-html-content h3,
.product-html-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-html-content p {
    margin-bottom: 0.75rem;
}

.product-html-content ul,
.product-html-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-html-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.product-html-content td,
.product-html-content th {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
}

.product-html-content a {
    color: var(--brand);
}

/* —— Size guide page —— */
.size-guide-page .lead-sm {
    font-size: 1.05rem;
}

.size-guide-tabs {
    gap: 0.5rem;
    background: #f8f5f0;
    padding: 0.35rem;
    border-radius: 12px;
}

.size-guide-tabs .nav-link {
    color: var(--text);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border: none;
}

.size-guide-tabs .nav-link.active {
    background: var(--brand);
    color: #fff;
}

.size-guide-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.size-guide-card__intro {
    color: var(--muted);
    margin-bottom: 1rem;
}

.size-guide-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #faf8f4;
    border-left: 3px solid var(--brand);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.size-guide-tip i {
    color: var(--brand);
    margin-top: 0.1rem;
}

.size-guide-table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.size-guide-table thead th {
    background: #faf8f4;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--brand);
    padding: 0.75rem 0.65rem;
    text-align: center;
}

.size-guide-table tbody td {
    text-align: center;
    vertical-align: middle;
    padding: 0.7rem 0.5rem;
    border-color: var(--border);
}

.size-guide-table tbody tr:hover {
    background: #fdfbf7;
}

.size-guide-table__badge {
    display: inline-block;
    min-width: 2rem;
    padding: 0.2rem 0.55rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.9rem;
}

.size-guide-fit {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #eee;
}

.size-guide-fit--loose { background: #e8f4e8; color: #2d6a2d; }
.size-guide-fit--regular { background: #e8f0fa; color: #1a4d8c; }
.size-guide-fit--slim { background: #fce8e8; color: #8c2d2d; }

@media (max-width: 575.98px) {
    .size-guide-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.55rem 0.5rem;
    }

    .size-guide-card {
        padding: 1rem 0.75rem;
    }

    .size-guide-table {
        font-size: 0.82rem;
    }

    .size-guide-table thead th,
    .size-guide-table tbody td {
        padding: 0.5rem 0.35rem;
    }
}

/* Admin order line items */
.admin-order-items-wrap {
    margin: 0 -0.25rem;
}

.admin-order-items-table {
    --order-thumb: 56px;
    font-size: 0.925rem;
}

.admin-order-items-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    border-bottom-width: 1px;
    white-space: nowrap;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.admin-order-items-table__img-col {
    width: calc(var(--order-thumb) + 12px);
    padding-right: 0.35rem !important;
}

.admin-order-item-thumb-link {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-order-item-thumb-link:hover {
    box-shadow: 0 4px 14px rgba(196, 159, 89, 0.35);
    transform: translateY(-1px);
}

.admin-order-item-thumb {
    width: var(--order-thumb);
    height: var(--order-thumb);
    min-width: var(--order-thumb);
    min-height: var(--order-thumb);
    object-fit: cover;
    object-position: center;
    display: block;
    background: #f8f5f0;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-order-item-row:hover {
    background: rgba(196, 159, 89, 0.05);
}

.admin-order-item-product {
    min-width: 0;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .admin-order-items-table {
        font-size: 0.875rem;
    }

    .admin-order-items-table {
        --order-thumb: 48px;
    }

    .admin-order-items-table thead th:nth-child(3),
    .admin-order-items-table thead th:nth-child(5) {
        display: none;
    }

    .admin-order-items-table tbody td:nth-child(3) {
        display: none;
    }

    .admin-order-item-product .badge {
        font-size: 0.7rem;
    }
}
