﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800;900&family=Montserrat:wght@600;700;800&family=Readex+Pro:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #060606;
    --bg-panel: #0f0f0f;
    --bg-card: #141414;
    --gold-primary: #d4af37;
    --gold-bright: #ffe27a;
    --gold-dark: #9a7611;
    --text-white: #f9f9f9;
    --text-muted: #9a9a9a;
    --danger: #ff3b5c;
    --success: #22c55e;
    --border-gold: rgba(212, 175, 55, 0.28);
    --glow-gold: 0 8px 25px rgba(212, 175, 55, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Readex Pro', 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.25s ease, opacity 0.25s ease;
}

button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    border-radius: 10px;
}

/* الشريط العلوي */
.top-utility-bar {
    background: #0b0b0b;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 8px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.top-utility-bar span strong {
    color: var(--gold-primary);
    font-family: 'Montserrat', 'Cairo', sans-serif;
}

.top-utility-bar a,
.top-policy-link {
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.top-utility-bar a:hover,
.top-policy-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 226, 122, 0.6);
}

/* الهيدر الرئيسي */
.sigma-header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px);
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
    transition: transform 0.4s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.08) rotate(6deg);
}

.brand-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--gold-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-text span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: var(--gold-primary);
    display: block;
    margin-top: 2px;
}

/* شريط البحث */
.header-search-bar {
    flex: 1;
    max-width: 560px;
    display: flex;
    background: #131313;
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.header-search-bar:focus-within {
    border-color: var(--gold-bright);
    box-shadow: var(--glow-gold);
}

.header-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.header-search-bar button {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    border: none;
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-btn, .wishlist-btn {
    background: #151515;
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    padding: 9px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-size: 0.86rem;
    transition: all 0.25s ease;
}

.track-btn:hover, .wishlist-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

.cart-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--glow-gold);
    transition: transform 0.25s;
}

.cart-btn:hover {
    transform: translateY(-2px);
}

.cart-btn.shake-cart {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.22) rotate(-5deg); }
    60% { transform: scale(1.12) rotate(5deg); }
}

#cart-count, #wishlist-count {
    background: #000;
    color: var(--gold-primary);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-family: 'Montserrat', sans-serif;
}

/* شريط الأقسام */
.category-nav-strip {
    background: #0e0e0e;
    border-bottom: 1px solid #1f1f1f;
    padding: 10px 4%;
    display: flex;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav-strip a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 18px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.category-nav-strip a:hover,
.category-nav-strip a.active {
    color: #000;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
    font-weight: 700;
    box-shadow: var(--glow-gold);
}

/* البانر والعروض */
.hero-section {
    position: relative;
    width: 100%;
    border-bottom: 2px solid var(--gold-primary);
}

.hero-banner {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.flash-sale-banner {
    background: linear-gradient(90deg, #171205 0%, #0d0d0d 50%, #171205 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 16px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.flash-tag {
    background: linear-gradient(135deg, #ff3b5c, #c81e3b);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

.flash-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.flash-info h3 span {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
    border: 1px dashed var(--gold-primary);
    padding: 2px 10px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.countdown-boxes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-box {
    background: #121212;
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 6px 14px;
    text-align: center;
    min-width: 62px;
}

.time-box span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.time-box small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* الكتالوج والفلاتر الجانبية */
.catalog-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    padding: 35px 4%;
    align-items: start;
}

.sidebar-filters {
    background: linear-gradient(180deg, #131313 0%, #0c0c0c 100%);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 22px;
    position: sticky;
    top: 95px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.filter-group {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    color: var(--gold-primary);
    margin-bottom: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-cat-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-filter-btn {
    width: 100%;
    background: #181818;
    color: #d0d0d0;
    border: 1px solid #262626;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: right;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

.cat-filter-btn:hover {
    border-color: var(--gold-primary);
    color: #fff;
}

.cat-filter-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.05));
    border-color: var(--gold-primary);
    color: var(--gold-bright);
    font-weight: 700;
}

.cat-filter-btn .dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #555;
}

.cat-filter-btn.active .dot-indicator {
    background: var(--gold-primary);
    border-color: var(--gold-bright);
}

.price-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gold-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-primary), #333);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.gold-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-bright);
    border: 3px solid #000;
    box-shadow: 0 0 12px var(--gold-primary);
    cursor: pointer;
}

.price-range-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.price-input-box {
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
}

.price-input-box small {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.price-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--gold-bright);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    outline: none;
    text-align: center;
}

.gold-switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #181818;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #262626;
    font-size: 0.86rem;
    font-weight: 600;
}

.gold-switch-label input {
    display: none;
}

.switch-slider {
    width: 42px;
    height: 22px;
    background: #2b2b2b;
    border-radius: 30px;
    position: relative;
    transition: 0.3s;
}

.switch-slider::after {
    content: "";
    width: 16px;
    height: 16px;
    background: #888;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: 0.3s;
}

.gold-switch-label input:checked + .switch-slider {
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold-primary);
}

