/* ============================================================
   STOREFRONT THEME — Light, Red Accent
   ============================================================ */
:root {
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --text-main: #14161a;
    --text-muted: #8a8a8a;
    --accent-color: #e13441;
    --accent-gradient: linear-gradient(135deg, #e13441, #c92735);
    --glass-border: 1px solid #ececec;
    --glass-shadow: 0 8px 32px 0 rgba(20, 22, 26, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 68px;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: 'Rubik', Arial, Helvetica, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
}

/* ============================================================
   SALE TICKER BAR
   ============================================================ */
.sale-ticker {
    background: var(--accent-gradient);
    color: #fff;
    padding: 8px 0;
    font-size: 0.82rem;
    line-height: 1;
    overflow: hidden;
}

.sale-ticker .carousel-item {
    padding: 0 8px;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 0;
}

/* ---- Logo ---- */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 28px;
}

.site-logo img {
    display: block;
    max-height: 38px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
}

/* ---- Desktop Nav ---- */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-item-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-item-link:hover,
.nav-item-link.active {
    color: var(--accent-color);
    background: rgba(225, 52, 65, 0.06);
}

.nav-item-link.sale-link {
    color: var(--accent-color);
    font-weight: 700;
}

.nav-drop-btn .drop-icon {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .drop-icon {
    transform: rotate(180deg);
}

/* ---- Dropdown Panel (Desktop) ---- */
.nav-dropdown {
    position: relative;
}

.nav-drop-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.nav-dropdown.open .nav-drop-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Categories mega panel */
.drop-categories-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 0 30px;
    min-width: 520px;
    max-width: 680px;
}

.drop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 200px;
}

.drop-list li a {
    display: block;
    padding: 7px 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.drop-list li:last-child a {
    border-bottom: none;
}

.drop-list li a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

/* Brands panel */
.brands-panel {
    min-width: 300px;
}

.drop-brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px;
    max-width: 400px;
}

.brand-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 44px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.brand-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-thumb:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(225, 52, 65, 0.12);
}

/* User dropdown panel */
.user-dropdown .nav-drop-panel {
    left: auto;
    right: 0;
    min-width: 210px;
}

.user-panel ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.user-panel ul li a {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    font-size: 0.88rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.user-panel ul li a:hover {
    background: #f7f7f7;
    color: var(--accent-color);
}

.user-panel ul li.divider {
    height: 1px;
    background: #eaeaea;
    margin: 6px 0;
}

.user-panel ul li a.logout-link {
    color: var(--accent-color);
}

/* ---- Header Actions ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: none;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: #f5f5f5;
    color: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

/* Login button */
.btn-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--accent-gradient);
    color: #fff !important;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-login:hover {
    box-shadow: 0 4px 14px rgba(225, 52, 65, 0.35);
    transform: translateY(-1px);
}

/* ---- Desktop Search ---- */
.header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-search-wrap.search-open .header-search-form {
    width: 280px;
    opacity: 1;
    pointer-events: auto;
}

.header-search-wrap.search-open .search-toggle-btn {
    opacity: 0;
    pointer-events: none;
}

.header-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 16px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-main);
}

.header-search-form button {
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

/* ============================================================
   MOBILE NAVIGATION OVERLAY + SIDEBAR
   ============================================================ */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eaeaea;
    flex-shrink: 0;
}

.mobile-nav-search {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mobile-nav-search form {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
}

.mobile-nav-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-main);
}

