/* ============================================
   متغيرات الألوان - نسخة أبيض وأسود أنيقة
   ============================================ */
:root {
    --primary-color: #1a1a1a;        /* أسود داكن للعناصر الرئيسية */
    --secondary-color: #2c2c2c;      /* أسود ناعم */
    --accent-color: #333333;         /* رمادي داكن */
    --light-gray: #2a2a2a;           /* رمادي داكن للكروت */
    --medium-gray: #404040;          /* رمادي متوسط */
    --dark-gray: #f8f8f8;            /* خلفية فاتحة جداً */
    --text-primary: #1a1a1a;         /* نص أسود داكن */
    --text-secondary: #4a4a4a;       /* نص رمادي داكن */
    --border-color: #e0e0e0;         /* حدود فاتحة */
    --hover-color: #2c2c2c;          /* لون الحوم داكن */
    --shadow-color: rgba(0,0,0,0.1); /* ظل خفيف */
}

body {
    overflow-x: hidden;
    font-family: "Cairo";
    color: var(--text-primary);
    background: var(--dark-gray);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    scroll-behavior: smooth;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    position: relative;
    height: 45px;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 500;
    border-bottom: 2px solid var(--medium-gray);
}

.marquee span {
    position: absolute;
    opacity: 0;
    animation: fade 8s infinite;
}

.marquee span:nth-child(1) { animation-delay: 0s; }
.marquee span:nth-child(2) { animation-delay: 2s; }
.marquee span:nth-child(3) { animation-delay: 4s; }
.marquee span:nth-child(4) { animation-delay: 6s; }

@keyframes fade {
    0%, 33%, 100% { opacity: 0; }
    10%, 23% { opacity: 1; }
}

/* ============================================
   HERO SECTION (Banner Slider)
   ============================================ */
.hero-section {
    margin: 20px 10px;
    border-radius: 15px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 400px;
    border-radius: 15px;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media screen and (max-width:500px) {
    .hero-swiper .swiper-slide img {
        object-fit: cover;
    }
}

.hero-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 900;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 20px 10px;
    margin: 40px 0;
    overflow-x: hidden;
}

.section-title {
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 900;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
}

.products-swiper {
    display: none !important;
}

@media (max-width: 768px) {
    .products-grid {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .products-swiper {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        padding: 10px 0 50px;
    }

    .products-swiper .product-card-image,
    .products-swiper .swiper-slide img {
        height: 260px; 
        object-fit: cover;
    }

    .products-container { padding: 0 8px; }
    .products-section { margin: 20px 0; }
}

.products-swiper .swiper-slide {
    height: auto;
}

.products-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
}

.products-swiper .swiper-button-next,
.products-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255,255,255,0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.products-swiper .swiper-button-next::after,
.products-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 900;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.product-card-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.product-card-info {
    padding: 15px;
}

.product-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.product-card-color {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
}

.product-card-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
    margin-top: 10px;
}

.product-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--dark-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
}

/* ============================================
   NAVIGATION
   ============================================ */
.back-to-home-btn {
    display: inline-block;
    margin: 20px 10px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--border-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.back-to-home-btn:hover {
    background: var(--hover-color);
    transform: translateX(-5px);
}

.product-details-page {
    display: none;
}

.product-details-page.show {
    display: flex;
}


/* ============================================
   ORDER FORM IN DETAILS PAGE
   ============================================ */
#orderFormDetails {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--dark-gray); 
    padding: 25px;
    border-radius: 15px;
    margin: 20px 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#orderFormDetails h3 {
    font-size: clamp(22px,5vw,30px);
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

#orderFormDetails label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

#orderFormDetails input,
#orderFormDetails select,
#orderFormDetails textarea {
    width: 90%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: 0.3s all;
    background: var(--dark-gray);
    color: var(--text-primary);
}

#orderFormDetails input:focus,
#orderFormDetails select:focus,
#orderFormDetails textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--shadow-color);
}

#itemsContainerDetails {
    width: 90%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
}

#itemsContainerDetails .item {
    background: var(--light-gray);
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

#itemsContainerDetails .item h4 {
    color: var(--primary-color);
}

#sendWhatsappDetails {
    margin-top: 10px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 14px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: 0.3s all;
}

#sendWhatsappDetails:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* ============================================
   PRODUCT GALLERY
   ============================================ */
.gallery-top {
    overflow: hidden; 
    border-radius: 12px; 
    position: relative; 
}

#galleryTop1 .swiper-button-next,
#galleryTop2 .swiper-button-next,
#galleryTop1 .swiper-button-prev,
#galleryTop2 .swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#galleryTop1 .swiper-button-next::after,
#galleryTop1 .swiper-button-prev::after,
#galleryTop2 .swiper-button-next::after,
#galleryTop2 .swiper-button-prev::after {
    font-size: 14px; 
    font-weight: 900;
}

#galleryTop1 .swiper-button-next, #galleryTop2 .swiper-button-next { right: 12px; }
#galleryTop1 .swiper-button-prev, #galleryTop2 .swiper-button-prev { left: 12px; }

#galleryTop1 .swiper-button-next:hover,
#galleryTop1 .swiper-button-prev:hover,
#galleryTop2 .swiper-button-next:hover,
#galleryTop2 .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.image-container {
    position: relative;
    min-height: 200px; 
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 6px solid var(--medium-gray);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.images .badge {
    position: absolute;
    content: "";
    top: 20px;
    left: 0px;
    z-index: 11;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    font-weight: 800;
    padding: 10px 0;
    font-size: clamp(14px,4vw,20px);
}

