* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: 'Prata', serif;
    color: #333;
    background-color: #ffffff;

  }
  
  #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: #333;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .universal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url('images/background.jpg') no-repeat center center;
    background-size: cover; /* Makes sure the image covers the entire header */
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    height: 80px; /* Adjust if needed to fit your header design */
  }
  
  .header-icon img {
    height: 26px; /* Make it the same size as the cart */
    width: 26px;
    cursor: pointer;
  }

  

  
  /* Cart Slide Panel */
  .cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
  }
  
  .cart-panel.open {
    right: 0;
  }
  
  .cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
  }
  
  .cart-items {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }
  
  .cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
  }
  
  .checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  
  .checkout-btn:hover {
    background-color: #222;
  }
  
  /* Overlay */
  .overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1500;
  }
  
  .overlay.active {
    display: block;
  }
  
  /* Responsive for Mobile */
  @media (max-width: 768px) {
    .header-logo img {
      height: 70px;
    }
  
    .header-icon img {
      height: 22px;
      width: 22px;
    }

    .cart-header h2 {
        margin-left: 20px; /* Adjust the value as you like */
      }

    }
  .cart-items {
    padding: 20px;
    overflow-y: auto;
  }
  .cart-item {
    display: flex;
    direction: rtl;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
  }
  
  .cart-item-left {
    flex-shrink: 0;
  }
  
  .flipped {
    transform: scaleX(-1); /* Flips the image horizontally */
  }

  .cart-title {
    margin-right: 10px; /* Move it to the left */
  }

  .cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 10px;
  }
  
  .cart-item-right {
    margin-left: 20px;
    margin-right: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items:flex-start
  }
  .remove-btn {
    margin-top: 0;
  }
  
  .cart-item-title {
    font-size: 16px;
    color: #1e3932;
    margin: 0 0 4px 0;
  }
  
  .cart-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ensures left alignment */
    margin-bottom: 10px;
    margin-right: 10px;
  }
  .cart-item-price {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.1;
  }
  .cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .cart-item-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
  }

  .cart-item-size {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
  }

  .cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
  }
  
  .subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .note {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
  }
  
  .checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
  }
  
  .checkout-btn:hover {
    background-color: #333;
  }

  .universal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
  }
  
  .header-logo img {
    height: 50px;
  }
  
  .header-right-icons {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between icons */
  }
  
  .lang-button-home {
    position: absolute;
    top: 22px;
    right: 40px; /* Move it to the left of the cart */
    background-color: transparent;
    color: #000; /* Black or choose a color that fits */
    font-size: 18px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    padding: 5px 15px;
    transition: color 0.3s ease;
  }
  
  .lang-button-home:hover {
    color: #D4AF37; /* Gold hover effect */
  }

  .lang-button-index {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    color: #fff; /* White for visibility */
    font-size: 22px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    padding: 5px 15px;
    transition: color 0.3s ease;
  }
  
  .lang-button-index:hover {
    color: #D4AF37; /* Gold hover effect */
  }
  
  
  .header-cart {
    position: relative;
    cursor: pointer;
  }
  
  .header-cart img {
    height: 22px;
  }
  
  #cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

/* Cart count number */
  
  /* Fading cart message */
  .cart-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    opacity: 0;
    z-index: 3000;
    transition: opacity 0.5s ease, top 0.5s ease;
    font-size: 14px;
  }
  
  .cart-message.show {
    opacity: 1;
    top: 80px;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns by default (mobile) */
    gap: 20px;
    padding: 20px;
    max-width: 1200px; /* optional max width to center the grid */
    margin: 0 auto;
  }
  
  .product-item {
    background: none;    
    text-align: center;
    padding: 10px;
  }
  
  .product-item img {
    width: 150px;
  }
  
  .product-item h2 {
    font-size: 14px;
  }
  
  .product-item p {
    font-size: 12px;
  }
  

  .product-page {
    display: flex;
    justify-content: center;  
    flex-direction: column;
    padding: 40px 20px;
    align-items: center;
  }
  
  .product-container {
    width: 100%;
    max-width: 500px;
    text-align: left; /* Align text like example */
}
  
.product-container img {
    width: 100%;
    height: auto;
    border-radius: 0;
    margin-bottom: 20px;
}
.product-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.product-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  .add-to-cart-btn:hover {
    background-color: #333;
  }


  .quantity-section {
    margin: 20px 0;
  }
  
  .quantity-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #1e3932; /* Dark green tone */
  }
  
  /* Quantity box styles (shared between product page & cart panel) */

  .quantity-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    width: 120px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 10px;
  }
  
  .quantity-box button {
    width: 40px;
    height: 100%;
    border: none;
    background: none;
    font-size: 20px;
    color: #1e3932;
    cursor: pointer;
  }
  
  .quantity-box span {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #1e3932;
  }

