/*
Theme Name: يوتوبيا - Utopia Gaming Store
Theme URI: https://utopia-store.com
Author: Utopia Team
Author URI: https://utopia-store.com
Description: قالب متجر ألعاب عصري مع تأثيرات وألوان الألعاب - Modern gaming store theme with gaming effects and colors
Version: 1.0.0
Text Domain: utopia
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #7b68ee;
    --accent-color: #5a67d8;
    --dark-bg: #0a0e27;
    --darker-bg: #050811;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --blue: #4a90e2;
    --purple: #7b68ee;
    --pink: #e91e63;
    --gaming-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --font-arabic: 'Naveid Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Light mode variables */
    --bg-color: var(--darker-bg);
    --surface-color: var(--dark-bg);
    --text-color: var(--text-light);
    --text-secondary: var(--text-gray);
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --surface-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --dark-bg: #ffffff;
    --darker-bg: #f5f5f5;
    --text-light: #1a1a1a;
    --text-gray: #666666;
}

html {
    direction: rtl;
    text-align: right;
    font-size: 100%; /* Scale down everything to match 80% zoom = 100% display */
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    font-family: var(--font-arabic);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Hide scrollbar for all elements */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Apply Arabic font to all text elements */
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, ul, ol,
button, input, textarea, select,
.site-logo, .product-title,
.comment-text, .faq-question, .faq-answer,
.section-title, .banner-content {
    font-family: var(--font-arabic);
}

/* Cairo font for numbers */
.number-cairo {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

/* Force Latin numerals for numbers */
.product-price,
.contact-phone,
.contact-email,
input[type="number"],
input[type="tel"],
*[class*="price"],
*[class*="number"] {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Force Western numerals - wrap numbers in span */
.product-price,
.contact-phone,
.contact-email {
    font-feature-settings: normal;
    -webkit-font-feature-settings: normal;
    -moz-font-feature-settings: normal;
}

/* Use unicode-range to force Latin numerals */
@supports (font-variant-numeric: lining-nums) {
    .product-price,
    .contact-phone,
    .contact-email {
        font-variant-numeric: lining-nums;
        font-feature-settings: "lnum" 1;
    }
}

/* Gaming Animations */

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

@keyframes slide-in-right {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(5, 8, 17, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    margin-top: 2rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    position: relative;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .site-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    position: relative;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 10;
}

.header-contact {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
}

/* Theme Toggle Button - Left Side */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 10;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--text-light);
    stroke: currentColor;
    fill: none;
}

.sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.contact-phone {
    color: var(--text-light);
    font-size: 0.95rem;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-phone span {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    display: inline-block;
}

.contact-phone:hover {
    color: var(--primary-color);
}

.contact-phone:hover span {
    max-width: 200px;
    opacity: 1;
    margin-right: 0.5rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
    stroke: currentColor;
    fill: none;
}

.contact-phone {
    font-weight: 400;
}

.contact-email {
    font-weight: 300;
    color: var(--text-gray);
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 10;
}
.woocommerce img, .woocommerce-page img {
    height: 100%;
    max-width: 100%;
}
.site-logo-img,
.custom-logo {
    height: var(--utopia-logo-desktop-height, 300px);
    width: auto;
    object-fit: contain;
    max-height: 100%;
}

.woocommerce-page .site-header .site-logo-img,
.woocommerce-page .site-header .custom-logo {
    height: var(--utopia-logo-desktop-height, 300px);
    width: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .site-logo-img,
    .custom-logo {
        height: var(--utopia-logo-mobile-height, 90px) !important;
    }

    .woocommerce-page .site-header .site-logo-img,
    .woocommerce-page .site-header .custom-logo {
        height: var(--utopia-logo-mobile-height, 90px) !important;
    }
}
.header-spacer {
    display: none;
}

.main-navigation {
    display: none;
}

@media (max-width: 600px) {
    .site-header {
        width: 95%;
        margin-top: 1rem;
        margin-bottom: 0;
        padding: 0.75rem 1rem;
        height: auto;
        max-height: none;
        border-radius: 12px;
    }

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

    .header-left,
    .header-right {
        flex: 0 0 auto;
    }

    .header-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        display: flex;
        justify-content: center;
    }

    .site-logo-img {
        height: 300px;
    }

    .header-right {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: auto;
        justify-content: flex-end;
    }

    .theme-toggle {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0;
    }

    .product-card {
        overflow: visible;
    }

    .product-tags {
        right: 0.25rem;
    }

    .product-tag {
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        overflow: hidden;
    }

    .product-tag .tag-label {
        display: none !important;
    }
}

/* Banner Section */
.banner-section {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 15px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
}

.banner-item {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gaming-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(100%);
    z-index: 1;
}

.banner-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.banner-item.prev {
    transform: translateX(-100%);
}

.banner-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: gradient-shift 3s infinite;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    direction: rtl;
}

.banner-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    padding: 0;
    margin: 0;
}

