.carousel {
    position: relative;
    width: 100%;
    height: 100vh; /* يملأ كامل ارتفاع الشاشة */
    overflow: hidden;
    margin-top: -120px; /* رفع الكاروسيل أعلى أكتر */
}

/* نسخة للجوال إذا تحب رفعه أقل */
@media screen and (max-width: 678px) {
    .carousel {
        margin-top: -60px; /* أقل رفع للموبايل */
    }
}


/* ===== List of Slides ===== */
.carousel .list {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel .list .item {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel .list .item.active {
    opacity: 1;
}

/* ===== فيديو أو صورة ===== */
.slide-media {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

/* ===== الطبقة السوداء ===== */
.carousel-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45); /* شفافية مناسبة */
    z-index: 1; /* تحت الكلام */
    pointer-events: none;
}

/* ===== المحتوى ===== */
.content {
    position: absolute;
    top: 20px;   /* من أعلى الشريحة */
    left: 20px;
    right: 20px;
    z-index: 5; /* فوق overlay */
    color: #fff;
}

.content .author,
.content .title,
.content .topic,
.content .des {
    margin-bottom: 8px;
}

.content .title {
    font-weight: 700;
    font-size: 2rem;
}

.content .author,
.content .topic {
    font-weight: 500;
}

.content .des {
    font-weight: 400;
    line-height: 1.7;
    max-width: 500px;
}

.content .buttons {
    margin-top: 12px;
}

.content .buttons button {
    margin-right: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

/* ===== Category Card Media ===== */
.category-card img,
.category-card video {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

@media screen and (max-width: 678px) {
    .content {
        top: 35% !important;  /* رفع المحتوى */
        bottom: auto !important; /* إزالة bottom */
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: 95% !important;
        transform: none !important;
        padding: 10px !important;
    }

    .content .title {
        font-size: 1.5rem;
    }

    .content .des {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .content .buttons button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.story-script-regular {
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
  transform: rotate(0deg); /* تأكد أنه لا يوجد دوران */
}

/* ======================== */
/*      MOBILE ONLY         */
/* ======================== */
@media (max-width: 768px) {

    .categories {
        padding: 20px 10px !important;
        min-height: auto !important;
    }

    .categories-container {
        gap: 15px !important;
        padding: 0 10px;
    }

    .category-card {
        width: 100% !important;
        text-align: center;
    }

    .category-card img,
    .category-card video {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.35); /* ظل جميل للموبايل */
    }

    .category-card h3 {
        font-size: 20px !important;
        margin-top: 8px !important;
        line-height: 1.3;
    }

    /* الخلفية الـ blur تبقى أهدى على الموبايل */
    .bg-blur {
        filter: blur(6px) !important;
    }
}

</style>
<style>
    * {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
}

/* ===== Header ===== */
header {
  position: relative; /* أو fixed لو عايز ثابت */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.slider, .slide {
  width: 100%;
  margin: 0;
  padding: 0;
}
.slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ===== Slider ===== */
.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin-top: 0; /* إزالة أي مسافة فوق */
}
.slides-wrapper {
  display: flex;
  transition: transform 0.7s ease-in-out;
  height: 100%;
  width: 400vw;
}
.slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

/* ===== Categories ===== */
.categories {
  background: #000;
  padding: 90px 0;
  display: flex;
  justify-content: center;
}
.categories-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1300px;
}


/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}
.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}

/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}
@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */
.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}
.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}

/* prev click */
.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}
.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}
.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons{
    animation: contentOut 1.5s linear 1 forwards!important;
}
@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

/* responsive mobile */
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 10%;
        top: 15%;
    }
    .carousel .list .item .author{
        font-size: 14px;
        letter-spacing: 4px;
    }
    .carousel .list .item .title{
        font-size: 2rem;
        line-height: 1.1em;
    }
    .carousel .list .item .topic{
        font-size: 1.2rem;
    }
    .carousel .list .item .des{
        font-size: 0.9rem;
    }
    /* زيادة حجم الأزرار في الموبايل فقط */
    .carousel .list .item .buttons{
        grid-template-columns: repeat(2, auto);
        grid-template-rows: 45px;
        gap: 8px;
        margin-top: 15px;
    }
    .carousel .list .item .buttons button{
        padding: 0 20px;
        height: 45px;
        font-size: 16px;
    }
    .carousel .arrows{
        top: 85%;
        right: 50%;
        width: 200px;
    }
}

.rtx {
  background-color: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 80px 20px;
}

.rtx h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.rtx p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #fff;
}