.gold-switch-label input:checked + .switch-slider::after {
    background: var(--gold-bright);
    transform: translateX(18px);
}

.reset-filters-btn {
    width: 100%;
    background: transparent;
    color: var(--gold-primary);
    border: 1px dashed var(--border-gold);
    padding: 9px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    margin-top: 12px;
}

/* شريط الترتيب */
.catalog-toolbar {
    background: linear-gradient(90deg, #131313, #0f0f0f);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.custom-dropdown {
    position: relative;
    min-width: 230px;
    z-index: 100;
}

.custom-dropdown-btn {
    width: 100%;
    background: #191919;
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #141414;
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 16px;
    color: #e0e0e0;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:hover,
.dropdown-item.selected {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent);
    color: var(--gold-bright);
}

/* كروت المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: linear-gradient(160deg, #171717 0%, #0e0e0e 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.16);
    transform: translateY(-6px);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 245px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #1c1c1c;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.product-card:hover .product-img {
    transform: scale(1.09);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff3b5c, #b81430);
    color: #fff;
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 800;
    z-index: 4;
}

.fav-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 10, 10, 0.78);
    color: #fff;
    border: 1px solid var(--border-gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
}

.fav-btn.liked { color: var(--danger); }

.card-brand-sku {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.product-title-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
    margin-bottom: 6px;
    min-height: 2.8em;
}

.product-title-link:hover { color: var(--gold-bright); }

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.stars-gold { color: #ffc107; }

.stock-badge {
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.stock-badge.in-stock { color: var(--success); }
.stock-badge.out-stock { color: var(--danger); }

.price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 6px 0 12px;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.88rem;
}

.product-price {
    color: var(--gold-bright);
    font-size: 1.35rem;
    font-weight: 800;
    font-family: 'Montserrat', 'Cairo', sans-serif;
}

.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.sizes-select {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    background: #0d0d0d;
    color: #eee;
    border: 1px solid #2e2e2e;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.card-buttons-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.add-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.88rem;
}

.add-btn:disabled,
.qty-btn:disabled,
.confirm-order-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.empty-results {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 48px 20px;
    text-align: center;
    background: linear-gradient(160deg, #171717 0%, #0e0e0e 100%);
    border: 1px dashed var(--border-gold);
    border-radius: 18px;
}

.empty-results > i {
    color: var(--gold-primary);
    font-size: 2rem;
}

.empty-results h3 {
    color: var(--gold-bright);
}

.empty-results p {
    color: var(--text-muted);
}

.details-link-btn {
    background: #1d1d1d;
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    padding: 10px 13px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* ===================================================
   صفحة السلة وإتمام الطلب المستقلة (cart.html)
=================================================== */
.cart-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 35px 4%;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 30px;
    align-items: start;
}

