
html{
scroll-behavior:smooth;
}

:root{

--background:#ffffff;
--primary:#0A84FF;
--secondary:#8B5CF6;
--accent:#F59E0B;
--text:#222222;

}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{

font-family:Tahoma,Arial,sans-serif;

background:#fff;

color:var(--text);

overflow-x:hidden;

padding-top:80px;

}

/* =========================
   Splash Screen
========================= */

.splash-screen {
    position: fixed;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #fff;

    z-index: 9999;

    /* كل العناصر تختفي مع الـSplash نفسه */
    animation: splashExit 4s ease forwards;
}


/* اللوجو - نستخدم selector خاص بالـSplash
   عشان ما نأثرش على Logo الهيدر */

.splash-screen .logo {
    width: 300px;

    opacity: 0;
    transform: scale(0.7);

    animation: splashLogo 4s ease forwards;
}


/* النص */

.splash-screen h1 {
    margin-top: 20px;

    font-size: 48px;
    color: var(--primary);

    opacity: 0;

    animation: splashText 4s ease forwards;
}


/* =========================
   Logo Animation
========================= */

@keyframes splashLogo {

    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    70% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }

}


/* =========================
   Text Animation
========================= */

@keyframes splashText {

    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    25% {
        opacity: 0;
        transform: translateY(15px);
    }

    38% {
        opacity: 1;
        transform: translateY(0);
    }

    70% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }

}


/* =========================
   Splash Exit
========================= */

@keyframes splashExit {

    0% {
        opacity: 1;
        visibility: visible;
    }

    70% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }

}

/* Header */
.header{

position:fixed;

top:0;

left:0;

width:100%;

height:80px;

display:flex;

justify-content:space-between;

align-items:center;

padding:0 50px;

background:#ffffffee;

backdrop-filter:blur(12px);

box-shadow:0 2px 15px rgba(0,0,0,.08);

z-index:1000;

transition:.35s;

}

.brand{

display:flex;

align-items:center;

gap:10px;

font-size:30px;

font-weight:bold;

color:var(--primary);

}

.brand img{

width:45px;

height:auto;

}

/* ================= NAVBAR ================= */

.navbar{

display:flex;

align-items:center;

gap:18px;

}

.navbar a{

display:flex;

justify-content:center;

align-items:center;

width:52px;

height:52px;

font-size:26px;

text-decoration:none;

background:#fff;

color:var(--text);

border-radius:16px;

transition:.35s;

}

.navbar a:hover{

background:var(--primary);

color:#fff;

transform:translateY(-4px);

box-shadow:0 10px 20px rgba(10,132,255,.25);

}

/* ================= Hero Background ================= */

.hero-bg{

position:absolute;

top:0;

left:0;

width:100%;

height:100vh;

overflow:hidden;

z-index:-1;

}

.blob{

position:absolute;

border-radius:50%;

filter:blur(80px);

opacity:.25;

animation:blobMove 18s ease-in-out infinite alternate;
will-change:transform;

}

