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

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --primary: #c9965c;
    --primary-light: #e8c49a;
    --primary-dark: #9b6c38;
    --secondary: #e8a598;
    --gold: #d4a85b;
    --rose: #d4748c;

    --bg: #faf7f4;
    --bg-2: #f3ede6;
    --card: #ffffff;
    --card-glass: rgba(255,255,255,0.75);

    --text: #1a1310;
    --text-2: #4a3f38;
    --text-3: #8a7b72;
    --text-inv: #ffffff;

    --border: rgba(201,150,92,0.18);
    --border-light: rgba(0,0,0,0.06);

    --danger: #d44060;
    --success: #2a8f7f;
    --warning: #e09940;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 100px;

    --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-gold: 0 8px 32px rgba(201,150,92,0.25);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', 'Tajawal', sans-serif;
    --font-ar: 'Tajawal', 'Inter', sans-serif;
}

/* =============================================
   BASE RESET & TYPOGRAPHY
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    text-align: start;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[dir="rtl"] body,
[dir="rtl"] * {
    font-family: var(--font-ar);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(250, 247, 244, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo */
.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-dark);
    background: rgba(201,150,92,0.1);
}

.nav-links a.active {
    color: var(--primary-dark);
    background: rgba(201,150,92,0.12);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(201,150,92,0.08);
}

/* Cart button */
.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 1.25rem;
    gap: 0.5rem;
    border-radius: var(--radius-full);
    background: var(--bg-2);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.cart-icon-container:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.cart-count {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    background: var(--rose);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a192f 0%, #172a45 40%, #020c1b 100%); /* Navy blue */
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 4rem;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px; height: 400px;
    background: rgba(201,150,92,0.15);
    top: -10%; left: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px; height: 300px;
    background: rgba(212,116,140,0.1);
    bottom: -5%; right: 10%;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 200px; height: 200px;
    background: rgba(212,168,91,0.12);
    top: 40%; right: 30%;
    animation-delay: -5s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
    flex: 1;
    text-align: start;
    animation: hero-in 1s ease both;
    max-width: 600px;
}

@media (max-width: 992px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
}

.hero-welcome-text {
    font-family: var(--font-display) !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--gold), var(--primary-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    display: block;
}

.hero-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: hero-img-in 1.2s ease both;
}

.hero-logo-img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.hero-logo-img:hover {
    transform: translateY(-10px) scale(1.03);
}

@keyframes hero-in {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-img-in {
    from { opacity: 0; transform: translateX(40px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(201,150,92,0.2);
    border: 1px solid rgba(201,150,92,0.35);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--gold), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-actions {
        justify-content: center;
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: white;
    box-shadow: 0 6px 24px rgba(201,150,92,0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201,150,92,0.5);
    filter: brightness(1.05);
}

.hero-btn-outline {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
}

/* Legacy hero-btn support */
.hero-btn:not(.hero-btn-primary):not(.hero-btn-outline):not(.btn-checkout) {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: white;
    box-shadow: 0 6px 24px rgba(201,150,92,0.4);
}

.hero-btn:not(.hero-btn-primary):not(.hero-btn-outline):not(.btn-checkout):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201,150,92,0.5);
    filter: brightness(1.05);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: bounce-scroll 2s ease-in-out infinite;
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
}

.trust-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
}

.trust-icon {
    font-size: 1.1rem;
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(201,150,92,0.12);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-3);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* =============================================
   PRODUCT GRID
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    background: linear-gradient(135deg, var(--rose), #c04060);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(212,116,140,0.35);
}

/* Wishlist btn placeholder */
.card-action-btn {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    font-size: 1rem;
    z-index: 2;
}

.product-card:hover .card-action-btn {
    opacity: 1;
    transform: scale(1);
}

/* Product image */
.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, var(--bg-2), #ede6dd);
    overflow: hidden;
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Product info */
.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}

.product-desc {
    color: var(--text-3);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

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

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.price-original {
    font-size: 0.82rem;
    color: var(--text-3);
    text-decoration: line-through;
}

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

.product-price-single {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--text);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =============================================
   CART PAGE
   ============================================= */
.page-header {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-2) 0%, transparent 100%);
    margin-bottom: 2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr 380px;
    }
}

.cart-table-wrapper {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
}

.cart-table th {
    padding: 0 1rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 2px solid var(--border-light);
}

.cart-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-2);
    border-radius: var(--radius-full);
    padding: 0.3rem;
    width: fit-content;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--card);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-gold);
}

.quantity-val {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 24px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    font-family: inherit;
}

.btn-remove:hover {
    background: rgba(212,64,96,0.1);
    color: var(--danger);
}

/* Cart summary card */
.cart-summary {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-2);
}

.summary-row span:last-child {
    font-weight: 600;
}

.summary-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-light);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.summary-row.total span:last-child {
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--text), #3d2f26);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    margin-top: 1.5rem;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.continue-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-3);
    text-decoration: none;
    transition: var(--transition);
}

.continue-link:hover { color: var(--primary-dark); }