.cart-panel-box {
    background: linear-gradient(160deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.cart-panel-box h2, .cart-panel-box h3 {
    color: var(--gold-bright);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #242424;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form-grid input,
.checkout-form-grid select,
.checkout-form-grid textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 14px;
    background: #090909;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.25s;
}

.checkout-form-grid input:focus,
.checkout-form-grid select:focus,
.checkout-form-grid textarea:focus {
    border-color: var(--gold-primary);
}

.checkout-form-grid label {
    display: block;
    font-size: 0.85rem;
    color: var(--gold-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.payment-method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.payment-method-options label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #37312a;
    border-radius: 10px;
    color: #eee;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.payment-method-options label:has(input:checked) {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
}

.track-order-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 12px;
}

.track-order-fields input {
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #37312a;
    border-radius: 9px;
    color: #fff;
    background: #090909;
}

.track-order-fields button {
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    color: #111;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    font-weight: 800;
    cursor: pointer;
}

.policy-page {
    width: min(900px, 92%);
    margin: 30px auto 70px;
}

.policy-card {
    padding: clamp(20px, 5vw, 42px);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    background: linear-gradient(160deg, #151515, #0d0d0d);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
    line-height: 1.9;
}

.policy-card h1,
.policy-card h2 {
    color: var(--gold-primary);
}

.policy-card h1 {
    margin-bottom: 4px;
}

.policy-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0 12px;
    padding: 11px 14px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-right: 3px solid var(--gold-primary);
    border-radius: 10px;
    background: linear-gradient(100deg, rgba(212, 175, 55, 0.13), rgba(212, 175, 55, 0.025));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 1.2rem;
    animation: policy-section-arrive 0.55s both;
}

.policy-card h2::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.75);
}

.policy-card section:nth-of-type(2) h2 {
    animation-delay: 80ms;
}

.policy-card section:nth-of-type(3) h2 {
    animation-delay: 160ms;
}

.policy-card section:nth-of-type(4) h2 {
    animation-delay: 240ms;
}

.policy-card li {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.policy-card li:hover {
    transform: translateX(-3px);
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.055);
}

@keyframes policy-section-arrive {
    from {
        opacity: 0;
        transform: translateY(9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-card p,
.policy-card li,
.policy-updated {
    color: #ccc;
}

.policy-card ul {
    padding-inline-start: 22px;
}

.policy-card li {
    margin-bottom: 8px;
}

.policy-card a:not(.confirm-order-btn) {
    color: var(--gold-bright);
}

.policy-back-link {
    display: inline-block;
    width: auto;
    margin-top: 20px;
    padding: 12px 20px;
    text-decoration: none;
}

.payment-method-options input {
    width: auto;
    margin: 0;
    accent-color: var(--gold-primary);
}

.whatsapp-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid rgba(37, 211, 102, 0.32);
    border-radius: 12px;
    background: linear-gradient(110deg, rgba(37, 211, 102, 0.09), rgba(37, 211, 102, 0.025));
}

.whatsapp-payment-option > span {
    display: grid;
    gap: 3px;
}

.whatsapp-payment-option i {
    color: #25d366;
}

.whatsapp-payment-option small,
.whatsapp-payment-note {
    color: #aaa;
    font-size: 0.82rem;
}

.whatsapp-payment-note {
    padding: 10px 12px;
    border-right: 3px solid #25d366;
    border-radius: 7px;
    background: rgba(37, 211, 102, 0.07);
}

.whatsapp-payment-link {
    display: inline-flex;
    width: auto;
    gap: 9px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
}

.whatsapp-payment-link[hidden] {
    display: none;
}

.payment-method-options input:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

/* صفحة تفاصيل المنتج (product.html) */
.product-page-container {
    padding: 25px 4%;
    max-width: 1300px;
    margin: 0 auto;
}

.breadcrumb-bar {
    background: #111;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    color: var(--text-muted);
    border: 1px solid #222;
}

.breadcrumb-bar a { color: var(--gold-primary); text-decoration: none; }

.product-main-box {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 35px;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 30px;
}

.gallery-main-img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-gold);
    margin-bottom: 12px;
}

.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumb-button {
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
}