.blob1{

width:320px;

height:320px;

background:linear-gradient(45deg,#0A84FF,#53B5FF);

top:60px;

left:-80px;

}

.blob2{

width:260px;

height:260px;

background:linear-gradient(45deg,#8B5CF6,#B388FF);

top:180px;

right:-70px;

animation-delay:2s;

}

.blob3{

width:220px;

height:220px;

background:linear-gradient(45deg,#F59E0B,#FFD54A);

bottom:20px;

left:40%;

animation-delay:4s;

}

@keyframes blobMove{

0%{
transform:translate(0px,0px) scale(1);
filter:blur(80px);
}

25%{
transform:translate(35px,-20px) scale(1.08);
filter:blur(90px);
}

50%{
transform:translate(60px,25px) scale(1.15);
filter:blur(100px);
}

75%{
transform:translate(-25px,40px) scale(1.08);
filter:blur(90px);
}

100%{
transform:translate(0px,0px) scale(1);
filter:blur(80px);
}

}

/* ================= Features ================= */

.features{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

padding:80px 70px;

background:#f8fbff;

}

.feature-card{

background:#fff;

padding:35px 25px;

border-radius:22px;

text-align:center;

box-shadow:0 10px 25px rgba(0,0,0,.08);

transition:.35s;

cursor:pointer;

}

.feature-card:hover{

transform:translateY(-10px);

box-shadow:0 18px 40px rgba(0,0,0,.15);

}

.feature-icon{

font-size:55px;

margin-bottom:20px;

}

.feature-card h3{

font-size:28px;

margin-bottom:15px;

color:var(--primary);

}

.feature-card p{

font-size:18px;

line-height:1.7;

color:#555;

}

/* Hero */

.hero{

    position:relative;

display:flex;

justify-content:space-between;

align-items:center;

padding:70px;

min-height:85vh;

}

.hero-content{

width:50%;

}

.hero-image{

width:50%;

display:flex;

justify-content:center;

align-items:center;

}

/* صورة المنتج */

.product-image{

width:340px;

height:auto;

border-radius:25px;

filter:drop-shadow(0 20px 35px rgba(0,0,0,.18));

transition:.4s;

animation:floating 3s ease-in-out infinite;

}

.product-image:hover{

transform:scale(1.05);

}

.offer-badge{

display:inline-block;

background:#ff4d4d;

padding:10px 20px;

border-radius:30px;

color:#fff;

margin-bottom:20px;

}

.hero h1{

font-size:58px;

margin-bottom:15px;

}

.hero h2{

font-size:30px;

color:var(--primary);

margin-bottom:30px;

}

.hero p{

font-size:22px;

margin-bottom:15px;

}

.hero h3{

font-size:45px;

margin-top:30px;

color:#ff4d4d;

}

.buy-btn{

margin-top:30px;

padding:18px 45px;

border:none;

border-radius:12px;

background:var(--primary);

color:#fff;

font-size:22px;

cursor:pointer;

transition:all .35s ease;

animation:buttonFloat 2.5s ease-in-out infinite;

cursor:pointer;

overflow:hidden;

position:relative;

isolation:isolate;

display:inline-block;
text-decoration:none;

}

.buy-btn:hover{

.buy-btn::before{

content:"";

position:absolute;

top:0;

left:-120%;

width:80%;

height:100%;

background:linear-gradient(

90deg,

transparent,

rgba(255,255,255,.45),

transparent

);

transform:skewX(-25deg);

transition:.7s;

}

.buy-btn:hover::before{

left:150%;

}

transform:translateY(-5px) scale(1.04);

box-shadow:

0 12px 30px rgba(10,132,255,.35),

0 0 20px rgba(10,132,255,.20);

}

/* Floating Product */

@keyframes floating{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-12px);
}

100%{
transform:translateY(0px);
}

}

/* Button Float */

@keyframes buttonFloat{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-6px);
}

100%{
transform:translateY(0);
}

}

@keyframes buttonFloat{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-6px);
}

100%{
transform:translateY(0);
}

}

/* ================= Reveal Animation ================= */

.reveal{

opacity:0;

transform:translateY(70px);

transition:all .8s ease;

}

.reveal.active{

opacity:1;

transform:translateY(0);

}

/* ================= Reviews ================= */

.reviews{

padding:80px 70px;

text-align:center;

}

.reviews h2{

font-size:42px;

margin-bottom:45px;

color:var(--primary);

}

.reviews-container{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:30px;

}

.review-card{

background:#fff;

padding:30px;

border-radius:20px;

box-shadow:0 10px 25px rgba(0,0,0,.08);

transition:.35s;

}

.review-card:hover{

transform:translateY(-8px);

box-shadow:0 18px 40px rgba(0,0,0,.15);

}

.review-card p{

font-size:20px;

line-height:1.8;

margin-bottom:20px;

}

.review-card h4{

color:var(--primary);

font-size:22px;

}

/* ================= Footer ================= */

.footer{

background:#0A84FF;

color:#fff;

text-align:center;

padding:60px 30px;

margin-top:60px;

}

.footer-logo{

display:flex;

justify-content:center;

align-items:center;

gap:15px;

margin-bottom:20px;

}

.footer-logo img{

width:55px;

}

.footer-logo h2{

font-size:34px;

}

.footer p{

font-size:18px;

margin:12px 0;

}

.footer-links{

display:flex;

justify-content:center;

gap:35px;

margin:30px 0;

flex-wrap:wrap;

}

.footer-links a{

color:#fff;

text-decoration:none;

font-size:20px;

transition:.3s;

}

.footer-links a:hover{

transform:translateY(-3px);

color:#F59E0B;

}

.copyright{

margin-top:25px;

font-size:16px;

opacity:.85;

}

