/* @author Gilang Bayu Irwana - 244107020194 */

/* ========================================================================
   BEKASWIT — Warm Minimalist + Urban Thrift
   Fonts: Playfair Display (display) + DM Sans (body)
   ======================================================================== */

/* ── Theme Tokens ──────────────────────────────────────────────────────── */

:root {
    /* Brand palette (light) */
    --cream:           #F5F0E8;
    --warm-white:      #FBF8F3;
    --terracotta:      #D4845A;
    --terracotta-dark: #B5663D;
    --terracotta-soft: #F5E4D8;
    --charcoal:        #1C1C1E;
    --charcoal-soft:   #2A2A2D;

    /* Semantic surfaces */
    --bg:              var(--warm-white);
    --bg-alt:          var(--cream);
    --surface:         #FFFFFF;
    --surface-2:       #FAF6F0;
    --accent:          var(--terracotta);
    --accent-hover:    var(--terracotta-dark);
    --accent-soft:     var(--terracotta-soft);
    --text:            var(--charcoal);
    --text-secondary:  #4A4A4D;
    --text-muted:      #8C857C;
    --border:          #E8E0D4;
    --border-soft:     #F0E9DD;

    /* Status colors */
    --like-new:        #2F855A;
    --like-new-bg:     #D9EFE2;
    --good:            #B7791F;
    --good-bg:         #FAEFD3;
    --fair:            #9C4221;
    --fair-bg:         #F4DFD3;
    --new-glow:        #D4845A;
    --rare-glow:       #8B5CF6;
    --rare-bg:         #EBE3FA;

    /* Effects */
    --shadow-xs: 0 1px 2px rgba(28, 28, 30, 0.04);
    --shadow-sm: 0 2px 8px rgba(28, 28, 30, 0.05);
    --shadow:    0 8px 28px rgba(28, 28, 30, 0.08);
    --shadow-lg: 0 22px 50px rgba(28, 28, 30, 0.14);

    /* Geometry */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius:    18px;
    --radius-lg: 26px;
    --radius-pill: 999px;

    /* Motion */
    --ease:        cubic-bezier(.22,.61,.36,1);
    --ease-out:    cubic-bezier(.16,1,.3,1);
    --dur-xs: 150ms;
    --dur-sm: 220ms;
    --dur:    320ms;
    --dur-lg: 520ms;

    /* Compatibility (legacy variables used by other pages) */
    --primary:        var(--terracotta);
    --primary-hover:  var(--terracotta-dark);
    --primary-light:  var(--terracotta-soft);
    --background:     var(--bg);
    --border-light:   var(--border-soft);
}

/* Dark theme override */
[data-theme="dark"] {
    --cream:           #1A1A1C;
    --warm-white:      #121212;
    --terracotta:      #E8A87C;     /* warm amber accent */
    --terracotta-dark: #D08C61;
    --terracotta-soft: #2A201A;
    --charcoal:        #F2EDE4;
    --charcoal-soft:   #E5DED2;

    --bg:              #121212;
    --bg-alt:          #181818;
    --surface:         #1E1E1E;
    --surface-2:       #232323;
    --text:            #F2EDE4;
    --text-secondary:  #C9C2B5;
    --text-muted:      #8B847A;
    --border:          #2C2C2C;
    --border-soft:     #232323;

    --like-new:        #6FCF97;
    --like-new-bg:     #1E2E25;
    --good:            #E0B872;
    --good-bg:         #2E2719;
    --fair:            #E89070;
    --fair-bg:         #2D1F1A;
    --rare-bg:         #251E36;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow:    0 10px 30px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Playfair Display', 'DM Serif Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--dur-xs) var(--ease);
}
a:hover { color: var(--accent-hover); }

::selection {
    background: var(--accent-soft);
    color: var(--text);
}

/* Custom scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Bootstrap Overrides ───────────────────────────────────────────────── */

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

.btn {
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.4rem;
    font-size: 14px;
    transition: all var(--dur-sm) var(--ease);
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 8px 22px rgba(212, 132, 90, 0.35);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}
.btn-outline-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    background: transparent;
}
.btn-outline-secondary:hover {
    background-color: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    background: var(--surface);
    color: var(--text);
}

