/* Base Variables */
:root {
    --primary-color: #03A64A;
    --primary-dark: #027333;
    --primary-darker: #01401C;
    --bg-color: #0D0D0D;
    /* Updated to match brand dark grey/black */
    --text-color: #F2F2F2;
    --accent-color: #FFFFFF;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Tajawal', sans-serif;

    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    /* Unified Gradient Background: Radiant Green to Black */
    /* Using a brighter/neon green (#05E065) fading to black */
    background: linear-gradient(135deg, #05E065 0%, #024a20 30%, #000000 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-main {
    padding-top: 110px; /* fixed header offset */
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-img {
    height: 54px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo a {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: bold;
}

.logo .tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL alignment */
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-speed);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.search-input {
    width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
    transition: width 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

.search-wrap.expanded .search-input {
    width: 200px;
    min-width: 120px;
    padding: 10px 14px;
    opacity: 1;
}

.search-wrap .search-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.search-wrap .search-icon:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Keep symmetric padding so hero text doesn't shift */
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    /* Removed individual background */
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(3, 166, 74, 0.2), transparent 70%);
    z-index: 0;
}

.hero-content {
    z-index: 2;
    max-width: 46%;
}

.hero-content h2 {
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    margin-bottom: -10px;
    opacity: 0.5;
}

.hero-content h1 {
    font-size: 6rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #ccc;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition-speed);
    font-family: var(--font-body);
}

.primary-btn {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(3, 166, 74, 0.4);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.hero-image {
    z-index: 2;
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
}

.product-showcase {
    position: relative;
    width: 100%;
    height: auto;
}

.circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.circle-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 1px dashed var(--primary-color);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.product-img {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

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

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* About Section */
.about-section {
    padding: 100px 0;
    /* Removed individual background */
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.section-header h2 {
    font-size: 3rem;
    /* Use Arabic-friendly heading font */
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #bbb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition-speed);
}

.feature-item:hover {
    background: rgba(3, 166, 74, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Anton', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    display: block;
}

.about-image {
    flex: 1;
}

.about-image img {
    /* Revert to original or placeholder style */
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: min(820px, 85vh);
    /* Increased container height */
    min-width: 300px;
    /* Move image closer to right edge without affecting text */
    margin-right: clamp(-64px, -4vw, -16px);
}

.hero-slider {
    width: min(600px, 46vw);
    /* Wider on desktop */
    height: min(780px, 80vh);
    /* Responsive height */
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    /* الخلفية الخضراء تبقى ظاهرة */
    background: radial-gradient(circle, rgba(5, 224, 101, 0.15) 0%, rgba(5, 224, 101, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* لمعة متحركة مع درج أبيض على المساحة الفارغة دون إخفاء الأخضر */
.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 65%,
        transparent 100%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    animation: heroShineMove 4s ease-in-out infinite;
}
.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 25%,
        transparent 75%,
        rgba(255, 255, 255, 0.06) 100%
    );
    opacity: 0.9;
}
@keyframes heroShineMove {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: -100% 0; }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    /* Removed individual background */
    background: transparent;
}

.products-section .container {
    /* Wider container so 4 cards fit one row */
    max-width: 1700px;
    padding: 0 24px;
}

.products-grid {
    display: grid;
    /* 4 cards in one row on desktop */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
    justify-items: center;
}

/* Flip Card Styles */
.vibe-card {
    background-color: transparent;
    width: 100%;
    height: auto;
    /* Portrait cards so images look larger */
    aspect-ratio: 3 / 4;
    /* Adjust based on image aspect ratio */
    perspective: 1000px;
    cursor: pointer;
}

.vibe-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.vibe-card:hover .vibe-card-inner {
    transform: rotateY(180deg);
}

.vibe-card-front,
.vibe-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px;
}

.vibe-card-front {
    background-color: transparent;
}

.vibe-card-back {
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    padding: 0;
    box-shadow: 0 0 20px rgba(3, 166, 74, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.vibe-card-back-content {
    flex: 1;
    overflow: auto;
    padding: 20px 18px 16px;
    text-align: center;
}

.vibe-card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.vibe-card-back .vibe-tagline {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #ddd;
}

.vibe-card-back .price {
    display: block;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vibe-card-details {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #aaa;
    margin: 0 0 10px 0;
}

.vibe-card-details:last-child {
    margin-bottom: 0;
}

.vibe-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-self: stretch;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}
.vibe-card-actions .btn-details {
    flex-shrink: 0;
    padding: 14px 18px;
    border-radius: 0;
    text-align: center;
}
.vibe-card-actions .add-to-cart-bar {
    flex: 1;
    min-width: 0;
    border-radius: 0;
}

.add-to-cart-bar {
    margin-top: 0;
    padding: 14px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.add-to-cart-bar:hover {
    background: var(--primary-dark);
}

/* نافذة منبثقة المنتج */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.product-modal.open {
    opacity: 1;
    visibility: visible;
}
.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}
.product-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: auto;
    background: rgba(13, 13, 13, 0.98);
    border: 1px solid rgba(3, 166, 74, 0.4);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.product-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}
.product-modal-close:hover {
    background: rgba(3, 166, 74, 0.3);
    color: var(--primary-color);
}
.product-modal-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
}
.product-modal-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.product-modal-tagline {
    font-size: 0.95rem;
    color: rgba(242, 242, 242, 0.8);
    margin-bottom: 10px;
}
.product-modal-price {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}
.product-modal-details {
    text-align: right;
    margin-bottom: 20px;
}
.product-modal-detail {
    font-size: 0.9rem;
    color: rgba(242, 242, 242, 0.75);
    line-height: 1.6;
    margin: 0 0 8px 0;
}
.product-modal-add {
    width: 100%;
    justify-content: center;
    gap: 8px;
}

/* Updated Vibe Img Style for Flip Card */
.vibe-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Feature Section */
.feature-section {
    padding: 100px 0;
    background: transparent;
}

.feature-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    /* Stack on smaller screens */
}

.feature-image {
    flex: 0.8;
    min-width: 250px;
    text-align: center;
}

.feature-image img {
    max-width: 80%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
}

/* Scent Pulse Animation */
.feature-image img {
    animation: scentPulse 3s infinite;
}

@keyframes scentPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 224, 101, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(5, 224, 101, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(5, 224, 101, 0);
    }
}

.feature-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-color);
}