.mobile-nav-search button {
    border: none;
    background: none;
    padding: 10px 14px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.mobile-nav-links {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid #f7f7f7;
}

.mobile-nav-links a:hover {
    background: #fafafa;
    color: var(--accent-color);
}

.mobile-nav-links a.sale-link {
    color: var(--accent-color);
}

.mobile-nav-divider {
    height: 6px;
    background: #f5f5f5;
    margin: 4px 0;
}

/* Mobile Accordion (categories) */
.mobile-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background: none;
    border: none;
    border-bottom: 1px solid #f7f7f7;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}

.mobile-accordion-btn:hover {
    color: var(--accent-color);
}

.mobile-accordion-btn i {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-accordion.open .mobile-accordion-btn i {
    transform: rotate(180deg);
}

.mobile-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.mobile-accordion-body a {
    padding-left: 32px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-accordion-body a:hover {
    color: var(--accent-color);
}

.mobile-nav-footer {
    padding: 16px;
    border-top: 1px solid #eaeaea;
    flex-shrink: 0;
}

.btn-mobile-login {
    display: block;
    text-align: center;
    padding: 13px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-mobile-logout {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-mobile-logout:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    /* Shrink header height a bit */
    :root {
        --header-height: 60px;
    }

    .site-logo {
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 56px;
    }

    .site-logo img {
        max-height: 30px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .cart-badge {
        top: 0;
        right: 0;
    }
}

/* Premium Buttons (kept for other parts of site) */
.btn-premium {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(225, 52, 65, 0.25);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 52, 65, 0.4);
    color: #fff;
}

/* Premium Product Cards */
.premium-product-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    box-shadow: 0 2px 10px rgba(20, 22, 26, 0.04);
}

.premium-product-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px rgba(20, 22, 26, 0.12), 0 0 15px rgba(225, 52, 65, 0.08);
    border-color: rgba(225, 52, 65, 0.25);
}

.premium-product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f7f7f7;
}

.premium-product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-product-card:hover .premium-product-img-wrapper img {
    transform: scale(1.1);
}

.premium-product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.premium-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-badge.new {
    background: var(--accent-gradient);
    color: white;
}

.premium-badge.discount {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: white;
}

.premium-product-body {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.premium-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-product-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.premium-product-price-box {
    display: flex;
    flex-direction: column;
}

.premium-price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.premium-price-final {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Hover Action Buttons */
.premium-product-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.premium-product-card:hover .premium-product-actions {
    opacity: 1;
    transform: translateY(0);
}

.premium-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f2;
    backdrop-filter: blur(5px);
    border: 1px solid #e6e6e6;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.premium-action-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

/* Filter Section */
.premium-filter-section {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(20, 22, 26, 0.04);
}

.premium-form-control {
    background: #fff !important;
    border: 1.5px solid #e6e6e6 !important;
    color: var(--text-main) !important;
    border-radius: 8px;
    height: 44px;
    padding: 0 15px;
}

.premium-filter-section .input-group .premium-form-control {
    height: 44px;
}

.premium-filter-section .input-group-text {
    border: 1.5px solid #e6e6e6 !important;
    border-right: none !important;
    color: #999;
}

.premium-form-control::placeholder {
    color: #999;
}

.premium-form-control:focus {
    box-shadow: none !important;
    border-color: var(--text-main) !important;
}

.premium-filter-section .form-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #999;
    margin-bottom: 6px;
}

.premium-filter-section .btn-premium {
    height: 44px;
    padding: 0 24px;
    font-size: 0.9rem;
}

.premium-filter-section .dual-range {
    height: 44px;
}

/* Dual price-range slider: two inputs sharing one track, with a filled bar
   between the min/max thumbs so it reads as a single connected control. */
.dual-range {
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
}

.dual-range-track,
.dual-range-fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 999px;
    pointer-events: none;
}

.dual-range-track {
    background: #e9e9e9;
}

.dual-range-fill {
    background: var(--accent-gradient);
    left: 0%;
    right: 0%;
}

.dual-range-input {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.dual-range-input::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: transparent;
    height: 5px;
}

.dual-range-input::-moz-range-track {
    background: transparent;
    height: 5px;
    border: none;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    margin-top: -6.5px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-color);
    box-shadow: 0 2px 6px rgba(20, 22, 26, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.dual-range-input::-webkit-slider-thumb:hover,
.dual-range-input::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.dual-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-color);
    box-shadow: 0 2px 6px rgba(20, 22, 26, 0.25);
    cursor: pointer;
}

.dual-range-input:focus {
    outline: none;
}

.dual-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(225, 52, 65, 0.18);
}

@media (max-width: 767px) {
    .premium-filter-section {
        padding: 18px;
    }

    .premium-filter-section .row.g-4 {
        --bs-gutter-y: 1.25rem;
    }

    .premium-filter-section .text-end {
        text-align: stretch !important;
    }

    .premium-filter-section .btn-premium {
        width: 100%;
    }
}

/* Premium Footer */
.premium-footer {
    background: #101216;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 70px 0 0;
    margin-top: 0;
}

.premium-footer .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.premium-footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.premium-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 4px;
}

.footer-logo {
    display: block;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(225, 52, 65, 0.12);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.premium-footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.premium-footer-link:hover {
    color: var(--accent-color) !important;
    transform: translateX(4px);
}

.premium-footer ul,
.footer-contact-list,
.footer-links-list {
    padding: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
}

.footer-contact-list li,
.footer-links-list li {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.footer-links-list li {
    margin-bottom: 4px;
}

.premium-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.premium-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.premium-social-icons a:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(225, 52, 65, 0.4);
}

/* Newsletter subscribe box */
.subscribe-form {
    width: 100%;
}

.footer-subscribe-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 4px;
    transition: border-color 0.25s ease;
}

