:root {
  --primary-color: #28a745;
  --primary-dark: #218838;
  --primary-light: #e9f7ef;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-radius: 0.5rem;
  --box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background-color: #f9f9f9;
  color: var(--text-color);
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* Header styling */
.announcement-bar {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-weight: bold;
  box-shadow: var(--box-shadow);
}

/* Product section styling */
.product-container {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform var(--transition-speed);
}

.product-container:hover {
  transform: translateY(-5px);
}

.product-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.product-price {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(120deg, var(--primary-light) 0%, transparent 70%);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

/* Product carousel styling */
.product-carousel {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}

.carousel-image {
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-indicators {
  margin-bottom: 0.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
  transition: all var(--transition-speed) ease;
}

.carousel-indicators .active {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
}

.carousel-control-prev, .carousel-control-next {
  width: 10%;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.product-carousel:hover .carousel-control-prev,
.product-carousel:hover .carousel-control-next {
  opacity: 0.8;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 50%;
}

.z-index-1 {
  z-index: 1;
}

/* Form styling */
.form-section {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid #e9ecef;
}

.form-section:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.form-section h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.form-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.form-section .row {
  margin-bottom: 1rem;
}

.form-section .form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  display: block;
}

.delivery-options {
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1rem;
  background-color: #f8f9fa;
}

.form-control, .form-select {
  border-radius: var(--border-radius);
  padding: 0.85rem;
  border: 1px solid #ced4da;
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
  background-color: #f8f9fa;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.15);
  transform: translateY(-2px);
  background-color: #fff;
}

.form-check {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.form-check-input {
  margin-top: 0.3rem;
}

/* Order summary styling */
.order-summary {
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 0.25rem 0.5rem rgba(40, 167, 69, 0.1);
}

.order-summary h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.order-summary h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.order-summary p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-summary hr {
  border-color: var(--primary-color);
  opacity: 0.2;
  margin: 1rem 0;
}

.order-summary h4 {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1.4rem;
}

/* Button styling */
.btn-primary, .btn-success {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
  letter-spacing: 0.5px;
}

.btn-primary:hover, .btn-success:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

.btn-primary:active, .btn-success:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-info {
  background: linear-gradient(135deg, var(--accent-color), #e6a800);
  border-color: var(--accent-color);
  color: #212529;
  box-shadow: 0 4px 6px rgba(255, 193, 7, 0.2);
  font-weight: 600;
}

.btn-info:hover {
  background: linear-gradient(135deg, #e6a800, var(--accent-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.3);
}

/* Product description styling */
.product-description {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2.5rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.product-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.product-description h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
  font-size: 1.8rem;
}

.product-description p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.product-description strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.product-description ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-description li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 0.5rem;
}

/* Sticky button styling */
.sticky-button {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  padding: 15px;
  display: flex;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.4s ease;
}

.sticky-button.hidden {
  transform: translateY(100%);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .product-title {
    font-size: 1.8rem;
  }

  .product-price {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .product-container, .form-section, .product-description {
    padding: 1.5rem;
  }

  .form-section {
    border-width: 2px;
  }

  .sticky-button {
    padding: 10px;
  }

  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .product-title {
    font-size: 1.6rem;
  }

  .form-section h3 {
    font-size: 1.4rem;
  }

  .product-description h3 {
    font-size: 1.5rem;
  }

  .carousel-control-prev-icon, .carousel-control-next-icon {
    padding: 1rem;
  }

  .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
  }

  .carousel-indicators .active {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .product-container, .form-section, .product-description {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .form-section .col-md-6 > div {
    margin-bottom: 1.25rem;
  }

  .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .form-control, .form-select {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .order-summary {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .order-summary h5 {
    font-size: 1.1rem;
  }

  .order-summary h4 {
    font-size: 1.25rem;
  }

  .sticky-button {
    padding: 8px;
  }

  .btn-lg {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }

  .carousel-control-prev, .carousel-control-next {
    width: 15%;
  }

  .carousel-control-prev-icon, .carousel-control-next-icon {
    padding: 0.8rem;
  }
}
