@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --store-ink: #0f172a;
    --store-ink-soft: #334155;
    --store-ink-muted: #64748b;
    --store-gold: #d97706;
    --store-gold-light: #f59e0b;
    --store-gold-dark: #b45309;
    --store-accent: #4f46e5;
    --store-cream: #f8fafc;
    --store-paper: #ffffff;
    --store-border: #e2e8f0;
    --store-border-dark: #cbd5e1;
    --store-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --store-shadow-hover: 0 20px 40px rgba(79, 70, 229, 0.15);
    --store-radius: 12px;
    --store-radius-lg: 18px;
    --store-radius-pill: 9999px;
    --store-serif: 'Readex Pro', 'Tajawal', sans-serif;
    --store-sans: 'Readex Pro', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --store-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.store-body {
    background: var(--store-cream);
    font-family: var(--store-sans);
    color: var(--store-ink);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.store-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(184, 149, 106, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(42, 34, 30, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6,
.store-serif, .navbar-brand, .store-hero h1,
.page-hero h1, .section-heading {
    font-family: var(--store-serif);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.store-main { flex: 1; }

/* ─── Top bar ─── */
.store-topbar {
    background: var(--store-ink);
    color: rgba(255, 253, 249, 0.88);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(184, 149, 106, 0.35);
}
.store-topbar a {
    color: var(--store-gold-light);
    text-decoration: none;
    transition: color var(--store-transition);
}
.store-topbar a:hover { color: #fff; }
.store-topbar i { color: var(--store-gold); margin-left: 4px; }

/* ─── Navbar ─── */
.store-nav {
    background: var(--store-paper) !important;
    border-bottom: 1px solid var(--store-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(184, 149, 106, 0.15);
}
.store-nav .container { padding-top: 14px; padding-bottom: 14px; }
.store-nav .navbar-brand {
    font-family: var(--store-serif);
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--store-ink) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}
.store-nav .brand-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid var(--store-border);
    padding: 3px;
    background: #fff;
}
.store-nav .brand-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-gold);
    color: var(--store-gold-dark);
    font-size: 1.2rem;
}
.store-nav .nav-link {
    color: var(--store-ink-soft) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    position: relative;
    transition: color var(--store-transition);
}
.store-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 14px;
    left: 14px;
    height: 1px;
    background: var(--store-gold);
    transform: scaleX(0);
    transition: transform var(--store-transition);
}
.store-nav .nav-link:hover,
.store-nav .nav-link.active {
    color: var(--store-ink) !important;
}
.store-nav .nav-link:hover::after,
.store-nav .nav-link.active::after { transform: scaleX(1); }
.store-nav .cart-link {
    position: relative;
    color: var(--store-ink) !important;
    border: 1px solid var(--store-border);
    padding: 8px 14px !important;
    transition: all var(--store-transition);
}
.store-nav .cart-link:hover {
    border-color: var(--store-gold);
    background: rgba(184, 149, 106, 0.08);
}
.store-nav .cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--store-gold-dark) !important;
    color: #fff !important;
    font-family: var(--store-sans);
    font-weight: 700;
    border-radius: 50%;
}
.store-nav .navbar-toggler {
    border-color: var(--store-border);
    padding: 6px 10px;
}
.store-nav .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(184, 149, 106, 0.25); }

/* ─── Ornamental divider ─── */
.store-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--store-gold);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.store-divider::before,
.store-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--store-border-dark), transparent);
}
.store-divider .diamond {
    width: 7px;
    height: 7px;
    background: var(--store-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ─── Hero ─── */
.store-hero,
.page-hero {
    background: var(--store-ink);
    color: var(--store-paper);
    padding: 56px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--store-gold-dark);
    margin-bottom: 36px;
}
.store-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(184, 149, 106, 0.35);
    pointer-events: none;
}
.store-hero::after,
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--store-gold), transparent);
}
.store-hero .hero-eyebrow,
.page-hero .hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--store-gold-light);
    margin-bottom: 12px;
    font-family: var(--store-sans);
    font-weight: 500;
    position: relative;
}
.store-hero h1,
.page-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 14px;
    position: relative;
    color: #fff;
}
.store-hero p,
.page-hero p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 253, 249, 0.82);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

