/* ==========================================================================
   HomeSol - Egyptian Arabic High-Converting E-Commerce CSS
   Design: Modern Mobile-First RTL Funnel Style (Zero Horizontal Scroll)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
    --font-primary: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Color Palette */
    --color-primary: #0F172A;
    /* Deep Slate / Dark Navy */
    --color-primary-light: #1E293B;
    /* Slate Neutral */
    --color-accent: #16A34A;
    /* High-Converting Energetic Green */
    --color-accent-hover: #15803D;
    /* Darker Green for Hover */
    --color-accent-light: #DCFCE7;
    /* Soft Light Green background */
    --color-orange: #F97316;
    /* Urgency & Discount Orange */
    --color-orange-light: #FFEDD5;
    /* Soft Orange */

    --bg-main: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    /* Layout & Spacing */
    --container-max-width: 1140px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 10px 25px rgba(22, 163, 74, 0.4);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Strict Mobile Boundary Protection
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   3. Typography & Badges
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.highlight-text {
    color: var(--color-accent);
    position: relative;
    display: inline;
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-accent-light);
    color: #15803D;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    border: 1px solid rgba(22, 163, 74, 0.2);
    max-width: 100%;
    box-sizing: border-box;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.text-emerald {
    color: var(--color-accent) !important;
}

.text-success {
    color: #16A34A !important;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.btn-primary {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(22, 163, 74, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-header {
    width: auto;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-header:hover {
    background-color: var(--color-accent-hover);
}

.btn-submit {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
    margin-top: 1rem;
    line-height: 1.3;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.5);
}

/* Keyframe Pulse Animation for CTAs */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.pulse-btn {
    animation: pulseGlow 2.5s infinite;
}

/* --------------------------------------------------------------------------
   5. Announcement Bar & Header
   -------------------------------------------------------------------------- */
.announcement-bar {
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseGlow 1.5s infinite;
}

.top-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sticky-header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-tertiary);
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-primary);
}

.custom-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.15rem;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 1.75rem 0 2.5rem;
    background: radial-gradient(circle at top right, rgba(220, 252, 231, 0.5) 0%, rgba(255, 255, 255, 1) 60%);
    width: 100%;
    box-sizing: border-box;
}

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

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
}

.hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 0.975rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.925rem;
    color: var(--text-primary);
}

.benefit-icon {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.hero-cta-box {
    background-color: #FFFFFF;
    padding: 1.1rem 0.9rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--bg-tertiary);
    width: 100%;
    box-sizing: border-box;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.old-price {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--color-accent);
}

.current-price small {
    font-size: 0.9rem;
    font-weight: 700;
}

.discount-badge {
    background-color: var(--color-orange-light);
    color: var(--color-orange);
    font-weight: 800;
    font-size: 0.775rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.btn-hero {
    margin-bottom: 0.75rem;
}

.hero-guarantee {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.4rem;
    font-size: 0.775rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    text-align: center;
}

.hero-guarantee i {
    color: var(--color-accent);
}

/* Hero Media Display */
.hero-media {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.media-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-tertiary);
    border: 3px solid #FFFFFF;
    width: 100%;
    box-sizing: border-box;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sale-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-orange);
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.stock-warning {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    padding: 0.5rem 0.3rem;
    text-align: center;
    font-size: 0.8rem;
}