/* ================= Contact ================= */

.contact{

padding:90px 70px;

text-align:center;

background:#f8fbff;

}

.contact h2{

font-size:46px;

margin-bottom:40px;

color:var(--primary);

}

.contact-box{

width:650px;

max-width:95%;

margin:auto;

background:#fff;

padding:40px;

border-radius:24px;

box-shadow:0 12px 30px rgba(0,0,0,.08);

transition:.35s;

}

.contact-box:hover{

transform:translateY(-8px);

box-shadow:0 20px 45px rgba(0,0,0,.15);

}

.contact-box p{

font-size:24px;

margin:18px 0;

font-weight:bold;

color:#444;

}

/* ================= Footer ================= */

.footer{

background:var(--primary);

color:#fff;

text-align:center;

padding:22px;

font-size:18px;

font-weight:bold;

margin-top:80px;

}

/* ================= Reveal Animation ================= */

.reveal{

opacity:0;

transform:translateY(80px);

transition:all .9s ease;

}

.reveal.active{

opacity:1;

transform:translateY(0);

}

/* Animations */

@keyframes logoDrop{

0%{

transform:translateY(-400px);

opacity:0;

}

25%{

transform:translateY(0);

opacity:1;

}

65%{

transform:translateY(0);

opacity:1;

}

100%{

transform:translateY(-400px);

opacity:0;

}

}

@keyframes textRise{

0%{

transform:translateY(400px);

opacity:0;

}

25%{

transform:translateY(0);

opacity:1;

}

65%{

transform:translateY(0);

opacity:1;

}

100%{

transform:translateY(400px);

opacity:0;

}

}

/* Header Scroll Effect */

.header.scrolled{

height:68px;

padding:0 35px;

background:#fffffffa;

box-shadow:0 8px 30px rgba(0,0,0,.18);

transition:.35s;

}

@keyframes hideSplash{

0%{

opacity:1;

}

99%{

opacity:1;

}

100%{

opacity:0;

visibility:hidden;

pointer-events:none;

}

}

/* ================= Back To Top ================= */

#topBtn{

position:fixed;

bottom:25px;

right:25px;

width:55px;

height:55px;

border:none;

border-radius:50%;

background:var(--primary);

color:#fff;

font-size:24px;

cursor:pointer;

display:none;

box-shadow:0 8px 20px rgba(0,0,0,.25);

transition:.3s;

z-index:999;

}

#topBtn:hover{

transform:scale(1.12);

background:#0066ff;

}

/* ================= Order Form ================= */

.order-form{

width:520px;

display:flex;

flex-direction:column;

gap:18px;

margin-top:35px;

}

.order-container{

display:flex;

justify-content:center;

margin-top:40px;

}

.order-form input,

.order-form textarea{

width:100%;

padding:16px 18px;

font-size:18px;

font-family:Tahoma,Arial,sans-serif;

border:2px solid #e5e7eb;

border-radius:14px;

outline:none;

transition:.3s;

background:#fff;

}

.order-form textarea{

height:130px;

resize:none;

}

.order-form input:focus,

.order-form textarea:focus{

border-color:var(--primary);

box-shadow:0 0 12px rgba(10,132,255,.2);

}

.order-form select{
    width:100%;
    padding:16px 18px;
    font-size:18px;
    font-family:Tahoma,Arial,sans-serif;
    border:2px solid #e5e7eb;
    border-radius:14px;
    outline:none;
    transition:.3s;
    background:#fff;
    color:#555;
    cursor:pointer;
}

.order-form select:focus{
    border-color:var(--primary);
    box-shadow:0 0 12px rgba(10,132,255,.2);
}

.order-form button{

width:100%;

padding:18px;

font-size:20px;

font-weight:bold;

border:none;

border-radius:14px;

background:var(--primary);

color:#fff;

cursor:pointer;

transition:.35s;

box-shadow:0 10px 25px rgba(10,132,255,.25);

}

.order-form button:hover{

transform:translateY(-4px);

background:#0066ff;

box-shadow:0 15px 30px rgba(10,132,255,.35);

}

.message-box{
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    animation: fadeDown .4s ease;
}

.message-box.success{
    background:#28a745;
}

.message-box.error{
    background:#dc3545;
}

@keyframes fadeDown{
    from{
        opacity:0;
        transform:translate(-50%,-20px);
    }
    to{
        opacity:1;
        transform:translate(-50%,0);
    }
}

