/* ================================================================
   DORVE.ID — Professional E-Commerce Design Layer
   Aesthetic: Refined Luxury Fashion — warm neutrals, editorial feel
   Inspired by: ZARA, H&M, Tokopedia premium, Shopee clean
   Non-breaking: only adds, never overrides layout/colors
   ================================================================ */

/* ── 1. GLOBAL REFINEMENTS ───────────────────────────────────── */

/* Smoother text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Better selection color */
::selection {
    background: rgba(184,150,110,.25);
    color: #1A1A1A;
}

/* Remove tap highlight on mobile */
* { -webkit-tap-highlight-color: transparent; }


/* ── 3. HERO SLIDER ──────────────────────────────────────────── */

.hero-slider-container,
.hero-slider {
    position: relative;
    overflow: hidden;
}

/* Gradient bottom fade for text readability */
.hero-slide-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.1) 0%,
        rgba(0,0,0,.35) 60%,
        rgba(0,0,0,.55) 100%
    ) !important;
}

/* Slider dots — pill style */
.slider-dots, .hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.slider-dot, .hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    padding: 0;
}
.slider-dot.active, .hero-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .hero-slide-title,
    .hero-slide-content h1 {
        font-size: clamp(24px, 7vw, 44px) !important;
        letter-spacing: -.5px !important;
    }
    .hero-slide-subtitle { font-size: 14px !important; }
    .hero-slide-cta { padding: 12px 24px !important; font-size: 12px !important; }
}

/* ── 4. PRODUCT CARD — PROFESSIONAL ─────────────────────────── */

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .28s ease, transform .28s ease !important;
    border: 1px solid rgba(0,0,0,.06);
    position: relative;
}
.product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1) !important;
    transform: translateY(-4px) !important;
}

/* Image wrapper */
.product-image, .product-card__img-wrap {
    position: relative;
    overflow: hidden;
    background: #f5efe7;
    aspect-ratio: 3 / 4 !important;
}
.product-image img,
.product-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .6s cubic-bezier(.4,0,.2,1) !important;
    display: block;
}
.product-card:hover .product-image img,
.product-card:hover .product-card__img {
    transform: scale(1.06) !important;
}

/* Product info area */
.product-info, .product-card__body {
    padding: 12px 14px 16px !important;
}

/* Product name */
.product-name, .product-card__name {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Category label */
.product-category {
    font-size: 10.5px !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    color: #9c9088 !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
}

/* Price styling */
.product-price, .product-card__price {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.product-price-discount {
    font-size: 12px !important;
    color: #9c9088 !important;
    text-decoration: line-through !important;
}
.product-price .price,
.product-card__price--current {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

/* Discount badge on product card */
.product-badge, .product-card .badge--sale {
    position: absolute;
    top: 10px; left: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
    text-transform: uppercase;
}

/* Rating stars */
.product-rating-mini,
.product-card__rating {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin-top: 6px !important;
}
.star-mini, .product-card__rating svg {
    color: #d4b896 !important;
    fill: #d4b896 !important;
    width: 12px !important;
    height: 12px !important;
}

/* Out of stock overlay */
.product-card.out-of-stock::after {
    content: 'Stok Habis';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #5c5650;
    letter-spacing: .04em;
    z-index: 3;
}

/* ── 5. PRODUCT GRID ─────────────────────────────────────────── */

.product-grid, .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
}

@media (max-width: 1024px) {
    .product-grid, .products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
}
@media (max-width: 768px) {
    .product-grid, .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 480px) {
    .product-grid, .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .product-card { border-radius: 8px !important; }
    .product-info, .product-card__body { padding: 8px 10px 12px !important; }
}

/* ── 6. BUTTONS POLISH ───────────────────────────────────────── */

.btn-primary, .btn--primary,
button[type="submit"],
.checkout-btn, .add-to-cart-btn {
    position: relative;
    overflow: hidden;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    transition: all .22s ease !important;
    min-height: 48px !important;
}

/* Ripple on click */
.btn-primary::after, .btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .2s;
}
.btn-primary:active::after, .btn--primary:active::after {
    background: rgba(255,255,255,.15);
}

.btn-primary:hover, .btn--primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}
.btn-primary:active, .btn--primary:active { transform: translateY(0) scale(.99) !important; }

/* Secondary/outline buttons */
.btn-secondary, .btn--secondary, .btn--outline {
    border-radius: 6px !important;
    min-height: 48px !important;
    transition: all .22s ease !important;
}

/* ── 7. FORM INPUTS POLISH ───────────────────────────────────── */

