/* ==========================================================================
   El Kaid Store - Main Luxury Arabian Stylesheet
   Direction: RTL
   Palette: Imperial Emerald (#0c3823), Royal Gold (#c59b27), Warm Linen (#faf8f5)
   ========================================================================== */

:root {
    --primary: #0c3823;
    --primary-light: #134e32;
    --primary-dark: #072517;
    --gold: #c59b27;
    --gold-light: #dfb74a;
    --gold-hover: #b68822;
    --gold-subtle: #f9f5ea;
    --gold-border: #e8dbb8;
    --bg-base: #faf8f5;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1d2521;
    --text-muted: #5e6962;
    --text-light: #8e9a93;
    --border-light: #eae5dc;
    --border-gold: #d8c491;
    --danger: #d9383a;
    --success: #1f9d55;
    --shadow-sm: 0 2px 6px rgba(12, 56, 35, 0.05);
    --shadow-md: 0 6px 20px rgba(12, 56, 35, 0.08);
    --shadow-lg: 0 12px 36px rgba(12, 56, 35, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Amiri', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Announcement Bar */
.top-bar {
    background: linear-gradient(90deg, #072517 0%, #0c3823 50%, #072517 100%);
    color: #f7eedb;
    font-size: 0.85rem;
    padding: 9px 0;
    border-bottom: 1px solid rgba(197, 155, 39, 0.3);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-contact a {
    color: #e2d5be;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.top-bar-contact a:hover {
    color: var(--gold-light);
}

/* Header & Navigation */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.95;
}

.header-logo-img {
    width: 54px;
    height: 54px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--gold);
    box-shadow: 0 4px 14px rgba(12, 56, 35, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.header-logo:hover .header-logo-img {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.45);
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-brand-name {
    font-family: 'Cairo', 'Amiri', serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.header-brand-slogan {
    font-family: 'Cairo', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-hover);
    letter-spacing: 0.2px;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 6px 2px;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--gold-hover);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-order {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 155, 39, 0.35);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: #072517;
    overflow: hidden;
    color: #fff;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 37, 23, 0.9) 0%, rgba(12, 56, 35, 0.75) 45%, rgba(7, 37, 23, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 60px 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 155, 39, 0.25);
    color: var(--gold-light);
    border: 1px solid rgba(223, 183, 74, 0.5);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2.7rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #f1e9dc;
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: #072517;
    font-weight: 800;
    font-size: 1rem;
    padding: 13px 30px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(223, 183, 74, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(223, 183, 74, 0.55);
    background: #fff;
    color: var(--primary);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Trust Badges Bar */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    box-shadow: var(--shadow-sm);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold-hover);
    flex-shrink: 0;
}

.trust-text h4 {
    font-size: 0.98rem;
    margin-bottom: 2px;
    color: var(--primary);
}

.trust-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Common Styling */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
}

.section-tag {
    color: var(--gold-hover);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.cat-tab-btn {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.cat-tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold-hover);
}

.cat-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(12, 56, 35, 0.25);
}

#no-products-category {
    background: #fff;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 50px 20px;
    text-align: center;
}

#no-products-category p {
    color: var(--text-muted);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-border);
}

.product-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card-img {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect */
    overflow: hidden;
    background: #f4efe6;
}

.product-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-cat {
    font-size: 0.8rem;
    color: var(--gold-hover);
    font-weight: 700;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary);
}

.price-regular, del.price-regular {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #8c9791;
    text-decoration: none !important;
    opacity: 0.82;
    margin-right: 8px;
    line-height: 1;
}

.price-regular::after, del.price-regular::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 2px;
    background-color: #d9383a;
    transform: translateY(-50%);
    pointer-events: none;
    border-radius: 1px;
    z-index: 2;
}