.form-control,
.form-select {
    background-color: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.95rem;
    font-size: 14px;
    color: var(--text);
    transition: border-color var(--dur-xs) var(--ease), box-shadow var(--dur-xs) var(--ease), background-color var(--dur) var(--ease);
}
.form-control:focus,
.form-select:focus {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 132, 90, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge {
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    padding: 0.4em 0.85em;
    border-radius: var(--radius-pill);
}

.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: var(--like-new-bg); color: var(--like-new); }
.alert-danger  { background: var(--fair-bg); color: var(--fair); }

.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.5rem;
}
.dropdown-item {
    border-radius: 8px;
    font-size: 14px;
    padding: 0.55rem 0.8rem;
    color: var(--text);
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--accent-soft);
    color: var(--text);
}

.table { font-size: 14px; color: var(--text); }
.table thead { font-weight: 600; color: var(--text-secondary); }

/* ── Navbar ────────────────────────────────────────────────────────────── */

.navbar-bekaswit {
    background-color: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.65rem 0;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
[data-theme="dark"] .navbar-bekaswit {
    background-color: rgba(18, 18, 18, 0.78);
}

.navbar-bekaswit .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-bekaswit .navbar-brand:hover { color: var(--accent); }

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--terracotta-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(212, 132, 90, 0.35);
}

.navbar-bekaswit .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    transition: all var(--dur-xs) var(--ease);
}
.navbar-bekaswit .nav-link:hover,
.navbar-bekaswit .nav-link.active {
    color: var(--text);
    background-color: var(--accent-soft);
}

.navbar-bekaswit .navbar-toggler {
    border: 1.5px solid var(--border);
    padding: 0.3rem 0.55rem;
    border-radius: 10px;
}
.navbar-bekaswit .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231C1C1E' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
[data-theme="dark"] .navbar-bekaswit .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F2EDE4' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-nav-daftar {
    background-color: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 13.5px;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-pill);
    transition: all var(--dur-sm) var(--ease);
}
.btn-nav-daftar:hover {
    background-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 8px 20px rgba(212, 132, 90, 0.4);
    transform: translateY(-1px);
}

/* ── Navbar Search Bar (expanding) ─────────────────────────────────────── */

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-search input {
    width: 220px;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: var(--radius-pill);
    font-size: 14px;
    transition: width var(--dur) var(--ease-out),
                box-shadow var(--dur-sm) var(--ease),
                border-color var(--dur-sm) var(--ease),
                background-color var(--dur-sm) var(--ease);
}
.nav-search input:focus {
    width: 320px;
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(212, 132, 90, 0.15);
}
.nav-search .bi {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 15px;
}
@media (max-width: 991.98px) {
    .nav-search input { width: 100%; }
    .nav-search input:focus { width: 100%; }
}

/* ── Cart Badge ────────────────────────────────────────────────────────── */

.icon-action {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    transition: all var(--dur-sm) var(--ease);
}
.icon-action:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--surface-2);
    animation: cart-bounce var(--dur-lg) var(--ease-out);
}
@keyframes cart-bounce {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); }
}

/* ── Theme Toggle ──────────────────────────────────────────────────────── */

.theme-toggle .bi { font-size: 18px; transition: transform var(--dur) var(--ease-out); }
.theme-toggle:hover .bi { transform: rotate(20deg); }

/* ── Hero Section ──────────────────────────────────────────────────────── */

.hero-shop {
    position: relative;
    min-height: 560px;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: var(--bg-alt);
    isolation: isolate;
}
.hero-shop .hero-bg {
    position: absolute;
    inset: -10% -5% -5% -5%;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 132, 90, 0.18), transparent 60%),
        radial-gradient(ellipse 70% 50% at 15% 80%, rgba(212, 132, 90, 0.08), transparent 60%),
        var(--bg-alt);
    will-change: transform;
    transition: transform 0.1s linear;
}
[data-theme="dark"] .hero-shop .hero-bg {
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(232, 168, 124, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 50% at 15% 80%, rgba(232, 168, 124, 0.05), transparent 60%),
        var(--bg-alt);
}

/* Banner-only variant: minimal padding, slider as the hero */
.hero-shop--banner {
    min-height: 0;
    padding: 1.5rem 0 0;
}

.hero-shop .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-shop .eyebrow::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: var(--accent);
    display: inline-block;
}