.zoomable {
    transition: transform 0.4s ease, cursor 0.2s;
    transform-origin: center center;
}

.zoomable:hover {
    cursor: zoom-in;
    transform: scale(1.8);
}

.swiper {
    width: 100%;
    height: 400px;
    margin: 20px auto;
}

.swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-thumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.gallery-thumbs .swiper-slide {
    width: 100px;
    height: 100%;
    opacity: 0.5;
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    margin: 20px 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.hero-container-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hero .images {
    width: 100%;
    position: relative;
}

.hero .images div {
    width: 100%;
    height: auto;
}

.hero .images div img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.info_title {
    font-size: clamp(18px,10vw,50px);
    line-height: 1.15;
    margin: 10px 0 6px;
    font-weight: 900;
}

.sub {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 8px;
}

.pill_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.pill {
    display: inline-block;
    background: var(--border-color);
    color: var(--light-gray);
    border: 1px solid var(--primary-color);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.colors {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--medium-gray);
    transition: transform 0.2s, border-color 0.2s;
}

.color.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.btn_buy {
    margin: 10px 0;
    display: inline-block;
    text-decoration: none;
    background: var(--primary-color);
    color: var(--dark-gray);
    padding: 14px 40px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    font-weight: 900;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s all;
    width: 100%;
    text-align: center;
}

.btn_buy:hover {
    background: var(--secondary-color);
    color: var(--border-color);
}

button.btn_buy {
    border: none;
    font-family: inherit;
}

.prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}

.price {
    font-size: 34px;
    font-weight: 900;
}

.offer {
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 10px;
    padding: 10px;
}

.benefit {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
}

.benefit:hover {
    background: var(--light-gray);
    border-color: var(--dark-gray);
    color: var(--dark-gray);
  }
  .benefit:hover  .sub{
  color: var(--dark-gray);

}
/* ============================================
   VIDEOS (REELS)
   ============================================ */
.reels {
    text-align: center;
    margin: 60px auto;
    max-width: 700px;
}

.reels-title {
    font-size: clamp(22px,5vw,30px);
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

.reels video {
    width: 100%;
    height: auto; 
    object-fit: cover; 
    border-radius: 15px;
}

.reels .swiper {
    position: relative;
    width: 100%;
    height: auto; 
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color); 
}

.swiper-pagination-bullet {
    background: var(--primary-color);
}

/* ============================================
   OFFERS SECTION
   ============================================ */
.offers {
    padding: 0px 10px 40px;
    text-align: center;
    background: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin: 20px auto;
    overflow-x: auto;
    max-width: 800px;
}

.offers-title {
    font-size: clamp(26px,5vw,36px);
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dark-gray);
    text-align: center;
}

.offers .section-title {
    font-size: clamp(18px,4vw,26px);
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-gray); 
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
    border-radius: 10px;
    overflow: hidden;
}

.offers-table th,
.offers-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    text-align: center;
}

.offers-table th {
    background: linear-gradient(90deg, var(--dark-gray), var(--dark-gray));
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offers-table tr:nth-child(even) {
    background-color: rgba(74, 74, 74, 0.2);
}

.offers-table tr:hover {
    background: rgba(74, 74, 74, 0.2);
    transition: 0.3s ease;
}

.offers-table td:nth-child(odd) {
    color: var(--text-secondary);
    font-weight: 600;
}

.order-btn {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border: none;
    color: var(--dark-gray);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    background: linear-gradient(90deg, var(--primary-color), #1a1a1a);
    transform: scale(1.05);
}

/* ============================================
   ORDER FORM
   ============================================ */
#orderForm {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--dark-gray); 
    padding: 25px;
    border-radius: 15px;
    margin: 10px 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#orderForm h3 {
    font-size: clamp(22px,5vw,30px);
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

#orderForm label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-gray);
}

#orderForm input,
#orderForm select,
#orderForm textarea {
    width: 90%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: 0.3s all;
    background: var(--dark-gray);
    color: var(--text-primary);
}

#orderForm input:focus,
#orderForm select:focus,
#orderForm textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--shadow-color);
}

#itemsContainer {
    width: 90%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
}

#itemsContainer .item {
    background: var(--light-gray);
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

#itemsContainer .item h4 {
    color: var(--primary-color);
}

#sendWhatsapp {
    margin-top: 10px;
    background: var(--primary-color);
    color: var(--dark-gray);
    padding: 14px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: 0.3s all;
}

#sendWhatsapp:hover {
    background: var(--secondary-color);
    color: var(--border-color);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-container {
    margin: 50px 10px;
    font-family: "Cairo", "Tajawal";
}

.faq-container h2 {
    text-align: right;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 6px var(--shadow-color);
}

.faq-item button {
    color: var(--dark-gray);
    font-weight: 900;
    font-size: 24px;
}

.faq-question {
    width: 100%;
    background: var(--primary-color);
    border: none;
    padding: 15px 20px;
    text-align: right;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--dark-gray);
    padding: 0 20px;
}

.faq-answer p {
    margin: 15px 0;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--primary-color);
    color:var(--dark-gray);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    padding: 0 10px;
}

.contact .numbers {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.contact .numbers span {
    color: var(--dark-gray);
    font-weight: 900;
    font-size: 18px;
}

.contact .logos span {
    font-weight: 900;
    color: var(--light-gray);
    display: flex;
}