/* Empty cart */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-3);
    margin-bottom: 2rem;
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .form-grid {
        grid-template-columns: 1.6fr 1fr;
    }
}

.form-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.form-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.form-control:hover {
    border-color: rgba(201,150,92,0.4);
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(201,150,92,0.12);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7b72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

[dir="rtl"] select.form-control {
    background-position: left 1rem center;
    padding-right: 1.1rem;
    padding-left: 2.5rem;
}

/* Payment box */
.instapay-box {
    background: linear-gradient(135deg, #fffaf5, #fff8ef);
    border: 1.5px solid rgba(201,150,92,0.3);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.instapay-box p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-2);
}

.instapay-box p:last-child { margin-bottom: 0; }

/* =============================================
   ORDER TRACKING PAGE
   ============================================= */
.track-search-card {
    max-width: 640px;
    margin: 0 auto 3rem;
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.track-search-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.track-search-form .form-control {
    flex: 1;
    min-width: 200px;
}

.track-search-form .hero-btn {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: white;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.track-search-form .hero-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.track-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.track-order-num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.track-order-num span {
    color: var(--primary-dark);
}

.track-order-date {
    color: var(--text-3);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

/* Status timeline */
.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2.5rem 0;
    padding: 0 1rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: var(--bg-2);
    border-radius: 2px;
    z-index: 0;
}

.status-timeline::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 2px;
    z-index: 1;
    transition: var(--transition-slow);
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-bullet {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 3px solid white;
    margin: 0 auto 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.timeline-step.active .step-bullet {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(201,150,92,0.2);
}

.timeline-step.completed .step-bullet {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-3);
    line-height: 1.3;
}

.timeline-step.active .step-label { color: var(--primary-dark); }
.timeline-step.completed .step-label { color: var(--success); }

.delivery-estimate {
    background: linear-gradient(135deg, #fff8ef, #fffaf5);
    border: 1.5px solid rgba(201,150,92,0.25);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-2);
    line-height: 1.7;
}

/* Order items table inside track card */
.track-items-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text);
}

.track-totals {
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* =============================================
   TOAST
   ============================================= */
.toast {
    position: fixed;
    bottom: 2rem;
    inset-inline-start: 2rem;
    min-width: 280px;
    max-width: 380px;
    background: var(--text);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    z-index: 9999;
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-inline-start: 4px solid var(--primary);
    animation: slideInToast 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes slideInToast {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =============================================
   ALERTS / MESSAGES
   ============================================= */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(212,64,96,0.08);
    border: 1.5px solid rgba(212,64,96,0.2);
    color: #a01830;
    border-inline-start: 4px solid var(--danger);
}

.alert-success {
    background: rgba(42,143,127,0.08);
    border: 1.5px solid rgba(42,143,127,0.2);
    color: #1a5f54;
    border-inline-start: 4px solid var(--success);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 40%, #020c1b 100%);
    color: rgba(255,255,255,0.75);
    position: relative;
    overflow: hidden;
}

.footer-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .logo-name-ft {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, white 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 260px;
    opacity: 0.65;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-light);
    padding-inline-start: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.45;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,150,92,0.06) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery .main-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-2);
    border: 1px solid var(--border-light);
}

.product-gallery .main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-gallery .thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.product-gallery .thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-gallery .thumb:hover,
.product-gallery .thumb.active {
    border-color: var(--primary);
}

.product-gallery .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding: 1rem 0;
}

.product-detail-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-price-final {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.detail-price-original {
    font-size: 1.1rem;
    color: var(--text-3);
    text-decoration: line-through;
}

.product-detail-desc {
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.stock-badge.in-stock {
    background: rgba(42,143,127,0.1);
    color: var(--success);
    border: 1px solid rgba(42,143,127,0.2);
}

.stock-badge.out-stock {
    background: rgba(212,64,96,0.1);
    color: var(--danger);
    border: 1px solid rgba(212,64,96,0.2);
}

.btn-add-cart-lg {
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
}

/* =============================================
   ORDER SUCCESS
   ============================================= */
.order-success-card {
    max-width: 580px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #1d7a6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.order-success-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.order-number-box {
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
}

.order-number-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.5rem;
}

.order-number-value {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* =============================================
   UTILITIES
   ============================================= */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Add slight delay for elements that are siblings */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .header-container { padding: 0 1rem; height: 60px; }
    .nav-links { display: none; }

    .hero { min-height: 80vh; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-btn { width: 100%; max-width: 280px; justify-content: center; }

    .container { padding: 0 1rem 3rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }

    .cart-table-wrapper { padding: 1rem; }
    .cart-table th, .cart-table td { padding: 0.75rem 0.5rem; font-size: 0.85rem; }

    .form-card { padding: 1.5rem; }
    .track-search-form { flex-direction: column; }

    .footer-top { padding: 3rem 1.5rem 2rem; }
    .trust-bar-inner { gap: 1.5rem; }
}

/* =============================================
   ANIMATIONS / ENTRANCE
   ============================================= */
.fade-in {
    animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.5s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