.hero-shop h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 6.2vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.hero-shop h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}

.hero-shop p.lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-cta {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.95rem 2rem;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--dur-sm) var(--ease);
    box-shadow: 0 12px 30px rgba(28, 28, 30, 0.18);
}
.hero-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(212, 132, 90, 0.4);
}
.hero-cta .bi { transition: transform var(--dur) var(--ease-out); }
.hero-cta:hover .bi { transform: translateX(4px); }

.hero-cta-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    padding: 0.95rem 1.7rem;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all var(--dur-sm) var(--ease);
}
.hero-cta-ghost:hover {
    border-color: var(--text);
    background: var(--surface);
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}
.hero-stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Hero Banner Slider ──────────────────────────────────────────────── */

.hero-slider {
    position: relative;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-2);
    isolation: isolate;
}

/* Wide banner variant — full container width */
.hero-slider--wide {
    height: 480px;
}
.hero-slider--wide .hero-slide {
    padding: 3rem 4rem;
}
.hero-slider--wide .hero-slide-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    max-width: 640px;
}
.hero-slider--wide .hero-slide-sub {
    font-size: 15.5px;
    max-width: 480px;
}
.hero-slider--wide .hero-slide-eyebrow {
    font-size: 12px;
}
.hero-slider--wide .hero-slide-cta {
    padding: 0.75rem 1.5rem;
    font-size: 14.5px;
}
.hero-slider--wide .hero-slide-tag {
    top: 1.6rem;
    right: 1.6rem;
    font-size: 13px;
    padding: 0.55rem 1rem;
}
.hero-slider--wide .hero-slider-dots { bottom: 1.4rem; }

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity var(--dur-lg) var(--ease-out),
                transform 1.4s var(--ease-out),
                visibility 0s linear var(--dur-lg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2rem 2.2rem;
    color: #fff;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity var(--dur-lg) var(--ease-out),
                transform 7s linear,
                visibility 0s linear 0s;
}

/* Gradient overlay for legibility */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(28, 28, 30, 0) 30%,
        rgba(28, 28, 30, 0.55) 75%,
        rgba(28, 28, 30, 0.85) 100%
    );
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-slide-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0.85rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease-out) 0.2s, transform 0.6s var(--ease-out) 0.2s;
}
.hero-slide-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
    color: #fff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out) 0.35s, transform 0.7s var(--ease-out) 0.35s;
}
.hero-slide-title em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-slide-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1rem;
    max-width: 360px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out) 0.45s, transform 0.7s var(--ease-out) 0.45s;
}
.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--dur-sm) var(--ease);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out) 0.55s,
                transform 0.7s var(--ease-out) 0.55s,
                background var(--dur-sm) var(--ease),
                color var(--dur-sm) var(--ease);
}
.hero-slide-cta:hover {
    background: var(--accent);
    color: #fff;
}
.hero-slide-cta .bi { transition: transform var(--dur) var(--ease-out); }
.hero-slide-cta:hover .bi { transform: translateX(4px); }

/* Reveal text on active slide */
.hero-slide.is-active .hero-slide-eyebrow,
.hero-slide.is-active .hero-slide-title,
.hero-slide.is-active .hero-slide-sub,
.hero-slide.is-active .hero-slide-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Top-right tag (e.g., -60%) */
.hero-slide-tag {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 2;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 16px rgba(212, 132, 90, 0.4);
}

/* Slider arrows */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity var(--dur) var(--ease), background var(--dur-sm) var(--ease);
    box-shadow: var(--shadow-sm);
}
.hero-slider-nav.prev { left: 1rem; }
.hero-slider-nav.next { right: 1rem; }
.hero-slider:hover .hero-slider-nav { opacity: 1; }
.hero-slider-nav:hover { background: #fff; color: var(--accent); }

/* Pagination dots */
.hero-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.hero-slider-dots button {
    width: 24px;
    height: 4px;
    border-radius: var(--radius-pill);
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background var(--dur-sm) var(--ease), width var(--dur) var(--ease-out);
}
.hero-slider-dots button.is-active {
    background: #fff;
    width: 36px;
}

/* Auto-progress bar */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 4;
}
.hero-slider-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    animation: hero-progress 6s linear infinite;
}
.hero-slider.is-paused .hero-slider-progress::after {
    animation-play-state: paused;
}
@keyframes hero-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Page Layout / Shop Grid ───────────────────────────────────────────── */