.footer-subscribe-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(225, 52, 65, 0.2);
}

.footer-subscribe-input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 0.88rem;
    outline: none !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.footer-subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.footer-subscribe-btn {
    border-radius: 50px !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0;
}

/* Download App button */
.footer-app-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background: #0a0b0e;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
    .premium-footer {
        padding: 50px 0 0;
        margin-top: 40px;
    }

    .premium-footer-title {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }

    .footer-brand-wrap {
        margin-bottom: 12px;
    }

    .footer-bottom-bar {
        padding: 18px 0;
    }
}

/* Hero Slider */
.premium-hero-slider {
    position: relative;
}

/* Reset line-height pada elemen Owl internal agar tidak ada celah whitespace di desktop */
.premium-hero-slider .owl-stage-outer,
.premium-hero-slider .owl-stage,
.premium-hero-slider .owl-item,
.premium-hero-slider .item {
    line-height: 0;
    font-size: 0;
}

.premium-hero-slider .owl-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.premium-hero-slide {
    position: relative;
    width: 100%;
    /* Gunakan aspect ratio agar tinggi konsisten dan responsive. Fallback ke height */
    aspect-ratio: 21 / 9;
    min-height: 250px;
    max-height: 500px;
    background: #f8f9fa;
    overflow: hidden;
}

.premium-hero-slide a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.premium-hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.premium-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.premium-hero-slide:hover img {
    transform: scale(1.02);
    transition: transform 3s ease;
}

/* Custom Owl Dots (Modern Pill style top right inside image) */
.premium-hero-slider .owl-dots {
    position: absolute;
    top: 15px;
    right: 15px;
    left: auto;
    bottom: auto;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right;
    pointer-events: none;
    z-index: 10;
}

.premium-hero-slider .owl-dot {
    pointer-events: auto;
}

.premium-hero-slider .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 0 4px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.premium-hero-slider .owl-dot.active span,
.premium-hero-slider .owl-dot:hover span {
    width: 26px !important;
    background: var(--accent-color) !important;
}