.gallery-thumbs img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumb-button.active,
.gallery-thumb-button:hover {
    border-color: var(--gold-primary);
    opacity: 1;
}

.p-info-header {
    border-bottom: 1px solid #242424;
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.p-info-title { font-size: 1.7rem; color: var(--text-white); margin-bottom: 8px; }
.p-meta-badges { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.88rem; color: var(--text-muted); }

.p-price-banner {
    background: #161616;
    border-right: 4px solid var(--gold-primary);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.p-big-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-bright);
    font-family: 'Montserrat', 'Cairo', sans-serif;
}
.save-tag {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.selector-block { margin-bottom: 16px; }
.selector-block label { display: block; font-weight: 700; margin-bottom: 8px; color: #ddd; }
.pills-container { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #383838;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.choice-pill.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

.p-actions-bar { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.qty-box-large {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #383838;
    border-radius: 10px;
    overflow: hidden;
}
.qty-box-large button {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 1.2rem;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 900;
}
.qty-box-large input {
    width: 45px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}
.buy-now-btn {
    background: var(--success);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
}

.sigma-tabs-box {
    background: var(--bg-panel);
    border: 1px solid #242424;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 35px;
}
.tabs-header {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sigma-tab-btn {
    background: #1a1a1a;
    color: var(--text-white);
    border: 1px solid #333;
    padding: 9px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.sigma-tab-btn.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}
.tab-pane { display: none; line-height: 1.8; }
.tab-pane.active { display: block; }

.specs-table, .size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.specs-table th, .specs-table td,
.size-guide-table th, .size-guide-table td {
    border: 1px solid #2b2b2b;
    padding: 10px 14px;
    text-align: right;
}
.specs-table th, .size-guide-table th {
    background: #1a1a1a;
    color: var(--gold-primary);
    width: 30%;
}

/* العنصر الطائر للسلة */
.flying-img {
    position: fixed;
    z-index: 9999;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-bright);
    box-shadow: 0 0 25px var(--gold-primary);
    pointer-events: none;
    transition: all 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* المفضلة والنوافذ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(370px, 100vw);
    height: 100vh;
    background: #121212;
    border-left: 2px solid var(--gold-primary);
    z-index: 2500;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.35s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,0.85);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2b2b2b;
    padding-bottom: 12px;
    color: var(--gold-primary);
}
.close-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 1.3rem;
    cursor: pointer;
}
.free-shipping-bar {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.86rem;
    text-align: center;
    border: 1px solid #292929;
}
.progress-track {
    width: 100%;
    height: 8px;
    background: #2b2b2b;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-primary), var(--success));
    transition: width 0.4s ease;
}
.cart-items { flex: 1; overflow-y: auto; margin: 12px 0; }
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
    background: #2b2b2b;
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
}
.coupon-box { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon-box input {
    flex: 1;
    padding: 10px 14px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
}
.coupon-box button {
    background: #2b2b2b;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-bright);
    margin: 10px 0 14px;
    padding-top: 10px;
    border-top: 1px solid #2b2b2b;
}
.checkout-btn, .confirm-order-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.96rem;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 15px;
}
.modal-overlay.active { display: flex; }
.modal-card {
    background: #141414;
    border: 2px solid var(--gold-primary);
    border-radius: 18px;
    padding: 25px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}
.order-code-box {
    background: #1f1f1f;
    border: 1px dashed var(--gold-primary);
    color: var(--gold-bright);
    padding: 14px;
    border-radius: 10px;
    margin: 14px 0;
    font-weight: 800;
    font-size: 1.1rem;
}
.track-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.78rem;
}
.track-step { flex: 1; color: var(--text-muted); }
.track-step.done { color: var(--success); font-weight: 800; }