/* ─── Filters ─── */
.filter-section {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    padding: 22px 24px;
    margin-bottom: 28px;
    box-shadow: var(--store-shadow);
}
.section-title,
.section-heading {
    font-size: 1.15rem;
    color: var(--store-ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i,
.section-heading i { color: var(--store-gold-dark); font-size: 0.95rem; }

.branch-grid, .cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.filter-pill,
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--store-border);
    color: var(--store-ink-soft);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--store-transition);
    text-decoration: none;
}
.filter-pill:hover,
.cat-pill:hover {
    border-color: var(--store-gold);
    color: var(--store-ink);
    background: rgba(184, 149, 106, 0.06);
}
.filter-pill.active,
.cat-pill.active {
    background: var(--store-ink);
    border-color: var(--store-ink);
    color: var(--store-gold-light);
}
.filter-pill .branch-icon { color: var(--store-gold); font-size: 0.85rem; }
.filter-pill .branch-name { font-weight: 600; }
.filter-pill .branch-location { font-size: 0.8rem; opacity: 0.75; }

/* ─── Search ─── */
.search-box {
    display: flex;
    align-items: center;
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    padding: 4px 4px 4px 0;
    width: 100%;
    transition: border-color var(--store-transition), box-shadow var(--store-transition);
}
.search-box:focus-within {
    border-color: var(--store-gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.12);
}
.search-box .search-icon {
    padding: 0 14px;
    color: var(--store-gold-dark);
}
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.92rem;
    flex: 1;
    color: var(--store-ink);
    font-family: var(--store-sans);
}
.search-box input::placeholder { color: var(--store-ink-muted); }
.search-box button {
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--store-sans);
    background: var(--store-ink);
    color: var(--store-gold-light);
    border: none;
    letter-spacing: 0.03em;
    transition: background var(--store-transition);
}
.search-box button:hover { background: var(--store-gold-dark); color: #fff; }

/* ─── Product card ─── */
.product-card {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    overflow: hidden;
    transition: transform var(--store-transition), box-shadow var(--store-transition), border-color var(--store-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--store-gold);
    transform: scaleX(0);
    transition: transform var(--store-transition);
    z-index: 1;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-hover);
    border-color: var(--store-border-dark);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card .prod-img {
    aspect-ratio: 3 / 4;
    background: #f3ede4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--store-border);
}
.product-card .prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .prod-img img { transform: scale(1.04); }
.product-card .prod-img .no-img { font-size: 2.5rem; color: var(--store-border-dark); }
.product-card .prod-body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.product-card .prod-category {
    font-size: 0.72rem;
    color: var(--store-gold-dark);
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.product-card .prod-name {
    font-family: var(--store-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--store-ink);
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}
.product-card .prod-name a { color: inherit; text-decoration: none; }
.product-card .prod-name a:hover { color: var(--store-gold-dark); }
.product-card .prod-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--store-ink);
    margin-bottom: 14px;
    margin-top: auto;
}
.product-card .prod-price::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--store-gold);
    margin: 8px auto 0;
}
.product-card .btn-add-cart {
    width: 100%;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 11px;
    font-family: var(--store-sans);
    background: transparent;
    color: var(--store-ink);
    border: 1px solid var(--store-ink);
    letter-spacing: 0.04em;
    transition: all var(--store-transition);
}
.product-card .btn-add-cart:hover {
    background: var(--store-ink);
    color: var(--store-gold-light);
    border-color: var(--store-ink);
}

/* ─── Pagination ─── */
.pagination { gap: 6px; }
.pagination .page-link {
    border-radius: 0 !important;
    color: var(--store-ink-soft);
    font-weight: 500;
    border: 1px solid var(--store-border);
    padding: 8px 14px;
    font-family: var(--store-sans);
    transition: all var(--store-transition);
}
.pagination .page-link:hover {
    background: rgba(184, 149, 106, 0.1);
    border-color: var(--store-gold);
    color: var(--store-ink);
}
.pagination .page-item.active .page-link {
    background: var(--store-ink);
    border-color: var(--store-ink);
    color: var(--store-gold-light);
}

/* ─── Product detail ─── */
.store-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.store-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}
.store-breadcrumb .breadcrumb-item a {
    color: var(--store-ink-muted);
    text-decoration: none;
}
.store-breadcrumb .breadcrumb-item a:hover { color: var(--store-gold-dark); }
.store-breadcrumb .breadcrumb-item.active { color: var(--store-ink); }

