:root {
    --primary: #6b4bff;
    --primary-dark: #4f32cc;
    --accent: #ffc107;
    --accent-soft: rgba(255, 193, 7, 0.16);
    --text: #1f1a2b;
    --muted: #6f6b7c;
    --bg: #f6f5fc;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(107, 75, 255, 0.18), transparent 55%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.7;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(ellipse at top left, rgba(107, 75, 255, 0.14), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.09), transparent 55%);
    opacity: 0.8;
    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* إخفاء المحتوى الرئيسي حتى يتم تحميل البيانات */
#main-content {
    display: none !important;
}

#main-content.show {
    display: block !important;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner p {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 1.1rem;
}

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

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

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

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.announcement {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 0.8rem 0;
    font-weight: 600;
}

.countdown {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    display: inline-block;
    animation: pulse-countdown 2s ease-in-out infinite;
}

/* Shop Name Header */
.shop-name-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.shop-name-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.shop-name-header .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-name-header .countdown {
    margin-left: auto;
}

.shop-name-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    padding-left: 0;
}

.shop-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    animation: fadeInDown 0.6s ease-out;
}


.shop-delivery-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    text-align: left;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.shop-delivery-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    text-align: left;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown strong {
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.15em;
}

@keyframes pulse-countdown {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
}

/* Hero محسّن للتحويل */
.hero-optimized {
    padding: 2rem 0 1rem;
    position: relative;
}

.price-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(107, 75, 255, 0.3);
}

.price-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 600;
}

.price-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    font-size: 1.2rem;
    opacity: 0.7;
}

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