.price-saving {
    background: #ffebe9;
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.btn-card-order {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(197, 155, 39, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-card-order:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 56, 35, 0.3);
}

/* Single Product Page & 1-Press Direct Order Layout */
.single-product-container {
    padding: 40px 0 80px;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a:hover {
    color: var(--gold-hover);
}

.single-product-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Gallery Column */
.product-gallery {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.gallery-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fbf7ee;
    margin-bottom: 16px;
}

.gallery-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-features-box {
    margin-top: 24px;
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.product-features-box h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-features-box ul {
    list-style: none;
    padding: 0;
}

.product-features-box li {
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 6px 0;
    border-bottom: 1px dashed rgba(197, 155, 39, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features-box li:last-child {
    border-bottom: none;
}

.product-features-box li::before {
    content: "✓";
    color: var(--gold-hover);
    font-weight: bold;
}

/* Product Info & Direct COD Order Form Column */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title-wrap h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.product-meta-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.in-stock-badge {
    background: #e8f7ee;
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.stars-rating {
    color: #f5a623;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars-rating span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-price-banner {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.product-price-banner .price-current {
    font-size: 2.1rem;
    color: var(--primary);
}

.product-price-banner .price-regular, .product-price-banner del.price-regular {
    font-size: 1.25rem;
    margin-right: 14px;
}

/* Express 1-Press Direct COD Order Box */
.direct-order-box,
.direct-order-box-container {
    background: #ffffff;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 0 24px 26px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.direct-order-box::before,
.direct-order-box-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    z-index: 2;
}

/* Form Top Banner (Matching Reference Design: Green to Amber/Gold gradient) */
.order-form-banner {
    margin: 0 -24px 20px -24px;
    padding: 13px 20px;
    background: linear-gradient(90deg, #166534 0%, #a16207 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.order-form-banner span {
    position: relative;
}

/* Product Options / Variations Section */
.product-variations-section {
    margin-bottom: 22px;
    padding: 0;
    background: transparent;
    border: none;
}

.variations-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 12px;
}

.variations-badge {
    color: #0d9488;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
}

.variations-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.variations-title .req {
    color: var(--danger);
}

.variations-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    margin-bottom: 2px;
}

.variation-card:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.variation-card.active {
    border: 2px solid #166534;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(22, 101, 52, 0.08);
}

.variation-card input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    pointer-events: auto !important;
}

.variation-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.variation-radio-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.variation-card.active .variation-radio-circle {
    border-color: #166534;
    background: #ffffff;
    box-shadow: none;
}

.variation-card.active .variation-radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #166534;
    display: block;
}

.variation-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.2s;
}

.variation-card.active .variation-name {
    color: #1e293b;
}

.variation-card-left {
    display: flex;
    align-items: center;
}

.variation-price-badge {
    background: transparent;
    color: #166534;
    border: none;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0;
    direction: ltr;
    display: inline-block;
}

.variation-card.active .variation-price-badge {
    background: transparent;
    color: #166534;
    border: none;
}

/* Product Attributes Sections (Sizes & Colors) */
.product-attr-section {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #fdfdfd;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
}

.attr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.attr-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.attr-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.attr-active-val {
    color: #0c3823;
    font-weight: 800;
    margin-right: 4px;
}

/* Sizes Pills List */
.sizes-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-pill-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.size-pill-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.size-pill-card.active {
    border: 2px solid #0c3823;
    background: #0c3823;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(12, 56, 35, 0.2);
}

.size-pill-card input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    pointer-events: auto !important;
}

.size-pill-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.2s;
}

.size-pill-card.active .size-pill-text {
    color: #ffffff;
}

/* Colors Chips List */
.colors-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-chip-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-chip-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.color-chip-card.active {
    border: 2px solid #0c3823;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(12, 56, 35, 0.12);
}

.color-chip-card input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    pointer-events: auto !important;
}

.color-chip-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.color-chip-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.color-chip-card.active .color-chip-text {
    color: #0c3823;
    font-weight: 800;
}

/* Form Section Titles (Teal header matching reference) */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 22px 0 12px 0;
    padding-bottom: 4px;
    border-bottom: none;
}

.form-section-title .section-icon {
    font-size: 1.1rem;
    display: none; /* keep clean like reference */
}

.form-section-title h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0d9488; /* Teal color matching reference */
    margin: 0;
}

/* 2-Column Responsive Input Row & Icons */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon .form-control {
    padding-left: 12px;
    padding-right: 36px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    height: 46px;
    font-size: 0.95rem;
    background: #ffffff;
    width: 100%;
    transition: border-color 0.2s;
}

.input-with-icon .form-control:focus {
    border-color: #0d9488;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.input-with-icon .input-icon {
    position: absolute;
    right: 12px;
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    user-select: none;
}

/* Price Range in Product Header */
.price-range {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
}

.direct-order-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
}

.direct-order-header h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.direct-order-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-label span.req {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #fdfbf7;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

/* Delivery Type Selector (Home vs Desk) */
.delivery-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

@media (max-width: 480px) {
    .delivery-type-selector {
        grid-template-columns: 1fr;
    }
}

.delivery-card {
    position: relative;
    display: block;
    cursor: pointer;
    background: #fdfbf7;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: var(--transition);
}

.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-card:hover {
    border-color: var(--gold);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.12);
}

.delivery-card.active {
    border-color: var(--primary);
    background: #f5f9f6;
    box-shadow: 0 0 0 2px rgba(12, 56, 35, 0.15);
}

.delivery-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-card-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.delivery-card-heading {
    display: flex;
    flex-direction: column;
}

.delivery-card-heading strong {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.3;
}