.detail-img-wrap {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    padding: 28px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.detail-img-wrap::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(184, 149, 106, 0.25);
    pointer-events: none;
}
.detail-img-wrap img {
    max-height: 420px;
    object-fit: contain;
    width: 100%;
    position: relative;
}

.product-detail-panel { padding: 8px 0; }
.product-detail-panel .category-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--store-gold-dark);
    border: 1px solid var(--store-border);
    padding: 4px 12px;
    margin-bottom: 12px;
}
.product-detail-panel h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.35;
}
.product-detail-panel .barcode-line {
    font-size: 0.82rem;
    color: var(--store-ink-muted);
    margin-bottom: 20px;
}

.price-hero {
    background: var(--store-ink);
    color: var(--store-paper);
    border: 1px solid var(--store-gold-dark);
    padding: 22px 28px;
    text-align: center;
    position: relative;
    margin-bottom: 24px;
}
.price-hero::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(184, 149, 106, 0.3);
}
.price-hero .label {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--store-gold-light);
    position: relative;
}
.price-hero .value {
    font-family: var(--store-serif);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    color: #fff;
}

.size-btn {
    min-width: 64px;
    border-radius: 0 !important;
    font-family: var(--store-sans);
    border-color: var(--store-border) !important;
    color: var(--store-ink-soft) !important;
    transition: all var(--store-transition);
}
.size-btn:hover:not(.disabled) {
    border-color: var(--store-gold) !important;
    color: var(--store-ink) !important;
}
.size-btn.active,
.size-btn.btn-dark {
    background: var(--store-ink) !important;
    border-color: var(--store-ink) !important;
    color: var(--store-gold-light) !important;
}

.btn-store-primary {
    background: var(--store-ink);
    color: var(--store-gold-light);
    border: 1px solid var(--store-ink);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 28px;
    transition: all var(--store-transition);
}
.btn-store-primary:hover {
    background: var(--store-gold-dark);
    border-color: var(--store-gold-dark);
    color: #fff;
}
.btn-store-outline {
    background: transparent;
    color: var(--store-ink);
    border: 1px solid var(--store-border-dark);
    font-weight: 500;
    transition: all var(--store-transition);
}
.btn-store-outline:hover {
    border-color: var(--store-ink);
    background: var(--store-ink);
    color: var(--store-gold-light);
}

.store-card {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    box-shadow: var(--store-shadow);
    margin-top: 32px;
}
.store-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--store-border);
    padding: 16px 22px;
}
.store-card .card-header h6 {
    font-family: var(--store-serif);
    font-size: 1.05rem;
    margin: 0;
    color: var(--store-ink);
}
.store-card .card-header i { color: var(--store-gold-dark); }
.store-card .card-body { padding: 20px 22px; }

.branch-stock-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--store-border);
    font-size: 0.9rem;
}
.branch-stock-badge:last-child { border-bottom: none; }
.branch-stock-badge .name i { color: var(--store-gold-dark); margin-left: 6px; }

/* ─── Branch info block ─── */
.branch-info-block {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--store-shadow);
}
.branch-info-block h4 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: var(--store-ink);
}
.branch-info-block h4 i { color: var(--store-gold-dark); margin-left: 6px; }
.branch-info-block .info-line {
    font-size: 0.92rem;
    color: var(--store-ink-soft);
    margin-bottom: 8px;
}
.branch-info-block .info-line i { color: var(--store-gold); margin-left: 6px; width: 18px; }
.branch-map-wrap {
    width: 100%;
    max-width: 480px;
    height: 240px;
    border: 1px solid var(--store-border);
    overflow: hidden;
}

/* ─── Merchant store banner ─── */
.merchant-store-banner {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: 20px 0;
    margin-top: -20px;
}
.merchant-store-banner h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ─── Branches page ─── */
.branch-card {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    padding: 28px 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--store-transition), box-shadow var(--store-transition), border-color var(--store-transition);
    position: relative;
}
.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--store-gold-dark), var(--store-gold-light), var(--store-gold-dark));
}
.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--store-shadow-hover);
    border-color: var(--store-border-dark);
}
.branch-card .branch-card-icon {
    width: 56px;
    height: 56px;
    border: 1px solid var(--store-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--store-gold-dark);
    margin-bottom: 18px;
}
.branch-card h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--store-ink);
}
.branch-card .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--store-ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}
.branch-card .detail-item i {
    color: var(--store-gold-dark);
    margin-top: 3px;
}
.branch-card .branch-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}
.btn-store-gold {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: var(--store-ink);
    color: var(--store-gold-light);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--store-transition);
    font-family: var(--store-sans);
}
.btn-store-gold:hover {
    background: var(--store-gold-dark);
    color: #fff;
}
.btn-store-whatsapp {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a9e52;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform var(--store-transition), background var(--store-transition);
}
.btn-store-whatsapp:hover {
    background: #158a47;
    color: #fff;
    transform: scale(1.05);
}

