#top-banner {
  text-align: center;
  position: absolute !important;
  top: 0px !important;
  width: 100% !important;
  direction: ltr !important;
  z-index: 2147 !important;
  background: #165bbc;
  height: 40px;
  padding: 6px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9em;
  color: white;
  line-height: 25px;
}

.footer-link {
    display: inline-block;
    margin: 5px 10px;
    padding: 5px 0;
    color: black;
    font-size: 12px;
    transition: color 0.3s ease;
  }

.footer-link:hover {
    color: black;
    text-decoration: underline;
  }

.collapsible {
  cursor: pointer;
  padding: 0px;
  width: 99%;
  border: none;
  outline: none;
  background: #3196bd;
  border-radius: 0.5em;
}

.content {
  padding: 0 1px;
  display: none;
  overflow: hidden;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 45px;
  height: 45px;
  padding: 5px;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  text-align: center;
  background-color: #0f5b76; 
  color: white !important;
  border: none;
  opacity: 0;
  transition: opacity 0.4s, background-color 0.3s;
}

#backToTop.show {
  display: block;
  opacity: 1;
}

#backToTop:hover {
  background-color: #23527c; /* darker blue */
  color: white !important;
}

.product-code {
            color: lightgray;
            float: right;
            text-align: left;
            margin-bottom: 2px;
             position: relative;
          }
.sku { font-size: 10px; }
.upc, .ean { font-size: 14px; }
.image-additional {
           display: none !important;
          }
.product-card {
  position: relative;
  padding-bottom: 60px; /* نحجز مكان دائم للأزرار تحت المنتج */
}

.product-actions {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-actions button {
  flex: 1;
  font-size: 1em;
  padding: 6px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

/* ألوان محددة لكل زر */
.product-actions button:nth-child(1) { /* معلومات إضافية */
  background-color: #e8f0fe;
  color: #333;
}

.product-actions button:nth-child(2) { /* إضافة للسلة */
  background-color: #f1f1f1;
  color: #333;
}

.product-actions button:nth-child(3) { /* واتساب */
  background-color: #25d366;
  color: white;
  font-weight: bold;
}

.product-actions button:hover {
  opacity: 0.9;
}

.features-boxes .feature-box {
  background: #f4f6f7;
  padding: 25px 20px;
  border-radius: 12px;
  min-height: 160px;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.features-boxes .feature-box:hover {
  background: #e1e8ea;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.features-boxes .feature-box h4 {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 18px;
}

.features-boxes .feature-box p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.original-warning {
  background: #2099c7;
  font-size: 0.8em;
  padding: 0.5em;
  border-radius: 1em;
  color: white;
  position: absolute;
  top: -1em;
  right: 1em;
  font-weight: bold;
}

.original-warning img {
  height: 22px;
  vertical-align: middle;
  margin-right: 5px;
}
.product-mpn {
  font-size: 1em;
  padding: 0.5em;
  border-radius: 1em;
  color: black;
  position: absolute;
  top: 4em;
  left: 1em;
  font-weight: bold;
  border-style: solid;
}
.discount-badge {
  display: flex;
  justify-content: space-around;
  font-size: 25px;
  font-weight: bold;
  padding: 2px 5px;
  color: white;
  background-color: #ff7d06;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.price-wrapper {
  margin: 10px 0;
}

.price-text {
  font-size: 1.6em;
  color: #444;
  font-weight: bold;
}

.right-border-highlight {
  border-right: 6px solid #219ac8;
  padding-right: 18px;
  border-left: 0;
  border-top: 0;
  border-bottom: 0;
}

.family-title {
  text-align: center;
  font-weight: bold;
  font-size: 2em;
  margin: 36px 0 22px 0;
  color: #21436e;
  background: #f6f8fb;
  padding: 18px 0 12px 0;
  border-radius: 0px;         /* اذا بدك حواف ناعمة استعمل 18px */
  box-shadow: 0 1px 6px rgba(44,120,220,0.07);
  letter-spacing: 0.5px;
  border-bottom: 4px solid #62a8ea;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  display: block;
}

.family-products-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* افتراضياً على الموبايل 2 جنب بعض */
  gap: 16px;
  justify-items: center;
}

@media (min-width: 768px) {
  .family-products-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.family-product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(44,120,220,0.07);
  width: 170px;
  margin-bottom: 24px;
  padding: 12px 10px 20px 10px;
  text-align: center;
}


.product-outofstock-label {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: bold;
  color: #ff4d4d;
  position: absolute;
  top: 5px;
  right: 3em;
  z-index: 10;
}

.product-outofstock-label .stock-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ff4d4d;
  border-radius: 50%;
  margin-right: 4px;
}

.category-card-wrapper {
  margin-bottom: 20px;
}

.category-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.category-card:hover {
  box-shadow: 0 6px 18px rgba(60,90,170,0.08);
}

.category-link {
  text-decoration: none;
  color: inherit;
}

.category-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 4px;
} 