/* ========================= */
/* Featured Products Section */
/* ========================= */

.featured-products{

    padding:80px 20px;

    background:#f8f9fb;

}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 320px);
    justify-content: center;
    gap: 30px;
}

.product-card{

    background:#fff;

    width:320px;

    border-radius:20px;

    padding:25px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    text-align:center;

}

.product-card img{

    width:180px;

    height:180px;

    object-fit:contain;

    margin-bottom:20px;

}

.product-card h3{

    font-size:28px;

    margin-bottom:15px;

    color:#111;

}

.product-card p{

    color:#555;

    font-size:18px;

    line-height:1.8;

    margin-bottom:20px;

}

.product-card .product-btn{

    display:block;

    background:#087cff;

    color:#fff;

    text-decoration:none;

    font-size:18px;

    font-weight:bold;

    padding:14px 20px;

    border-radius:12px;

    margin-top:15px;

}

.product-card .price{

    display:block;

    color:#087cff;

    font-size:24px;

    font-weight:bold;

    margin:10px 0;

}

.product-card{

    transition:transform 0.3s ease, box-shadow 0.3s ease;

}

.product-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 35px rgba(0,0,0,.14);

}

.product-card .product-btn{
    transition:transform 0.2s ease, opacity 0.2s ease;
}

.product-card .product-btn:hover{
    transform:scale(1.03);
    opacity:0.9;
}


.product-details {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.product-image {
    flex: 1;
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 18px;
    display: block;
    margin: auto;
}

.product-info {
    flex: 1;
}

.product-header {
    direction: ltr;
}

.product-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
}

.product-header .brand {
    order: 1;
}

.product-header .navbar {
    order: 2;
}

/* ================================
PRODUCT PAGE FINAL OVERRIDES
================================ */

/* ترتيب وتنسيق منطقة المنتج */
.product-page {
width: 100%;
padding: 40px 6%;
box-sizing: border-box;
}

.product-details {
max-width: 1100px;
margin: 40px auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 70px;
background: #ffffff;
border-radius: 28px;
padding: 45px;
box-sizing: border-box;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* الصورة */
.product-image {
flex: 1;
text-align: center;
}

.product-image img {
width: 100%;
max-width: 520px;
height: auto;
display: block;
margin: auto;
border-radius: 22px;
}

/* معلومات المنتج */
.product-info {
flex: 1;
text-align: right;
direction: rtl;
}

.product-badge {
display: inline-block;
font-size: 18px;
font-weight: 700;
margin-bottom: 15px;
}

.product-info h1 {
font-size: 48px;
line-height: 1.15;
margin: 0 0 15px;
color: #111;
}

.product-info h2 {
font-size: 30px;
line-height: 1.5;
margin: 0 0 18px;
color: #1683ff;
}

.product-description {
font-size: 21px;
line-height: 1.8;
color: #555;
margin-bottom: 20px;
}

.product-features {
margin: 20px 0;
}

.product-features p {
font-size: 20px;
line-height: 1.8;
margin: 5px 0;
color: #333;
}

.product-rating {
font-size: 22px;
margin: 20px 0;
}

.product-rating span {
color: #333;
}

.product-price {
font-size: 38px;
font-weight: 800;
color: #1683ff;
margin: 20px 0;
}

/* زر اطلب الآن */
.product-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 360px;
min-height: 58px;
padding: 12px 25px;
box-sizing: border-box;
border-radius: 14px;
background: #1683ff;
color: #fff;
font-size: 22px;
font-weight: 800;
text-decoration: none;
border: none;
cursor: pointer;
transition: 0.25s ease;
}

.product-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(22, 131, 255, 0.25);
}

/* الموبايل */
@media (max-width: 768px) {

.product-details {
    flex-direction: column;
    padding: 25px;
    gap: 30px;
}

.product-info {
    width: 100%;
    text-align: center;
}

.product-info h1 {
    font-size: 36px;
}

.product-info h2 {
    font-size: 24px;
}

.product-description {
    font-size: 18px;
}

.product-features p {
    font-size: 18px;
}

.product-price {
    font-size: 32px;
}

.product-btn {
    max-width: 100%;
}

}