.store-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--store-ink-muted);
}
.store-empty i {
    font-size: 3.5rem;
    color: var(--store-border-dark);
    display: block;
    margin-bottom: 16px;
}
.store-empty p { font-size: 1.05rem; margin-bottom: 20px; }

/* ─── Cart ─── */
.cart-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--store-border);
}
.cart-page-header h1 {
    font-size: 1.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-page-header h1 i { color: var(--store-gold-dark); font-size: 1.2rem; }

.cart-item {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color var(--store-transition);
}
.cart-item:hover { border-color: var(--store-border-dark); }
.cart-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--store-border);
    flex-shrink: 0;
}
.cart-item h6 {
    font-family: var(--store-serif);
    font-size: 1rem;
    color: var(--store-ink);
}
.cart-item .item-price {
    color: var(--store-gold-dark);
    font-weight: 700;
}
.cart-item .size-badge {
    font-size: 0.72rem;
    background: rgba(184, 149, 106, 0.15) !important;
    color: var(--store-gold-dark) !important;
    border: 1px solid var(--store-border);
    font-weight: 500;
}
.qty-control {
    border: 1px solid var(--store-border);
}
.qty-control button {
    border: none !important;
    border-radius: 0 !important;
    color: var(--store-ink-soft);
    padding: 4px 10px;
}
.qty-control button:hover {
    background: rgba(184, 149, 106, 0.12);
    color: var(--store-ink);
}
.qty-control .qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid var(--store-border);
    border-left: 1px solid var(--store-border);
    padding: 4px 0;
}

.cart-summary {
    background: var(--store-paper);
    border: 1px solid var(--store-border);
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: var(--store-shadow);
}
.cart-summary::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--store-gold-dark), var(--store-gold-light));
    margin: -24px -24px 20px;
}
.cart-summary h5 {
    font-family: var(--store-serif);
    font-size: 1.25rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--store-border);
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--store-ink-soft);
}
.cart-summary .summary-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--store-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--store-ink);
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--store-border);
}
.cart-summary .summary-total span:last-child { color: var(--store-gold-dark); }

.checkout-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--store-border);
}
.checkout-form .form-label {
    font-size: 0.8rem;
    color: var(--store-ink-muted);
    margin-bottom: 4px;
}
.checkout-form .form-control {
    border-radius: 0;
    border-color: var(--store-border);
    font-size: 0.9rem;
    background: var(--store-cream);
}
.checkout-form .form-control:focus {
    border-color: var(--store-gold);
    box-shadow: 0 0 0 2px rgba(184, 149, 106, 0.15);
    background: #fff;
}

.cart-summary .btn-checkout {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 0;
    font-family: var(--store-sans);
}
.cart-summary .btn-checkout-primary {
    background: var(--store-ink);
    color: var(--store-gold-light);
    border: 1px solid var(--store-ink);
}
.cart-summary .btn-checkout-primary:hover {
    background: var(--store-gold-dark);
    border-color: var(--store-gold-dark);
    color: #fff;
}
.cart-summary .btn-checkout-whatsapp {
    background: #1a9e52;
    color: #fff;
    border: 1px solid #1a9e52;
}
.cart-summary .btn-checkout-whatsapp:hover {
    background: #158a47;
    border-color: #158a47;
    color: #fff;
}
.cart-summary .btn-checkout-clear {
    background: transparent;
    color: var(--store-ink-muted);
    border: 1px solid var(--store-border);
}
.cart-summary .btn-checkout-clear:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.05);
}

/* ─── Toast ─── */
.store-toast {
    background: var(--store-ink) !important;
    border: 1px solid var(--store-gold-dark) !important;
    color: var(--store-gold-light) !important;
    font-family: var(--store-sans);
}
.store-toast .toast-body i { color: var(--store-gold); margin-left: 6px; }