.feature-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    /* Apply Tajawal to Arabic heading */
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ccc;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: transparent;
}

.testimonials-slider {
    position: relative;
    margin-top: 10px;
    padding: 0 56px; /* space for nav buttons */
}

.testimonials-viewport {
    overflow: hidden;
    border-radius: 18px;
    max-width: 1100px; /* force slider behavior (not all cards at once) */
    margin: 0 auto;
    touch-action: pan-y;
    cursor: grab;
}

.testimonials-viewport:active {
    cursor: grabbing;
}

.testimonials-track {
    display: flex;
    gap: 18px;
    will-change: transform;
    transition: transform 0.55s ease;
    padding: 6px;
}

.testimonial-card {
    min-width: min(420px, 90vw);
    background: rgba(13, 13, 13, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.testimonial-quote {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #e9e9e9;
    margin-bottom: 18px;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-color);
}

.testimonial-stars {
    color: #FFD54A;
    display: inline-flex;
    gap: 4px;
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 13, 13, 0.65);
    color: #fff;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.testimonials-nav:hover {
    transform: translateY(-50%) scale(1.03);
    background: rgba(13, 13, 13, 0.82);
}

.testimonials-nav.prev {
    left: 18px;
}

.testimonials-nav.next {
    right: 18px;
}

.testimonials-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(242, 242, 242, 0.25);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.testimonials-dot.active {
    width: 26px;
    background: rgba(3, 166, 74, 0.9);
}

@media (max-width: 900px) {
    .testimonials-nav.prev {
        left: 6px;
    }

    .testimonials-nav.next {
        right: 6px;
    }
}

@media (max-width: 600px) {
    .testimonials-nav {
        display: none;
    }

    .testimonials-slider {
        padding: 0;
    }

    .testimonials-track {
        gap: 14px;
    }
}