/* ترتيب هيدر صفحات المنتجات */
.header {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .brand {
    order: 1;
}

.header .navbar {
    order: 2;
    direction: ltr;
}

/* =========================================
   VOLTIX HOME PAGE
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #111;
}

/* ================= HERO ================= */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    box-sizing: border-box;

    background:
        radial-gradient(circle at top right, rgba(0, 123, 255, .12), transparent 35%),
        radial-gradient(circle at bottom left, rgba(0, 0, 0, .08), transparent 35%),
        #ffffff;
}

.hero-content {
    max-width: 850px;
}

.offer-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: #111;
    color: #fff;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    margin: 10px 0;
    font-weight: 800;
}

.hero h2 {
    font-size: clamp(22px, 4vw, 38px);
    margin: 15px 0;
}

.hero p {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.buy-btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 14px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: .25s ease;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

/* ================= SECTIONS ================= */

.featured-section,
.products-section,
.reviews-section,
.contact-section {
    padding: 80px 6%;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 18px;
}

/* ================= GRIDS ================= */

.featured-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.featured-grid {
    direction: ltr;
}

.featured-grid .product-card {
    direction: rtl;
}

/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .featured-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .featured-section,
    .products-section,
    .reviews-section,
    .contact-section {
        padding: 60px 20px;
    }

    .hero {
        min-height: 560px;
    }

    .hero p {
        font-size: 17px;
    }

}

/* زر تصفح جميع المنتجات */

.products-all-link {
    text-align: center;
    margin-top: 40px;
    margin-bottos: 90px;
    position: relative;
    z-index: 2;
}

.products-all-link p {
    margin: 0 0 12px;
    font-size: 16px;
}

.products-view-all-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.products-view-all-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* فصل زر تصفح المنتجات عن القسم التالي */

.featured-products {
    padding-bottom: 80px;
}

.products {
    padding-top: 80px;
}


/* Voltix تنظيم قسم منتجات  */

.products {
    padding-bottom: 100px;
}

.products > h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 45px;
}

.products-all-link {
    text-align: center;
    margin-top: 40px !important;
    margin-bottom: 120px !important;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-actions .buy-btn,
.hero-actions .hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 240px;
    height: 55px;

    padding: 0 20px;
    box-sizing: border-box;

    border-radius: 14px;
    text-decoration: none;

    font-size: 17px;
    font-weight: bold;
}

.hero-actions .hero-secondary-btn {
    background: #111;
    color: white;
}

.cart-browse-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    animation: cartPulse 1.5s ease-in-out infinite !important;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1) !important;
    }

    50% {
        transform: scale(1.08) !important;
    }
}

/* =========================
   CART TABLE
========================= */

.cart-items {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.cart-product-name {
    font-weight: 700;
}

.cart-product-price,
.cart-product-total {
    font-weight: 600;
}

.cart-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-quantity button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.cart-quantity button:hover {
    background: #f1f1f1;
}

.cart-quantity span {
    min-width: 25px;
    text-align: center;
    font-weight: 700;
}

.cart-remove-btn {
    border: none;
    background: transparent;
    color: #777;
    font-size: 24px;
    cursor: pointer;
}

.cart-remove-btn:hover {
    color: red;
}


/* ملخص السلة */

.cart-summary {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.summary-total {
    font-size: 20px;
    font-weight: 800;
}

/* =========================
PRODUCT CARDS - COMPACT
========================= */

/* 4 كروت في الصف */
.products-grid,
.featured-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
align-items: start;
}

/* تصغير الكارت */
.product-card {
padding: 16px;
border-radius: 18px;
height: auto;
min-height: 0;
}

/* تصغير الصورة */
.product-card img {
width: 100%;
max-width: 190px;
height: 170px;
object-fit: contain;
display: block;
margin: 0 auto 10px;
}

/* اسم المنتج */
.product-card h3 {
font-size: 20px;
margin: 8px 0;
line-height: 1.25;
}

/* السعر */
.product-card .product-price,
.product-card .price {
font-size: 24px;
margin: 8px 0 12px;
}

/* مجموعة الأزرار */
.product-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: center;
}

/* الأزرار */
.product-actions .product-btn {
flex: 1 1 calc(50% - 8px);
min-width: 0;
padding: 10px 8px;
font-size: 14px;
margin: 0;
text-align: center;
}

/* زر إضافة للعربة */
.product-actions .cart-add-btn {
border: none;
cursor: pointer;
font-family: inherit;
}