.stock-warning i {
    color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   7. Trust Stats Bar
   -------------------------------------------------------------------------- */
.trust-bar {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

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

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.trust-item i {
    font-size: 1.4rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.trust-text span {
    font-size: 0.725rem;
    color: #94A3B8;
}

/* --------------------------------------------------------------------------
   8. Feature Showcase Section
   -------------------------------------------------------------------------- */
.features-section {
    padding: 2.5rem 0;
    background-color: var(--bg-secondary);
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.section-tag {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.35rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.925rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-tertiary);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .feature-card {
        grid-template-columns: 1fr 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }

    .feature-card.reverse {
        direction: ltr;
    }

    .feature-card.reverse>* {
        direction: rtl;
    }
}

.feature-media img {
    border-radius: var(--radius-md);
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.feature-number {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(22, 163, 74, 0.2);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.925rem;
}

.feature-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-checklist i {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Social Proof / Testimonials
   -------------------------------------------------------------------------- */
.testimonials-section {
    padding: 2.5rem 0;
    background-color: var(--bg-main);
    width: 100%;
    box-sizing: border-box;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.review-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.1rem 0.9rem;
    border: 1px solid var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.reviewer-avatar.accent {
    background-color: var(--color-accent);
}

.reviewer-avatar.third {
    background-color: var(--color-orange);
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

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

.star-rating {
    color: #F59E0B;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    display: flex;
    gap: 0.15rem;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-date {
    font-size: 0.725rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Checkout Section (High-Trust Form - Zero Overflow)
   -------------------------------------------------------------------------- */
.checkout-section {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%);
    border-top: 1px solid var(--bg-tertiary);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.checkout-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 0.85rem;
    border: 2px solid var(--color-accent-light);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 768px) {
    .checkout-wrapper {
        padding: 2.75rem 2.25rem;
    }
}

.checkout-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.urgency-badge {
    display: inline-block;
    background-color: var(--color-orange-light);
    color: var(--color-orange);
    font-weight: 800;
    font-size: 0.775rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    text-align: center;
}

.checkout-header h2 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .checkout-header h2 {
        font-size: 1.8rem;
    }
}

.checkout-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    font-weight: 700;
    font-size: 0.925rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    color: var(--color-accent);
}

.required {
    color: #EF4444;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 0.75rem 0.85rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.error-msg {
    color: #EF4444;
    font-size: 0.775rem;
    display: none;
    font-weight: 600;
}

.error-msg.visible {
    display: block;
}

/* Quantity Bundle Selector Cards */
.quantity-bundles {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.2rem;
    width: 100%;
    box-sizing: border-box;
}

.bundle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.6rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    background-color: #FFFFFF;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.bundle-option:hover {
    border-color: var(--color-accent);
}

.bundle-option.active {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}

.bundle-option.highlight {
    border-color: var(--color-orange);
}

.bundle-option input[type="radio"] {
    margin-left: 0.4rem;
    accent-color: var(--color-accent);
    transform: scale(1.1);
    flex-shrink: 0;
}

.bundle-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 120px;
}

.bundle-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.bundle-price {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.85rem;
}

.bundle-price small {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.75rem;
    margin-right: 0.2rem;
}

.bundle-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.bundle-tag.best-seller {
    background-color: var(--color-orange-light);
    color: var(--color-orange);
}

.custom-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.custom-quantity-wrapper input {
    width: 70px;
    text-align: center;
    padding: 0.4rem;
}

/* Order Summary */
/* Payment Methods Styling */
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.payment-method-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    cursor: pointer;
    background-color: #FFFFFF;
    transition: var(--transition-fast);
    position: relative;
    user-select: none;
}

.payment-method-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-method-card.active {
    border-color: var(--color-accent);
    background-color: #F0FDF4;
}

.payment-card-radio {
    margin-top: 0.2rem;
}

.payment-card-radio input[type="radio"] {
    accent-color: var(--color-accent);
    transform: scale(1.2);
    cursor: pointer;
}

.payment-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.payment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.payment-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.cod-badge {
    background-color: #E2E8F0;
    color: #334155;
}

.instant-badge {
    background-color: #DCFCE7;
    color: #16A34A;
}

.online-discount-badge {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    letter-spacing: 0.02em;
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.online-discount-row {
    background-color: #FEF2F2;
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid #FECACA;
}

.online-discount-row .online-discount-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #B91C1C;
    font-weight: 700;
}

.text-red {
    color: #DC2626 !important;
}

.payment-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.payment-icons-strip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.pay-icon-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pay-icon-tag i {
    font-size: 0.85rem;
    color: var(--color-primary);
}

.order-summary-box {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem 0.85rem;
    border: 1px dashed #CBD5E1;
    margin-top: 0.25rem;
    width: 100%;
    box-sizing: border-box;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    gap: 0.5rem;
}

.summary-divider {
    border: none;
    border-top: 1px solid #CBD5E1;
    margin: 0.6rem 0;
}

.total-line {
    margin-bottom: 0;
}

.total-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
}

.total-amount {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-accent);
}

/* Trust Badges Footer */
.form-trust-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-tertiary);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.2;
}

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

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    padding: 1.5rem 1.1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