/* Footer */
footer {
    /* Removed individual background */
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent for readability if needed */
    padding: 50px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Actions (WhatsApp + Call) */
.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(13, 13, 13, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: var(--font-body);
    font-weight: 700;
}

.floating-action i {
    font-size: 1.2rem;
}

.floating-action.whatsapp {
    background: linear-gradient(135deg, rgba(3, 166, 74, 0.95), rgba(2, 115, 51, 0.9));
}

.floating-action.call {
    background: linear-gradient(135deg, rgba(242, 242, 242, 0.22), rgba(13, 13, 13, 0.78));
    border-color: rgba(5, 224, 101, 0.25);
}

.floating-action.cart {
    background: linear-gradient(135deg, rgba(3, 166, 74, 0.25), rgba(13, 13, 13, 0.85));
    border-color: rgba(3, 166, 74, 0.5);
    position: relative;
    overflow: hidden;
}

.cart-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0.6;
}

.cart-strip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(3, 166, 74, 0.6), transparent);
    animation: cartStripMove 2s ease-in-out infinite;
}

.floating-action.cart.has-items .cart-strip {
    background: rgba(3, 166, 74, 0.3);
    opacity: 1;
}

.floating-action.cart.has-items .cart-strip::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: cartStripMove 1.2s ease-in-out infinite;
}

@keyframes cartStripMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(200%); }
}

.cart-count {
    min-width: 1.25em;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    margin-right: 4px;
}

.floating-action.cart.has-items .cart-count {
    background: var(--primary-color);
}

/* تأثير الألعاب النارية عند إضافة منتج للسلة */
.floating-action.cart.cart-celebrate {
    animation: cartCelebratePulse 0.5s ease-out;
}
@keyframes cartCelebratePulse {
    0% { transform: scale(1); box-shadow: 0 4px 20px rgba(3, 166, 74, 0.4); }
    35% { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(3, 166, 74, 0.3), 0 0 30px rgba(3, 166, 74, 0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(3, 166, 74, 0.2), 0 6px 28px rgba(3, 166, 74, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 20px rgba(3, 166, 74, 0.35); }
}

.cart-firework-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 6px rgba(3, 166, 74, 0.9), 0 0 12px rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: cartParticleBurst 0.65s ease-out forwards;
    will-change: transform, opacity;
}
.cart-firework-particle:nth-child(odd) {
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 10px rgba(3, 166, 74, 0.5);
}
@keyframes cartParticleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

.floating-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

@media (max-width: 600px) {
    .floating-actions {
        right: 16px;
        bottom: 16px;
    }

    .floating-action {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 16px;
    }

    .floating-action span {
        display: none;
    }

    .floating-action .cart-count {
        display: inline-flex !important;
        position: absolute;
        top: 4px;
        left: 4px;
        margin: 0;
        padding: 2px 5px;
        font-size: 0.7rem;
    }
}

/* صفحة تفاصيل المنتج */
.product-details-section {
    padding: 80px 0 110px;
    background: transparent;
}
.product-details-box {
    max-width: 900px;
    margin: 0 auto;
}
.product-details-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 600;
    transition: opacity 0.2s;
}
.product-details-back:hover {
    opacity: 0.85;
}
.product-details-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    padding: 32px;
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid rgba(3, 166, 74, 0.35);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.product-details-image-wrap {
    position: sticky;
    top: 120px;
    text-align: center;
}
.product-details-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}
.product-details-info {
    min-width: 0;
}
.product-details-title {
    font-family: var(--font-body);
    font-size: 1.85rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.product-details-tagline {
    font-size: 1rem;
    color: rgba(242, 242, 242, 0.8);
    margin-bottom: 12px;
}
.product-details-price {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.product-detail-p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(242, 242, 242, 0.85);
    margin: 0 0 12px 0;
}
.product-details-add {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}
.product-details-not-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-color);
}
.product-details-not-found p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .product-details-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }
    .product-details-image-wrap {
        position: static;
    }
    .product-details-image {
        max-width: 220px;
    }
}

/* Checkout Page */
.checkout-section {
    padding: 80px 0 110px;
    background: transparent;
}

