@charset "utf-8";

@font-face {

   font-family: myFirstFont;

   src: url(../fonts/DroidKufi-Regular.ttf), url(../fonts/DroidKufi-Regular.eot) format('truetype');

}
*:focus {
  outline: none;
}
body {
  font-family: 'myFirstFont', sans-serif;
  margin: 0;
  overflow-x: hidden;
  direction: rtl;
}

s, strike{text-decoration:none;position:relative;}
s::before, strike::before {
    top: 50%; /*tweak this to adjust the vertical position if it's off a bit due to your font family */
    background:red; /*this is the color of the line*/
    opacity:.7;
    content: '';
    width: 110%;
    position: absolute;
    height:.1em;
    border-radius:.1em;
    left: -5%;
    white-space:nowrap;
    display: block;
    transform: rotate(-15deg);  
}
s.straight::before, strike.straight::before{transform: rotate(0deg);left:-1%;width:102%;}

.items-card{
  cursor: pointer;
}

/* تثبيت الهيدر في الأعلى */
.header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-bottom: 0; /* إزالة أي مسافة سفلية */
}

/* شريط المينيو */
.navbar {
    position: sticky;
    top: 60px; /* يجب أن يساوي ارتفاع الهيدر بالضبط */
    transition: all 0.3s ease;
    z-index: 999; /* أقل من الهيدر */
    margin-top: -1px; /* لإزالة أي مسافة بينهما */
    border-top: none; /* لمنع تكرار الحدود */
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* تحسينات للبادج */
.padge {
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
    color: #fff;
}





@media (max-width: 576px) {
  .logo {
    font-size: 22px;
  }

  .icon {
    font-size: 20px;
    margin: 0 6px;
  }

  .side-menu {
    width: 80%;
  }
}

.text-gold {
    color: #b08d57;
  }
  .nav-link {
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .nav-link:hover {
    color: #b08d57 !important;
  }


  /* أنماط صفحة المنتج */
.product-thumbnail {
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s;
}
.product-thumbnail:hover, .product-thumbnail.active {
    border-color: #0d6efd;
}
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    margin: 0 5px;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.color-option:hover, .color-option.selected {
    border-color: #000;
}
.size-option {
    display: inline-block;
    padding: 5px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}
.size-option:hover, .size-option.selected {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}
.product-details {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    .product-price {
        font-size: 1.3rem;
    }
    .size-option {
        padding: 5px 10px;
        margin: 0 3px;
        font-size: 0.9rem;
    }
    .add-to-cart-btn {
        padding: 10px !important;
        font-size: 0.9rem;
    }
    .quantity-input-group {
        width: 100px !important;
    }
    .thumbnail-container {
        margin-top: 10px;
    }
    .specs-list li {
        font-size: 0.9rem;
    }
}

/* تنسيق الأحجام */
.size-option {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover, .size-option.selected {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* تنسيق الألوان */
.color-option {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 5px 5px 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-option:hover, .color-option.selected {
    border-color: #000;
    transform: scale(1.1);
}

/* تنسيق مجموعات الألوان */
.color-group {
    margin-top: 10px;
}


/* صندوق اسعار الذهب مباشر   */
.gold-price-card {
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
  }
  
  .gold-header {
    background: linear-gradient(135deg, #f9f1d3 0%, #e6d8b1 100%);
    color: #8b6b28;
    border-bottom: none;
    padding: 1rem;
  }
  
  .gold-icon {
    font-size: 1.5rem;
    color: #b08d57;
  }
  
  .live-badge {
    background: #d9534f;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;

  }
  
  .update-time {
    font-size: 0.8rem;
    color: #8b6b28;
  }
  
  .gold-table {
    margin-bottom: 0;
  }
  
  .gold-table thead {
    background: linear-gradient(to right, #f8f4e8, #f1e8d0);
    color: #8b6b28;
  }
  
  .gold-table th {
    border-top: none;
    font-weight: 600;
    padding: 0.75rem;
  }
  
  .gold-table td {
    padding: 0.75rem;
    vertical-align: middle;
  }
  
  .gold-table tbody tr:nth-child(odd) {
    background-color: rgba(248, 244, 232, 0.5);
  }
  
  .gold-table tbody tr:nth-child(even) {
    background-color: white;
  }
  
  .karat-cell {
    font-weight: 600;
    color: #8b6b28;
  }
  
  .price-cell {
    font-weight: 700;
    color: #28a745;
  }

  /* update live price css*/
  .price-animation {
    display: inline-block;
    transition: all 0.3s ease;
}

.price-up {
    animation: priceRise 0.5s ease;
    color: #28a745;
}

.price-down {
    animation: priceDrop 0.5s ease;
    color: #dc3545;
}

@keyframes priceRise {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes priceDrop {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}
  