/* Responsive adjust for slider */
@media (max-width: 768px) {
    .premium-hero-slide {
        aspect-ratio: 4 / 3;
        /* Kotak lebih tinggi di mobile */
    }

    .premium-hero-slider .owl-dots {
        top: 10px;
        right: 10px;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   PREMIUM RESPONSIVE PAGINATION
   ============================================================ */
.premium-pagination {
    width: 100%;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.pagination-custom,
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-custom .page-item,
.pagination .page-item {
    margin: 0;
}

.pagination-custom .page-link,
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1.5px solid #eaeaea;
    border-radius: 12px !important;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
}

/* Hover state */
.pagination-custom .page-item:not(.active):not(.disabled) .page-link:hover,
.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(225, 52, 65, 0.06);
    border-color: rgba(225, 52, 65, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(225, 52, 65, 0.12);
}

/* Active State */
.pagination-custom .page-item.active .page-link,
.pagination .page-item.active .page-link {
    color: #ffffff !important;
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px rgba(225, 52, 65, 0.35);
    font-weight: 700;
}

/* Disabled State */
.pagination-custom .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link {
    color: #b5b5b5 !important;
    background-color: #f8f9fa;
    border-color: #eee;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Focus state */
.pagination-custom .page-link:focus,
.pagination .page-link:focus {
    box-shadow: 0 0 0 3px rgba(225, 52, 65, 0.2) !important;
    outline: none;
}

/* Responsive Styles for Mobile */
@media (max-width: 576px) {

    .pagination-custom,
    .pagination {
        gap: 4px;
    }

    .pagination-custom .page-link,
    .pagination .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 0.82rem;
        border-radius: 10px !important;
    }

    .pagination-info {
        font-size: 0.8rem;
    }
}

/* ============================================================
   PREMIUM BOX-CART DROPDOWN
   ============================================================ */
#box-cart,
.cart-box-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    overflow: hidden;
    animation: cartBoxFadeIn 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes cartBoxFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-box-inner {
    padding: 16px;
}

.cart-box-header h6 {
    font-size: 0.95rem;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.btn-close-cart {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-cart:hover {
    background: #f0f0f0;
    color: var(--accent-color);
}

/* Empty cart state */
.empty-box .empty-cart-icon {
    width: 60px;
    height: 60px;
    background: rgba(225, 52, 65, 0.08);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.6rem;
}

/* Custom scrollbar and items list */
#cart-items-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

#cart-items-list::-webkit-scrollbar {
    width: 5px;
}

#cart-items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#cart-items-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

#cart-items-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Cart Item Row */
.cart-item-row {
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 6px;
}

.cart-item-row:hover {
    background-color: #fafafa;
}

.cart-item-thumb img {
    border-radius: 8px;
}

.cart-item-title {
    font-size: 0.88rem;
    line-height: 1.3;
}

.cart-item-title:hover {
    color: var(--accent-color) !important;
}

.extra-small {
    font-size: 0.78rem;
}

.text-accent {
    color: var(--accent-color) !important;
}

.remove-cart-item {
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.remove-cart-item:hover {
    color: #dc3545 !important;
    transform: scale(1.15);
}

/* Mobile Adjustments for Cart Box */
@media (max-width: 576px) {

    #box-cart,
    .cart-box-dropdown {
        position: fixed;
        top: calc(var(--header-height, 60px) + 8px);
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS (Search, Title, Pagination)
   ============================================================ */

/* 1. Home Main Title & Divider */
.home-sub-title {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.home-main-title {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1.25;
}

.home-title-divider {
    width: 70px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(225, 52, 65, 0.3);
}

@media (max-width: 768px) {
    .home-sub-title {
        font-size: 0.75rem;
    }

    .home-main-title {
        font-size: 1.45rem;
        letter-spacing: -0.3px;
        margin-bottom: 8px !important;
    }

    .home-title-divider {
        width: 50px;
        height: 3px;
    }
}

/* 1b. Strict Mobile Product Grid & Price Layout */
#product-section {
    display: flex !important;
    flex-wrap: wrap !important;
}

.modern-price-box {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.modern-price-final {
    white-space: nowrap !important;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-color);
}

.modern-price-original {
    white-space: nowrap !important;
    font-size: 0.8rem;
    color: #a0a0a0;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    #product-section>.col {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
    }

    .modern-price-final {
        font-size: 0.92rem !important;
    }

    .modern-price-original {
        font-size: 0.72rem !important;
    }
}

/* 2. Responsive Mobile Search Popup */
@media (max-width: 768px) {
    .header-search-wrap {
        position: static;
    }

    .header-search-wrap.search-open .header-search-form {
        position: absolute;
        top: 50%;
        left: 12px;
        right: 12px;
        transform: translateY(-50%);
        width: calc(100% - 24px);
        max-width: none;
        z-index: 1020;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
        border: 1.5px solid var(--accent-color);
        background: #ffffff;
        border-radius: 50px;
    }

    .header-search-form input {
        padding: 8px 14px;
        font-size: 0.88rem;
    }
}

/* 3. Responsive Page Number Navigation (Strict Flex Reset) */
.premium-pagination {
    width: 100% !important;
}

.premium-pagination nav {
    width: 100% !important;
}

.premium-pagination ul.pagination,
.pagination-custom,
ul.pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

.premium-pagination ul.pagination li,
.pagination-custom li,
ul.pagination li {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.premium-pagination ul.pagination li a,
.premium-pagination ul.pagination li span,
.pagination-custom li a,
.pagination-custom li span,
ul.pagination li a,
ul.pagination li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

@media (max-width: 576px) {
    .premium-pagination {
        margin-top: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    .premium-pagination ul.pagination,
    .pagination-custom,
    ul.pagination {
        gap: 4px !important;
    }

    .premium-pagination ul.pagination li a,
    .premium-pagination ul.pagination li span,
    .pagination-custom li a,
    .pagination-custom li span,
    ul.pagination li a,
    ul.pagination li span {
        min-width: 32px !important;
        height: 32px !important;
        padding: 0 6px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    .pagination-info {
        font-size: 0.78rem !important;
        margin-bottom: 6px !important;
    }
}

@media (max-width: 380px) {

    .premium-pagination ul.pagination,
    .pagination-custom,
    ul.pagination {
        gap: 3px !important;
    }

    .premium-pagination ul.pagination li a,
    .premium-pagination ul.pagination li span,
    .pagination-custom li a,
    .pagination-custom li span,
    ul.pagination li a,
    ul.pagination li span {
        min-width: 29px !important;
        height: 29px !important;
        padding: 0 4px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
}

/* ============================================================
   PREMIUM PRODUCT DETAIL STYLES
   ============================================================ */
.show-product,
.detail-product-column {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
}

.product-detail-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

.product-main-img {
    max-height: 480px;
    aspect-ratio: 1 / 1;
    background: #fafafa;
}

.premium-breadcrumb {
    font-size: 0.85rem;
    font-weight: 500;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.premium-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-color);
}

.premium-breadcrumb .breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 600;
}

.product-gallery-wrapper {
    position: relative;
}

/* ---- Main carousel controls ---- */
.product-main-carousel .carousel-control-prev,
.product-main-carousel .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-gallery-wrapper:hover .product-main-carousel .carousel-control-prev,
.product-gallery-wrapper:hover .product-main-carousel .carousel-control-next {
    opacity: 1;
}

.product-main-carousel .carousel-control-prev-icon,
.product-main-carousel .carousel-control-next-icon {
    width: 2.2rem;
    height: 2.2rem;
    background-size: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.product-main-carousel .carousel-control-prev-icon:hover,
.product-main-carousel .carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.08);
}

.product-main-carousel .carousel-indicators {
    margin-bottom: 0.5rem;
}

.product-main-carousel .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.35;
}

.product-main-carousel .carousel-indicators .active {
    opacity: 1;
}

/* ---- Thumbnails row ---- */
.thumbnail-container {
    position: relative;
}

.thumbnail-newsec {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    padding: 2px;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    overflow-x: auto;
}

.thumbnail-newsec.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.thumbnail-newsec::-webkit-scrollbar {
    height: 5px;
}

.thumbnail-newsec::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* Prev/next nav buttons for thumbnail strip */
.thumb-nav-btn {
    all: unset;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #374151;
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.thumb-nav-btn:hover {
    color: #ffffff;
    background: var(--accent-gradient);
    border-color: transparent;
}

.thumb-nav-prev {
    left: -6px;
}

.thumb-nav-next {
    right: -6px;
}

@media (max-width: 576px) {
    .thumb-nav-btn {
        display: none !important;
    }
}

.thumb-img {
    width: 100%;
    min-width: 0;
    height: 64px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    border-width: 2px !important;
    background: #fafafa;
}

.thumb-img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumb-img.active {
    opacity: 1;
    border-color: var(--accent-color) !important;
    box-shadow: 0 3px 10px rgba(225, 52, 65, 0.22);
    transform: translateY(-2px);
}

.ada-video.thumb-img {
    opacity: 0.9;
    transition: all 0.2s ease;
}

.ada-video.thumb-img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ============================================================
   VARIANT / COLOR SELECTOR PILLS
   ============================================================ */
.variant-options {
    row-gap: 8px;
}

.variant-pill {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: #374151;
    background: #ffffff;
    border: 1.5px solid #dde1e7;
    transition: all 0.2s ease;
}

.variant-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #fff5f5;
}

.variant-pill.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(225, 52, 65, 0.28);
    transform: translateY(-1px);
}

.product-detail-title {
    font-size: 1.65rem;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.detail-price-final {
    font-size: 1.85rem;
    line-height: 1;
}

.admin-edit-badge {
    transition: all 0.2s ease;
}

.admin-edit-badge:hover {
    transform: scale(1.05);
    background-color: #ffca2c !important;
}

.premium-nav-pills {
    margin-left: 0;
}

.premium-nav-pills .nav-link {
    color: var(--text-muted);
    background: transparent;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.premium-nav-pills .nav-link:hover {
    color: var(--text-main);
    background: #f4f4f5;
}

.premium-nav-pills .nav-link.active {
    color: #ffffff !important;
    background: var(--accent-gradient) !important;
    box-shadow: 0 4px 14px rgba(225, 52, 65, 0.3);
}

.rating-summary-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.border-end-md {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.interactive-stars .star {
    transition: transform 0.15s ease;
}

.interactive-stars .star:hover {
    transform: scale(1.2);
}

/* Mobile Adjustments for Product Detail */
@media (max-width: 768px) {
    .product-detail-card {
        padding: 14px !important;
        border-radius: 16px;
    }

    .product-main-img {
        max-height: 360px;
    }

    .product-main-carousel .carousel-control-prev,
    .product-main-carousel .carousel-control-next {
        opacity: 0.85;
    }

    .thumbnail-newsec {
        grid-auto-columns: minmax(56px, 1fr);
    }

    .thumb-img {
        height: 52px;
    }

    .product-detail-title {
        font-size: 1.3rem;
    }

    .detail-price-final {
        font-size: 1.45rem;
    }

    .border-end-md {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-bottom: 1rem;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* ============================================================
   PREMIUM CART PAGE STYLES
   ============================================================ */
.cart-item-card {
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item-card:hover {
    border-color: rgba(225, 52, 65, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.cart-item-title {
    transition: color 0.2s ease;
}

.hover-danger {
    transition: all 0.2s ease;
}

.hover-danger:hover {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

.btn-white {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
}

.btn-white:hover {
    background-color: #f4f4f5;
    color: #000000;
}

.shadow-2xs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.order-summary-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-empty-card {
    border: 1px dashed rgba(0, 0, 0, 0.12);
}

/* ---- Shared micro-utilities used by cart & favorites pages ---- */
.fw-black {
    font-weight: 900 !important;
}

.shadow-xs {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hover-accent:hover {
    color: var(--accent-color) !important;
}

.letter-spacing-1 {
    letter-spacing: 0.4px;
}

.min-w-0 {
    min-width: 0;
}

.py-2\.5 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

.py-1\.5 {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.p-0\.5 {
    padding: 0.125rem !important;
}

.coupon-box {
    transition: border-color 0.2s ease;
}

/* Pull the breadcrumb a touch closer to the page edge without
   disturbing the rest of the container's padding */
.premium-breadcrumb {
    margin-left: -0.35rem;
}

@media (max-width: 576px) {
    .cart-item-card {
        padding: 12px !important;
    }

    .cart-item-thumb {
        width: 68px !important;
        height: 68px !important;
    }

    .cart-item-title {
        font-size: 0.88rem !important;
    }

    .premium-breadcrumb {
        margin-left: -0.5rem;
    }
}

/* ============================================================
   PRODUCT DETAIL — ACTION CONTROLS  (.pda-*)
   ============================================================ */

/* Wrapper: single row, wraps on mobile */
.pda-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ---- Qty Stepper ---- */
.pda-qty {
    display: inline-flex;
    align-items: center;
    height: 44px;
    background: #ffffff;
    border: 1px solid #dde1e7;
    border-radius: 100px;
    padding: 0 4px;
    flex-shrink: 0;
}

.pda-qty-btn {
    all: unset;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #4b5563;
    background: transparent;
    border-radius: 50%;
    transition: background 0.18s ease, color 0.18s ease;
    flex-shrink: 0;
}

.pda-qty-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.pda-qty-input {
    all: unset;
    width: 40px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    -moz-appearance: textfield;
}

.pda-qty-input::-webkit-outer-spin-button,
.pda-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ---- Shared button base ---- */
.pda-btn {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.pda-btn:disabled,
.pda-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- + Keranjang ---- */
.pda-btn-cart {
    flex: 1;
    min-width: 120px;
    padding: 0 20px;
    background: #ffffff;
    border: 1.5px solid #1e293b;
    color: #1e293b;
}

.pda-btn-cart:hover {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(30, 41, 59, 0.18);
    transform: translateY(-1px);
}

/* ---- Beli Now ---- */
.pda-btn-buy {
    flex: 1;
    min-width: 120px;
    padding: 0 20px;
    background: linear-gradient(135deg, #e13441, #c92735);
    border: none;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(225, 52, 65, 0.22);
}

.pda-btn-buy:hover {
    background: linear-gradient(135deg, #c92735, #a81c28);
    box-shadow: 0 6px 18px rgba(225, 52, 65, 0.38);
    transform: translateY(-1px);
}

/* ---- Favorite (circle icon) ---- */
.pda-btn-fav {
    width: 44px;
    min-width: 44px;
    padding: 0;
    background: #ffffff;
    border: 1.5px solid #dde1e7;
    color: #6b7280;
    font-size: 1rem;
    flex-shrink: 0;
}

.pda-btn-fav:hover {
    border-color: #e13441;
    color: #e13441;
    background: #fff5f5;
}

.pda-btn-fav.active {
    background: #fff0f0;
    border-color: #e13441;
    color: #e13441;
}

/* ============================================================
   BLOG LISTING PAGE (/blog)
   ============================================================ */
.blog-hero {
    text-align: center;
    padding: 56px 20px 40px;
}

.blog-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 52, 65, 0.08);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.blog-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px;
}

.blog-hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

.blog-container {
    max-width: 1200px;
    padding-bottom: 60px;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.blog-empty i {
    font-size: 2.2rem;
    color: #d9d9d9;
    margin-bottom: 16px;
    display: block;
}

.blog-empty h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--glass-shadow);
    transform: translateY(-4px);
    border-color: transparent;
}

.blog-card-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f4f4;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.06);
}

.blog-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-card-label {
    background: rgba(225, 52, 65, 0.08);
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-label:hover {
    background: var(--accent-color);
    color: #fff;
}

.blog-card-label-more {
    background: #f1f1f1;
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title:hover {
    color: var(--accent-color);
}

.blog-card-meta {
    margin-top: auto;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 46px;
}

.blog-pagination .pagination .page-link {
    border-radius: 100px !important;
    margin: 0 3px;
    border: 1px solid #ececec;
    color: var(--text-main);
}

.blog-pagination .pagination .page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        padding: 40px 16px 28px;
    }

    .blog-hero-title {
        font-size: 1.7rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ============================================================
   ARTICLE SHOW PAGE (/article/{slug})
   ============================================================ */
.post-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #14161a;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 60px 20px 40px;
}

.post-hero.post-hero-plain {
    background: linear-gradient(135deg, #1e2128, #14161a);
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 26, 0.15) 0%, rgba(20, 22, 26, 0.85) 100%);
}

.post-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.post-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.post-label {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 100px;
    text-decoration: none;
}

.post-label:hover {
    background: var(--accent-color);
    color: #fff;
}

.post-title {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-container {
    max-width: 740px;
    padding: 44px 20px 20px;
}

.post-content {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-main);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 34px;
    margin-bottom: 16px;
    font-weight: 800;
}

.post-content h1 {
    font-size: 1.9rem;
}

.post-content h2 {
    font-size: 1.6rem;
}

.post-content h3 {
    font-size: 1.35rem;
}

.post-content h4 {
    font-size: 1.15rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-color);
    background: rgba(225, 52, 65, 0.05);
    margin: 26px 0;
    padding: 14px 20px;
    color: #555;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 0.92rem;
}

.post-content table td,
.post-content table th {
    border: 1px solid #ececec;
    padding: 12px;
    text-align: left;
}

.post-content table th {
    background: #fafafa;
    font-weight: 700;
}

.post-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 22px;
    background: var(--bg-card-hover);
    border: var(--glass-border);
    border-radius: 16px;
}

.post-share-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-share-buttons {
    display: flex;
    gap: 10px;
}

.post-share-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.post-share-facebook {
    background: #1877f2;
}

.post-share-twitter {
    background: #000;
}

.post-share-linkedin {
    background: #0077b5;
}

.post-share-whatsapp {
    background: #25d366;
}

.post-share-telegram {
    background: #0088cc;
}

.post-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 44px 0 18px;
}

.post-related {
    margin-bottom: 10px;
}

.post-related-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.post-related-scroll::-webkit-scrollbar {
    height: 6px;
}

.post-related-scroll::-webkit-scrollbar-thumb {
    background: #e2e2e2;
    border-radius: 10px;
}

.post-related-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
}

.post-related-card:hover {
    box-shadow: var(--glass-shadow);
    transform: translateY(-3px);
}

.post-related-thumb {
    aspect-ratio: 16 / 10;
    background: #f4f4f4;
    overflow: hidden;
}

.post-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-related-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-related-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-related-date {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-comments {
    border-top: var(--glass-border);
    padding-top: 10px;
}

@media (max-width: 640px) {
    .post-hero {
        min-height: 260px;
        padding: 40px 16px 28px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        gap: 12px;
        font-size: 0.82rem;
    }

    .post-container {
        padding: 30px 16px 16px;
    }

    .post-content {
        font-size: 15px;
    }

    .post-share {
        justify-content: center;
        text-align: center;
    }

    .post-related-card {
        flex-basis: 170px;
    }
}

/* ============================================================
   CATEGORY TOOLBAR — Sort Dropdown & Filter Toggle
   ============================================================ */
.category-toolbar {
    gap: 12px;
}

.sort-dropdown .sort-toggle,
.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: .9rem;
    line-height: 1.15;
    box-shadow: 0 4px 14px rgba(20, 22, 26, .06);
    transition: var(--transition);
}

.sort-dropdown .sort-toggle:hover,
.filter-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 18px rgba(225, 52, 65, .16);
}

.sort-toggle-icon {
    color: var(--accent-color);
    font-size: .95rem;
}

.sort-toggle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.sort-toggle-text small {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 700;
}

.sort-toggle-text strong {
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}

.sort-caret {
    font-size: .7rem;
    color: var(--text-muted);
    transition: transform .25s ease;
}

.sort-dropdown .sort-toggle[aria-expanded="true"] {
    border-color: var(--accent-color);
}

.sort-dropdown .sort-toggle[aria-expanded="true"] .sort-caret {
    transform: rotate(180deg);
}

.sort-menu {
    min-width: 250px;
    padding: 8px;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 22, 26, .14);
}

.sort-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: .875rem;
    color: var(--text-main);
    text-align: left;
    transition: var(--transition);
}

.sort-item>i:first-child {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
}

.sort-item span {
    flex: 1;
}

.sort-item .sort-check {
    opacity: 0;
    font-size: .75rem;
    color: var(--accent-color);
}

.sort-item:hover {
    background: #f6f6f7;
}

.sort-item.active {
    background: rgba(225, 52, 65, .08);
    font-weight: 600;
}

.sort-item.active>i:first-child,
.sort-item.active .sort-check {
    color: var(--accent-color);
    opacity: 1;
}

.filter-toggle {
    font-weight: 600;
    position: relative;
}

.filter-toggle i {
    color: var(--accent-color);
}

.filter-toggle.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

.filter-toggle.active i {
    color: #fff;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
}

.filter-toggle.active .filter-count {
    background: #fff;
    color: var(--accent-color);
}

@media (max-width: 575.98px) {
    .category-toolbar>div:last-child {
        width: 100%;
    }

    .sort-dropdown,
    .sort-dropdown .sort-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .sort-menu {
        min-width: 100%;
    }
}


/* ============================================================
   PRODUCT CARD — SKELETON LOADING
   Aktif selama gambar produk masih <img class="lazy"> (belum termuat).
   Dua selector: :has() untuk browser modern (tanpa JS), .is-skeleton
   sebagai fallback yang dipasang/dilepas oleh lazy loader di script.js.
   ============================================================ */
@keyframes skeletonShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.modern-product-card.is-skeleton .skeleton-hide,
.modern-product-card:has(img.lazy) .modern-badges,
.modern-product-card:has(img.lazy) .modern-actions,
.modern-product-card:has(img.lazy) .admin-edit-btn,
.modern-product-card.is-skeleton .modern-badges,
.modern-product-card.is-skeleton .modern-actions,
.modern-product-card.is-skeleton .admin-edit-btn {
    opacity: 0;
    pointer-events: none;
}

.modern-product-card:has(img.lazy) .modern-brand,
.modern-product-card:has(img.lazy) .modern-title,
.modern-product-card:has(img.lazy) .modern-price-box,
.modern-product-card.is-skeleton .modern-brand,
.modern-product-card.is-skeleton .modern-title,
.modern-product-card.is-skeleton .modern-price-box {
    position: relative;
    color: transparent !important;
    background: linear-gradient(90deg, #ededed 25%, #f7f7f7 37%, #ededed 63%);
    background-size: 200% 100%;
    animation: skeletonShine 1.4s ease-in-out infinite;
    border-radius: 6px;
    overflow: hidden;
}

/* sembunyikan isi asli (harga coret, dsb.) selama skeleton */
.modern-product-card:has(img.lazy) .modern-price-box>*,
.modern-product-card.is-skeleton .modern-price-box>* {
    visibility: hidden;
}

.modern-product-card:has(img.lazy) .modern-brand,
.modern-product-card.is-skeleton .modern-brand {
    width: 45%;
    height: 10px;
    margin-bottom: 8px;
}

.modern-product-card:has(img.lazy) .modern-title,
.modern-product-card.is-skeleton .modern-title {
    display: block;
    width: 100%;
    height: 13px;
    margin-bottom: 8px;
    pointer-events: none;
}

/* baris kedua judul */
.modern-product-card:has(img.lazy) .modern-title::after,
.modern-product-card.is-skeleton .modern-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: 19px;
    width: 65%;
    height: 13px;
    border-radius: 6px;
    background: inherit;
    background-size: 200% 100%;
    animation: inherit;
}

.modern-product-card:has(img.lazy) .modern-title,
.modern-product-card.is-skeleton .modern-title {
    margin-bottom: 27px;
}

.modern-product-card:has(img.lazy) .modern-price-box,
.modern-product-card.is-skeleton .modern-price-box {
    width: 60%;
    height: 16px;
}

@media (prefers-reduced-motion: reduce) {

    .modern-product-card:has(img.lazy) .modern-brand,
    .modern-product-card:has(img.lazy) .modern-title,
    .modern-product-card:has(img.lazy) .modern-price-box,
    .modern-product-card.is-skeleton .modern-brand,
    .modern-product-card.is-skeleton .modern-title,
    .modern-product-card.is-skeleton .modern-price-box {
        animation: none;
    }
}

/* shimmer area gambar (global, untuk halaman selain home) */
.modern-img-wrap {
    position: relative;
    overflow: hidden;
}

.modern-product-card:has(img.lazy) .modern-img-wrap::before,
.modern-product-card.is-skeleton .modern-img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, #ededed 25%, #f7f7f7 37%, #ededed 63%);
    background-size: 200% 100%;
    animation: skeletonShine 1.4s ease-in-out infinite;
}