.checkout-box {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid rgba(3, 166, 74, 0.35);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.checkout-cart-empty {
    text-align: center;
    padding: 32px 20px;
    color: rgba(242, 242, 242, 0.85);
}
.checkout-cart-empty p {
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.checkout-cart-empty i {
    color: var(--primary-color);
    margin-left: 8px;
}

.checkout-cart-list {
    margin-bottom: 20px;
}
.checkout-cart-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}
.checkout-cart-row:last-child {
    border-bottom: none;
}
.checkout-cart-name {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-weight: 500;
}
.checkout-cart-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.checkout-cart-name-text {
    min-width: 0;
}
.checkout-cart-price {
    color: rgba(242, 242, 242, 0.75);
}
.checkout-cart-row-total {
    color: var(--primary-color);
    font-weight: 700;
    min-width: 60px;
    text-align: left;
}
.checkout-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}
.checkout-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(3, 166, 74, 0.5);
    background: rgba(3, 166, 74, 0.15);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.checkout-qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.checkout-qty-num {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    color: var(--text-color);
}
.checkout-cart-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.checkout-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.15rem;
    color: var(--text-color);
}
.checkout-subtotal strong {
    color: var(--primary-color);
    font-size: 1.25rem;
}
.checkout-btn-pay {
    width: 100%;
    justify-content: center;
    gap: 10px;
}

/* خطوة الدفع: تخطيط نموذج + فاتورة */
.checkout-payment-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}
.checkout-payment-form-wrap {
    position: relative;
}
.checkout-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.checkout-back-btn:hover {
    opacity: 0.85;
}
.checkout-payment-title,
.checkout-invoice-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.checkout-form label {
    display: block;
    margin-bottom: 16px;
}
.checkout-form label span {
    display: block;
    margin-bottom: 6px;
    color: rgba(242, 242, 242, 0.9);
    font-size: 0.95rem;
}
.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
}
.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: rgba(3, 166, 74, 0.6);
    outline: none;
}
.payment-methods {
    border: none;
    margin: 20px 0;
    padding: 0;
}
.payment-methods legend {
    margin-bottom: 12px;
    color: rgba(242, 242, 242, 0.9);
    font-size: 0.95rem;
}
.payment-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--text-color);
}
.payment-option input {
    width: auto;
    accent-color: var(--primary-color);
}
.payment-option i {
    color: var(--primary-color);
    width: 20px;
}
.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* نموذج دفع البطاقة */
.checkout-card-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.checkout-card-fields label {
    display: block;
    margin-bottom: 14px;
}
.checkout-card-fields label span {
    display: block;
    margin-bottom: 6px;
    color: rgba(242, 242, 242, 0.9);
    font-size: 0.95rem;
}
.checkout-card-fields input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
}
.checkout-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkout-card-form .btn-block {
    margin-top: 16px;
}

/* رسالة التأكيد */
.checkout-confirm-box {
    margin-top: 20px;
    padding: 24px 0;
    text-align: center;
}
.checkout-confirm-msg {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 20px;
}
.checkout-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* رسالة النجاح */
.checkout-success-box {
    margin-top: 20px;
    padding: 28px 0;
    text-align: center;
}
.checkout-success-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}
.checkout-success-msg {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}
.checkout-success-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout-invoice-wrap {
    position: sticky;
    top: 120px;
}
.checkout-invoice-box {
    max-width: 100%;
}
.checkout-invoice-list {
    margin-bottom: 16px;
}
.checkout-invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checkout-invoice-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(242, 242, 242, 0.9);
    min-width: 0;
}
.checkout-invoice-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.checkout-invoice-name-text {
    min-width: 0;
}
.checkout-invoice-value {
    color: var(--primary-color);
    font-weight: 600;
}
.checkout-invoice-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.15rem;
    color: var(--text-color);
}
.checkout-invoice-total strong {
    color: var(--primary-color);
    font-size: 1.25rem;
}

@media (max-width: 900px) {
    .checkout-payment-layout {
        grid-template-columns: 1fr;
    }
    .checkout-invoice-wrap {
        position: static;
    }
}
@media (max-width: 600px) {
    .checkout-box {
        padding: 24px 20px;
    }
    .checkout-cart-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .checkout-cart-name {
        grid-column: 1 / -1;
    }
    .checkout-cart-price {
        display: none;
    }
    .checkout-cart-row-total {
        text-align: left;
    }
}

