body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
}

/*
* Buttons
*/
.btn-primary {
  background-color: var(--bs-primary)!important;
  border-color: var(--bs-primary)!important;
  color: #fff;
}
.btn-outline-primary {
  background-color: transparent !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}
.btn-secondary {
  background-color: var(--bs-secondary)!important;
  border-color: var(--bs-secondary)!important;
  color: #fff;
}
.btn-outline-secondary {
  background-color: transparent !important;
  border-color: var(--bs-secondary) !important;
  color: var(--bs-secondary) !important;
}

/*
* Backgrounds
*/
.bg-primary {
  background-color: var(--bs-primary) !important;
}
.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

/*
* Alerts
*/
.bottom-alert.alert {
  position: fixed;
  bottom: 0px;
  width: 100%;
  margin-bottom: 0px;
  border-radius: 0px;
  color: #fff;
  border: none;
}
.bottom-alert.alert.alert-danger {
  background-color: var(--bs-danger);
}
.bottom-alert.alert.alert-success {
  background-color: var(--bs-success);
}

/* 
* Scrollbar 
*/
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

/* 
* Navbar 
*/
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--bs-primary) !important;
}
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-form {
  max-width: 400px;
}
.cart-icon {
  position: relative;
  color: var(--bs-dark);
  font-size: 1.2rem;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--bs-primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
* Products
*/
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}
.product-image {
  height: 250px;
  object-fit: cover;
  width: 100%;
}
.product-name {
  font-weight: 600;
  color: var(--bs-dark);
  margin-bottom: 0.5rem;
}
.latest-products {
  padding: 4rem 0;
  background: #f8f9fa;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--bs-dark);
  font-weight: 700;
}

/*
* Footer
*/
footer {
  background: var(--bs-secondary);
  color: white;
  padding: 3rem 0 1rem;
}
.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}
.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}
.copyright {
  border-top: 1px solid #495057;
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: #adb5bd;
}
.whatsapp-contact-icon {
  position: fixed;
  background-color: #075E54;
  bottom: 10px;
  right: 10px;
  text-align: center;
  border-radius: 50px;
  padding: 0px 12px;
}
.whatsapp-contact-icon a {
  color: #fff;
  font-size: 32px;
}

/* 
* product page 
*/
.product-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.product-thumbnail {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--bs-primary);
  transform: scale(1.05);
}
.product-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--bs-dark);
  margin-bottom: 1rem;
}
.product-price {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--bs-primary);
}
.product-description {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}
.slider-viewport{
  width:100%;
  height:clamp(280px, 42vw, 520px);
  overflow:hidden;
  border-radius:.5rem;
  background:#f8f9fa;
}
.slider-slide{
  flex:0 0 100%;
  height:clamp(280px, 42vw, 520px);
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.slider-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
}
/* Thumbnails uniform */
#thumbs .product-thumbnail{
  width:72px; height:72px; object-fit:cover; cursor:pointer; border-radius:.4rem;
}
#thumbs .product-thumbnail.active{ 
  outline:2px solid #0d6efd; 
  outline-offset:2px; 
}
.slider-btn{ /* unchanged */ 
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border:none; border-radius:50%;
  background:rgba(0,0,0,.45); color:#fff; font-size:22px; line-height:1;
  display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2;
}
.slider-btn.prev{ 
  left:1rem;
}
.slider-btn.next{ 
  right:1rem;
}
.slider-track{
  display:flex; 
  will-change: transform; 
  transition: transform 320ms ease;
}
.variant-btn {
  position: relative;
  padding: 16px;
}
.variant-btn.active::after {
  content: "✔";
  color: #fff;
  position: absolute;
  left: -10px;
  top: -12px;
  font-size: 15px;
  background-color: var(--bs-success);
  width: 28px;
  height: 28px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
@media (max-width: 768px) {
  .product-main-image {
    height: 300px;
  }
}
.order-form {
  border: 3px dashed var(--bs-primary);
}
.similar-products {
  padding: 3rem 0;
  background: #f8f9fa;
}
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}
.product-card-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.product-card-title {
  font-weight: 600;
  color: var(--bs-dark);
  font-size: 1rem;
}
.product-card-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--bs-primary);
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--bs-dark);
  font-weight: 700;
}
.rating {
  color: #ffc107;
  margin-bottom: 1rem;
}
.fixed-order-btn {
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 1000;
}

/*
* Cart page
*/
.cart-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.cart-item .item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item .item-title {
  font-weight: 600;
  color: var(--bs-dark);
  margin-bottom: 0.5rem;
}
.cart-item .item-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--bs-primary);
}
.cart-item .quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-item .remove-btn {
  color: var(--danger-color);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cart-item .remove-btn:hover {
  color: #c82333;
}
.cart-item .cart-summary {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 2rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}
.summary-row:last-child {
  border-bottom: none;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--bs-dark);
}
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.empty-cart-icon {
  font-size: 4rem;
  color: var(--bs-secondary);
  margin-bottom: 1rem;
}