.rtx .gtx {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.rtx figure {
  background-color: #111;
  border-radius: 25px;
  overflow: hidden;
  width: 350px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rtx figure:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.rtx img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.rtx figcaption {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 20px 0;
  letter-spacing: 1px;
  color: #fff;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background-color: #000;
  color: #fff;
  padding: 100px 40px;
  gap: 50px;
}

.hero .left img {
  width: 450px;              /* صغّر العرض شوية */
  height: 400px;             /* قص من الارتفاع */
  border-radius: 25px;
  object-fit: cover;         /* يقص الزوايد */
  object-position: center;   /* يقص من الجوانب بشكل متوازن */
  display: block;
}

.hero .right {
  max-width: 600px;
  text-align: left;
}

.hero h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.hero button:hover {
  background: #fff;
  color: #000;
}
/* لو الصفحة باللغة العربية */
html[lang="ar"] .carousel .list .item .content {
    left: auto;      /* إلغاء الـ left الافتراضي */
    right: -850px;     /* وضع المحتوى ناحية اليمين */
    text-align: right; /* محاذاة النص لليمين */
}
.btn-carousel {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-carousel:hover {
    opacity: 0.85;
}
/* Buttons Wrapper */
.carousel .buttons {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* Button Style */
.carousel .btn-carousel {
    padding: 12px 26px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

/* Hover Effect */
.carousel .btn-carousel:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

/* For small screens */
@media (max-width: 768px) {
    .carousel .btn-carousel {
        padding: 10px 22px;
        font-size: 14px;
    }

    .carousel .buttons {
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .carousel .btn-carousel {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
}
.carousel .btn-carousel {
    padding: 12px 26px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;

    /* مهم جداً — لا نحدد background */
    background: none; 
}

/* Hover */
.carousel .btn-carousel:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel .list {
    display: flex;
    transition: transform 0.6s ease;
}
.carousel .item {
    min-width: 100%;
    position: relative;
    display: none;
}
.carousel .item.active {
    display: block;
}
.slide-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.carousel-overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.4);
}
.content {
    position: absolute;
    bottom: 20%;
    left: 5%;
    z-index: 2;
    max-width: 90%;
}
.content .author,
.content .title,
.content .topic,
.content .des {
    margin-bottom: 8px;
}
.buttons {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-carousel {
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
    border: 2px solid transparent;
    line-height: 1;
    white-space: nowrap;
}
.btn-carousel:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
@media(max-width:768px){
    .content {
        bottom: 15%;
        left: 5%;
    }
    .btn-carousel {
        padding: 8px 16px;
        font-size: 14px;
    }
}
/* إعدادات أساسية للبطاقات */
.category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* حالة عند ظهور البطاقة */
.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين تأثير الفيديو والصورة */
.category-card video,
.category-card img {
    transition: transform 0.3s ease;
}

.category-card:hover video,
.category-card:hover img {
    transform: scale(1.05);
}

/* fade-in للخلفية blur */
.bg-blur {
    opacity: 0;
    animation: fadeBg 1.2s forwards;
}

@keyframes fadeBg {
    to { opacity: 1; }
}
/* شبكة المنتجات */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* بطاقات المنتجات */
.product-card {
   
  
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* حالة الظهور */
.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تأثير عند المرور على الصورة */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* عنوان المنتج */
.product-card h3 {
    margin-top: 10px;
}

/* سعر المنتج */
.product-card .price {
    margin-top: 5px;
    font-weight: bold;
}
 .body-care {
        margin-top: -72px !important; /* رفع القسم */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 50px 20px;
        box-sizing: border-box;
    }
    .products {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        width: 100%;
    }
    .product {
        text-align: center;
        width: 200px;
    }
    .product img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px;
    }
    .body-care {
  padding: 30px;
}

.body-care h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #FFD700;
}

.body-care .products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.body-care .product {
  flex: 1 1 calc(33.333% - 20px); /* 3 منتجات في الصف */
  box-sizing: border-box;
  text-align: center;
}

.body-care .img-wrapper {
  width: 100%;
  height: 250px; /* نفس المقاس لكل الصور */
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
}

.body-care .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.body-care h2 {
  margin: 10px 0 5px;
}

.body-care p {
  font-weight: bold;
  color: #FFD700;
}

/* Responsive */
@media(max-width: 768px) {
  .body-care .product {
    flex: 1 1 calc(50% - 20px); /* صفين في التابلت */
  }
}

@media(max-width: 480px) {
  .body-care .product {
    flex: 1 1 100%; /* عنصر واحد في الصف للموبايل */
  }
}
.hero img { max-width: 100%; border-radius: 10px; }
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* المحتوى يتزحلق ناحية اليسار */
    padding: 30px;
    gap: 20px; /* مسافة بين الصورة والنصوص */
}

.hero h2, .hero p, .hero button { 
    margin-bottom: 15px; 
    text-align: left; /* النصوص تتحاذى على اليسار */
    margin-left: 20px; /* نزح النصوص قليلًا للداخل من اليسار */
}