.shop-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 3rem 0 5rem;
}

@media (max-width: 991.98px) {
    .shop-wrap { grid-template-columns: 1fr; gap: 1rem; }
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.section-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}
.section-head p {
    color: var(--text-muted);
    margin: 0.4rem 0 0;
    font-size: 14.5px;
}
.section-head .results-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    font-weight: 500;
}

/* ── Filter Sidebar ────────────────────────────────────────────────────── */

.filter-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.filter-sidebar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.filter-sidebar .filter-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.filter-group {
    border-top: 1px solid var(--border-soft);
    padding: 1rem 0 0;
    margin-top: 1rem;
}
.filter-group:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.filter-toggle {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color var(--dur-xs) var(--ease);
}
.filter-toggle:hover { color: var(--accent); }
.filter-toggle .bi {
    transition: transform var(--dur) var(--ease-out);
    color: var(--text-muted);
    font-size: 14px;
}
.filter-toggle[aria-expanded="false"] .bi { transform: rotate(-90deg); }

.filter-content {
    overflow: hidden;
    max-height: 800px;
    transition: max-height var(--dur) var(--ease-out);
}
.filter-content[data-collapsed="true"] {
    max-height: 0;
}
.filter-content > .inner {
    padding: 0.85rem 0 0.5rem;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
    background: var(--surface-2);
    border: 1.5px solid var(--border-soft);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-xs) var(--ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.chip.is-active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.price-input-row { display: flex; align-items: center; gap: 0.5rem; }
.price-input-row .form-control { padding: 0.5rem 0.7rem; font-size: 13px; }

.filter-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.6rem;
}
.filter-actions .btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0 0.9rem;
    font-size: 13.5px;
    line-height: 1;
    white-space: nowrap;
}

/* ── Product Grid ──────────────────────────────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.6rem;
}

@media (max-width: 575.98px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ── Product Card ──────────────────────────────────────────────────────── */

.product-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--dur-sm) var(--ease-out),
                box-shadow var(--dur-sm) var(--ease-out),
                border-color var(--dur-sm) var(--ease);
    border: 1px solid var(--border-soft);
    color: var(--text);
    text-decoration: none;
    display: block;
    /* Stagger entrance */
    opacity: 0;
    transform: translateY(20px);
    animation: pc-rise var(--dur-lg) var(--ease-out) forwards;
    animation-delay: var(--stagger, 0ms);
}
@keyframes pc-rise {
    to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    z-index: 2;
}

.product-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-2);
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-lg) var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.06); }

.product-media .media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
}

/* Top corner badges */
.media-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    pointer-events: none;
}
.media-badges > * { pointer-events: auto; }

.tag-pill {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
[data-theme="dark"] .tag-pill {
    background: rgba(30, 30, 30, 0.85);
    color: var(--text);
}

.glow-badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-pill);
    color: #fff;
}
.glow-badge.is-new {
    background: var(--accent);
    animation: glow-pulse 2.4s ease-in-out infinite;
}
.glow-badge.is-rare {
    background: var(--rare-glow);
    animation: glow-pulse-rare 2.4s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 132, 90, 0.55); }
    50%      { box-shadow: 0 0 0 10px rgba(212, 132, 90, 0); }
}
@keyframes glow-pulse-rare {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.55); }
    50%      { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}