.quantity-section label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.quantity-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.quantity-container button {
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.quantity-container button:hover {
  background-color: #eaeaea;
}

.quantity-container input {
    width: 60px;
    height: 36px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

.quantity-container input {
    width: 60px;
    height: 32px;
    text-align: center;
    font-size: 16px;
    margin: 0 5px;
    border: 1px solid #ccc;
}

  .price {
    font-size: 20px;
    margin: 10px 0;
  }
  
  .product-description {
    font-size: 16px;
    color: #555;
  }

  
  /* Cart circle button */
  .cart-circle {
    display: inline-block;
    margin-top: 10px;
    font-size: 18px;
    border: 1px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    color: #333;
    text-decoration: none;
  }
  
  .cart-circle:hover {
    background: #333;
    color: #fff;
  }

  .remove-btn {
    background: none;
    color: #999;
    border: none;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: 0;
  }
  
  .remove-btn:hover {
    color: #333;
  }
  
  .close-btn {
    background: none;      /* Removes the button background */
    border: none;          /* Removes the button border */
    padding: 0;            /* Removes extra space inside the button */
    cursor: pointer;       /* Pointer cursor on hover */
    display: flex;         /* Optional: Aligns the image inside nicely */
    align-items: center;
    
  }
  
  .return-arrow {
    width: 24px; /* Adjust size as needed */
    height: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px; /* Default position (English) */
  }
  
  .flipped {
    transform: scaleX(-1); /* Flips the arrow */
    right: auto;
    left: 20px; /* Move to the left for Arabic layout */
  }

  .cart-header {
    display: flex;
    justify-content: space-between; /* Space between arrow & title */
    align-items: center;
    flex-direction: row; /* LEFT -> RIGHT order (Arrow left, Title right) */
    padding: 15px;
  }

  .arrow-icon {
    width: 29px;           /* Adjust size as you need */
    height: 29px;
    display: block;        /* Ensures no extra spacing */
    margin-top: -10px;
  }
  .close-btn:hover .arrow-icon {
    opacity: 0.7;
  }

  .cart-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    opacity: 0;
    z-index: 3000;
    transition: opacity 0.5s ease, top 0.5s ease;
    font-size: 14px;
  }
  
  .cart-message.show {
    opacity: 1;
    top: 80px;
  }

  .cart-count {
    position: absolute;
    bottom: -8px;
    left: -8px;

    background: none;
    border: none;
    color: #930e0e;
    font-size: 14px;
    padding: 0;
    line-height: 1;
  }
  
  .checkout-btn:disabled {
    background-color: #ccc;   /* grey background */
    color: #888;              /* grey text */
    cursor: not-allowed;      /* no pointer cursor */
  }

  a {
    color: #000; /* Black text color */
    text-decoration: none; /* Remove underline */
  }
  
  a:hover {
    color: #252525; /* Darker on hover, optional */
  }

  .exclusive-sticker {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #114746; /* Gold color */
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
  }





  .product-item {
    position: relative; /* Make sure the parent has relative positioning */
    overflow: hidden;
  }

  body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Prata', serif;
  }

  .welcome-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('images/background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }

  .welcome-header img {
    height: 90px;
  }

  .video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }

  .video-container video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 20%; /* shifts the visible area down a bit */
    z-index: -1;
  }

/* Container for the button */
.overlay-content {
    position: absolute;           /* Places it over the video */
    top: 50%;                     /* Center vertically */
    left: 50%;                    /* Center horizontally */
    transform: translate(-50%, -50%);  /* Perfect centering */
    z-index: 2;                   /* Ensure it's above the video */
    text-align: center;
  }

  /* Style for the big logo */
.welcome-logo {
    width: 250px;  /* Change size as needed */
    max-width: 80%;
    margin-bottom: 20px;
}
  /* Button styles */
  .shop-now-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1e3932;     /* Dark green background */
    color: #ffffff;                /* White text */
    text-decoration: none;         /* Remove underline */
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .shop-now-btn:hover {
    background-color: #333333;     /* Darker on hover */
  }
  
  .fullscreen-video {
position: absolute;   /* or fixed, depending on effect */
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;    /* ensures it covers the screen without stretching */
z-index: -1;          /* places it behind other content */
  }

  @media (min-width: 768px) {
    .product-grid {
      grid-template-columns: repeat(3, 1fr); /* 3 per row on tablets and up */
    }
  }
  
  @media (min-width: 1024px) {
    .product-grid {
      grid-template-columns: repeat(4, 1fr); /* 4 per row on large desktops */
    }
  }

  @media (max-width: 600px) {
    .cart-panel {
      width: 100%;
    }
  
    .cart-item-image {
      width: 60px;
      height: 60px;
      object-fit: cover;
    }
  
    .cart-item-name {
      font-size: 14px;
    }
  
    .checkout-btn {
      font-size: 14px;
      padding: 10px;
    }
    
    .add-to-cart-btn.sold-out {
      background-color: #ccc !important;
      color: #666 !important;
      cursor: not-allowed !important;
      border: none;
      padding: 14px 24px;
      text-align: center;
      font-size: 16px;
      font-weight: bold;
      border-radius: 8px;
      display: inline-block;
      margin: 20px auto 0;
    }
  
    .product-container {
      text-align: center;
    }

  }
  .add-to-cart-btn.sold-out {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border: none !important;
    pointer-events: none !important;
    box-shadow: none !important;
    text-transform: none;
    text-align: center;
    font-weight: bold;
  }