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;
}
.btn-gradient {
  background: var(--bs-primary);
  border: none;
  border-radius: 25px;
  color: white;
  transition: all 0.3s ease;
}

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

/*
* Typography
*/
.text-primary {
  color: var(--bs-primary) !important;
}

/*
* Borders
*/
.border-primary {
  border-color: var(--bs-primary) !important;
}
.rounded-20 {
  border-radius: 20px !important;
}

/*
* Header
*/
.offcanvas.show {
  visibility: visible;
}
.search-bar {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}
.search-bar:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
@media (max-width: 768px) {
  .offcanvas-start {
    width: 250px;
  }
}

/*
* Home.Hero
*/
.hero-section {
  background: var(--bs-secondary);
  min-height: 60vh;
}

/*
* Home.Categories
*/
.category-circle-card {
  display: inline-block;
  max-width: 200px;
}
.circle-image-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--bs-primary);
}
.circle-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-name {
  font-size: 1.1rem;
  margin-top: 10px;
}

/*
* Home.Products
*/
.product-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

/*
* Footer
*/
.footer {
  background: #1a1a1a;
  color: #fff;
}
.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #fff;
}
.whatsapp-contact-icon {
  position: fixed;
  background-color: #075E54;
  bottom: 10px;
  right: 10px;
  text-align: center;
  border-radius: 50px;
  padding: 2px 12px;
}
.whatsapp-contact-icon a {
  color: #fff;
  font-size: 32px;
}

/*
* Badges
*/
.badge-new {
  background: var(--bs-primary);
  color: white;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

/*
* Product Page
*/
.product-image {
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.rating {
  color: #ffc107;
}
.review-card {
  border-radius: 15px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}
.related-product {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.related-product img {
  height: 240px;
}
.order-form {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #e9ecef;
}
.thumbnail {
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}
.quantity-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}
.quantity-control .btn {
  border: none;
  background: transparent;
  color: #667eea;
  font-weight: bold;
}
.quantity-control .btn:hover {
  background: #667eea;
  color: white;
}
.quantity-control input {
  border: none;
  text-align: center;
  background: transparent;
}
.quantity-control input:focus {
  outline: none;
  box-shadow: none;
}
.variant-option {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.variant-option:hover {
  border-color: var(--bs-primary);
}
.variant-option.active {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: white;
}
.fixed-order-btn {
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 1000;
}
.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;
}
.moving-button {
  animation: moveLeftRight .8s ease-in-out infinite;
}
@keyframes moveLeftRight {
  0% {transform: translateX(-10px);}
  50% {transform: translateX(10px);}
  100% {transform: translateX(-10px);}
}
@media (max-width: 768px) {
  .related-product img {
      height: 300px;
    }
}

/*
* 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;
}

/*
* Profile
*/
.profile-side-card {
	border-radius: 20px;
}
.profile-side-card ul li{
	padding: 10px;
}
.profile-side-card ul li.active{
	border-radius: 12px;
	background-color: var(--bs-light);
}