/* Wishlist heart */
.wishlist-btn {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-sm) var(--ease-out), color var(--dur-xs) var(--ease);
    z-index: 3;
}
[data-theme="dark"] .wishlist-btn { background: rgba(30, 30, 30, 0.9); color: var(--text); }
.wishlist-btn:hover { color: var(--accent); transform: scale(1.1); }
.wishlist-btn .bi-heart-fill { display: none; color: var(--accent); }
.wishlist-btn.is-active .bi-heart { display: none; }
.wishlist-btn.is-active .bi-heart-fill { display: inline-block; animation: heart-bounce var(--dur-lg) var(--ease-out); }
@keyframes heart-bounce {
    0%   { transform: scale(0.6); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* Quick view overlay */
.quick-view {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(28, 28, 30, 0.85), transparent);
    color: #fff;
    text-align: center;
    padding: 2.5rem 1rem 1rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: translateY(110%);
    transition: transform var(--dur) var(--ease-out);
    cursor: pointer;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.product-card:hover .quick-view { transform: translateY(0); }
.quick-view .bi { margin-right: 0.4rem; }

/* Card body */
.product-body { padding: 1.1rem 1.1rem 1.2rem; }

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.condition-badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3em 0.7em;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.condition-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.condition-badge.like-new { color: var(--like-new); background: var(--like-new-bg); }
.condition-badge.good     { color: var(--good); background: var(--good-bg); }
.condition-badge.fair     { color: var(--fair); background: var(--fair-bg); }

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    letter-spacing: -0.01em;
    line-clamp: 2;
}

.product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}
.price-now {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.price-orig {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.2px;
}
.price-discount {
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 11px;
    font-weight: 700;
    padding: 0.15em 0.55em;
    border-radius: var(--radius-pill);
}
[data-theme="dark"] .price-discount { color: var(--accent); }

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.location {
    font-size: 12.5px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.location .bi { color: var(--accent); flex-shrink: 0; }

/* Add-to-cart morph */
.add-cart-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--text);
    background: var(--text);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dur-sm) var(--ease-out);
    flex-shrink: 0;
    position: relative;
}
.add-cart-btn .bi { transition: transform var(--dur) var(--ease-out), opacity var(--dur-xs) var(--ease); }
.add-cart-btn .bi-check2 { position: absolute; opacity: 0; transform: scale(0.4); }
.add-cart-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(-8deg) scale(1.05);
}
.add-cart-btn.is-added {
    background: var(--like-new);
    border-color: var(--like-new);
    color: #fff;
    transform: rotate(0) scale(1);
}
.add-cart-btn.is-added .bi-bag-plus { opacity: 0; transform: scale(0.4); }
.add-cart-btn.is-added .bi-check2 { opacity: 1; transform: scale(1); }

/* ── Newsletter / Footer ───────────────────────────────────────────────── */

.newsletter {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-soft);
    padding: 4rem 0 3rem;
    margin-top: 3rem;
}
.newsletter-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 0.5rem;
}
.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.4rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 1rem;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.newsletter-form button {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
    flex-shrink: 0;
}
.newsletter-form button:hover { background: var(--accent); color: #fff; }

.footer-bekaswit {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 3rem 0 1.25rem;
    font-size: 14px;
}
.footer-bekaswit .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-soft);
}
@media (max-width: 767.98px) {
    .footer-bekaswit .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer-bekaswit h6 {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-bekaswit ul { list-style: none; padding: 0; margin: 0; }
.footer-bekaswit ul li { margin-bottom: 0.55rem; }
.footer-bekaswit ul a { color: var(--text-secondary); font-size: 14px; }
.footer-bekaswit ul a:hover { color: var(--accent); }
.footer-bekaswit .copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 1.5rem;
    font-size: 13px;
}
.footer-bekaswit .brand-blurb {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 0.6rem;
    max-width: 320px;
}

/* ── Mobile Bottom Nav ─────────────────────────────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 1040;
    display: none;
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
}
[data-theme="dark"] .bottom-nav { background: rgba(18, 18, 18, 0.92); }

.bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: color var(--dur-xs) var(--ease);
}
.bottom-nav a .bi { font-size: 20px; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--accent); }
.bottom-nav a.center {
    background: var(--accent);
    color: #fff;
    width: 52px; height: 52px;
    border-radius: 50%;
    margin: -16px auto 0;
    box-shadow: 0 10px 24px rgba(212, 132, 90, 0.45);
}
.bottom-nav a.center .bi { font-size: 22px; }
.bottom-nav a.center span { display: none; }

@media (max-width: 767.98px) {
    .bottom-nav { display: block; }
    body { padding-bottom: 88px; }
}

/* ── Floating Action Button ────────────────────────────────────────────── */

.fab-jual {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1030;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 14px 30px rgba(212, 132, 90, 0.45);
    transition: transform var(--dur-sm) var(--ease-out), background var(--dur-sm) var(--ease);
    text-decoration: none;
}
.fab-jual:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--accent-hover);
    color: #fff;
}
@media (max-width: 767.98px) {
    .fab-jual { display: none; }
}

