:root {
  --primary: #27ae60;
  --primary-dark: #219653;
  --secondary: #6fcf97;
  --primary-green: #2e8b57;
  --secondary-green: #3cb371;
  --dark-green: #1a5c36;
  --gold: #d4af37;
  --light-gold: #e8c874;
  --cream: #fffaf0;
  --light-cream: #fffdf8;
  --dark-text: #2a2a2a;
  --light-text: #5a5a5a;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --dark: #2d3436;
  --light: #f5f6fa;
  --success: #27ae60;
  --danger: #d63031;
  --warning: #fdcb6e;
  --info: #0984e3;
  --gray: #dfe6e9;
  --white: #ffffff;
  --gold: #fdcb6e;
  --transition: all 0.3s ease;
  --dark-green: #1a3c34;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  color: var(--gold);
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--danger);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/branding/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.hero-content h1 {
  font-size: 35px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 5%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

nav.scrolled .logo, nav.scrolled .nav-links a {
  color: var(--dark-green);
}

nav.scrolled .btn-nav {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  width: 120px;
  height: auto;
  max-height: 100px;
  margin-left: 10px;
}

#mainNav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-right: 30px;
}

.cart-icon {
  position: relative;
  font-size: 30px;
  cursor: pointer;
  color: white;
  margin-left: auto;
  margin-right: 20px;
}

nav.scrolled .cart-icon {
  color: var(--dark-green);
}

.logo i {
  color: var(--gold);
  margin-right: 10px;
  font-size: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 10px 25px;
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-nav:hover {
  background: white;
  color: var(--dark-green);
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  margin-right: 30px;
}

nav.scrolled .hamburger {
  color: var(--dark-green);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-right: 2px;
  }

  .cart-icon {
    display: block;
    margin-right: 10px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--white);
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    margin-right: 0;
  }

  .nav-links.active {
    display: flex;
    right: 0;
  }

  .nav-links a, .nav-links .btn-nav, .nav-links .cart-icon {
    color: var(--dark-green);
    margin-bottom: 20px;
    font-size: 18px;
  }

  .nav-links .btn-nav {
    border-color: var(--primary);
    color: var(--primary);
  }

  .nav-links .btn-nav:hover {
    background: var(--primary);
    color: white;
  }

  .nav-links .cart-icon {
    margin-left: 0;
  }
  /* Logo size adjustment for mobile */
  .logo img {
    width: 80px;  /* Reduced from 120px to 80px for mobile */
  }
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  color: var(--dark);
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.filter-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  background-color: var(--gray);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
}

.filter-btn:hover {
  background-color: var(--primary-dark);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 200px;
  background-color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark);
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions button {
  flex: 1;
  min-width: 100px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.add-to-cart {
  background-color: var(--primary);
  color: white;
}

.add-to-cart:hover {
  background-color: var(--primary-dark);
}

.buy-now {
  background-color: var(--gold);
  color: var(--dark);
}

.buy-now:hover {
  background-color: #e8b759;
}

.details-btn {
  background-color: var(--info);
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  border: nothing;
  cursor: pointer;
}

.details-btn:hover {
  background-color: #0a73c4;
  text-decoration: none;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: var(--white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 22px;
  color: var(--dark);
}

.close-cart {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

.cart-items {
  padding: 20px;
}

.cart-item {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background-color: var(--gray);
  border-radius: 5px;
  margin-right: 15px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  background-color: var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.quantity {
  margin: 0 10px;
  min-width: 20px;
  text-align: center;
}

.remove-item {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
}

.cart-summary {
  padding: 20px;
  border-top: 1px solid var(--gray);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.checkout-btn:hover {
  background-color: var(--primary-dark);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: none;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-modal.active {
  display: flex;
  flex-direction: column;
}

.modal-body {
  padding: 20px;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: none;
  max-height: 90vh;
  overflow-y: auto;
}

.product-modal.active {
  display: block;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 22px;
  color: var(--dark);
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

.modal-body {
  padding: 20px;
}

.product-detail-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .product-detail-container {
    flex-direction: row;
  }
}

.product-detail-image {
  flex: 1;
  min-height: 300px;
  background-color: var(--gray);
  border-radius: 8px;
  overflow: hidden;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  flex: 1;
  padding: 0 10px;
}

.product-detail-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark);
}

.product-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-detail-description {
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-detail-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray);
  border-radius: 5px;
  font-size: 16px;
}

.payment-methods {
  margin: 20px 0;
}

.payment-method {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.payment-method input {
  margin-right: 10px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--gray);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.added-to-cart-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.added-to-cart-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.added-to-cart-notification .btn {
  padding: 8px 15px;
  background: white;
  color: var(--primary);
  font-size: 14px;
}

footer {
  background-color: var(--dark-green);
  color: white;
  padding: 80px 10% 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo i {
  color: var(--gold);
  margin-right: 10px;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--gold);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  font-family: 'Playfair Display', serif;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-contact p {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--gold);
  margin-right: 10px;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.btn-cancel {
  background-color: var(--danger);
}

.btn-cancel:hover {
  background-color: #c0392b;
}

.terms-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  z-index: 1002;
  display: none;
  overflow-y: auto;
}

.terms-modal.active {
  display: block;
}

.terms-content {
  padding: 20px;
}

.terms-content h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.terms-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.terms-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.terms-content li {
  margin-bottom: 8px;
}

.terms-checkbox {
  margin: 20px 0;
  display: flex;
  align-items: center;
}

.terms-checkbox input {
  margin-right: 10px;
}

.terms-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--gray);
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .cart-sidebar {
    width: 320px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .filter-btn {
    padding: 8px 15px;
    margin: 5px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .cart-sidebar {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 28px;  /* REDUCED FONT SIZE FOR MOBILE */
  }

  .hero-content p {
    font-size: 16px;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions .btn {
    width: 100%;
  }

  .filter-btn {
    padding: 6px 12px;
    margin: 5px;
  }
}