.banner-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.banner-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.banner-dot:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-arabic);
    font-weight: 800;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .banner-slider {
        height: 260px;
        border-radius: 18px;
    }

    .banner-item {
        border-radius: 18px;
    }

    .banner-content {
        padding: 1.5rem;
    }

    .banner-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
    .banner-slider {
        height: 220px;
        border-radius: 20px;
    }

    .banner-item {
        border-radius: 20px;
    }

    .banner-content {
        padding: 1.25rem;
    }

    .banner-content h2 {
        font-size: 1.4rem;
    }
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: var(--font-arabic);
    font-weight: 800;
    color: var(--primary-color);
}

.products-slider-wrapper {
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
}

.products-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
    padding-right: 0;
    padding-left: 0;
    width: 100%;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

.products-grid .product-card {
    flex: 0 0 calc(25% - 1.125rem);
    scroll-snap-align: start;
    width: calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
    min-width: calc(25% - 1.125rem);
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .products-grid .product-card {
        flex: 0 0 calc(33.333% - 1rem);
        width: calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        min-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    .products-grid .product-card {
        flex: 0 0 calc(50% - 0.75rem);
        width: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 480px) {
    .products-grid .product-card {
        flex: 0 0 calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }
}

.products-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    direction: rtl;
}

.products-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.products-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    padding: 0;
    margin: 0;
}

.products-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.products-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.products-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.products-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.products-dot:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

@media (max-width: 600px) {
    .products-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .products-navigation .products-nav-btn {
        display: none;
    }

    .products-navigation #products-dots {
        width: 100%;
        justify-content: center;
    }
}

.product-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12.75px;
    padding: 1.275rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    width: 100%;
    aspect-ratio: 3 / 3.6;
    border-radius: 8.5px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-tags {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.product-tag {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-arabic);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    direction: rtl;
}

.product-tag.tag-instant {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 255, 136, 0.7));
    color: #ffffff;
    border: 1px solid rgba(0, 255, 136, 0.5);
}

.product-tag.tag-discount {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.9), rgba(255, 68, 68, 0.7));
    color: #fff;
    border: 1px solid rgba(255, 68, 68, 0.5);
}

/* Rocket icon fine‑tuning inside instant tag */
.material-icon {
    font-family: 'Material Symbols Outlined', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.product-tag .tag-icon {
    font-size: 1.1rem;
}

.product-tag .tag-label {
    display: inline-block;
    font-family: var(--font-arabic);
    line-height: 1.2;
}

/* 5‑Star badge on left side of product image */
.product-rating-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
}

.product-rating-badge .star-icon {
    color: #ffcc00;
    font-size: 0.95rem;
    display: inline-block;
    line-height: 1;
    font-family: 'Segoe UI Symbol', 'Arial Unicode MS', var(--font-arabic);
}