/* ─── Footer ─── */
.store-footer {
    background: var(--store-ink);
    color: rgba(255, 253, 249, 0.75);
    margin-top: 60px;
    border-top: 3px solid var(--store-gold-dark);
}
.store-footer .footer-inner {
    padding: 48px 0 28px;
}
.store-footer .footer-brand {
    font-family: var(--store-serif);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}
.store-footer .footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}
.store-footer h6 {
    font-family: var(--store-serif);
    color: var(--store-gold-light);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}
.store-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.store-footer ul li { margin-bottom: 8px; }
.store-footer ul a {
    color: rgba(255, 253, 249, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--store-transition);
}
.store-footer ul a:hover { color: var(--store-gold-light); }
.store-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}
.store-footer .footer-contact i {
    color: var(--store-gold);
    margin-top: 3px;
}
.store-footer .footer-bottom {
    border-top: 1px solid rgba(184, 149, 106, 0.2);
    padding: 18px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 253, 249, 0.5);
}

/* ─── Modern homepage (v2) ─── */
.store-hero-modern {
    background: linear-gradient(135deg, #1a2744 0%, #243b6b 45%, #1e3a5f 100%);
    border: none;
    border-radius: 0 0 var(--store-radius-lg) var(--store-radius-lg);
    margin: -1rem -12px 32px;
    padding: 48px 24px 56px;
    text-align: right;
}
.store-hero-modern::before,
.store-hero-modern::after { display: none; }
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}
.hero-bg-shape-1 {
    width: 280px; height: 280px;
    background: var(--store-gold);
    top: -80px; left: -40px;
}
.hero-bg-shape-2 {
    width: 200px; height: 200px;
    background: var(--store-accent);
    bottom: -60px; right: 10%;
}
.store-hero-modern h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    margin-bottom: 12px;
    line-height: 1.25;
}
.store-hero-modern .hero-lead {
    max-width: 100%;
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-hero-primary,
.btn-hero-outline,
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--store-radius-pill);
    text-decoration: none;
    transition: all var(--store-transition);
    border: none;
}
.btn-hero-primary {
    background: var(--store-gold);
    color: var(--store-ink);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.35);
}
.btn-hero-primary:hover {
    background: var(--store-gold-light);
    color: var(--store-ink);
    transform: translateY(-2px);
}
.btn-hero-outline {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.btn-hero-ghost {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1px dashed rgba(255,255,255,0.3);
}
.hero-stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--store-radius-lg);
    padding: 20px;
}
.hero-stat {
    text-align: center;
    color: #fff;
}
.hero-stat-num {
    display: block;
    font-family: var(--store-serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--store-gold-light);
}
.hero-stat-label {
    font-size: 0.75rem;
    opacity: 0.85;
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--store-cream);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-pill);
    padding: 6px 14px;
    min-width: 200px;
}
.nav-search-form i { color: var(--store-ink-muted); }
.nav-search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    width: 140px;
    font-family: var(--store-sans);
}

.filter-section-compact { padding: 18px 20px; border-radius: var(--store-radius-lg); }
.filter-sticky {
    position: sticky;
    top: 72px;
    z-index: 100;
    border-radius: var(--store-radius-lg);
    margin-bottom: 20px;
}
.filter-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 4px;
}
.filter-scroll-wrap::-webkit-scrollbar { display: none; }
.filter-scroll { flex-wrap: nowrap; min-width: min-content; }
.filter-scroll .filter-pill { white-space: nowrap; flex-shrink: 0; border-radius: var(--store-radius-pill); }

.search-box-modern { border-radius: var(--store-radius-pill); padding: 4px 4px 4px 0; }
.search-box-modern button { border-radius: var(--store-radius-pill); }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--store-border);
}
.active-filters-label {
    font-size: 0.8rem;
    color: var(--store-ink-muted);
    font-weight: 600;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--store-accent);
    border-radius: var(--store-radius-pill);
    font-size: 0.82rem;
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all var(--store-transition);
}
.filter-chip:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--store-accent);
}
.filter-chip-clear {
    background: rgba(192, 57, 43, 0.08);
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.2);
}

.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 12px;
}
.store-toolbar-title {
    font-family: var(--store-serif);
    font-size: 1.5rem;
    margin: 0 0 4px;
    color: var(--store-ink);
}
.store-toolbar-sub { font-size: 0.88rem; color: var(--store-ink-muted); }

