/* ==========================================================================
   Chicken Al Omar (فراخ آل عمر) - Design System & Custom Stylesheet
   Primary: Deep Red (#C8102E)
   Secondary: White (#FFFFFF)
   Accent: Gold (#D4AF37)
   Background: Light Gray / White (#F8F9FA / #FFFFFF)
   Font: Cairo (Google Fonts)
   ========================================================================== */

:root {
    --primary-color: #C8102E;
    --primary-hover: #A00C23;
    --primary-light: #FFF0F2;
    --gold-color: #D4AF37;
    --gold-hover: #B59226;
    --gold-gradient: linear-gradient(135deg, #F3C649 0%, #D4AF37 50%, #AA820A 100%);
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(200, 16, 46, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography & Utility Colors */
.text-red { color: var(--primary-color) !important; }
.text-gold { color: var(--gold-color) !important; }
.green-text { color: #16A34A !important; }

.highlight-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    user-select: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.15rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #E2E8F0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #CBD5E1;
}

.btn-outline-dark {
    background-color: transparent;
    border-color: #CBD5E1;
    color: var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: #F1F5F9;
}

.w-100 { width: 100% !important; }
.mb-2 { margin-bottom: 0.75rem !important; }
.mt-3 { margin-top: 1rem !important; }

/* Pulse Glow Animation for High conversion */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(200, 16, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}
.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #FFFFFF;
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-right: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    pointer-events: auto;
    animation: slideInLeft 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.toast.toast-success { border-right-color: #16A34A; }
.toast.toast-warning { border-right-color: var(--gold-color); }

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Announcement Bar */
.announcement-bar {
    background: #111827;
    color: #F8FAFC;
    font-size: 0.85rem;
    padding: 6px 0;
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gold-badge-sm {
    color: var(--gold-color);
    font-weight: 700;
}

/* Header & Glassmorphism Navigation */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-fast);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gold-color);
    object-fit: cover;
}

.brand-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
}

.brand-subtitle {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-trigger-btn {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(200, 16, 46, 0.2);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.cart-trigger-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.cart-badge {
    background: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-trigger-btn:hover .cart-badge {
    background: #FFFFFF;
    color: var(--primary-color);
}

.cart-total-preview {
    font-size: 0.85rem;
    font-weight: 800;
}

.admin-toggle-btn {
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.admin-toggle-btn:hover {
    background: #E2E8F0;
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.gold-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #B59226;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.25;
    color: #0F172A;
    margin-bottom: 1.25rem;
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.trust-badge-item i {
    color: var(--gold-color);
    font-size: 1.1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #FFFFFF;
}

.hero-main-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-card:hover .hero-main-img {
    transform: scale(1.03);
}

.floating-badge-gold {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gold-gradient);
    color: #FFFFFF;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    text-align: center;
}

.badge-number {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.badge-label {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Features Ribbon */
.features-ribbon {
    background: #FFFFFF;
    padding: 2.5rem 0;
    border-y: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.features-ribbon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ribbon-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    transition: var(--transition-fast);
}

.ribbon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: #FFFFFF;
}

.ribbon-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ribbon-text h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.ribbon-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--gold-color);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #0F172A;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* Products Section & Dynamic Cards */
.products-section {
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.3);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(200,16,46,0.3);
}

.product-image-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: #F1F5F9;
    overflow: hidden;
}

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

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

.product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--gold-color);
    font-weight: 700;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-price-tag {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price-tag span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Modern Quantity Selector */
.quantity-selector-box {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: #FFFFFF;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.qty-display {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
}

.product-subtotal-bar {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1rem;
    background: var(--primary-light);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Why Choose Us Grid */
.why-us-section {
    padding: 5rem 0;
    background: #FFFFFF;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-color);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Customer Reviews Slider */
.reviews-section {
    padding: 5rem 0;
}

.reviews-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.review-card {
    background: #FFFFFF;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stars {
    color: #F59E0B;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: #334155;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-name {
    font-size: 0.95rem;
    font-weight: 800;
}

.reviewer-city {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    cursor: pointer;
    font-size: 1rem;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

/* FAQ Accordion */
.faq-section {
    padding: 5rem 0;
    background: #FFFFFF;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: #F8FAFC;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    cursor: pointer;
    text-align: right;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #FFFFFF;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 1rem 1.25rem 1.25rem;
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Sticky Bottom Cart Bar (Mobile/Desktop preview) */
.sticky-cart-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    padding: 12px 0;
    transition: bottom 0.4s ease;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.2);
}

.sticky-cart-bar.active {
    bottom: 0;
}

.sticky-cart-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.divider { opacity: 0.3; }

/* Slide-out Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 420px;
    max-width: 90vw;
    background: #FFFFFF;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--primary-color);
}

.cart-body {
    padding: 1.25rem;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

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

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 800;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background: #F8FAFC;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.grand-total-line {
    font-size: 1.2rem;
    font-weight: 900;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* Modals General */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
}

.modal-body {
    padding: 1.5rem;
}

/* Checkout Form & COD Badge */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.req { color: var(--primary-color); }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
    background: #FFFFFF;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-half { flex: 1; }

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    color: var(--text-muted);
}

.input-icon-wrapper input {
    padding-right: 38px;
}

.payment-box-cod {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.cod-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cod-badge {
    background: #16A34A;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
}

.checkout-summary-box {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.checkout-items-list {
    max-height: 240px;
    overflow-y: auto;
    margin: 1rem 0;
}

/* Success Modal */
.success-modal-content {
    max-width: 480px;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.success-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #F0FDF4;
    color: #16A34A;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

/* Admin Dashboard & Product Editing Modal */
.admin-modal-container {
    max-width: 1000px;
}

.admin-badge {
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.admin-top-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: #F1F5F9;
    font-weight: 800;
}

.admin-prod-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.action-btn-group {
    display: flex;
    gap: 6px;
}

.edit-btn {
    background: #E0F2FE;
    color: #0284C7;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
}

.edit-btn:hover {
    background: #0284C7;
    color: #FFFFFF;
}

.delete-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
}

.delete-btn:hover {
    background: #DC2626;
    color: #FFFFFF;
}

/* Edit Product Modal Form Styling (CRITICAL FIX FOR USER EDITING SYSTEM) */
.edit-product-container {
    max-width: 600px;
    pointer-events: auto !important;
}

.edit-product-form input, 
.edit-product-form select, 
.edit-product-form textarea {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    font-size: 16px !important; /* Prevents mobile browser auto-zoom */
}

.image-preset-picker {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.img-preset-btn {
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
}

.img-preset-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Footer */
.main-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1E293B;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold-color);
}

.footer-logo h3 {
    color: #FFFFFF;
    font-size: 1.3rem;
}

.footer-logo .tagline {
    color: var(--gold-color);
    font-size: 0.7rem;
}

.footer-bio {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1E293B;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    background: #090D16;
    padding: 1.25rem 0;
    font-size: 0.85rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Tax Info Announcement Bar Styling
   ========================================================================== */
.tax-info-announcement {
    font-size: 0.78rem;
    color: #9CA3AF;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES - Mobile First
   Desktop (> 1024px) is UNCHANGED. Only mobile/tablet layouts are adjusted.
   ========================================================================== */

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {
    /* Hero: stack vertically */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-subheadline { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-trust-badges { justify-content: center; }

    /* Features: 2 columns */
    .features-ribbon-grid { grid-template-columns: repeat(2, 1fr); }

    /* Products: 2 columns */
    .products-grid { grid-template-columns: repeat(2, 1fr); }

    /* Why-us: 2 columns */
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }

    /* Reviews: single column on tablet */
    .reviews-slider {
        grid-template-columns: 1fr;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        display: flex;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    .review-card {
        min-width: 80%;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Checkout: single column */
    .checkout-grid { grid-template-columns: 1fr; }

    /* Footer: single column */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Admin modal wider */
    .admin-modal-container { max-width: 95vw; }
}

/* ---- Mobile: 768px and below ---- */
@media (max-width: 768px) {
    /* --- Announcement Bar --- */
    .announcement-bar { padding: 5px 0; }
    .announcement-content {
        flex-direction: column;
        gap: 3px;
        align-items: center;
        text-align: center;
        font-size: 0.75rem;
    }
    .tax-info-announcement { font-size: 0.7rem; }
    .gold-badge-sm { font-size: 0.75rem; }

    /* --- Navigation --- */
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        display: none;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        gap: 0.25rem;
    }
    .nav-links.active { display: flex; }
    .nav-link { padding: 10px 0; font-size: 1rem; width: 100%; border-bottom: 1px solid #F1F5F9; }
    .nav-link:last-child { border-bottom: none; }
    .mobile-menu-btn { display: block; }

    /* --- Header --- */
    .header-content { height: 64px; gap: 8px; }
    .brand-title { font-size: 1.1rem; }
    .brand-subtitle { font-size: 0.6rem; }
    .brand-logo-img { width: 40px; height: 40px; }

    /* Hide cart total preview text on small screens */
    .cart-total-preview { display: none; }

    /* Shrink admin toggle labels on mobile */
    .admin-toggle-btn span { display: none; }
    .admin-toggle-btn { padding: 8px 10px; }
    .admin-active-badge span { display: none; }

    /* --- Hero Section --- */
    .hero-section { padding: 2.5rem 0 3rem; }
    .hero-headline { font-size: 1.85rem; line-height: 1.3; }
    .hero-subheadline { font-size: 1rem; }
    .hero-main-img { height: 260px; }
    .hero-buttons { flex-direction: column; gap: 0.75rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-trust-badges { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .trust-badge-item { font-size: 0.82rem; }
    .floating-badge-gold { padding: 10px 16px; bottom: 12px; right: 12px; }
    .badge-number { font-size: 1.3rem; }

    /* --- Features Ribbon --- */
    .features-ribbon { padding: 1.5rem 0; }
    .features-ribbon-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .ribbon-card { padding: 0.75rem; gap: 0.75rem; }
    .ribbon-icon { width: 44px; height: 44px; font-size: 1.2rem; flex-shrink: 0; }
    .ribbon-text h3 { font-size: 0.88rem; }
    .ribbon-text p { font-size: 0.75rem; }

    /* --- Section Headers --- */
    .section-title { font-size: 1.6rem; }
    .section-header { margin-bottom: 2rem; }

    /* --- Products --- */
    .products-section { padding: 3rem 0; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .product-image-box { height: 170px; }
    .product-content { padding: 1rem; }
    .product-name { font-size: 1rem; }
    .product-price-tag { font-size: 1rem; }
    .qty-btn { width: 32px; height: 32px; font-size: 1rem; }

    /* --- Why Us --- */
    .why-us-section { padding: 3rem 0; }
    .why-us-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .why-card { padding: 1.25rem; }
    .why-icon { width: 50px; height: 50px; font-size: 1.4rem; }
    .why-card h3 { font-size: 1.05rem; }
    .why-card p { font-size: 0.88rem; }

    /* --- Reviews --- */
    .reviews-section { padding: 3rem 0; }
    .reviews-wrapper { max-width: 100%; }
    .review-card { padding: 1.25rem; }

    /* --- FAQ --- */
    .faq-section { padding: 3rem 0; }
    .faq-question { font-size: 0.95rem; padding: 1rem; }

    /* --- Sticky Cart Bar --- */
    .sticky-cart-inner { flex-direction: row; gap: 0.5rem; }
    .sticky-cart-info { font-size: 0.85rem; gap: 8px; }
    .sticky-cart-info .divider { display: none; }

    /* --- Cart Drawer --- */
    .cart-drawer { width: 100%; max-width: 100%; }

    /* --- Modals --- */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-container {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 92vh;
        width: 100%;
        max-width: 100%;
    }
    .modal-body { padding: 1rem; }
    .modal-header { padding: 1rem; }
    .login-modal-container {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .edit-product-container {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .admin-modal-container {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    /* --- Checkout Form --- */
    .checkout-grid { grid-template-columns: 1fr; gap: 1rem; }
    .form-row { flex-direction: column; gap: 0; }

    /* --- Admin Table: scrollable on mobile --- */
    .admin-products-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 600px; }
    .admin-top-actions { flex-direction: column; }

    /* --- Footer --- */
    .main-footer { padding: 2.5rem 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2rem; }
    .footer-bottom-content { flex-direction: column; gap: 8px; text-align: center; }

    /* --- Buttons: larger tap targets on mobile --- */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }

    /* --- Toast: right side on mobile (RTL) --- */
    .toast-container { left: auto; right: 12px; top: 12px; }
}

/* ---- Small Mobile: 480px and below ---- */
@media (max-width: 480px) {
    .hero-headline { font-size: 1.55rem; }
    .hero-main-img { height: 220px; }

    /* Stack features ribbon 1 column on very small screens */
    .features-ribbon-grid { grid-template-columns: 1fr; }

    /* Products: single column on small phones */
    .products-grid { grid-template-columns: 1fr; }

    /* Why-us: single column */
    .why-us-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 1.4rem; }

    /* Hero trust badges: 1 col on very small */
    .hero-trust-badges { grid-template-columns: 1fr; }

    /* Brand logo area compact */
    .brand-logo-link { gap: 8px; }
    .brand-logo-img { width: 36px; height: 36px; }
    .brand-title { font-size: 1rem; }

    /* Header action area compact */
    .header-actions { gap: 6px; }
    .cart-trigger-btn { padding: 7px 10px; }

    /* Product cards: full width, compact */
    .product-image-box { height: 200px; }

    /* Admin modal actions: column on small */
    .modal-footer-actions { flex-direction: column; }
    .modal-footer-actions .btn { width: 100%; }
}

/* ==========================================================================
   Admin Mode Security & Login Interface Styles
   ========================================================================== */
body:not(.is-admin-mode) .admin-only {
    display: none !important;
}

.login-modal-container {
    max-width: 440px;
}

.login-error-msg {
    background: #FEE2E2;
    color: #DC2626;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-right: 4px solid #DC2626;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.admin-active-badge {
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.tax-info-subtle {
    font-size: 0.75rem;
    color: #64748B;
    opacity: 0.75;
    margin-top: 4px;
    font-weight: 600;
}

/* Form hint / helper text */
.form-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Safe-area padding for iPhone notch/home bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .sticky-cart-bar {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Smooth scrolling for touch devices */
@media (hover: none) and (pointer: coarse) {
    .reviews-slider {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .cart-body, .checkout-items-list, .modal-container {
        -webkit-overflow-scrolling: touch;
    }
}


