*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}
body{
    background-color: #1A1C20;
}
/* ====================================================================================================== */
/* the name of the store */
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    background-color: #343434;
    color: #F0A500;
    box-shadow: 5px 5px 8px #FFB22C;
    border: 2px solid  #FFB22C; 
    height:70px;
    padding: 0 20px;
    z-index: 999;
    position: fixed;
    width: 100%;
    top: 0;   
}
.name{
    font-size: 1.5rem;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;   
}
.navigation a{
    padding: 5px 10px;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.3s;
    color: #F0A500;
}
.navigation a:hover{
    color:white ; 
}
.split-btn-container {
    display: inline-flex;
    border: 2px solid #F0A500;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 10px;
}

.split-btn-part {
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    background-color: #343434;
    color: #F0A500;
    transition: background-color 0.3s, color 0.3s;
}

.split-btn-part.left {
    border-right: 2px solid #F0A500;
}

.split-btn-part:hover {
    background-color: #F0A500;
    color: #343434;
}
/* ====================================================================================================== */
/* welcome phrases */
.Divone {
    display: flex;
    text-align: center;
    justify-content: center;
    background-color: #343434;
    color: #F0A500;
    height: 150px;
    margin: 15px;
    padding: 10px;
    border-left: 2px solid  #FFB22C;
    border-right: 2px solid  #FFB22C; 
    justify-content: space-around;
    flex-direction: column;
    margin-top: 85px;
    border-radius: 10px;
    font-weight: bold;
}
/* ====================================================================================================== */


/* ====================================================================================================== */
/* store features  */
.adv{
    background-color:#343434;
    color: #F0A500;
    border-left: 2px solid  #FFB22C;
    border-right: 2px solid  #FFB22C;
    font-weight: 300;
    margin: 15px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 300px;
}


.advantages {
    display: flex;
    flex-direction: column;
    gap: 25px;  
    font-weight: bold;
    word-spacing: 3px;
    letter-spacing: 1px;
    height: 250px;
}

.img1{
    display: block;
    width: 350px;
    height: 270px;
    border: 2px solid #FFB22C;
    border-radius: 10px;
}
/* ====================================================================================================== */
/* presentation of products */
.some{
    background-color:#343434;
    color: #F0A500;
    border: 2px solid  #FFB22C;
    font-weight: bold;
    font-size: large;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
    border-radius: 20px;
}

.products {
    display: flex;
    flex-wrap: wrap;
    width: 99%;
    margin: 15px;
    background-color: #343434;
    color: #F0A500;
    border: 2px solid #FFB22C ;
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
}

.products img {
    width: calc((100% - 20px)/3);
    height: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border: 1px solid #FFB22C ;
    border-radius: 12px;
}

.products img:hover {
    transform: scale(1.02); 
}
/* ======================================================================================================================== */
/* products */
 
.product-card{
    display: flex;
    border-left: 2px solid #FFB22C ;
    transition: transform 0.3s ease;
    width: 99%;
    height: 400px;
    background-color: #343434;
    color: #F0A500;
    margin : 15px;
    border-radius: 10px;
    font-weight: bold;
}
.product-img{
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: space-around;
    border: 2px solid #FFB22C ;
    margin-left: 15px;
    margin-top: 10px;
    padding: 0px;
    border-radius: 12px;
}
.product-card:hover {
    transform: scale(1.02);  
}

ul li{
    display: flex;
    font-weight: 600;
    padding: 5px;
    margin: 10px;
}
 .details{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 13px;
    margin-left: 25px;
    
}
.product-info{

    color: #FFB22C;
    margin-top: 10px;
} 

.product-info h3{
    margin-top: 5px;
    font-weight: bold;
    
}

.price {
    margin-top: 4px;
  font-weight: bold;
}

.add-fav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 280px;
    margin-right: 10px; /* حركهم ناحية اليمين */
    gap: 10px; /* مسافة بسيطة بين الزرين */
}

.fav {
    background: none;
    border: none;
    cursor: pointer;
}
.heart-icon {
    font-size:2rem;
    color: #F0A500;
    transition: color 0.3s ease;
}

.heart-icon.active {
    color: red;
}
.addtocart{
    display: flex;
    background-color: #1A1C20;
    color: #F0A500;
    text-align: center;
    align-items: center;
    padding: 10px 30px;
    font-weight: 800 ;
    border-radius: 15px;
    border-color: #FFB22C;
    transition: all 0.3s ease;
    margin-left: 8px;
    cursor: pointer;

}
.addtocart:hover{
    box-shadow: 0px 3px 5px goldenrod;
    color: white;
    background-color:goldenrod;

    
}
/* =================================================================================================================================== */
/* Go To Top  */
#Backtotop{
    background-color: #4a4a4a;
    color: white;
    border-radius: 50%;
    padding: 3px 20px;
    position: fixed;
    z-index: 100;
    border: none;
    cursor: pointer;
    bottom: 15px;
    right: 15px;
    font-size: 30px;
    display: none;
    box-shadow: 0 0 2px #FFB22C;
}
#Backtotop:hover{
    border:1px solid #FFB22C;
    color: #F0A500;
}
/* =================================================================================================================================== */


footer {
    background-color: #343434;
    color: #F0A500;
    padding: 32px 5% 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding-bottom: 30px;
}

.footer-section {
    flex: 1;
    padding: 0 16px;
}

.footer-section h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}
.footer-section ul li a {
    color: #F0A500;
    text-decoration: none;
}
.social-icons {
    display: flex;
    gap: 16px;
}
.social-icons a {
    color: #F0A500;
    font-size: 1.2rem;
}
.footer-bottom {
    text-align: center;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
}

/* الوضع النهاري */
body.light-mode .Divone,
body.light-mode .adv,
body.light-mode .some,
body.light-mode .products {
  background-color: #fff8dc;  /* لون أصفر فاتح */
  color: black;
  border: 2px solid #F0A500;
}

body.light-mode .products img { 
  border-color: #F0A500;
}

/* ✅ Responsive Design */
@media (max-width: 992px) {
  .product-card {
    flex-direction: column;
    height: auto;
    align-items: center;
  }

  .product-img {
    width: 90%;
    height: auto;
    margin: 10px auto;
  }

  .add-fav {
    margin-top: 20px;
    justify-content: center;
  }

  .adv {
    flex-direction: column;
    height: auto;
    text-align: center;
  }

  .img1 {
    width: 90%;
    height: auto;
    margin-top: 10px;
  }

  .products img {
    width: 100%;
    height: auto;
  }

  .navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .split-btn-container {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .details ul {
    padding-left: 15px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .price {
    font-size: 0.9rem;
  }

  .addtocart {
    font-size: 0.9rem;
    padding: 8px 20px;
  }

  .heart-icon {
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