.modern-btn {
  
  color: black;
  
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-btn:hover {
  
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modern-btn:active {
  transform: scale(0.97);
}

/* === Custom Toast Full-Width Bar === */
#customToast {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: #27c96c;
    color: #fff;
    border-radius: 0;
    padding: 18px 16px 18px 16px;
    box-shadow: 0 -2px 14px rgba(0,0,0,0.08);
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}
#customToastMsg {
    margin-left: 12px;
}
.custom-toast-btn {
    display: inline-block;
    background: #fff;
    color: #27c96c;
    font-weight: bold;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 1em;
    text-decoration: none;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s;
    border: none;
}
.custom-toast-btn:hover,
.custom-toast-btn:focus {
    background: #137f3c;
    color: #fff;
}
#customToast button.close-toast-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    position: absolute;
    top: 0;
    right: 18px;
    cursor: pointer;
    line-height: 1.1;
}


.top-shortcuts-bar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    padding: 10px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.shortcut-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(34,154,200,0.09); /* أزرق شفاف جدا */
    color: #229ac8;
    border: 1px solid #229ac8;
    border-radius: 8px;
    font-size: 1.08em;
    font-weight: 600;
    margin-left: 8px;
    padding: 7px 16px 7px 15px;
    transition: background 0.17s, color 0.17s, border 0.17s;
    text-decoration: none;
    box-shadow: none;
    letter-spacing: 0.01em;
}
.shortcut-btn:last-child { margin-left: 0; }

.shortcut-btn i {
    font-size: 1.3em;
    margin-left: 7px;
    color: #229ac8;
}

.shortcut-btn:hover, .shortcut-btn:focus {
    background: #229ac8;
    color: #fff;
    border-color: #229ac8;
    text-decoration: none;
}
.shortcut-btn:hover i,
.shortcut-btn:focus i {
    color: #fff;
}
.top-shortcuts-bar .shortcuts-list {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-shortcuts-bar > div[style*="flex:1"] {
    flex: 1 1 0%;
    min-width: 320px;
    max-width: 700px;
}

@media (max-width: 900px) {
    .top-shortcuts-bar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .top-shortcuts-bar .shortcuts-list {
        justify-content: center;
        width: 100%;
        margin-bottom: 6px;
    }
    .top-shortcuts-bar > div[style*="flex:1"] {
        width: 100%;
    }
}

.top-shortcuts-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.top-shortcuts-bar .shortcuts-list {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-shortcuts-bar > div[style*="flex:1"] {
    flex: 1 1 0%;
    min-width: 320px;
}
.top-shortcuts-bar form,
.top-shortcuts-bar #search.input-group {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
}
.top-shortcuts-bar input[type="text"] {
    width: 100% !important;
}
.top-shortcuts-bar .input-group-btn {
    width: auto !important;
}
@media (max-width: 900px) {
    .top-shortcuts-bar {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }
    .top-shortcuts-bar .shortcuts-list {
        justify-content: center;
        width: 100%;
        margin-bottom: 6px;
    }
}