.delivery-card.active .delivery-card-heading strong {
    color: var(--primary);
}

.delivery-card-heading small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.delivery-badge {
    align-self: flex-start;
    display: inline-block;
    background: #f0ebe1;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(197, 155, 39, 0.3);
    transition: var(--transition);
}

.delivery-card.active .delivery-badge {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-light);
}

/* Quantity Stepper */
.qty-stepper-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-base);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.qty-stepper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 38px;
    background: #f9f6ee;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--gold);
    color: #fff;
}

.qty-input {
    width: 46px;
    height: 38px;
    border: none;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    background: #fff;
    color: var(--primary);
}

/* Order Calculation Summary */
.order-calc-summary {
    background: #f7f3ea;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 18px 0;
    font-size: 0.9rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.calc-row.total-row {
    border-top: 1.5px dashed #d5c7a4;
    padding-top: 10px;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.calc-row.total-row .total-amount {
    color: var(--gold-hover);
    font-size: 1.35rem;
}

/* Submit Big Button */
.btn-submit-order {
    width: 100%;
    background: linear-gradient(135deg, #10492e 0%, #072517 100%);
    color: #fff;
    border: 2px solid var(--gold);
    font-size: 1.15rem;
    font-weight: 800;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(7, 37, 23, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-submit-order:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(197, 155, 39, 0.45);
}

.btn-submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.order-guarantee-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* WhatsApp Alternate Button */
.btn-whatsapp-direct {
    width: 100%;
    margin-top: 12px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-whatsapp-direct:hover {
    background: #1eb956;
    color: #fff;
}

/* Modal Popup Confirmation */
.elkaid-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.elkaid-modal-content {
    background: #fff;
    max-width: 520px;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-lg);
    padding: 30px 26px;
    text-align: center;
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon-success {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e6f7ed;
    color: var(--success);
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid var(--success);
}

.modal-order-details {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 18px 0;
    text-align: right;
    font-size: 0.9rem;
}

.modal-order-details p {
    margin-bottom: 6px;
}

.modal-order-details p:last-child {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Reviews Section */
.reviews-section {
    background: #f4efe6;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.review-stars {
    color: #f5a623;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 14px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.88rem;
}

.reviewer-city {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Site Footer */
.site-footer {
    background: #072517;
    color: #e5ddd0;
    padding: 60px 0 20px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold-light);
    font-size: 1.15rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2px;
    background: var(--gold);
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #cfc6b8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1c8bb;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(197, 155, 39, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: #a49d91;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    background: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    animation: waPulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .single-product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }
    .top-bar-contact {
        display: none;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .category-tabs {
        gap: 8px;
        margin-bottom: 24px;
    }
    .cat-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-nav {
        display: none;
    }
    .header-logo-img {
        width: 46px;
        height: 46px;
    }
    .header-brand-name {
        font-size: 1.25rem;
    }
    .header-brand-slogan {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header-logo-img {
        width: 40px;
        height: 40px;
    }
    .header-brand-name {
        font-size: 1.1rem;
    }
    .header-brand-slogan {
        font-size: 0.62rem;
    }
}

/* Price Typography & RTL Bidi isolation */
.price-num {
    display: inline-block;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.price-curr {
    display: inline-block;
    font-size: 0.82em;
    font-weight: 700;
    margin-right: 4px;
    color: inherit;
}

.price-current, .price-regular, .total-amount, .calc-row {
    unicode-bidi: isolate;
    white-space: nowrap;
}

/* ==========================================================================
   Feature 1: Slide to Order Form & Sticky Bottom Order Bar
   ========================================================================== */
.product-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.btn-slide-to-form {
    flex: 1 1 240px;
    background: linear-gradient(135deg, #0c3823 0%, #155e39 100%);
    color: #f7eedb;
    border: 1.5px solid var(--gold);
    padding: 13px 20px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(12, 56, 35, 0.25);
    transition: var(--transition);
}

.btn-slide-to-form:hover {
    background: linear-gradient(135deg, #155e39 0%, #0c3823 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

.btn-product-add-cart {
    flex: 1 1 180px;
    background: var(--gold-subtle);
    color: var(--primary);
    border: 1.5px solid var(--border-gold);
    padding: 13px 20px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-product-add-cart:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.3);
}

/* Form Arrival Highlight Pulse */
.direct-order-box-container {
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.order-box-highlight {
    animation: orderPulseHighlight 1.8s ease-in-out;
}

@keyframes orderPulseHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 155, 39, 0.7);
        border-color: var(--gold);
    }
    50% {
        box-shadow: 0 0 25px 8px rgba(197, 155, 39, 0.55);
        border-color: var(--gold);
    }
    100% {
        box-shadow: none;
    }
}

/* Sticky Bottom Order Bar on Product Page */
.elkaid-sticky-order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 980;
    background: rgba(12, 56, 35, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--gold);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.25);
    padding: 10px 0;
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.elkaid-sticky-order-bar.visible {
    transform: translateY(0);
}

.sticky-order-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sticky-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1.5px solid var(--gold);
    flex-shrink: 0;
}

.sticky-text {
    min-width: 0;
}

.sticky-title {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.sticky-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.sticky-price {
    color: var(--gold-light);
    font-weight: 800;
    font-size: 1.05rem;
}

.sticky-regular {
    color: #a4b3ab;
    font-size: 0.82rem;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-sticky-order {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(197, 155, 39, 0.35);
    transition: var(--transition);
}

.btn-sticky-order:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: scale(1.03);
}

.btn-sticky-add-cart {
    background: rgba(255, 255, 255, 0.12);
    color: #f7eedb;
    border: 1px solid rgba(223, 183, 74, 0.4);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sticky-add-cart:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ==========================================================================
   Feature 2: Cart System (Header Button, Drawer, Item Cards, Checkout)
   ========================================================================== */
.btn-header-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold-subtle);
    border: 1.5px solid var(--border-gold);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.btn-header-cart:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
}

.cart-badge-count {
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge-count.bump {
    transform: scale(1.35);
}

/* Card Add to Cart Button */
.btn-card-add-cart {
    background: #fdfaf3;
    color: var(--primary);
    border: 1.5px solid var(--border-gold);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-card-add-cart:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-hover);
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
}

/* Floating Actions Wrap (Cart + WhatsApp) */
.floating-actions-wrap {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-actions-wrap .floating-whatsapp {
    position: static;
    bottom: auto;
    left: auto;
}

.floating-cart-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c3823 0%, #155e39 100%);
    color: #fff;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(12, 56, 35, 0.45);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(197, 155, 39, 0.5);
}

.floating-cart-icon {
    font-size: 24px;
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #d9383a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 440px;
    max-width: 100%;
    background: #ffffff;
    box-shadow: 5px 0 35px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, #072517 0%, #0c3823 100%);
    color: #fff;
    border-bottom: 2px solid var(--gold);
}

.cart-drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-drawer-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #f7eedb;
}

.cart-items-counter-tag {
    color: var(--gold-light);
    font-size: 0.95rem;
}

.btn-close-cart-drawer {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close-cart-drawer:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Empty State */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.cart-empty-state h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.cart-empty-state p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-empty-shop {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
}

.btn-empty-shop:hover {
    background: var(--gold-hover);
    color: #fff;
}

/* Cart Items List */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.cart-item-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #faf8f5;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.cart-item-card:hover {
    border-color: var(--border-gold);
    box-shadow: 0 2px 10px rgba(12, 56, 35, 0.05);
}

.cart-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price-unit {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
}

.cart-item-step-btn {
    background: #f4efe6;
    border: none;
    width: 26px;
    height: 26px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.2s;
}

.cart-item-step-btn:hover {
    background: var(--gold);
    color: #fff;
}

.cart-item-qty-val {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-subtotal {
    font-weight: 800;
    color: var(--gold-hover);
    font-size: 0.95rem;
}

.btn-remove-cart-item {
    background: transparent;
    border: none;
    color: #991b1b;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-remove-cart-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cart Summary & Checkout Box */
.cart-summary-box {
    background: #faf8f5;
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.cart-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.cart-sum-row.total {
    border-top: 1px dashed var(--border-gold);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.cart-sum-row.total span:last-child {
    color: var(--gold-hover);
    font-size: 1.15rem;
}

.btn-toggle-cart-form {
    width: 100%;
    background: linear-gradient(135deg, #0c3823 0%, #17653e 100%);
    color: #f7eedb;
    border: 1.5px solid var(--gold);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(12, 56, 35, 0.3);
    transition: var(--transition);
}

.btn-toggle-cart-form:hover {
    background: linear-gradient(135deg, #17653e 0%, #0c3823 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

.cart-checkout-form {
    margin-top: 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cart-form-header {
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.cart-form-header h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.cart-form-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-delivery-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cart-delivery-type .delivery-card {
    padding: 8px 10px;
}

/* Global Notification Toast */
.elkaid-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #072517 0%, #0c3823 100%);
    color: #fff;
    border: 1.5px solid var(--gold);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.elkaid-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    background: var(--gold);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

@media (max-width: 576px) {
    .cart-drawer {
        width: 100%;
    }
    .sticky-order-bar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .sticky-actions {
        width: 100%;
        justify-content: space-between;
    }
    .sticky-actions button {
        flex: 1;
    }
}