/* ── Pagination ────────────────────────────────────────────────────────── */

.pagination .page-link {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin: 0 3px;
    font-weight: 500;
}
.pagination .page-item.active .page-link {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}
.pagination .page-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Empty / Misc ──────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.empty-state .bi { font-size: 4rem; color: var(--text-muted); }

/* Legacy support: kept so other (unrelated) pages still render */
.barang-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.barang-card .card-img-top { height: 200px; object-fit: cover; background: var(--surface-2); }
.barang-card .card-body { padding: 1rem 1.1rem; }
.barang-card .card-title { font-size: 0.95rem; font-weight: 600; }
.barang-card .harga { font-weight: 700; color: var(--accent); }
.badge-tersedia { background: var(--like-new-bg); color: var(--like-new); }
.badge-booking  { background: var(--good-bg); color: var(--good); }
.badge-terjual  { background: var(--surface-2); color: var(--text-muted); }
.badge-kategori { background: var(--accent-soft); color: var(--accent-hover); }
.badge-area     { background: var(--surface-2); color: var(--text-secondary); }

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-pill);
}
.btn-whatsapp:hover {
    background-color: #1fb855;
    border-color: #1fb855;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-2);
    color: var(--text-muted);
    font-size: 3rem;
    height: 200px;
}

/* ── Responsive Tweaks ─────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .hero-shop { min-height: auto; padding: 4rem 0 2.5rem; }
    .hero-shop--banner { padding: 1rem 0 0; }
    .hero-slider { height: 340px; margin-top: 0; }
    .hero-slider--wide { height: 360px; }
    .hero-slider--wide .hero-slide { padding: 2rem 2rem; }
    .filter-sidebar { position: static; }
}

@media (max-width: 575.98px) {
    .hero-slider--wide { height: 280px; }
    .hero-slider--wide .hero-slide { padding: 1.5rem 1.4rem; }
}

@media (max-width: 575.98px) {
    .hero-shop h1 { font-size: 2.4rem; }
    .product-body { padding: 0.85rem 0.85rem 1rem; }
    .product-title { font-size: 0.95rem; min-height: 2.4em; }
    .price-now { font-size: 1rem; }
}

/* ── Photo Upload Preview ──────────────────────────────────────────────── */

.photo-preview-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.photo-preview-container:empty {
    display: none;
}

.photo-preview-container img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border);
}

@media (max-width: 575.98px) {
    .photo-preview-container { grid-template-columns: repeat(3, 1fr); }
}

/* ── Listing Table Thumbnails ──────────────────────────────────────────── */

.barang-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border);
}

.img-placeholder-sm {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-2, #f1f1f1);
    color: var(--text-muted);
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border);
    font-size: 1.25rem;
}

/* ════════════════════════════════════════════════════════════════════════
   POLISH LAYER v2 — refined motion · sheen · scroll reveal · typography
   ════════════════════════════════════════════════════════════════════════ */

/* Scroll reveal — gated by .reveal-on so content stays visible without JS */
.reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--dur-lg) var(--ease-out),
                transform var(--dur-lg) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal-on [data-reveal="left"]  { transform: translateX(-34px); }
.reveal-on [data-reveal="right"] { transform: translateX(34px); }
.reveal-on [data-reveal="zoom"]  { transform: scale(0.93); }
.reveal-on [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Display typography refinement — tighter, more editorial */
.font-display, h1, h2, h3 { letter-spacing: -0.015em; }
.hero-shop h1, .hero-slide-title, .newsletter h2 { letter-spacing: -0.022em; }

/* Gradient accent text helper */
.text-gradient {
    background: linear-gradient(100deg, var(--accent), var(--terracotta-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animated underline for nav links */
.navbar-bekaswit .nav-link { position: relative; }
.navbar-bekaswit .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-sm) var(--ease-out);
}
.navbar-bekaswit .nav-link:hover::after,
.navbar-bekaswit .nav-link.active::after { transform: scaleX(1); }

/* Button sheen sweep */
.btn-primary,
.btn-nav-daftar,
.hero-slide-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-primary::before,
.btn-nav-daftar::before,
.hero-slide-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -125%;
    width: 80%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    transition: left var(--dur-lg) var(--ease-out);
    z-index: -1;
}
.btn-primary:hover::before,
.btn-nav-daftar:hover::before,
.hero-slide-cta:hover::before { left: 135%; }

/* Tactile press feedback */
.btn:active { transform: translateY(1px) scale(0.985); }

/* Product card hover sheen */
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.14) 50%, transparent 68%);
    opacity: 0;
    transform: translateX(-45%);
    transition: opacity var(--dur) var(--ease), transform var(--dur-lg) var(--ease-out);
    pointer-events: none;
}
.product-card:hover::after { opacity: 1; transform: translateX(45%); }