/* Contact Page */
.contact-section {
    padding: 80px 0 110px;
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contact-form-and-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.business-details {
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(13, 13, 13, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    align-self: start;
}

.business-item + .business-item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.business-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.business-value {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.addresses-list {
    margin-top: 8px;
    display: grid;
    gap: 10px;
    color: #d6d6d6;
}

.addresses-list li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
}

.contact-card {
    padding: 24px;
    border-radius: 18px;
    background: rgba(13, 13, 13, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.contact-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: rgba(3, 166, 74, 0.12);
    border: 1px solid rgba(3, 166, 74, 0.35);
    color: var(--primary-color);
}

.contact-card h4 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}

.contact-card p {
    color: #cfcfcf;
    margin-bottom: 10px;
}

.contact-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-note {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(242, 242, 242, 0.7);
}

.contact-form-wrap {
    padding: 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form label {
    display: block;
    margin-bottom: 14px;
}

.contact-form label span {
    display: block;
    margin-bottom: 8px;
    color: #e8e8e8;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-color);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(3, 166, 74, 0.7);
    box-shadow: 0 0 0 4px rgba(3, 166, 74, 0.15);
}

.form-hint {
    margin-top: 12px;
    color: rgba(242, 242, 242, 0.75);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 32px;
    }

    .contact-card {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .contact-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin: 0 auto 8px;
        font-size: 0.9rem;
    }

    .contact-card h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .contact-link {
        font-size: 0.7rem;
        margin-top: 2px;
        word-break: break-all;
    }

    .contact-form-and-details {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-grid {
        gap: 6px;
        margin-bottom: 28px;
    }

    .contact-card {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .contact-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        margin: 0 auto 6px;
        font-size: 0.8rem;
    }

    .contact-card h4 {
        font-size: 0.72rem;
        margin-bottom: 2px;
    }

    .contact-link {
        font-size: 0.65rem;
    }
}

@media (max-width: 400px) {
    .contact-grid {
        gap: 4px;
    }

    .contact-card {
        padding: 8px 4px;
    }

    .contact-card h4 {
        font-size: 0.65rem;
    }

    .contact-link {
        font-size: 0.6rem;
    }
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 15px;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
    display: inline-block;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        flex-direction: column-reverse;
        padding-top: 100px;
        height: auto;
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        margin-top: 30px;
    }

    .hero-image {
        width: 100%;
        height: auto;
        min-height: 400px;
        justify-content: center;
        margin-right: 0;
    }

    .hero-slider {
        width: min(560px, 95%);
        height: 600px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .vibe-card {
        width: 320px;
        height: 320px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        padding-left: 0;
        margin-bottom: 40px;
    }

    .features-grid {
        justify-content: center;
    }

    .feature-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .feature-image,
    .feature-text {
        width: 100%;
        min-width: unset;
    }

    .feature-image img {
        max-width: 250px;
    }
}

/* وضع الجوال */
@media (max-width: 600px) {
    .navbar {
        padding: 12px 14px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .navbar .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-icons {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
        align-items: center;
        gap: 6px;
    }

    .search-wrap {
        flex-shrink: 0;
    }

    .hamburger {
        flex-shrink: 0;
    }

    .logo-img {
        height: 40px;
    }

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

    .logo .tagline {
        font-size: 0.7rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        padding: 24px 20px 32px;
        text-align: center;
        gap: 8px;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(5, 224, 101, 0.2);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 12px 16px;
        font-size: 1.05rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        transition: transform 0.3s, opacity 0.3s;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }

    .hero-image {
        min-height: 320px;
    }

    .hero-slider {
        width: 96%;
        max-width: 100%;
        height: 380px;
        min-height: 320px;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header h3 {
        font-size: 1.05rem;
    }

    /* سلايدر البطاقات على الجوال */
    .products-section .container {
        padding: 0 8px;
        overflow: hidden;
    }

    .products-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 24px;
        margin: 0 -8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(3, 166, 74, 0.5) transparent;
    }

    .products-grid::-webkit-scrollbar {
        height: 6px;
    }

    .products-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .products-grid::-webkit-scrollbar-thumb {
        background: rgba(3, 166, 74, 0.5);
        border-radius: 3px;
    }

    .products-grid .vibe-card {
        flex: 0 0 auto;
        width: 280px;
        height: 280px;
        max-width: calc(100vw - 80px);
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .vibe-card-actions {
        flex-direction: row;
    }

    .vibe-card-actions .btn-details,
    .vibe-card-actions .add-to-cart-bar {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-image img {
        max-width: 100%;
    }

    .product-details-content {
        padding: 20px 16px;
        gap: 20px;
    }

    .product-details-title {
        font-size: 1.5rem;
    }

    .product-details-add {
        width: 100%;
        justify-content: center;
    }

    .page-main {
        padding-top: 76px;
    }

    /* الصفحة الرئيسية: تصغير المحتوى ليتناسق مع الجوال */
    .page-home .section-header {
        margin-bottom: 20px;
    }

    .page-home .section-header h2 {
        font-size: 1.5rem;
    }

    .page-home .section-header h3 {
        font-size: 0.9rem;
    }

    .page-home .about-section,
    .page-home .products-section,
    .page-home .feature-section,
    .page-home .testimonials-section {
        padding: 32px 0 40px;
    }

    .page-home .about-text p {
        font-size: 0.88rem;
    }

    .page-home .stat-number {
        font-size: 1.6rem;
    }

    .page-home .feature-text h3 {
        font-size: 1.1rem;
    }

    .page-home .feature-text p {
        font-size: 0.88rem;
    }

    .page-home .feature-image img {
        max-width: 200px;
    }

    .page-home .testimonial-card {
        min-width: min(260px, 88vw);
    }
}

/* من 768px فما دون: هيدر الجوال — أيقونات في سطر واحد + قائمة هامبرجر */
@media (max-width: 768px) {
    header .navbar {
        padding: 14px 16px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    header .navbar .logo {
        flex-shrink: 1;
        min-width: 0;
    }
    header .nav-icons {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
        align-items: center;
        gap: 8px;
    }
    header .search-wrap,
    header .hamburger {
        flex-shrink: 0;
    }
    header .logo-img {
        height: 46px;
    }
    header .logo a {
        font-size: 1.7rem;
    }
    header .logo .tagline {
        font-size: 0.75rem;
    }
    /* إخفاء روابط التنقل وإظهار زر القائمة من 768px لضمان سطر واحد */
    header .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        padding: 24px 20px 32px;
        text-align: center;
        gap: 8px;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(5, 224, 101, 0.2);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }
    header .nav-links.active {
        display: flex;
    }
    header .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        font-size: 1.05rem;
        min-height: 44px;
    }
    header .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        cursor: pointer;
    }
    header .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        transition: transform 0.3s, opacity 0.3s;
    }
}

/* الصفحة الرئيسية فقط: تصغير المحتوى ليتناسب مع الجوال */
@media (max-width: 768px) {
    .page-home .hero {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding-top: 82px;
        padding-bottom: 24px;
        padding-left: 0;
        padding-right: 8px;
        height: auto;
        min-height: auto;
    }

    .page-home .hero-content {
        flex: 1 1 auto;
        max-width: 62%;
        width: 62%;
        min-width: 0;
        text-align: left;
        padding-right: 6px;
        padding-left: 0;
    }

    .page-home .hero-content h1 {
        font-size: 1.7rem;
    }

    .page-home .hero-content h2 {
        font-size: 1.25rem;
    }

    .page-home .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .page-home .hero-image {
        flex: 0 0 38%;
        width: 38%;
        max-width: 38%;
        min-height: 280px;
        margin: 0;
        padding: 0;
        justify-content: flex-start;
    }

    .page-home .hero-slider {
        width: 100%;
        max-width: 100%;
        height: 300px;
        min-height: 260px;
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        border: 0;
        outline: 0;
    }

    .page-home .hero-slider::before,
    .page-home .hero-slider::after {
        display: none;
    }

    .page-home .hero-image,
    .page-home .hero-slider,
    .page-home .hero-slider .slide {
        border: 0;
        outline: 0;
        box-shadow: none;
    }

    .page-home .hero-slider .slide {
        border-radius: 0;
        object-fit: contain;
        object-position: left center;
    }

    .page-home .about-section,
    .page-home .products-section,
    .page-home .feature-section,
    .page-home .testimonials-section {
        padding: 36px 0 44px;
    }

    .page-home .section-header {
        margin-bottom: 24px;
    }

    .page-home .section-header h2 {
        font-size: 1.4rem;
    }

    .page-home .section-header h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .page-home .about-content {
        gap: 20px;
    }

    .page-home .about-text p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .page-home .features-grid {
        gap: 10px;
        margin-top: 14px;
    }

    .page-home .feature-item {
        padding: 10px 8px;
    }

    .page-home .stat-number {
        font-size: 1.45rem;
    }

    .page-home .stat-label {
        font-size: 0.8rem;
    }

    .page-home .about-image img {
        max-width: 100%;
    }

    .page-home .feature-container {
        gap: 18px;
    }

    .page-home .feature-text h3 {
        font-size: 1.15rem;
    }

    .page-home .feature-text p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .page-home .feature-image img {
        max-width: 280px;
        width: 85%;
    }

    .page-home .testimonial-card {
        min-width: min(280px, 85vw);
        padding: 12px 14px 10px;
    }

    .page-home .testimonial-quote {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .page-home .testimonials-nav {
        width: 34px;
        height: 34px;
    }

    .page-home .container {
        padding: 0 10px;
    }

    .page-home .btn.primary-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-slider {
        height: 320px;
        min-height: 280px;
    }

    .products-grid .vibe-card {
        width: 260px;
        height: 260px;
        max-width: calc(100vw - 72px);
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .page-home .hero-content h1 {
        font-size: 1.45rem;
    }

    .page-home .hero-content h2 {
        font-size: 1.12rem;
    }

    .page-home .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .page-home .hero {
        padding-left: 0;
        padding-right: 6px;
    }

    .page-home .hero-slider {
        height: 260px;
        min-height: 230px;
    }

    .page-home .section-header h2 {
        font-size: 1.25rem;
    }

    .page-home .about-section,
    .page-home .products-section,
    .page-home .feature-section,
    .page-home .testimonials-section {
        padding: 28px 0 36px;
    }

    .page-home .section-header {
        margin-bottom: 18px;
    }

    .page-home .about-text p {
        font-size: 0.8rem;
    }

    .page-home .stat-number {
        font-size: 1.25rem;
    }

    .page-home .feature-text h3 {
        font-size: 1rem;
    }

    .page-home .feature-text p {
        font-size: 0.8rem;
    }

    .page-home .feature-image img {
        max-width: 260px;
        width: 90%;
    }

    .page-home .testimonial-card {
        min-width: min(260px, 82vw);
        padding: 10px 12px 8px;
    }

    .page-home .testimonial-quote {
        font-size: 0.85rem;
    }
}

/* شاشات أقل من 360px */
@media (max-width: 359px) {
    .navbar {
        padding: 12px 10px;
    }

    .logo {
        gap: 8px;
    }

    .logo-img {
        height: 38px;
    }

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

    .logo .tagline {
        font-size: 0.7rem;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 70px 12px 32px;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .hero-image {
        min-height: 260px;
    }

    .hero-slider {
        width: 100%;
        height: 260px;
        min-height: 240px;
        border-radius: 14px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header h3 {
        font-size: 0.95rem;
    }

    .products-grid {
        gap: 16px;
        padding: 12px 12px 24px;
    }

    .products-grid .vibe-card {
        width: 240px;
        height: 280px;
        max-width: calc(100vw - 56px);
        min-width: 0;
    }

    .vibe-card-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .vibe-card-actions .btn-details,
    .vibe-card-actions .add-to-cart-bar {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .btn.primary-btn,
    .btn.secondary-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .page-main {
        padding-top: 70px;
    }

    .about-section,
    .products-section,
    .feature-section {
        padding: 50px 0 70px;
    }

    .checkout-box,
    .product-details-content {
        padding: 18px 12px;
    }

    .checkout-cart-row {
        gap: 8px 10px;
        padding: 10px 0;
    }

    .checkout-subtotal,
    .checkout-invoice-total {
        font-size: 1rem;
    }

    .product-details-title {
        font-size: 1.35rem;
    }

    .product-details-price {
        font-size: 1.2rem;
    }

    .product-details-image {
        max-width: 180px;
    }

    .floating-actions {
        right: 10px;
        bottom: 10px;
    }

    .floating-action {
        width: 48px;
        height: 48px;
    }

    .testimonials-slider {
        padding: 0 8px;
    }

    .footer-content {
        padding: 40px 16px;
    }

    .footer-logo h2 {
        font-size: 2rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .page-home .hero {
        padding-top: 78px;
        padding-left: 0;
        padding-right: 6px;
    }

    .page-home .hero-content h1 {
        font-size: 1.4rem;
    }

    .page-home .hero-content h2 {
        font-size: 1.15rem;
    }

    .page-home .hero-slider {
        height: 220px;
        min-height: 200px;
    }

    .page-home .feature-image img {
        max-width: 240px;
        width: 92%;
    }

    .page-home .section-header h2 {
        font-size: 1.1rem;
    }

    .page-home .about-section,
    .page-home .products-section,
    .page-home .feature-section,
    .page-home .testimonials-section {
        padding: 22px 0 28px;
    }
}

/* Particle Animation */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content but above background */
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.3);
    /* Subtle white/light particles */
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-120vh) translateX(var(--drift));
        opacity: 0;
    }
}

/* Final mobile override: home hero only */
@media (max-width: 768px) {
    .page-home #home.hero {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding-top: 82px !important;
        padding-bottom: 24px !important;
        padding-left: 0 !important;
        padding-right: 8px !important;
        height: auto !important;
        min-height: auto !important;
    }

    .page-home #home .hero-content {
        flex: 1 1 auto !important;
        width: 62% !important;
        max-width: 62% !important;
        min-width: 0 !important;
        text-align: left !important;
        padding-right: 6px !important;
        padding-left: 0 !important;
    }

    .page-home #home .hero-content h2 {
        font-size: 1.25rem !important;
    }

    .page-home #home .hero-content h1 {
        font-size: 1.7rem !important;
    }

    .page-home #home .hero-content p {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }

    .page-home #home .hero-content .btn.primary-btn {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
    }

    .page-home #home .hero-image {
        flex: 0 0 38% !important;
        width: 38% !important;
        max-width: 38% !important;
        min-height: 280px !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: flex-start !important;
    }

    .page-home #home .hero-slider {
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
        min-height: 260px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .page-home #home .hero-slider::before,
    .page-home #home .hero-slider::after {
        display: none !important;
    }

    .page-home #home .hero-slider .slide {
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}