.product-card-modern {
    border-radius: var(--store-radius-lg);
    box-shadow: var(--store-shadow);
    border: 1px solid var(--store-border);
}
.product-card-modern::before { display: none; }
.product-card-modern .prod-img {
    aspect-ratio: 1;
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.product-card-modern .prod-img-link { display: block; text-decoration: none; }
.product-card-modern .prod-view-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--store-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--store-transition);
    box-shadow: var(--store-shadow);
}
.product-card-modern:hover .prod-view-badge {
    opacity: 1;
    transform: scale(1);
}
.product-card-modern .prod-body { text-align: right; padding: 16px; }
.product-card-modern .prod-name {
    font-size: 0.95rem;
    min-height: auto;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
}
.product-card-modern .prod-price-row { margin-bottom: 12px; }
.product-card-modern .prod-price::after { margin: 6px 0 0; margin-right: 0; margin-left: auto; }
.product-card-modern .prod-price {
    font-size: 1.15rem;
    color: var(--store-gold-dark);
    margin-top: auto;
    margin-bottom: 0;
}
.btn-add-cart-modern {
    border-radius: var(--store-radius-pill);
    background: var(--store-ink);
    color: #fff;
    border-color: var(--store-ink);
}
.btn-add-cart-modern:hover {
    background: var(--store-accent);
    border-color: var(--store-accent);
    color: #fff;
}

.store-empty-modern .store-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--store-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--store-ink-muted);
}
.store-empty-modern h3 {
    font-family: var(--store-serif);
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--store-ink);
}

.store-fab {
    position: fixed;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    transition: transform var(--store-transition), box-shadow var(--store-transition);
}
.store-fab:hover { color: #fff; transform: scale(1.06); }
.store-fab-cart {
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--store-ink), #2d4a7c);
}
.store-fab-wa {
    bottom: 92px;
    left: 24px;
    background: #25d366;
    font-size: 1.5rem;
}
.store-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--store-gold);
    color: var(--store-ink);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: var(--store-sans);
}
.store-fab-badge.show { display: flex; }

.branch-info-modern { border-radius: var(--store-radius-lg); }

.filter-pill,
.cat-pill { border-radius: var(--store-radius-pill); }

.store-nav {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92) !important;
}
.store-nav .brand-mark,
.store-nav .brand-icon { border-radius: var(--store-radius); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .store-hero-modern {
        margin: -0.5rem -12px 24px;
        padding: 32px 16px 40px;
        border-radius: 0 0 20px 20px;
        text-align: center;
    }
    .store-hero-modern .hero-eyebrow,
    .store-hero-modern h1,
    .store-hero-modern .hero-lead { text-align: center; }
    .hero-actions { justify-content: center; }
    .filter-sticky { top: 64px; }
    .store-fab-cart { bottom: 16px; left: 16px; width: 52px; height: 52px; }
    .store-fab-wa { bottom: 80px; left: 16px; width: 48px; height: 48px; font-size: 1.3rem; }
    .store-hero, .page-hero { padding: 40px 18px; }
    .store-hero h1, .page-hero h1 { font-size: 1.85rem; }
    .product-card .prod-body { padding: 14px 12px 16px; }
    .product-card .prod-name { font-size: 0.95rem; }
    .product-detail-panel h1 { font-size: 1.5rem; }
    .cart-summary { position: static; margin-top: 8px; }
    .store-nav .navbar-brand { font-size: 1.35rem; }
    .store-topbar { font-size: 0.75rem; text-align: center; }
    .store-topbar .d-flex { justify-content: center !important; flex-wrap: wrap; gap: 8px; }
}

/* ─── Ultra Modern Storefront Touch (Shopify & Apple Level UX) ─── */
.store-hero-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%) !important;
    border-radius: 24px;
    padding: 56px 40px;
    margin-bottom: 36px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.store-hero-modern .hero-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 16px;
}

.store-hero-modern h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transition: all 0.28s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.28s ease;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

.product-card-modern {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.product-card-modern .prod-img {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}
.product-card-modern .prod-img img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card-modern:hover .prod-img img {
    transform: scale(1.06);
}

.btn-add-cart-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.btn-add-cart-modern:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* ===== Storefront High-Contrast Rules ===== */
input, select, textarea, option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

select option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

.form-control::placeholder, input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