/* على الشاشات المتوسطة */
@media (max-width: 1100px) {

.products-grid,
.featured-grid {
    grid-template-columns: repeat(3, 1fr);
}

}

/* الموبايل */
@media (max-width: 700px) {

.products-grid,
.featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    padding: 10px;
}

.product-card img {
    height: 130px;
}

.product-card h3 {
    font-size: 16px;
}

.product-card .product-price,
.product-card .price {
    font-size: 20px;
}

.product-actions .product-btn {
    font-size: 12px;
    padding: 8px 5px;
}


}

/* موبايل صغير جدًا */
@media (max-width: 450px) {

.products-grid,
.featured-grid {
    grid-template-columns: 1fr;
}


}

.product-actions {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.product-actions .product-btn {
    min-width: 0;
    flex: 1;
    padding: 8px 5px;
    font-size: 12px;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;

    top: -8px;
    right: -10px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ff2b2b;
    color: #fff;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 800;
    line-height: 1;

    border: 2px solid #fff;

    z-index: 10;
}

.product-card .product-btn {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    margin-top: 10px;

    min-height: 42px;

    border-radius: 10px;

    background: #000;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
    border: none;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease,
                opacity 0.2s ease;
}

/* أول زرين جنب بعض */
.product-card .product-btn:nth-of-type(1),
.product-card .product-btn:nth-of-type(2) {
    width: calc(50% - 5px);
    display: inline-flex;
}

/* الزر الثالث في المنتصف */
.product-card .product-btn:nth-of-type(3) {
    width: 65%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

/* Hover */
.product-card .product-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* رسالة نجاح الإضافة */
.product-card .product-btn.added-success {
    background: #16a34a;
}

/* =========================
   Reviews Cards
========================= */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    margin-top: 30px;
}

.review-card {
    background: #eef6ff;
    border: 1px solid #d8eaff;
    border-radius: 18px;
    padding: 22px;
    box-sizing: border-box;
    min-height: 170px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.review-header strong {
    font-size: 18px;
    color: #111;
}

.review-stars {
    font-size: 17px;
    white-space: nowrap;
}

.review-card p {
    margin: 0;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}


/* الموبايل */

@media (max-width: 768px) {

    .reviews-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   REVIEWS SLIDER
========================= */

.reviews-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 58px;
    box-sizing: border-box;
}


/* النافذة الثابتة */

.reviews-viewport {
    width: 100%;
    overflow: hidden;
}


/* صف الكروت */

.reviews-slider-wrapper .reviews-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
    transition: transform 0.4s ease;
    overflow: visible;
}


/* الكروت */

.reviews-slider-wrapper .review-card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: calc((100% - 36px) / 3);
    box-sizing: border-box;
}


/* الأسهم */

.reviews-arrow {
    position: absolute;

    top: 50%;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: #1687ff;
    color: #fff;

    font-size: 28px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 20;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);

    transition: 0.2s ease;
}


/* السهم الشمال */

.reviews-prev {
    left: 5px;
    transform: translateY(-50%);
}


/* السهم اليمين */

.reviews-next {
    right: 5px;
    transform: translateY(-50%);
}


/* Hover */

.reviews-arrow:hover {
    background: #0b73df;
    transform: translateY(-50%) scale(1.1);
}


/* Active */

.reviews-arrow:active {
    transform: translateY(-50%) scale(0.95);
}


/* الموبايل */

@media (max-width: 768px) {

    .reviews-slider-wrapper {
        padding: 0 48px;
    }

    .reviews-slider-wrapper .review-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .reviews-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .reviews-prev {
        left: 2px;
    }

    .reviews-next {
        right: 2px;
    }

}

/* =========================
   Product Page Action Buttons
========================= */

.product-info .product-btn {
    width: calc(50% - 6px);
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    margin-top: 10px;
    padding: 8px 10px;

    border: none;
    border-radius: 10px;

    background: #000;
    color: #fff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* النبض */
.product-info .product-btn {
    animation: productButtonPulse 2s infinite;
}

@keyframes productButtonPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.35);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

}

/* Hover */
.product-info .product-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* نجاح الإضافة */
.product-info .product-btn.added-success {
    background: #16a34a;
    animation: none;
}

/* الموبايل */
@media (max-width: 600px) {

    .product-info .product-btn {
        width: calc(50% - 5px);
        font-size: 12px;
        padding: 8px 5px;
    }

}