.review-card {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.order-status-history {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0 20px 0 0;
    color: #c8c1ad;
    font-size: 0.84rem;
}
.order-status-history li::marker {
    color: var(--gold-primary);
}
.star-picker {
    display: flex;
    direction: ltr;
    width: max-content;
    gap: 6px;
    align-items: center;
    margin: 8px 0;
}
.star-choice {
    padding: 0;
    border: 0;
    background: transparent;
    color: #4a463c;
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1.1;
    transition: color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.star-choice.active {
    color: #ffc107;
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.3));
}
.star-choice:hover,
.star-choice:focus-visible {
    transform: translateY(-2px) scale(1.13);
}
.account-review-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold-bright);
    font-size: 0.84rem;
    font-weight: 700;
}

.site-footer {
    background: #0a0a0a;
    border-top: 2px solid var(--gold-primary);
    padding: 50px 4% 25px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    box-shadow: 0 0 15px var(--gold-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--gold-primary);
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a,
.footer-col p,
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.footer-col ul a:hover,
.footer-col a:hover {
    color: var(--gold-bright);
    text-decoration: none;
    transform: translateX(-4px);
    display: inline-block;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-policy-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    color: var(--gold-primary) !important;
    font-weight: 600;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.footer-policy-link i {
    color: var(--gold-bright);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.footer-policy-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
    border-color: var(--gold-bright);
    color: var(--gold-bright) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.footer-policy-link:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom p {
    margin: 0;
    color: #888;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom-links a:hover {
    color: var(--gold-bright);
}

.order-policy-notice {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
    line-height: 1.5;
}

.order-policy-notice a {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.order-policy-notice a:hover {
    color: #ffffff;
}

.toast-container {
    position: fixed;
    top: 85px;
    left: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #161616;
    color: #fff;
    border-right: 4px solid var(--gold-primary);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.7);
    font-weight: 700;
}

@media (max-width: 900px) {
    .catalog-layout, .cart-page-grid, .product-main-box {
        grid-template-columns: 1fr;
    }
    .sidebar-filters { position: static; }
}

@media (max-width: 600px) {
    .top-utility-bar {
        justify-content: center;
        text-align: center;
        font-size: 0.72rem;
    }

    .sigma-header {
        gap: 12px;
        padding: 12px 4%;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .brand-text h1 {
        font-size: 1rem;
    }

    .brand-text span {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }

    .header-search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .nav-actions {
        gap: 6px;
        margin-inline-start: auto;
    }

    .nav-actions .track-btn,
    .nav-actions .wishlist-btn,
    .cart-btn {
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    .category-nav-strip {
        justify-content: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        padding: 10px;
    }

    .product-img-wrapper {
        height: 190px;
    }

    .product-title-link {
        font-size: 0.9rem;
    }

    .options-row {
        grid-template-columns: 1fr;
    }

    .card-buttons-row {
        grid-template-columns: 1fr;
    }

    .details-link-btn {
        justify-content: center;
    }

    .cart-panel-box,
    .product-main-box,
    .sigma-tabs-box {
        padding: 16px;
    }

    .product-main-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-main-img {
        height: min(90vw, 430px);
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* لمسات حركة موحّدة للأزرار والروابط التفاعلية */
button,
.track-btn,
.wishlist-btn,
.cart-btn,
.add-btn,
.details-link-btn,
.confirm-order-btn,
.checkout-btn,
.action-chip-btn,
.custom-file-upload-btn,
.url-add-btn,
.scroll-top-fab {
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    button:not(:disabled):hover,
    .details-link-btn:hover,
    .confirm-order-btn:hover,
    .checkout-btn:hover,
    .action-chip-btn:hover,
    .custom-file-upload-btn:hover,
    .url-add-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.08);
    }
}

button:not(:disabled):active,
.track-btn:active,
.wishlist-btn:active,
.cart-btn:active,
.add-btn:active,
.details-link-btn:active,
.confirm-order-btn:active,
.checkout-btn:active,
.action-chip-btn:active,
.custom-file-upload-btn:active,
.url-add-btn:active {
    transform: scale(0.97);
}

button:disabled,
.confirm-order-btn:disabled,
.checkout-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.admin-tab-btn:not(.active):hover {
    border-color: var(--border-gold);
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.08);
}

.details-link-btn {
    border: 1px solid var(--border-gold);
}

.toast {
    animation: toast-arrive 0.28s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes toast-arrive {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .toast { animation: none; }
}
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 2400;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

.account-page-container {
    width: min(920px, 92%);
    margin: 35px auto 70px;
}

.account-panel {
    background: linear-gradient(160deg, #151515, #0d0d0d);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: clamp(20px, 5vw, 42px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.account-panel[hidden],
.account-form[hidden],
#auth-credentials[hidden] {
    display: none !important;
}

.account-heading {
    text-align: center;
    margin-bottom: 24px;
}

.account-heading h1,
.account-title-row h1 {
    color: var(--gold-bright);
    font-size: clamp(1.35rem, 4vw, 2rem);
    margin: 10px 0 5px;
}

.account-heading p {
    color: var(--text-muted);
}

.account-icon {
    width: 62px;
    height: 62px;
    display: inline-grid;
    place-items: center;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    font-size: 1.5rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: #090909;
    border: 1px solid #292929;
    border-radius: 12px;
    margin-bottom: 20px;
}

.auth-tab,
.account-secondary-btn {
    color: #ddd;
    background: #191919;
    border: 1px solid #333;
    border-radius: 9px;
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.active {
    color: #111;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-color: var(--gold-primary);
}

.account-form {
    display: grid;
    gap: 9px;
}

.account-form label {
    color: var(--gold-primary);
    font-weight: 600;
    margin-top: 6px;
}

.account-form input,
.account-form textarea {
    width: 100%;
    min-height: 46px;
    color: #fff;
    background: #090909;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 11px 13px;
    outline: none;
}

.account-form input:focus,
.account-form textarea:focus {
    border-color: var(--gold-primary);
}

.account-form input:disabled {
    color: #999;
    background: #141414;
}

.account-form input[type="password"] {
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.account-form input[type="password"]:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 8px 22px rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.account-form input[type="password"].password-keypress {
    transform: translateY(-2px) scale(1.008);
}

.otp-code-entry {
    position: relative;
    width: min(100%, 430px);
    margin: 4px auto 10px;
    padding: 5px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    background: linear-gradient(145deg, #111, #080808);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.otp-code-entry.is-focused {
    border-color: rgba(255, 226, 122, 0.72);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.09), 0 14px 34px rgba(0, 0, 0, 0.34);
    transform: translateY(-2px);
}

.otp-code-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(5px, 2vw, 11px);
    pointer-events: none;
}

.otp-code-boxes span {
    display: grid;
    min-width: 0;
    aspect-ratio: 0.88;
    place-items: center;
    border: 1px solid #34302a;
    border-radius: 11px;
    background: linear-gradient(155deg, #1b1a18, #101010);
    color: var(--gold-bright);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 5vw, 1.65rem);
    font-weight: 800;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.otp-code-boxes span.is-current {
    border-color: var(--gold-bright);
    background: #201b0d;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 16px rgba(212, 175, 55, 0.14);
    transform: translateY(-2px);
}

.otp-code-boxes span.is-filled {
    border-color: rgba(212, 175, 55, 0.58);
    animation: otp-digit-pop 0.24s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.otp-code-input {
    position: absolute;
    z-index: 2;
    inset: 5px;
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px);
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px;
    outline: 0 !important;
    background: transparent !important;
    color: transparent !important;
    caret-color: transparent;
    cursor: text;
    opacity: 0.01;
}

.otp-code-entry.code-complete-pop .otp-code-boxes span {
    animation: otp-complete-pop 0.32s calc(var(--otp-index, 0) * 24ms) cubic-bezier(0.2, 0.8, 0.25, 1);
    border-color: rgba(34, 197, 94, 0.65);
}

.otp-code-boxes span:nth-child(1) { --otp-index: 0; }
.otp-code-boxes span:nth-child(2) { --otp-index: 1; }
.otp-code-boxes span:nth-child(3) { --otp-index: 2; }
.otp-code-boxes span:nth-child(4) { --otp-index: 3; }
.otp-code-boxes span:nth-child(5) { --otp-index: 4; }
.otp-code-boxes span:nth-child(6) { --otp-index: 5; }

@keyframes otp-digit-pop {
    50% { transform: scale(1.09); }
}

@keyframes otp-complete-pop {
    50% { transform: translateY(-4px) scale(1.07); }
}

.account-form > .confirm-order-btn {
    margin-top: 14px;
}

.account-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.account-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.account-message {
    display: none;
    padding: 11px 14px;
    margin: 14px 0;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 9px;
    background: rgba(34, 197, 94, 0.08);
    color: #9ae6b4;
}

.account-message.visible {
    display: block;
}

.account-message.error {
    color: #ff9aa9;
    border-color: rgba(255, 59, 92, 0.4);
    background: rgba(255, 59, 92, 0.08);
}

.account-secondary-btn {
    margin-top: 8px;
}

.account-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.account-eyebrow {
    color: var(--gold-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-form h2,
.account-orders h2 {
    color: var(--gold-bright);
    border-bottom: 1px solid #292929;
    padding-bottom: 12px;
    margin: 12px 0;
}

.profile-form h2 i,
.account-orders h2 i {
    color: var(--gold-primary);
    margin-left: 6px;
}

.account-orders {
    margin-top: 32px;
}

.account-order-card {
    padding: 15px;
    margin-top: 12px;
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    background: #111;
}

.account-order-card strong {
    color: var(--gold-bright);
}

.account-order-card p {
    color: #bbb;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.checkout-account-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: -5px 0 16px;
}

.checkout-account-note a,
.top-utility-bar a {
    color: var(--gold-bright);
    font-weight: 700;
}

@media (max-width: 600px) {
    .account-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-title-row .account-secondary-btn {
        margin: 0;
    }
}

.password-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 1px;
}

.password-strength span {
    height: 4px;
    border-radius: 5px;
    background: #303030;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.password-strength[data-score="1"] span:nth-child(-n + 1) {
    background: var(--danger);
}

.password-strength[data-score="2"] span:nth-child(-n + 2) {
    background: #f59e0b;
}

.password-strength[data-score="3"] span:nth-child(-n + 3) {
    background: #a3c94a;
}

.password-strength[data-score="4"] span {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.account-text-btn {
    justify-self: start;
    padding: 5px 0;
    color: var(--gold-bright);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.account-text-btn:hover {
    color: #fff1b2;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-box {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.login-box.password-typing {
    border-color: var(--gold-bright);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
}

.login-box.password-typing::after {
    position: absolute;
    top: 0;
    right: -45%;
    width: 35%;
    height: 2px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    animation: password-scan 1.6s ease-in-out infinite;
}

.key-awake {
    animation: key-pulse 0.75s ease-in-out infinite alternate;
}

.auth-denied {
    animation: auth-shake 0.42s ease;
}

.sigma-header.is-scrolled {
    background: rgba(8, 8, 8, 0.96);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.68);
    border-bottom-color: rgba(255, 226, 122, 0.34);
}

.page-scroll-progress {
    position: fixed;
    z-index: 10001;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), #fff3b3);
    box-shadow: 0 0 12px rgba(255, 226, 122, 0.7);
    transform: scaleX(0);
    transform-origin: right center;
    pointer-events: none;
}

.scroll-top-fab {
    position: fixed;
    z-index: 2000;
    right: 24px;
    bottom: 92px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 226, 122, 0.55);
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.9);
    color: var(--gold-bright);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(212, 175, 55, 0.15);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.scroll-top-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-fab:hover {
    background: #211b09;
    transform: translateY(-3px) scale(1.04);
}

.hero-section {
    overflow: hidden;
    isolation: isolate;
}

.hero-section::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(112deg, transparent 30%, rgba(255, 239, 178, 0.12) 48%, transparent 62%);
    transform: translateX(120%);
}

.motion-ready .hero-section::after {
    animation: hero-light-sweep 1.35s 0.2s cubic-bezier(0.2, 0.65, 0.25, 1) both;
}

.motion-ready .hero-banner {
    animation: hero-arrive 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.motion-ready .flash-tag {
    animation: flash-tag-arrive 0.65s 0.16s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.category-nav-strip a i {
    display: inline-block;
    transition: transform 0.24s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.category-nav-strip a:hover i,
.category-nav-strip a.active i {
    transform: translateY(-2px) scale(1.08);
}

.flash-sale-banner {
    position: relative;
    overflow: hidden;
    background-size: 200% 100%;
}

.motion-ready .flash-sale-banner {
    animation: sale-background-drift 16s ease-in-out infinite alternate;
}

.motion-ready .flash-tag i {
    animation: flash-icon-bounce 2.8s ease-in-out infinite;
}

.product-img-wrapper::after {
    position: absolute;
    z-index: 2;
    inset: -20% auto -20% -65%;
    width: 45%;
    content: "";
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg, transparent, rgba(255, 244, 207, 0.35), transparent);
    transform: skewX(-16deg);
}

.product-card:hover .product-img-wrapper::after {
    animation: product-image-sheen 0.85s ease-out;
}

.add-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.add-btn::after {
    position: absolute;
    z-index: 1;
    inset: -40% auto -40% -80%;
    width: 45%;
    content: "";
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-20deg);
}

.add-btn:hover::after {
    animation: button-light-sweep 0.7s ease-out;
}

.motion-ready .whatsapp-float {
    animation: whatsapp-breathe 4.2s ease-in-out infinite;
}

.product-card {
    isolation: isolate;
}

.product-card::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(220px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 226, 122, 0.12), transparent 72%);
    transition: opacity 0.3s ease;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.motion-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion-reveal.motion-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card.motion-reveal {
    transition-delay: var(--reveal-delay, 0ms);
}

.tap-feedback {
    animation: tap-feedback 0.24s ease-out;
}

@keyframes hero-arrive {
    from { opacity: 0.65; transform: scale(1.025); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes hero-light-sweep {
    to { transform: translateX(-120%); }
}

@keyframes flash-tag-arrive {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sale-background-drift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@keyframes flash-icon-bounce {
    0%, 76%, 100% { transform: translateY(0) rotate(0); }
    82% { transform: translateY(-2px) rotate(-9deg); }
    88% { transform: translateY(0) rotate(8deg); }
    94% { transform: translateY(-1px) rotate(-4deg); }
}

@keyframes product-image-sheen {
    0% { opacity: 0; transform: translateX(0) skewX(-16deg); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translateX(360%) skewX(-16deg); }
}

@keyframes button-light-sweep {
    from { transform: translateX(0) skewX(-20deg); }
    to { transform: translateX(430%) skewX(-20deg); }
}

@keyframes whatsapp-breathe {
    0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42); }
    50% { box-shadow: 0 8px 26px rgba(37, 211, 102, 0.68), 0 0 0 7px rgba(37, 211, 102, 0.07); }
}

@keyframes password-scan {
    to { right: 110%; }
}

@keyframes key-pulse {
    from { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    to { transform: scale(1.16); filter: drop-shadow(0 0 6px var(--gold-bright)); }
}

@keyframes auth-shake {
    20%, 60% { transform: translateX(7px); }
    40%, 80% { transform: translateX(-7px); }
}

@keyframes tap-feedback {
    50% { transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
    .page-scroll-progress {
        box-shadow: none;
    }

    .motion-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-section::after,
    .motion-ready .hero-banner,
    .motion-ready .flash-tag,
    .motion-ready .flash-sale-banner,
    .motion-ready .flash-tag i,
    .motion-ready .whatsapp-float,
    .product-card:hover .product-img-wrapper::after,
    .add-btn:hover::after {
        animation: none;
    }

    .scroll-top-fab {
        transition: none;
    }

    .otp-code-boxes span,
    .otp-code-entry,
    .account-form input[type="password"] {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