.modal-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
}

.order-details-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    text-align: right;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: var(--color-primary);
    color: #94A3B8;
    padding: 2.5rem 0 1.25rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 800;
}

.footer-description {
    max-width: 480px;
    font-size: 0.825rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.775rem;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.dot-separator {
    color: #475569;
}

.footer-bottom {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    width: 100%;
}

/* --------------------------------------------------------------------------
   12. Extreme Small Device Scaling (< 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .container {
        padding-right: 0.6rem;
        padding-left: 0.6rem;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 0.9rem;
    }

    .logo a {
        font-size: 1.05rem;
    }

    .btn-header {
        font-size: 0.775rem;
        padding: 0.35rem 0.65rem;
    }
}

/* ==========================================================================
   13. Scroll Experience — 3D Pinned Scene
   ========================================================================== */

/* The tall wrapper — 200vh gives 2 stages of scrollable space (hero + finger) */
.scroll-experience-wrapper {
    height: 200vh;
    width: 100%;
    position: relative;
    background-color: #09090F;
}

/* The sticky viewport — pinned programmatically by GSAP ScrollTrigger */
.sticky-viewport {
    position: relative;
    top: 0;
    left: 0;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    overflow: hidden;
    background-color: #09090F;
}

/* ── Layer 0: Dark background ── */
.scroll-bg {
    position: absolute;
    inset: 0;
    background-color: #09090F;
    z-index: 0;
}

/* ── Layer 1: Stage 1 Hero Title Text (In FRONT of canvas, z-index 5) ── */
.hero-top-text,
.hero-bottom-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-top-text {
    top: 15%;
}

.hero-bottom-text {
    top: 65%;
}

.hero-top-text h1,
.hero-bottom-text h1 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(4rem, 11vw, 6rem);
    line-height: 1.05;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 0 35px rgba(22, 163, 74, 0.35);
    margin: 0;
    white-space: nowrap;
}

/* ── Layer 2: Stage background images ── */
.stage-bg-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    padding: 1rem;
}

.stage-bg-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ─── Stage 2: Finger image — fills the ENTIRE viewport ─── */
#bg-stage-2 {
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

#bg-stage-2 img {
    /* ── Adjust scale and offset here ── */
    --finger-scale: 1.4;
    --finger-offset-x: 25%;
    --finger-offset-y: 0px;

    height: 90vh;
    width: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;

    /* This line applies the scale and offset! */
    transform: translateX(var(--finger-offset-x)) translateY(var(--finger-offset-y)) scale(var(--finger-scale));
    transform-origin: bottom center;
}



/* ── Layer 3: Three.js canvas ── */
#model-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 3;
    pointer-events: none;
    display: block;
}

/* ── Layer 4: Text overlays (above canvas) ── */
.stage-text-overlay {
    position: absolute;
    z-index: 4;
    opacity: 0;
    color: #FFFFFF;
    text-align: center;
    pointer-events: none;
    direction: rtl;
}

.stage-text-overlay h2 {
    font-family: var(--font-primary);
    font-weight: 900;
    top: 200px;
    font-size: clamp(2.6rem, 8vw, 4rem);
    line-height: 1.15;
    color: #FFFFFF;
    text-shadow: 0 3px 25px rgba(0, 0, 0, 0.95), 0 0 30px rgba(22, 163, 74, 0.3);
    margin-bottom: 0.4rem;
}