/* Input focus glow */
.form-control:focus,
.form-select:focus,
.nav-search input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(212, 132, 90, 0.15) !important;
}

/* Icon micro-interactions */
.icon-action { transition: transform var(--dur-sm) var(--ease-out), color var(--dur-sm) var(--ease); }
.icon-action:hover { transform: translateY(-2px); }
.theme-toggle:hover { transform: rotate(-18deg) scale(1.08); }

/* Floating sell button — gentle breathing glow */
.fab-jual { animation: fab-breathe 3.6s ease-in-out infinite; }
.fab-jual:hover { animation-play-state: paused; }
@keyframes fab-breathe {
    0%, 100% { box-shadow: 0 10px 30px rgba(212, 132, 90, 0.35); }
    50%      { box-shadow: 0 16px 44px rgba(212, 132, 90, 0.55); }
}

/* Section heading flourish */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Flash alerts slide in */
.alert { animation: alert-slide var(--dur) var(--ease-out) both; }
@keyframes alert-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Cart Drawer ───────────────────────────────────────────────────────── */

.cart-drawer {
    width: 400px;
    max-width: 92vw;
    background: var(--surface);
    color: var(--text);
    border-left: 1px solid var(--border);
}
.cart-drawer .offcanvas-header {
    border-bottom: 1px solid var(--border-soft);
    padding: 1.1rem 1.25rem;
}
.cart-drawer .offcanvas-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cart-drawer .offcanvas-title i { color: var(--accent); }
.cart-drawer .offcanvas-body { padding: 1rem 1.25rem; }

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
}
.cart-empty i { font-size: 2.6rem; opacity: 0.5; display: block; margin-bottom: 0.6rem; }
.cart-empty p { margin-bottom: 1rem; }

.cart-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-soft);
    animation: alert-slide var(--dur-sm) var(--ease-out) both;
}
.cart-thumb {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--surface-2);
    display: block;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.cart-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-item-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-name:hover { color: var(--accent); }
.cart-item-price { font-weight: 700; color: var(--accent); font-size: 14px; }
.cart-item-seller { font-size: 11.5px; color: var(--text-muted); }
.cart-remove {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: background var(--dur-xs) var(--ease), color var(--dur-xs) var(--ease);
}
.cart-remove:hover { background: var(--fair-bg); color: var(--fair); }

.cart-foot {
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    background: var(--surface-2);
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}
.cart-subtotal strong { font-size: 1.25rem; font-family: 'Playfair Display', Georgia, serif; }
.cart-note { font-size: 11.5px; color: var(--text-muted); margin-bottom: 0.75rem; }

/* Add-to-cart (detail page wide button) feedback */
.js-add-cart.is-added {
    background-color: var(--like-new) !important;
    background-image: none !important;
    border-color: var(--like-new) !important;
    color: #fff !important;
}

/* ── Character touches (less "template") ───────────────────────────────── */

/* Primary buttons gain subtle depth instead of flat fill */
.btn-primary {
    background-image: linear-gradient(135deg, var(--accent), var(--terracotta-dark));
    border-color: var(--terracotta-dark);
}
.btn-primary:hover, .btn-primary:focus {
    background-image: linear-gradient(135deg, var(--terracotta-dark), var(--accent));
}

/* Brand mark — playful tilt on hover */
.brand-mark { transition: transform var(--dur-sm) var(--ease-out), box-shadow var(--dur-sm) var(--ease); }
.navbar-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

/* Eyebrow / overline helper for editorial headers */
.overline {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}

/* Slightly more characterful chips */
.chip { transition: transform var(--dur-xs) var(--ease-out), background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease); }
.chip:hover { transform: translateY(-1px); }

/* ── Accessibility: respect reduced motion ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
    .fab-jual { animation: none !important; }
}
