:root {
  --primary: #295F2D;
  --primary-light: #3D8C42;
  --secondary: #D4AF37;
  --secondary-light: #E7C961;
  --accent: #FDF9F1;
  --bg-color: #FAFCFB;
  --text-dark: #1E2D24;
  --text-light: #FFFFFF;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
  -webkit-tap-highlight-color: transparent !important;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}

button,
a,
div,
label,
input {
  -webkit-tap-highlight-color: transparent !important;
}

button:active,
.card:active,
.option:active,
label:active {
  transform: scale(0.97);
  transition: 0.1s;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-center {
  text-align: center;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--secondary);
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(41, 95, 45, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 95, 45, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #C19929;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  width: 100%;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
}

header {
  background: rgba(253, 253, 248, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(41, 95, 45, 0.95) 0%, rgba(41, 95, 45, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  color: var(--text-light);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.benefits {
  padding: 5rem 0;
  background: var(--accent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.benefit-card p {
  color: #555;
}

.products {
  padding: 5rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.05);
  cursor: pointer;
}

.product-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.2s;
}

.product-title:hover {
  color: var(--secondary);
}

.product-price {
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.order-section {
  padding: 5rem 0;
  background: var(--bg-color);
  position: relative;
}

.order-container {
  position: relative;
  z-index: 1;
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-submit {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.2rem;
  margin-top: 1rem;
}

footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: right;
}

.footer-col h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--secondary);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Desktop Invoice / Success Modals Base */
.invoice-modal {
  max-width: 500px !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 90vh !important;
  text-align: right;
  border-radius: 12px;
}

.invoice-header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.invoice-header .logo {
  color: white;
  justify-content: center;
  margin-bottom: 1rem;
}

.invoice-header .logo span {
  color: var(--secondary);
}

.invoice-date {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.invoice-body {
  padding: 2rem;
}

.customer-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.customer-info strong {
  color: var(--text-dark);
}

.invoice-items {
  margin-bottom: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #eee;
}

.invoice-item-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
}

.invoice-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.invoice-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.invoice-item-qty {
  font-size: 0.85rem;
  color: #777;
}

.invoice-item-price {
  font-weight: 800;
  color: var(--secondary);
}

.invoice-total {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.payment-method {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.invoice-footer {
  background: #fdfdf8;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.invoice-footer p {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .order-container {
    padding: 1.5rem;
  }

  .footer-content {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Strict 2-column layout for mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  .product-img {
    height: 180px;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .product-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .benefit-card {
    padding: 1rem 0.5rem;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 400px;
  transform: scale(0.9);
  opacity: 0;
  transition: var(--transition);
}

.modal.active {
  display: flex;
}

.modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.products-selection-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.product-item-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: var(--transition);
}

.product-item-select label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  flex-grow: 1;
}

.product-item-select input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-product-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-box i {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

/* Custom Additions */

.floating-call-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background-color: var(--primary);
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-call-btn:hover {
  transform: translateY(-3px) scale(1.05);
  color: white;
}

.product-modal-content {
  max-width: 800px !important;
  width: 95% !important;
  padding: 2.5rem !important;
  position: relative;
  text-align: right;
  overflow-y: auto;
  max-height: 90vh;
}

.btn-close-modal {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #f5f5f5;
  color: #555;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background: #e74c3c;
  color: white;
}

.modal-product-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  filter: brightness(1.05) contrast(1.05);
}

.modal-title-price {
  flex-grow: 1;
}

.modal-title-price h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  background: rgba(212, 175, 55, 0.1);
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text-dark);
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-copy-link:hover {
  background: #eee;
}

.modal-product-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.modal-product-desc ul {
  list-style: none;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.modal-product-desc ul li {
  margin-bottom: 0.4rem;
  position: relative;
}

.modal-product-desc ul li::before {
  content: '✓';
  position: absolute;
  right: -1.5rem;
  color: var(--primary);
  font-weight: bold;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  user-select: none;
  /* Prevent selection on mobile */
  touch-action: manipulation;
  /* Remove double-tap zoom delay */
}

.qty-selector.small {
  transform: scale(0.9);
  transform-origin: left center;
}

.qty-selector.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #f9f9f9;
}

.btn-qty {
  background: #f9f9f9;
  color: var(--text-dark);
  border: none;
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
  user-select: none;
  touch-action: manipulation;
}

.btn-qty:hover {
  background: #e0e0e0;
}

.qty-input-small,
.qty-input-main {
  width: 50px;
  height: 45px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.delivery-options {
  display: flex;
  gap: 1rem;
}

.delivery-card {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.3s;
  background: white;
}

.delivery-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.delivery-card input[type="radio"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.delivery-details {
  display: flex;
  flex-direction: column;
}

.delivery-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.delivery-price {
  color: var(--secondary);
  font-weight: 800;
}

.delivery-card:has(input:checked) {
  border-color: var(--primary);
  background-color: #f2fcf6;
}

@media (max-width: 600px) {
  .modal-product-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }

  .modal-img {
    width: 100%;
    max-width: 250px;
    height: 250px;
  }

  .modal-title-price h2 {
    font-size: 1.5rem;
  }

  .delivery-options {
    flex-direction: column;
  }
}