.stage-text-overlay p {
    font-size: clamp(1.1rem, 3.8vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Stage 2 text — positioned at top of screen */
.side-text {
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 94%;
}

/* Stage 3 text — removed (only 2 sections now) */


/* ── Layer 5a: Hero label — small text IN FRONT of canvas below bottom title ── */
.stage-hero-label {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    pointer-events: none;
    opacity: 1;
    width: 90%;
}

.stage-hero-label p {
    font-family: var(--font-primary);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* ── CTA button at end of scroll experience ── */
.stage-cta-bottom {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    pointer-events: auto;
    text-align: center;
    white-space: nowrap;
}

/* ── Layer 5: Loading overlay ── */
.scene-loading {
    position: absolute;
    inset: 0;
    background: #09090F;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-inner {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1rem;
}

/* ── Scroll indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ── Mobile: stacked layout for stages ── */
@media (max-width: 768px) {

    /* Finger image: bottom fill */
    #bg-stage-2 img {
        max-width: 95%;
        max-height: 52vh;
    }

    /* Hand image: center fill */
    #bg-stage-3 img {
        max-width: 95%;
        max-height: 48vh;
    }

    .stage-text-overlay h2 {
        font-size: 1.4rem;
    }

    .stage-hero-label p {
        white-space: normal;
        max-width: 85vw;
    }
}

/* ==========================================================================
   14. How-to-Use Section
   ========================================================================== */

.how-to-section {
    padding: 4rem 0;
    background-color: var(--color-primary);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.how-to-section .section-header {
    margin-bottom: 2.5rem;
}

.how-to-section .section-tag {
    color: var(--color-accent);
}

.how-to-section .section-title {
    color: #FFFFFF;
}

.how-to-section .section-subtitle {
    color: #94A3B8;
}

/* 3-column grid → stacked on mobile */
.how-to-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .how-to-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

/* Individual how-to card */
.how-to-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    width: 100%;
    box-sizing: border-box;
}

.how-to-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.how-to-card-img {
    width: 100%;
    overflow: hidden;
}

.how-to-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.how-to-card:hover .how-to-card-img img {
    transform: scale(1.04);
}

/* Vimeo wrapper */
.vimeo-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.vimeo-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    pointer-events: auto;
}

.video-how-to-card .vimeo-wrapper {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card body */
.how-to-card-body {
    padding: 1.25rem 1.1rem;
}

.how-to-step {
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(22, 163, 74, 0.25);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.how-to-card-body h3 {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.how-to-card-body p {
    color: #94A3B8;
    font-size: 0.875rem;
    line-height: 1.55;
}

.how-to-card-body p strong {
    color: var(--color-accent);
}

.how-to-card-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: block;
}

/* --------------------------------------------------------------------------
   Sticky Footer (CTA)
   -------------------------------------------------------------------------- */
.sticky-cta-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.15rem;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
}

.sticky-cta-footer:hover {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    color: #FFF;
}

body {
    padding-bottom: 60px;
    /* Space for the sticky footer */
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 74px;
    right: 18px;
    z-index: 1002;
    background: #25D366;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.15rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    transition: all 0.25s ease;
    direction: rtl;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: waPulse 2.8s infinite;
}

.floating-whatsapp-btn:hover {
    background: #20BA56;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.65);
    color: #FFFFFF;
}

.whatsapp-btn-text {
    font-size: 0.95rem;
    color: #FFFFFF;
    white-space: nowrap;
}

.whatsapp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #FFFFFF;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    }

    50% {
        box-shadow: 0 4px 22px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.15);
    }

    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    }
}

@media (max-width: 480px) {
    .floating-whatsapp-btn {
        bottom: 70px;
        right: 14px;
        padding: 0.55rem 1rem;
        font-size: 0.88rem;
    }

    .whatsapp-btn-icon {
        font-size: 1.25rem;
    }
}