.price-note {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.discount-badge {
    background: #22c55e !important;
    color: white !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin-left: 0.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

.price-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-proof-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border-right: 3px solid #22c55e;
    flex-wrap: wrap;
    justify-content: center;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
}

.proof-item svg {
    color: #22c55e;
    flex-shrink: 0;
}

.proof-item strong {
    color: var(--primary-dark);
    font-weight: 700;
}

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

.hero-content {
    padding: 1rem 0;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-perks-short {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-perks-short li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.hero-perks-short li::before {
    content: "✓";
    color: #22c55e;
    font-weight: 700;
    font-size: 1.2rem;
}

.hero-image {
    position: sticky;
    top: 2rem;
}

.product-image-main {
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-image-main img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* معرض الصور الاحترافي */
.product-image-gallery {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.gallery-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    border-radius: 12px;
    user-select: none;
    pointer-events: none;
    display: block !important;
    margin: 0;
    padding: 0;
}

/* أزرار التنقل */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: var(--primary);
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    right: 1rem;
}

.gallery-next {
    left: 1rem;
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* مؤشرات الصور */
.gallery-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.gallery-indicator:hover {
    background: #bbb;
    transform: scale(1.2);
}

.gallery-indicator.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
    transform: scale(1);
}

/* تحسينات الموبايل للمعرض */
@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev {
        right: 0.5rem;
    }
    
    .gallery-next {
        left: 0.5rem;
    }
    
    .gallery-indicators {
        gap: 0.4rem;
        margin-top: 0.8rem;
    }
    
    .gallery-indicator {
        width: 8px;
        height: 8px;
    }
    
    .gallery-indicator.active {
        width: 20px;
    }
}

.product-video-preview {
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

/* نموذج الطلب في الأعلى */
.order-form-top {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.form-header p {
    color: var(--muted);
    margin: 0;
}

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

.order-summary {
    background: rgba(107, 75, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid rgba(107, 75, 255, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.summary-item strong {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.summary-note svg {
    color: #22c55e;
    flex-shrink: 0;
}

.btn-large {
    width: 100%;
    padding: 1.4rem 2rem !important;
    font-size: 1.1rem !important;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    color: #dc2626;
    margin-bottom: 1rem;
    animation: shake 0.3s ease;
}

.error-message svg {
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* تقييمات محسّنة */
.reviews-optimized {
    padding: 2rem 0;
    background: white;
    border-radius: 24px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.reviews-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.reviews-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1rem 0;
}

.overall-rating-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.rating-count {
    color: var(--muted);
    font-size: 0.9rem;
}

.reviews-list-short {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem 2rem;
}

.review-item-short {
    background: rgba(107, 75, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(107, 75, 255, 0.1);
}

.review-item-short .reviewer-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.review-item-short .review-text {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* مواصفات مختصرة */
.product-details-short {
    padding: 2rem 0;
    background: white;
    border-radius: 24px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-details-short h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1.5rem 0;
    padding: 0 1rem;
}

.specs-content {
    padding: 0 1rem 2rem;
    line-height: 1.8;
    color: var(--text);
}

/* فيديو مختصر */
.product-videos-short {
    padding: 2rem 0;
    background: white;
    border-radius: 24px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-videos-short h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1.5rem 0;
    padding: 0 1rem;
}

.video-wrapper-single {
    padding: 0 1rem 2rem;
}

.video-wrapper-single iframe {
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
}

/* ضمانات مختصرة */
.guarantees-short {
    padding: 2rem 0;
    background: white;
    border-radius: 24px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.guarantees-short h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 2rem 0;
    padding: 0 1rem;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem 2rem;
}

.guarantee-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(107, 75, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(107, 75, 255, 0.1);
}

.guarantee-item svg {
    color: var(--primary);
    margin-bottom: 1rem;
}

.guarantee-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.guarantee-item p {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
}

/* زر ثابت محسّن */
.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sticky-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* رسالة النجاح */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
}

.success-content h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-image {
        position: static;
    }
    
    .price-header {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .social-proof-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-form-top {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .reviews-list-short {
        grid-template-columns: 1fr;
    }
    
    .guarantees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .current-price {
        font-size: 1.8rem;
    }
    
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
    
    .order-form-top {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .btn-large {
        padding: 1.2rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 56px;
    }
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 3.5rem 0 2rem;
    align-items: center;
    position: relative;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 245, 252, 0.9));
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.16);
    z-index: -1;
    backdrop-filter: blur(18px);
}

.hero__content h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin: 1rem 0;
    padding-right: 1rem;
}

.hero__content p {
    padding-right: 1rem;
    line-height: 1.7;
}

.badge {
    background: var(--accent);
    color: #332100;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.hero__perks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero__perks li {
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(40, 29, 96, 0.08);
}

.hero__cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
}

.price span {
    font-weight: 700;
}

.price .old {
    text-decoration: line-through;
    color: var(--muted);
    font-weight: 500;
}

.price .new {
    font-size: 2rem;
    color: var(--primary-dark);
}

.stock {
    margin: 0.4rem 0 0;
    font-weight: 600;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(107, 75, 255, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 26px 55px rgba(79, 50, 204, 0.45);
}

.primary-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 16px 30px rgba(79, 50, 204, 0.35);
}

.hero__media {
    position: relative;
}

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

.device-card {
    background: #fff;
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 40px 80px rgba(31, 26, 43, 0.12);
    position: relative;
    overflow: hidden;
    animation: floatCard 8s ease-in-out infinite;
}

.device-card::after {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 28px;
    border: 1px dashed rgba(107, 75, 255, 0.2);
    pointer-events: none;
}

.device-card img {
    border-radius: 24px;
    height: 360px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-gallery {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.product-gallery__main {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
    line-height: 1;
}

.gallery-nav[data-direction="prev"] {
    right: auto;
    left: 18px;
}

.gallery-nav[data-direction="next"] {
    left: auto;
    right: 18px;
}

.gallery-nav:hover {
    background: rgba(107, 75, 255, 0.85);
}

.product-gallery__thumbnails-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
}

/* تأثير fade على الحواف - نفس الصور في الأسفل */
.product-gallery__thumbnails-wrapper::before,
.product-gallery__thumbnails-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.product-gallery__thumbnails-wrapper::before {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.product-gallery__thumbnails-wrapper::after {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* إخفاء fade عند البداية والنهاية */
.product-gallery__thumbnails-wrapper.fade-start::after {
    opacity: 0;
}

.product-gallery__thumbnails-wrapper.fade-end::before {
    opacity: 0;
}

.product-gallery__thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

/* الصور الصغيرة - نفس تنسيق الصور في الأسفل */
.product-gallery__thumbnails img {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-gallery__thumbnails img:hover {
    transform: scale(1.05);
}

/* تنسيق scrollbar للصور الصغيرة - نفس الصور في الأسفل */
.product-gallery__thumbnails::-webkit-scrollbar {
    height: 8px;
}

.product-gallery__thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-gallery__thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.product-gallery__thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* أزرار التنقل للصور الصغيرة */
.product-gallery__thumbnails-wrapper .gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-gallery__thumbnails-wrapper .gallery-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.product-gallery__thumbnails-wrapper .gallery-nav-btn.prev-btn {
    right: 0.5rem;
}

.product-gallery__thumbnails-wrapper .gallery-nav-btn.next-btn {
    left: 0.5rem;
}

.product-gallery__thumbnails-wrapper .gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-gallery__strip {
    margin-top: 0.9rem;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
}

.product-gallery__strip img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

.device-card:hover img {
    transform: scale(1.05);
}

.features {
    padding: 2rem 0 3rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading p {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.features__grid article {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 24px 50px rgba(31, 26, 43, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 245, 252, 0.96));
}

.features__grid h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.features__grid article:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(31, 26, 43, 0.16);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 193, 7, 0.08));
}

.product-details {
    padding: 3rem 0;
    background: #fff;
    border-radius: 32px;
    margin: 2rem auto;
    box-shadow: 0 20px 60px rgba(31, 26, 43, 0.08);
}

.product-details__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.product-details__header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text);
}

.report-btn {
    background: #ED5E37;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.report-btn:hover {
    background: #d14a2a;
    transform: scale(1.1);
}

.product-details__content {
    padding: 0 1rem;
}

.merchant-info {
    padding: 3rem 0;
    background: #fff;
    border-radius: 32px;
    margin: 2rem auto;
    box-shadow: 0 20px 60px rgba(31, 26, 43, 0.08);
}

.merchant-info__header {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.merchant-info__header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text);
}

.merchant-info__content {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.merchant-info__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(107, 75, 255, 0.05);
    border-radius: 16px;
    border-right: 3px solid var(--primary);
}

.merchant-label {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}

.merchant-value {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.tab-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tab-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 800;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(107, 75, 255, 0.1);
    border: 1px solid rgba(107, 75, 255, 0.3);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}

.copy-btn:hover {
    background: rgba(107, 75, 255, 0.15);
    transform: translateY(-2px);
}

.copy-btn.promo {
    background: rgba(225, 86, 48, 0.1);
    border-color: rgba(225, 86, 48, 0.3);
    color: #E15630;
}

.copy-btn.promo:hover {
    background: rgba(225, 86, 48, 0.15);
}

.tab-panel-body {
    background: rgba(107, 75, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.tab-panel-body p {
    margin: 0.8rem 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.tab-panel-body p:first-child {
    margin-top: 0;
}

.tab-panel-body p:last-child {
    margin-bottom: 0;
}

.media-highlight {
    padding: 3rem 0;
}

.media-highlight .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.media-highlight__gallery-wrapper {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
}

/* تأثير fade على الحواف للصور في الأسفل */
.media-highlight__gallery-wrapper::before,
.media-highlight__gallery-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.media-highlight__gallery-wrapper::before {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.media-highlight__gallery-wrapper::after {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* إخفاء fade عند البداية والنهاية */
.media-highlight__gallery-wrapper.fade-start::after {
    opacity: 0;
}

.media-highlight__gallery-wrapper.fade-end::before {
    opacity: 0;
}

.media-highlight__gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

/* الصور في الأسفل (المواصفات التقنية) - الحجم الأصلي */
.media-highlight__gallery img {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-highlight__gallery img:hover {
    transform: scale(1.05);
}

/* الصور الصغيرة في الأعلى - صغيرة */
#thumbnails-gallery img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#thumbnails-gallery img:hover {
    transform: scale(1.05);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev-btn {
    right: 1rem;
}

.gallery-nav-btn.next-btn {
    left: 1rem;
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* إخفاء scrollbar في بعض المتصفحات */
.media-highlight__gallery::-webkit-scrollbar {
    height: 8px;
}

.media-highlight__gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.media-highlight__gallery::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.media-highlight__gallery::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    /* الصور في الأسفل على الموبايل - الحجم الأصلي */
    .media-highlight__gallery img {
        width: 250px;
        height: 180px;
    }
    
    /* الصور الصغيرة في الأعلى على الموبايل */
    #thumbnails-gallery img {
        width: 60px;
        height: 60px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-nav-btn.prev-btn {
        right: 0.5rem;
    }
    
    .gallery-nav-btn.next-btn {
        left: 0.5rem;
    }
}

.guarantees {
    background: #fff;
    padding: 2rem 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.05);
}

.guarantees .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.guarantees .container > div {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.2rem 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.guarantees .container > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 1);
}

.reviews {
    padding: 2rem 0;
    background: #fff;
}

.reviews-summary-card {
    background: rgba(107, 75, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr;
    gap: 2rem;
    align-items: start;
}

.reviews-stats-left {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stat-percentage {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    min-width: 40px;
    text-align: left;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: #f0e6d2;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--primary-dark);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.reviews-stats-middle {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rating-level {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rating-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    min-width: 70px;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    direction: rtl;
}

.rating-stars .star {
    font-size: 1.1rem;
    color: #ddd;
}

.rating-stars .star.filled {
    color: var(--primary-dark);
}

.reviews-stats-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reviews-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.overall-stars {
    display: flex;
    gap: 0.2rem;
    direction: rtl;
}

.overall-stars .star {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.rating-description {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-dark);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    align-self: flex-start;
}

.write-review-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 75, 255, 0.3);
}

.write-review-btn svg {
    width: 18px;
    height: 18px;
}

.add-review-btn-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.add-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(107, 75, 255, 0.1);
    border: 2px solid rgba(107, 75, 255, 0.3);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.add-review-btn:hover {
    background: rgba(107, 75, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.add-review-form {
    background: rgba(107, 75, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(107, 75, 255, 0.1);
}

.add-review-form h3 {
    margin: 0 0 1.2rem 0;
    font-size: 1.3rem;
    color: var(--text);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cancel-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(107, 75, 255, 0.3);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cancel-btn:hover {
    background: rgba(107, 75, 255, 0.05);
    border-color: var(--primary);
}

.add-review-form .form-group {
    margin-bottom: 1.5rem;
}

.add-review-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.add-review-form input[type="text"],
.add-review-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid rgba(107, 75, 255, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    resize: vertical;
    min-height: 80px;
}

.add-review-form input[type="text"]:focus,
.add-review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.star-rating-input {
    margin-top: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.3rem;
    direction: rtl;
}

.star {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating {
    display: flex;
    gap: 0.2rem;
    direction: rtl;
    margin-bottom: 0.5rem;
}

.star-rating .star {
    font-size: 1.3rem;
    color: #ddd;
    cursor: default;
}

.star-rating .star.filled {
    color: #ffc107;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(107, 75, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

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

.review-text {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.reviews-list {
    max-height: 500px;
    overflow-y: auto;
}

.order {
    padding: 3rem 0;
}

.order__form {
    background: #fff;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 40px 80px rgba(31, 26, 43, 0.08);
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

label {
    font-weight: 600;
}

input,
textarea {
    border: 1px solid #d8d5e3;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fdfdff;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(107, 75, 255, 0.3);
    border-color: transparent;
}

.inline {
    max-width: 200px;
}

/* Quantity Checkboxes */
.quantity-checkboxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.quantity-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(107, 75, 255, 0.05);
    border: 2px solid rgba(107, 75, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--text);
    user-select: none;
}

.quantity-option:hover {
    background: rgba(107, 75, 255, 0.1);
    border-color: rgba(107, 75, 255, 0.4);
    transform: translateY(-2px);
}

.quantity-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    margin: 0;
    flex-shrink: 0;
}

.quantity-option input[type="checkbox"]:checked + span {
    color: var(--primary);
    font-weight: 700;
}

.quantity-option:has(input[type="checkbox"]:checked) {
    background: rgba(107, 75, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(107, 75, 255, 0.2);
}

.summary {
    background: rgba(107, 75, 255, 0.07);
    border-radius: 24px;
    padding: 1rem 1.5rem;
    text-align: center;
}

.summary h3 {
    margin: 0.2rem 0;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.faq {
    padding: 3rem 0 4rem;
}

.faq__item {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 20px 50px rgba(31, 26, 43, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.faq__item button {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    color: var(--primary-dark);
}

.faq__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(31, 26, 43, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(107, 75, 255, 0.03));
}

footer {
    background: #0f172a;
    color: #fff;
    padding: 2.5rem 0 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

footer h4 {
    margin-top: 0;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
}

.footer a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* زر ثابت للطلب على الموبايل */
.sticky-order-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    box-sizing: border-box;
}

.sticky-order-btn .primary-btn {
    width: 100%;
    margin: 0;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(107, 75, 255, 0.4);
    animation: ctaPulse 2.6s ease-in-out infinite;
    display: block;
    box-sizing: border-box;
    text-align: center;
}

@keyframes ctaPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 30px rgba(107, 75, 255, 0.4);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 18px 40px rgba(79, 50, 204, 0.55);
    }
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1.5rem 0;
        gap: 1.5rem;
    }
    
    .hero .container {
        padding: 0 1rem;
    }

    .hero__content {
        padding: 0;
    }

    .hero__content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero__content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .hero__perks {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero__perks li {
        font-size: 0.85rem;
        padding: 0.35rem 0.75rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        padding: 0;
        margin-top: 1.5rem;
    }
    
    .hero__cta .price {
        margin-bottom: 0.5rem;
    }

    .primary-btn {
        width: 100%;
        text-align: center;
        padding: 1.2rem 2rem;
        border-radius: 12px;
        display: block;
        font-size: 1rem;
    }

    .device-card {
        padding: 1rem;
        border-radius: 24px;
    }

    .device-card img {
        height: 280px;
        border-radius: 20px;
    }

    .product-gallery__main {
        height: 280px;
    }

    .product-gallery__strip img {
        height: 90px;
    }

    .product-gallery__thumbnails {
        /* يبقى flex مع scroll على الموبايل */
        gap: 0.5rem;
    }

    .product-gallery__thumbnails img {
        width: 60px;
        height: 60px;
    }
    
    .product-gallery__thumbnails-wrapper .gallery-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .product-gallery__thumbnails-wrapper .gallery-nav-btn.prev-btn {
        right: 0.25rem;
    }
    
    .product-gallery__thumbnails-wrapper .gallery-nav-btn.next-btn {
        left: 0.25rem;
    }

    .order {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .order__form {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .quantity-checkboxes {
        gap: 0.75rem;
    }
    
    .quantity-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .summary {
        padding: 1.2rem;
        border-radius: 16px;
        margin: 1.5rem 0;
    }
    
    .summary h3 {
        font-size: 1.5rem;
    }

    .product-details {
        padding: 2rem 0;
        border-radius: 24px;
        margin: 1.5rem 0;
    }

    .product-details__header {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .product-details__header h2 {
        font-size: 1.5rem;
    }

    .product-details__content {
        padding: 0 1rem;
    }
    
    .tab-panel-body {
        padding: 1.2rem;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .merchant-info {
        padding: 2rem 0;
        border-radius: 24px;
        margin: 1.5rem 0;
    }

    .merchant-info__header {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .merchant-info__header h2 {
        font-size: 1.5rem;
    }

    .merchant-info__content {
        padding: 0 1rem;
    }

    .merchant-info__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .tab-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-highlight {
        padding: 2rem 0;
    }
    
    .media-highlight .container {
        padding: 0 1rem;
        grid-template-columns: 1fr;
    }
    
    .media-highlight__text {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .media-highlight__text h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .media-highlight__text ul {
        font-size: 0.9rem;
        line-height: 1.8;
        padding-right: 1rem;
    }
    
    .media-highlight__gallery-wrapper {
        margin-top: 1.5rem;
    }

    .media-highlight__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .guarantees {
        padding: 2rem 0;
    }
    
    .guarantees .container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .section-heading {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-heading h2 {
        font-size: 1.4rem;
    }
    
    .section-heading p {
        font-size: 0.9rem;
    }

    .order {
        padding: 2rem 0;
    }

    .order__form {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .inline {
        max-width: 100%;
    }

    .summary {
        padding: 1rem;
    }

    .footer {
        padding: 2rem 0;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .footer__grid > div {
        padding: 0;
    }
    
    .footer__grid h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer__grid ul {
        font-size: 0.9rem;
    }
    
    .footer__grid ul li {
        margin-bottom: 0.5rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .announcement {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .countdown {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }
    
    .shop-name-header {
        padding: 1rem 0;
    }
    
    .shop-name-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-name-content {
        padding-left: 0;
    }
    
    .shop-name {
        font-size: 1.5rem;
    }
    
    .shop-delivery-text {
        font-size: 0.75rem;
    }
    
    .countdown {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .video-section {
        padding: 2rem 0;
    }
    
    .video-section .container {
        padding: 0 1rem;
    }
    
    .video-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .video-container {
        border-radius: 16px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero .container {
        padding: 0 1rem;
    }
    
    .hero__content {
        padding: 0;
    }
    
    .hero__cta {
        padding: 0;
        margin: 0;
        margin-top: 1.5rem;
    }
    
    .hero__cta .primary-btn {
        width: 100%;
        margin: 0;
        border-radius: 12px;
        padding: 1.3rem 2rem;
        font-size: 1.05rem;
    }

    .hero__content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero__content p {
        font-size: 0.9rem;
    }

    .price .new {
        font-size: 1.6rem;
    }
    
    .order {
        padding: 1.5rem 0;
    }
    
    .order .container {
        padding: 0 1rem;
    }
    
    .order__form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
    
    .summary {
        padding: 1rem;
    }
    
    .summary h3 {
        font-size: 1.4rem;
    }
    
    .product-details {
        padding: 1.5rem 0;
    }
    
    .product-details .container {
        padding: 0 1rem;
    }
    
    .merchant-info {
        padding: 1.5rem 0;
    }
    
    .merchant-info .container {
        padding: 0 1rem;
    }
    
    .media-highlight {
        padding: 1.5rem 0;
    }
    
    .media-highlight .container {
        padding: 0 1rem;
    }
    
    .video-section {
        padding: 1.5rem 0;
    }
    
    .video-section .container {
        padding: 0 1rem;
    }
    
    .guarantees {
        padding: 1.5rem 0;
    }
    
    .guarantees .container {
        padding: 0 1rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer .container {
        padding: 0 1rem;
    }

    .guarantees .container {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 1.3rem;
    }

    .device-card img {
        height: 240px;
    }

    .product-gallery__main {
        height: 240px;
    }

    .product-gallery__strip {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }

    .product-gallery__strip img {
        height: 80px;
    }

    .product-gallery__thumbnails {
        grid-template-columns: repeat(4, minmax(50px, 1fr));
    }

    .product-details {
        padding: 1.5rem 0;
        border-radius: 20px;
    }

    .product-details__header h2 {
        font-size: 1.3rem;
    }

    .tab-panel-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .merchant-info {
        padding: 1.5rem 0;
        border-radius: 20px;
    }

    .merchant-info__header h2 {
        font-size: 1.3rem;
    }

    .merchant-info__item {
        padding: 0.7rem;
    }

    .reviews {
        padding: 2rem 0;
    }

    .add-review-form {
        padding: 1.5rem;
    }

    .add-review-form h3 {
        font-size: 1.3rem;
    }

    .star {
        font-size: 1.5rem;
    }

    .review-item {
        padding: 1rem;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .sticky-order-btn {
        display: block;
        position: fixed;
        left: 0 !important;
        right: 0 !important;
        bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateX(0);
    }

    .sticky-order-btn .primary-btn {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 50px;
        border: 2px solid var(--primary);
        padding: 1.2rem 2rem;
        box-shadow: 0 10px 30px rgba(107, 75, 255, 0.4);
        animation: ctaPulse 2.6s ease-in-out infinite;
        display: block;
        box-sizing: border-box;
        transform: translateX(0);
    }

    /* إضافة مسافة في الأسفل لتجنب تغطية المحتوى */
    footer {
        margin-bottom: 80px;
    }
}

/* قسم الفيديوهات */
.product-videos {
    padding: 3rem 0;
    background: #fff;
    border-radius: 32px;
    margin: 2rem auto;
    box-shadow: 0 20px 60px rgba(31, 26, 43, 0.08);
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 16px;
    background: #000;
}

/* تحسين عرض iframe Telegram */
.video-wrapper iframe[src*="t.me"] {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .videos-container {
        grid-template-columns: 1fr;
    }
    
    .video-wrapper iframe {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .product-videos {
        padding: 1.5rem 0;
        border-radius: 20px;
    }
    
    .video-wrapper iframe {
        min-height: 250px;
    }

    .reviews-summary-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .reviews-stats-left,
    .reviews-stats-middle {
        order: 2;
    }

    .reviews-stats-right {
        order: 1;
        text-align: center;
    }

    .reviews-title {
        font-size: 1.5rem;
    }

    .rating-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .reviews-summary-card {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .reviews-title {
        font-size: 1.3rem;
    }

    .rating-value {
        font-size: 1.5rem;
    }

    .stat-percentage {
        font-size: 0.8rem;
        min-width: 30px;
    }

    .rating-label {
        font-size: 0.8rem;
        min-width: 55px;
    }

    .rating-stars .star {
        font-size: 0.9rem;
    }
}

/* ============================================
   صفحة المتجر (Shop Page)
   ============================================ */

.shop-container {
    display: block;
    padding: 2rem 0;
    min-height: 60vh;
}

/* Categories Section */
.categories-section {
    margin: 1.5rem 0;
    padding: 0;
}

.categories-list {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 75, 255, 0.3) transparent;
}

.categories-list::-webkit-scrollbar {
    height: 6px;
}

.categories-list::-webkit-scrollbar-track {
    background: transparent;
}

.categories-list::-webkit-scrollbar-thumb {
    background: rgba(107, 75, 255, 0.3);
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 75, 255, 0.5);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-item:hover {
    background: rgba(107, 75, 255, 0.05);
    border-color: rgba(107, 75, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 75, 255, 0.15);
}

.category-item.active {
    background: rgba(107, 75, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.category-item img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
}

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

/* Main Area للمنتجات */
.shop-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(107, 75, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 75, 255, 0.1);
}

.search-btn {
    padding: 0.9rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 600;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 75, 255, 0.3);
}

.results-info {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 75, 255, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: #f8f9fa;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.7rem 1.2rem;
    background: white;
    border: 2px solid rgba(107, 75, 255, 0.2);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.pagination-btn:hover {
    background: rgba(107, 75, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--muted);
}

/* No Products / Error Messages */
.no-products,
.error-message-full {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.no-products svg,
.error-message-full svg {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.no-products h3,
.error-message-full h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.no-products p,
.error-message-full p {
    color: var(--muted);
    margin: 0 0 2rem 0;
}

/* Responsive Design للموبايل */
@media (max-width: 768px) {
    .shop-container {
        padding: 1.5rem 0;
    }

    .categories-section {
        margin: 1rem 0;
    }

    .categories-list {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .category-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .category-item img {
        width: 28px;
        height: 28px;
    }

    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        min-width: 100%;
    }

    .results-info {
        text-align: center;
        width: 100%;
    }

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

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .product-name {
        font-size: 0.9rem;
        min-height: 2.4em;
    }

    .product-price {
        font-size: 1rem;
    }

    .pagination-controls {
        gap: 0.4rem;
    }

    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 0.7rem;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* منتجات من نفس الفئة */
/* قسم المنتجات المتشابهة */
.related-products-section {
    padding: 3rem 0;
    margin: 2rem auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.related-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-products-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    color: var(--text);
    font-weight: 700;
    flex: 1;
}

.view-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 75, 255, 0.3);
}

.view-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 75, 255, 0.4);
}

.view-more-btn svg {
    transition: transform 0.3s ease;
}

.view-more-btn:hover svg {
    transform: translateX(-3px);
}

.related-products-container {
    padding: 0 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.related-products-container::-webkit-scrollbar {
    height: 8px;
}

.related-products-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.related-products-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

.related-products-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.related-products-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    min-width: min-content;
}

.related-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 75, 255, 0.15);
}

.related-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.related-product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: #f8f9fa;
}

.related-product-image .no-image svg {
    width: 64px;
    height: 64px;
}

.related-product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.related-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.related-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.related-product-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px) {
    .related-products-section {
        padding: 2rem 0;
        margin: 1.5rem auto;
    }
    
    .related-products-header {
        padding: 0 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .related-products-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .view-more-btn {
        width: auto;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .related-products-container {
        padding: 0 1rem;
    }
    
    .related-product-card {
        min-width: 200px;
        max-width: 200px;
    }
    
    .related-product-image {
        height: 150px;
    }
    
    .related-product-info {
        padding: 0.75rem;
    }
    
    .related-product-name {
        font-size: 0.9rem;
        min-height: 2.5em;
    }
    
    .related-product-price {
        font-size: 1rem;
    }
    
    .related-product-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