[data-theme="light"] .product-rating-badge {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-title {
    font-size: 0.92rem;
    margin-bottom: 0.38rem;
    color: var(--text-light);
    font-family: var(--font-arabic);
    font-weight: 400;
    min-height: 2.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.product-price {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    direction: rtl;
    line-height: 1.2;
    margin-top: -10px;
}

.product-price .price-number {
    font-size: 1.44rem;
    font-weight: 900;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

.product-price .price-currency {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.product-description {
    display: none;
}

.product-price-wrapper {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    direction: rtl;
    padding: 0.75rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.product-price-old {
    font-size: 0.9rem;
    color: var(--text-gray);
    direction: rtl;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    opacity: 0.7;
}

.product-price-old .price-number {
    position: relative;
}

.product-price-old .price-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-gray);
    transform: translateY(-50%);
    opacity: 0.6;
}

.product-price-old .price-currency {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.product-price-old .price-number {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

/* Product Detail Page Styles */
.product-detail-page {
    padding: 2rem 0 150px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.product-breadcrumb {
    margin-bottom: 2rem;
    direction: rtl;
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    color: var(--text-gray);
}

.product-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-gray);
}

.breadcrumb-current {
    color: var(--text-light);
    font-weight: 600;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Product Images Carousel */
.product-images-section {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.product-main-image {
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.2);
}

.product-detail-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-detail-img:hover {
    transform: scale(1.02);
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-content {
    direction: rtl;
}

.product-detail-title {
    font-size: 2.5rem;
    font-family: var(--font-arabic);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Rating & Reviews */
.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.star-rating {
    display: flex;
    gap: 0.2rem;
    direction: ltr;
}

.star {
    font-size: 1.2rem;
    color: #ffa500;
}

.star-empty {
    color: #666;
    opacity: 0.3;
}

.star-half {
    background: linear-gradient(90deg, #ffa500 50%, #666 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    color: var(--text-gray);
    font-family: var(--font-arabic);
    font-size: 0.95rem;
}

/* Modern Price Section */
.product-price-section-modern {
    margin-bottom: 2rem;
    direction: rtl;
}

.modern-price-wrapper {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-price-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.modern-price-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-price-discount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    direction: rtl;
}

.modern-price-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ff4444;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
    line-height: 1;
}

.modern-price-currency {
    font-size: 1.8rem;
    color: #ff4444;
    font-weight: 600;
    font-family: var(--font-arabic);
}

.modern-price-old-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-price-old {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
}

.price-old-number {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
    position: relative;
}

.price-old-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-gray);
    transform: translateY(-50%);
}

.price-old-currency {
    font-family: var(--font-arabic);
}

.modern-price-old-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-discount-badge {
    background: linear-gradient(135deg, #ff006e, #ff6b9d);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-arabic);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
    }
}

.social-proof-modern {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.social-proof-modern {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(255, 107, 157, 0.2));
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
}

.saved-count-modern {
    color: var(--text-light);
    font-family: var(--font-arabic);
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.modern-price-single {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    direction: rtl;
}

.modern-price-single .modern-price-number {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.modern-price-single .modern-price-currency {
    color: var(--primary-color);
}

/* Guarantee Badges */
.guarantee-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    direction: rtl;
}

.guarantee-badge {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.guarantee-badge:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 1.2rem;
}

.product-detail-price-inline {
    margin-bottom: 2rem;
    direction: rtl;
}

.product-price-inline-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price-old-inline {
    font-size: 1.5rem;
    color: #ff4444;
    text-decoration: line-through;
    font-weight: 600;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-price-old-inline .price-number {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

.product-price-discount-inline {
    font-size: 2.5rem;
    color: #ff4444;
    font-weight: 800;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price-discount-inline .price-number {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

.fire-icon {
    width: 24px;
    height: 24px;
    color: #ff4444;
    flex-shrink: 0;
    animation: fire-flicker 1.5s ease-in-out infinite;
}

@keyframes fire-flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.product-price-single {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-price-single .price-number {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

.product-detail-description {
    margin-bottom: 2rem;
}

.product-detail-cta {
    margin: 1.5rem 0 2.5rem;
    text-align: center;
}

.product-detail-cta .add-to-cart-btn-large {
    max-width: 420px;
    margin: 0 auto;
    display: inline-block;
}

.product-detail-description h2 {
    font-size: 1.8rem;
    font-family: var(--font-arabic);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-content {
    color: var(--text-gray);
    line-height: 2;
    font-family: var(--font-arabic);
    font-size: 1.1rem;
}

.add-to-cart-btn-large {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 800;
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: center;
}

.add-to-cart-btn-large:hover {
    transform: scale(1.02);
    background: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

.utopia-custom-buy-btn {
    text-decoration: none;
    color: var(--text-light) !important;
}

.utopia-custom-buy-btn:hover {
    color: var(--text-light) !important;
}

/* Hide WooCommerce default single product content */
body.single-product .woocommerce-product-gallery,
body.single-product .entry-summary,
body.single-product .product .summary,
body.single-product .product .entry-summary,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-details__short-description,
body.single-product .product_meta,
body.single-product .woocommerce-product-rating,
body.single-product .woocommerce-breadcrumb {
    display: none !important;
    visibility: hidden !important;
}

/* Hide WooCommerce default product images and summary */
body.single-product .product .images,
body.single-product .product .summary {
    display: none !important;
}

/* Ensure our custom product detail page is visible */
body.single-product .product-detail-page {
    display: block !important;
    visibility: visible !important;
}

/* Hide WooCommerce default content wrapper */
body.single-product .woocommerce .product {
    display: block !important;
}

body.single-product .woocommerce .product > *:not(.product-detail-page) {
    display: none !important;
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-image {
        position: relative;
        top: 0;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .sticky-bar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sticky-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .sticky-btn {
        width: 100%;
        max-width: none;
    }
    
    .support-chat {
        left: 1rem;
        bottom: 120px;
    }
    
    .chat-bubble {
        width: 50px;
        height: 50px;
    }
    
    .product-images-section {
        position: relative;
        top: 0;
    }
}

.add-to-cart-btn {
    width: 80%;
    margin: 1rem auto 0 auto;
    padding: 0.6375rem;
    background: var(--primary-color);
    border: none;
    border-radius: 6.8px;
    color: var(--text-light);
    font-weight: 800;
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    direction: rtl;
    text-align: center;
    display: block;
    text-decoration: none;
    margin-top: auto;
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    text-decoration: none;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

/* Comments Section */
.comments-section {
    padding: 4rem 0;
}

.comments-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comments-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.comments-slider {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 1rem 0;
    width: 100%;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Ensure consistent height */
}

.comments-slider .comment-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
    box-sizing: border-box;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
    position: relative;
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slide-in-from-bottom-left {
    from {
        opacity: 0;
        transform: translateY(100px) translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Smooth shift animation for comments */
@keyframes shift-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

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

@keyframes slide-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .comments-slider .comment-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        min-width: calc(33.333% - 1.33rem);
        max-width: calc(33.333% - 1.33rem);
    }
}

@media (max-width: 992px) {
    .comments-slider .comment-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .comments-slider .comment-card {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: calc(100% - 0.5rem);
        max-width: calc(100% - 0.5rem);
    }
}

/* Comments slider - no animation */

.comment-card {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comment-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.comment-rating {
    font-size: 0.9rem;
    color: #ffc107;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gaming-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.comment-product {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.comment-text {
    color: var(--text-gray);
    line-height: 1.8;
    flex-grow: 1;
    font-family: var(--font-arabic);
}

@media (max-width: 1200px) {
    .comments-slider .comment-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .comments-slider .comment-card {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: 100%;
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

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

.faq-item {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.2);
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-arabic);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slide-in-right 0.3s ease-out;
}

/* Footer */
.site-footer {
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: var(--font-arabic);
    font-weight: 800;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-section .number-cairo {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.payment-methods {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    margin: 2rem 0;
}

.payment-methods h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: var(--font-arabic);
    font-weight: 800;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.payment-logo {
    width: 80px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
}

.payment-logo:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.1);
}

.payment-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.footer-certification {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.certification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    direction: rtl;
}

.certification-text {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.certification-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .certification-logo {
        height: 28px !important;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    margin: 0;
    font-family: var(--font-arabic);
}

.footer-design {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-design a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    background: linear-gradient(135deg, #00d4ff, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-design a:hover {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
    display: inline-block;
}

/* Policy Pages Styles */
.policy-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.policy-title {
    font-family: var(--font-arabic);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.policy-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.policy-content {
    font-family: var(--font-arabic);
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.policy-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.policy-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.policy-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.policy-content ul,
.policy-content ol {
    margin: 1rem 0;
    padding-right: 2rem;
    line-height: 2;
}

.policy-content ul li,
.policy-content ol li {
    margin-bottom: 0.8rem;
}

.policy-content ul li::marker {
    color: var(--primary-color);
}

.policy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.policy-image {
    margin: 2rem 0;
    text-align: center;
}

.policy-image .featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .policy-page {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .policy-title {
        font-size: 2rem;
    }
    
    .policy-content {
        font-size: 1rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
    
    .policy-content h3 {
        font-size: 1.2rem;
    }
}

.footer-bottom .number-cairo {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Fix footer phone number and email */
.footer-section p {
    direction: rtl;
}

.footer-section p .number-cairo,
.footer-section p span[class*="number"],
.footer-section .footer-phone,
.footer-section .footer-email {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particle-float 20s infinite;
    opacity: 0.6;
}

/* RTL-specific adjustments */
.main-navigation ul {
    direction: rtl;
}

.products-grid,
.comments-grid,
.footer-content {
    direction: rtl;
}

.payment-logos {
    direction: rtl;
}

/* Ensure all text is RTL */
input, textarea, select {
    direction: rtl;
    text-align: right;
    font-family: var(--font-arabic);
}

input[type="number"],
input[type="tel"],
input[type="email"] {
    direction: ltr;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
}

/* RTL-specific flexbox adjustments */
.header-container {
    flex-direction: row;
}

.main-navigation ul {
    flex-direction: row-reverse;
}

.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Trust Elements */
.trust-elements {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    direction: rtl;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-family: var(--font-arabic);
    font-size: 0.9rem;
}

.trust-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Sticky Bottom Bar */
.product-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95), rgba(74, 144, 226, 0.25));
    backdrop-filter: blur(12px);
    border-top: 2px solid rgba(0, 255, 136, 0.4);
    padding: 1rem 1.25rem;
    z-index: 999;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.35);
    direction: rtl;
    color: var(--text-light);
}

.sticky-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.sticky-product-title {
    flex: 1;
    min-width: 0;
}

.sticky-product-title h3 {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sticky-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.35rem;
}

.sticky-price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff5f6d;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.sticky-price-current .number-cairo {
    font-size: 1.35rem;
    direction: ltr;
    unicode-bidi: embed;
}

.sticky-price-current .price-currency {
    font-size: 1rem;
    font-weight: 600;
}

.sticky-price-old {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
}

.sticky-actions {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
}

.sticky-btn {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-family: var(--font-arabic);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.sticky-btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #ffffff;
}

.sticky-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.45);
}

.sticky-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.sticky-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sticky-product-title h3 {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.4;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
}

.qty-btn {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.qty-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
}

body.has-product-sticky-bar {
    padding-bottom: 140px;
}

body.has-product-sticky-bar .product-sticky-bar {
    display: block;
}

@media (max-width: 768px) {
    body.has-product-sticky-bar {
        padding-bottom: 120px;
    }

    body.has-product-sticky-bar .product-sticky-bar {
        padding: 0.9rem;
    }

    body.has-product-sticky-bar .sticky-product-title,
    body.has-product-sticky-bar .sticky-price {
        display: none;
    }

    body.has-product-sticky-bar .sticky-actions {
        width: 100%;
        justify-content: center;
    }

    body.has-product-sticky-bar .sticky-btn {
        width: 100%;
        min-width: 0;
    }

    body.has-product-sticky-bar .whatsapp-float {
        bottom: calc(2.5rem + 140px);
    }

    body.has-product-sticky-bar .support-chat {
        bottom: 200px;
    }
}

/* Support Chat */
.support-chat {
    position: fixed;
    bottom: 100px;
    left: 2rem;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.chat-bubble:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(74, 144, 226, 0.6);
}

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

.chat-bubble svg {
    width: 28px;
    height: 28px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: whatsapp-bounce 2s ease-in-out infinite;
}

.whatsapp-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.whatsapp-notification {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: notification-show 20s ease-in-out infinite;
}

.whatsapp-notification::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(10, 14, 39, 0.95);
}

.whatsapp-btn:hover .whatsapp-notification {
    opacity: 1;
    transform: translateY(-50%) translateX(-10px);
    pointer-events: auto;
}

@keyframes whatsapp-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes notification-show {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    2% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    12% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    14% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    50% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    52% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    62% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    64% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-notification {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        right: 65px;
    }
}

/* Light Mode Styles */
[data-theme="light"] .product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%);
    border: 2px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


[data-theme="light"] .product-title {
    color: var(--text-color);
}

[data-theme="light"] .contact-phone {
    color: var(--text-color);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

[data-theme="light"] .theme-icon {
    color: var(--text-color);
}

[data-theme="light"] .whatsapp-btn svg {
    fill: #ffffff;
    color:white;
}

[data-theme="light"] .whatsapp-notification {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .whatsapp-notification::after {
    border-right-color: rgba(255, 255, 255, 0.95);
}