@media (max-width: 480px) {
    .page-home #home.hero {
        padding-right: 6px !important;
    }

    .page-home #home .hero-content h2 {
        font-size: 1.12rem !important;
    }

    .page-home #home .hero-content h1 {
        font-size: 1.45rem !important;
    }

    .page-home #home .hero-content p {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }

    .page-home #home .hero-slider {
        height: 260px !important;
        min-height: 230px !important;
    }
}

/* Mobile-only: show hero text inside slider while keeping desktop intact */
.hero-content-mobile {
    display: none;
}

@media (max-width: 768px) {
    .page-home #home.hero {
        display: block !important;
        padding-top: 82px !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding-bottom: 20px !important;
        min-height: auto !important;
        height: auto !important;
    }

    .page-home #home .hero-content-desktop {
        display: none !important;
    }

    .page-home #home .hero-image {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-home #home .hero-slider {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
        min-height: 260px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .page-home #home .hero-slider::before,
    .page-home #home .hero-slider::after {
        display: none !important;
    }

    .page-home #home .hero-slider .slide {
        object-fit: contain !important;
        object-position: left center !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .page-home #home .hero-content-mobile {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        right: 4% !important;
        transform: translateY(-50%) !important;
        z-index: 3 !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
        text-align: right !important;
        padding: 0 !important;
    }

    .page-home #home .hero-content-mobile h2 {
        font-size: 1.12rem !important;
        margin: 0 0 2px 0 !important;
        color: transparent !important;
        -webkit-text-stroke: 1px var(--primary-color) !important;
        opacity: 0.75 !important;
    }

    .page-home #home .hero-content-mobile h1 {
        font-size: 1.45rem !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.05 !important;
        color: var(--text-color) !important;
    }

    .page-home #home .hero-content-mobile p {
        font-size: 0.75rem !important;
        line-height: 1.45 !important;
        margin: 0 0 8px 0 !important;
        color: #ddd !important;
    }

    .page-home #home .hero-content-mobile .btn.primary-btn {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    .page-home #home .hero-slider {
        height: 260px !important;
        min-height: 230px !important;
    }

    .page-home #home .hero-content-mobile {
        width: 52% !important;
        max-width: 52% !important;
        right: 4% !important;
    }

    .page-home #home .hero-content-mobile h1 {
        font-size: 1.3rem !important;
    }

    .page-home #home .hero-content-mobile h2 {
        font-size: 1rem !important;
    }
}