.form-input, .form-select, .form-textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], select, textarea {
    border-radius: 6px !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    border: 1.5px solid rgba(0,0,0,.14) !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
}
.form-input:focus, .form-select:focus, .form-textarea:focus,
input:focus, select:focus, textarea:focus {
    border-color: #1a1a1a !important;
    box-shadow: 0 0 0 3px rgba(26,26,26,.07) !important;
    outline: none !important;
}

@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="password"], input[type="number"], input[type="search"],
    select, textarea {
        font-size: 16px !important;
        min-height: 48px !important;
    }
}

/* ── 8. CART PAGE ────────────────────────────────────────────── */

/* Cart item image */
.cart-item-image {
    border-radius: 8px !important;
    object-fit: cover !important;
}

/* Qty buttons */
.qty-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1.5px solid rgba(0,0,0,.14) !important;
    background: #fff !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
}
.qty-btn:hover { background: #f5efe7 !important; border-color: #1a1a1a !important; }

/* Cart summary */
.cart-summary {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
}

/* Remove button */
.remove-btn {
    color: #c0392b !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: opacity .2s !important;
}
.remove-btn:hover { opacity: .7 !important; }

@media (max-width: 768px) {
    .cart-layout { gap: 20px !important; }
    .cart-item {
        grid-template-columns: 80px 1fr !important;
        gap: 14px !important;
        padding: 16px 0 !important;
    }
    .cart-item-price { grid-column: 2 !important; }
}

/* ── 9. PRODUCT DETAIL PAGE ──────────────────────────────────── */

/* Main image */
.main-image, .gallery-main img {
    border-radius: 12px !important;
}

/* Thumbnails */
.thumbnail, .gallery-thumb {
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    border: 2px solid transparent !important;
    aspect-ratio: 3/4 !important;
    object-fit: cover !important;
}
.thumbnail.active, .gallery-thumb.active,
.thumbnail:hover, .gallery-thumb:hover {
    border-color: #1a1a1a !important;
}

/* Product title */
.product-title {
    font-size: clamp(22px, 3vw, 36px) !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
}

/* Price */
.current-price, .product-price-main {
    font-size: clamp(22px, 3vw, 30px) !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

/* Size buttons */
.size-btn, .variant-btn {
    min-width: 46px !important;
    height: 46px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1.5px solid rgba(0,0,0,.18) !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    background: #fff !important;
}
.size-btn:hover:not(.oos), .variant-btn:hover:not(.oos) {
    border-color: #1a1a1a !important;
    background: #f5efe7 !important;
}
.size-btn.active, .variant-btn.active {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #1a1a1a !important;
}
.size-btn.oos, .variant-btn.oos {
    opacity: .35 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* Add to cart + buy now */
.add-to-cart-btn, .buy-now-btn {
    border-radius: 8px !important;
    padding: 15px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 52px !important;
}

@media (max-width: 768px) {
    .product-detail-layout {
        padding: 20px 16px 100px !important;
    }
    .product-actions, .product-add-actions {
        position: sticky;
        bottom: 0;
        background: rgba(255,255,255,.97);
        padding: 12px 16px;
        margin: 0 -16px;
        border-top: 1px solid rgba(0,0,0,.08);
        backdrop-filter: blur(10px);
        z-index: 50;
    }
}

/* ── 10. CHECKOUT PAGE ───────────────────────────────────────── */

.checkout-section, .form-section-box {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
}

.order-summary, .cart-summary {
    border-radius: 12px !important;
}

/* Payment methods */
.payment-method {
    border-radius: 8px !important;
    border: 1.5px solid rgba(0,0,0,.12) !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.payment-method:hover { border-color: #1a1a1a !important; background: #faf7f4 !important; }
.payment-method.selected { border-color: #1a1a1a !important; background: #faf7f4 !important; }

/* ── 11. MEMBER DASHBOARD ────────────────────────────────────── */

/* Stats cards */
.stat-card-member, .dashboard-stat,
.stats .stat {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.07) !important;
    padding: 20px !important;
    transition: box-shadow .2s ease, transform .2s ease !important;
}
.stat-card-member:hover,
.dashboard-stat:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
    transform: translateY(-2px) !important;
}

/* Order status badges */
.status-badge, .order-status {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: .03em !important;
}
.status-pending, .status-badge.pending   { background: #fff8e6; color: #b45309; }
.status-processing                        { background: #eff6ff; color: #1d4ed8; }
.status-shipped                           { background: #f0fdf4; color: #166534; }
.status-delivered, .status-completed      { background: #ecfdf5; color: #065f46; }
.status-cancelled, .status-failed         { background: #fef2f2; color: #991b1b; }

/* Order cards */
.order-card, .order-item-card {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
    transition: box-shadow .2s ease !important;
}
.order-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08) !important; }

/* ── 12. MEMBER SIDEBAR ──────────────────────────────────────── */

.member-sidebar {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}
.sidebar-profile {
    background: linear-gradient(135deg, #f5efe7 0%, #faf7f4 100%) !important;
    padding: 24px 20px !important;
}
.sidebar-nav a {
    border-radius: 8px !important;
    transition: all .2s ease !important;
}
.sidebar-nav a.active {
    background: #1a1a1a !important;
    color: #fff !important;
}
.sidebar-nav a:hover:not(.active) {
    background: #f5efe7 !important;
}

/* ── 13. AUTH PAGES ──────────────────────────────────────────── */

.auth-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.06) !important;
}
.auth-title {
    font-size: clamp(24px, 4vw, 34px) !important;
}

/* ── 14. ALERTS & FEEDBACK ───────────────────────────────────── */

.alert, .error-message, .success-message {
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}
.alert-success, .success-message {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}
.alert-error, .error-message {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
.alert-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}
.alert-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

/* ── 15. EMPTY STATES ────────────────────────────────────────── */

.empty-state, .empty-cart, .no-products {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #9c9088 !important;
}
.empty-state h3 { color: #5c5650 !important; font-size: 20px !important; margin-bottom: 10px !important; }
.empty-state p { font-size: 14px !important; max-width: 320px !important; margin: 0 auto 24px !important; }

/* ── 16. MODALS ──────────────────────────────────────────────── */

.modal, .popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.55) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 20px !important;
    backdrop-filter: blur(3px) !important;
}
.modal-content, .modal-box, .popup-box {
    background: #fff !important;
    border-radius: 16px !important;
    max-width: 520px !important;
    width: 100% !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.2) !important;
    animation: modalIn .3s cubic-bezier(.34,1.56,.64,1) !important;
}
@keyframes modalIn {
    from { opacity:0; transform:scale(.9) translateY(20px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

@media (max-width: 480px) {
    .modal-content, .modal-box, .popup-box {
        border-radius: 20px 20px 0 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important; right: 0 !important;
        max-width: 100% !important;
        animation: slideModalUp .3s ease !important;
    }
    @keyframes slideModalUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
}

/* ── 17. VOUCHER & PROMO CODES ───────────────────────────────── */

.voucher-card {
    border: 1.5px dashed rgba(0,0,0,.15) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    transition: all .2s ease !important;
    position: relative !important;
    overflow: hidden !important;
}
.voucher-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: #d4b896;
}
.voucher-card:hover {
    border-color: #d4b896 !important;
    background: #faf7f4 !important;
}
.voucher-code {
    font-family: monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    color: #1a1a1a !important;
}

/* ── 18. REVIEW SECTION ──────────────────────────────────────── */

.review-card, .review-item {
    padding: 18px 20px !important;
    border: 1px solid rgba(0,0,0,.07) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}
.review-stars, .rating-stars {
    color: #d4b896 !important;
    font-size: 14px !important;
    letter-spacing: .05em !important;
}
.review-author {
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #1a1a1a !important;
}
.review-date {
    font-size: 12px !important;
    color: #9c9088 !important;
}
.review-text {
    font-size: 14px !important;
    color: #5c5650 !important;
    line-height: 1.7 !important;
    margin-top: 8px !important;
}

/* ── 19. FOOTER POLISH ───────────────────────────────────────── */

.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%) !important;
}
.footer-newsletter input {
    border-radius: 6px 0 0 6px !important;
}
.footer-newsletter button {
    border-radius: 0 6px 6px 0 !important;
}

/* ── 20. SEARCH BAR ──────────────────────────────────────────── */

.search-bar input {
    border-radius: 50px !important;
    padding-left: 24px !important;
    transition: box-shadow .2s ease, border-color .2s ease !important;
}
.search-bar input:focus {
    box-shadow: 0 0 0 3px rgba(26,26,26,.08) !important;
    border-color: #1a1a1a !important;
}

/* ── 21. BREADCRUMBS ─────────────────────────────────────────── */

.breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12.5px !important;
    color: #9c9088 !important;
    margin-bottom: 16px !important;
}
.breadcrumb a { color: #9c9088; transition: color .2s; }
.breadcrumb a:hover { color: #1a1a1a; }
.breadcrumb span { color: #c9b99a; }

/* ── 22. FILTER SIDEBAR ──────────────────────────────────────── */

.filters-sidebar, .filter-sidebar {
    padding-right: 4px !important;
}
.filter-section {
    border-bottom: 1px solid rgba(0,0,0,.07) !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}
.filter-section:last-child { border-bottom: none !important; }
.filter-title {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    font-weight: 700 !important;
    color: #5c5650 !important;
    margin-bottom: 12px !important;
}
.filter-option a {
    padding: 4px 6px !important;
    border-radius: 4px !important;
    display: block !important;
    transition: background .15s !important;
}
.filter-option a:hover { background: #f5efe7 !important; }
.filter-option a.active { color: #1a1a1a !important; font-weight: 600 !important; }

/* ── 23. PAGE HEADER SECTION ─────────────────────────────────── */

.page-hero, .page-header-section {
    text-align: center !important;
    padding: 64px 24px !important;
    background: linear-gradient(180deg, #f5efe7 0%, #faf7f4 100%) !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

@media (max-width: 768px) {
    .page-hero, .page-header-section { padding: 40px 16px !important; }
}

/* ── 24. PAGINATION ──────────────────────────────────────────── */

.pagination {
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 40px !important;
}
.pagination a, .pagination span, .page-link {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: all .2s ease !important;
    text-decoration: none !important;
    color: #5c5650 !important;
}
.pagination a:hover, .page-link:hover { border-color: #1a1a1a !important; color: #1a1a1a !important; background: #faf7f4 !important; }
.pagination .active, .page-link.active { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }

/* ── 25. SKELETON LOADING ────────────────────────────────────── */

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0eae3 25%, #faf7f4 50%, #f0eae3 75%) !important;
    background-size: 800px 100% !important;
    animation: shimmer 1.5s infinite linear !important;
    border-radius: 6px !important;
}

/* ── 26. SCROLL BAR ──────────────────────────────────────────── */

@media (min-width: 769px) {
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.3); }
}

/* ── 27. OVERALL SPACING CONSISTENCY ─────────────────────────── */

.section-title, .section-heading {
    font-size: clamp(22px, 3.5vw, 36px) !important;
    margin-bottom: 40px !important;
    line-height: 1.2 !important;
}

.container-section, .content-section {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 80px 40px !important;
}

@media (max-width: 1024px) {
    .container-section, .content-section { padding: 60px 24px !important; }
}

@media (max-width: 768px) {
    .container-section, .content-section { padding: 40px 16px !important; }
    .section-title, .section-heading { margin-bottom: 24px !important; }
}

@media (max-width: 480px) {
    .container-section, .content-section { padding: 32px 12px !important; }
}

/* ── Header sticky offset fix ──────────────────────────────────── */
@media (max-width: 968px) {
    .main-header {
        top: 36px !important; /* header-top is ~36px on mobile */
    }
    /* Make the overlay backdrop close mobile nav */
    .mobile-nav-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,.3);
        z-index: 99;
        display: none;
    }
    .mobile-nav-overlay.show { display: block; }
}
@media (max-width: 480px) {
    .header-top { font-size: 11px; padding: 7px 0; }
    .main-header { top: 33px !important; }
}

/* ================================================================
   ALL-PRODUCTS — MOBILE FILTER BOTTOM SHEET
   ================================================================ */

/* Hide desktop sidebar on mobile */
@media (max-width: 968px) {
    .filters-sidebar-desktop { display: none !important; }
    .products-layout {
        grid-template-columns: 1fr !important;
        padding: 0 16px 48px !important;
        gap: 0 !important;
    }
}
@media (min-width: 969px) {
    .mobile-filter-bar { display: none !important; }
    .mobile-filter-overlay { display: none !important; }
    .mobile-filter-sheet { display: none !important; }
}

/* ── Mobile filter bar (button + sort + count) ─────────────────── */
.mobile-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.07);
    position: sticky;
    top: 97px; /* below header */
    z-index: 100;
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: background .2s;
}
.mobile-filter-btn:hover { background: #333; }
.mobile-filter-btn svg { stroke: #fff; }

.filter-active-badge {
    background: #d4b896;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-sort-wrap { flex: 1; }
.mobile-sort-select {
    width: 100%;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    border: 1.5px solid rgba(0,0,0,.12) !important;
    background: #faf7f4 !important;
    min-height: auto !important;
    cursor: pointer;
}

.mobile-product-count {
    font-size: 12px;
    color: #9c9088;
    white-space: nowrap;
    font-weight: 500;
}

/* ── Filter overlay ────────────────────────────────────────────── */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1400;
    backdrop-filter: blur(2px);
}
.mobile-filter-overlay.show { display: block; }

/* ── Filter bottom sheet ───────────────────────────────────────── */
.mobile-filter-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1500;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -8px 32px rgba(0,0,0,.15);
}
.mobile-filter-sheet.open { transform: translateY(0); }

/* Handle bar */
.mobile-filter-sheet::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

/* Header */
.filter-sheet-header {
    display: flex;
    align-items: center;
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    flex-shrink: 0;
}
.filter-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}
.filter-reset-btn {
    font-size: 13px;
    color: #9c9088;
    text-decoration: underline;
    margin-right: 16px;
    cursor: pointer;
    transition: color .2s;
}
.filter-reset-btn:hover { color: #1a1a1a; }
.filter-sheet-close {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: #f5efe7;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: #1a1a1a;
    flex-shrink: 0;
}

/* Body */
.filter-sheet-body {
    overflow-y: auto;
    padding: 16px 20px 32px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.filter-sheet-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.filter-sheet-section:last-child { border-bottom: none; margin-bottom: 0; }
.filter-sheet-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9c9088;
    margin-bottom: 12px;
}

/* Pill buttons for filter options */
.filter-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-pill {
    padding: 8px 16px;
    border: 1.5px solid rgba(0,0,0,.14);
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 500;
    color: #5c5650;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
}
.filter-pill:hover { border-color: #1a1a1a; color: #1a1a1a; }
.filter-pill.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* Price range inputs */
.filter-price-form { }
.filter-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.filter-price-row input {
    flex: 1;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    border: 1.5px solid rgba(0,0,0,.14) !important;
    min-height: auto !important;
    background: #faf7f4 !important;
}
.filter-price-row input:focus { background: #fff !important; border-color: #1a1a1a !important; }
.filter-price-row span { color: #9c9088; font-weight: 600; }
.filter-apply-btn {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.filter-apply-btn:hover { background: #333; }

/* ── Safe area for notch phones ────────────────────────────────── */
@supports (padding: max(0px)) {
    .filter-sheet-body {
        padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px));
    }
}


/* Desktop: max 420px — clean, not fullscreen */
.hero-slider-container,
.hero-section {
    max-height: 420px !important;
    overflow: hidden !important;
}
.hero-slide { max-height: 420px !important; }

.hero-slide-image,
.hero-section img,
.hero-slide img {
    width: 100% !important;
    height: 420px !important;
    max-height: 420px !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    display: block !important;
}
.hero-section { height: 420px !important; min-height: unset !important; }
.slider-dots, .hero-dots { bottom: 16px !important; }

/* Tablet */
@media (max-width: 1024px) {
    .hero-slider-container, .hero-section { max-height: 340px !important; }
    .hero-slide { max-height: 340px !important; }
    .hero-slide-image, .hero-slide img { height: 340px !important; max-height: 340px !important; }
    .hero-section { height: 340px !important; }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slider-container, .hero-section { max-height: 240px !important; }
    .hero-slide { max-height: 240px !important; }
    .hero-slide-image, .hero-slide img { height: 240px !important; max-height: 240px !important; object-position: center !important; }
    .hero-section { height: 240px !important; }
    .hero-slide-title { font-size: clamp(16px, 5vw, 24px) !important; }
    .hero-slide-subtitle { display: none !important; }
    .hero-slide-cta { padding: 9px 18px !important; font-size: 12px !important; }
}

/* Small phone */
@media (max-width: 480px) {
    .hero-slider-container, .hero-section { max-height: 180px !important; }
    .hero-slide { max-height: 180px !important; }
    .hero-slide-image, .hero-slide img { height: 180px !important; max-height: 180px !important; }
    .hero-section { height: 180px !important; }
}

/* ── 28. LUXURY MICRO-ANIMATIONS ─────────────────────────────── */

/* 1. Page Transition Overlay */
.dorve-page-transition {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dorve-page-transition.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* Logo fade inside overlay */
.dorve-page-transition::after {
    content: '';
    width: 60px; height: 60px;
    background: url('/public/images/logo.png') no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    animation: pulsateLogo 1.5s infinite alternate;
}
@keyframes pulsateLogo {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* 2. Magnetic Button */
.btn[data-magnetic],
.add-to-cart-btn {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), background 0.22s, box-shadow 0.22s !important;
    will-change: transform;
    transform-style: preserve-3d;
}
.btn[data-magnetic] span,
.add-to-cart-btn span {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
}

/* 3. Parallax Hero */
.hero-slide-image,
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear !important;
    transform: translateY(0);
}
