/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Simplified color palette - removed gradients, kept only 4 solid colors */
:root {
  --primary-color: #10b981;
  --secondary-color: #1e3a5f;
  --accent-color: #f59e0b;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
}

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

/* Header & Navigation */
.header {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  z-index: 1001;
}

.logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.nav-link:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Removed gradient from pro-badge, used solid colors */
.pro-badge {
  background-color: var(--accent-color) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 20px;
  font-weight: 600;
}

.pro-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background-color: #f08000 !important;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1100;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 28px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Updated hero to solid colors, removed gradient */

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- HERO SLIDER STYLES --- */

/* --- HERO SLIDER STYLES (CSS-ONLY VERSION) --- */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Alternative: Smooth sliding animation */
.hero-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 2s ease-in-out;
    transform: translateX(100%);
    z-index: 0;
}

.hero-bg-item.active {
    transform: translateX(0);
    z-index: 1;
}

.hero-bg-item.inactive {
    transform: translateX(-100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9), rgba(185, 168, 16, 0.4));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}


/* Indicators */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--primary-color);
}
.btn-contact {
  background-color: var(--accent-color);
  color: #fff;
  border: 2px solid #fff;
}
.btn-contact:hover {
  background-color: var(--secondary-color);
  color: var(--light-bg);
}

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

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

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Updated trust section with solid color background */
.trust-section {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 3rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  opacity: 0.8;
}

/* Featured Products */
.featured-products {
  background-color: var(--light-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background-color: var(--light-bg);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.product-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
}

.product-btn:hover {
  background-color: #059669;
}

/* Why Choose Us */
.why-choose-us {
  background-color: var(--light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 3px solid transparent;
}

.feature-card:hover {
  border-top-color: var(--primary-color);
  transform: translateY(-5px);
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Testimonials */
.testimonials {
  background: #f5f5f5;
  color: #333;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Added profile image styling */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.testimonial-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid #d0d0d0;
}

.testimonial-author-info {
  flex: 1;
}

.testimonial-stars {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  font-style: italic;
  color: #555;
}

.testimonial-author {
  font-weight: 600;
  margin: 0;
  color: #333;
}

.testimonial-role {
  font-size: 0.875rem;
  opacity: 0.7;
  margin: 0;
  color: #666;
}

/* News Section */
.latest-news {
  background-color: var(--light-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.news-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.news-link:hover {
  gap: 0.5rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.7;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section ul li a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.15);
}

.whatsapp-icon {
  font-size: 1.75rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
    background-color: #fff;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh; /* This is key */
    overflow-y: auto; /* This is key */
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.modal-container img{
  max-width: 20rem;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- NEW: Improve spacing inside Account Modal --- */
.edit-address-section {
    margin-top: 2rem; /* Add space above the edit address section */
}

.user-contact-info {
    margin-bottom: 2rem; /* Add space below the contact info */
}

#orderHistory {
    margin-top: 2rem; /* Add space above the order history */
}
/* --- NEW: Account Modal Scroll Fix --- */
#accountModal .modal-content {
    /* Ensure the content area can scroll if needed */
    max-height: 80vh; /* Set a maximum height for the content area */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 2rem;
    box-sizing: border-box; /* Ensure padding is included in the height calculation */
}

/* Optional: Add some padding to the bottom to prevent content from being cut off by the close button */
#accountModal .modal-content {
    padding-bottom: 3rem; /* Add extra space at the bottom */
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 10;
  color: var(--text-dark);
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  min-width: 30rem;
}
.forgot-modal{
  display: flex;
  flex-direction: column;
}
.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: var(--light-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}

.modal-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  color: var(--text-dark);
}

.gallery-nav:hover {
  background-color: #fff;
}

.gallery-nav.prev {
  left: 1rem;
}

.gallery-nav.next {
  right: 1rem;
}

.gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.thumbnail-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: var(--primary-color);
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-product-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.modal-product-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.modal-description h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.modal-description p {
  line-height: 1.8;
  color: var(--text-light);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.modal-btn span {
  font-size: 1.25rem;
}

.alert-modal {
  max-width: 450px;
}

.alert-content {
  padding: 2.5rem;
  text-align: center;
}

.alert-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.alert-icon.success {
  color: var(--primary-color);
}

.alert-icon.error {
  color: #ef4444;
}

.alert-content h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.alert-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.alert-content .btn {
  min-width: 150px;
}

/* Added styles for products page filters and search */
.products-section {
  padding: 3rem 0;
  background-color: var(--light-bg);
  min-height: calc(100vh - 300px);
}

.products-filters {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.filter-select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-dark);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Added styles for about page sections */
.about-section {
  padding: 5rem 0;
  background-color: #fff;
}

.about-intro {
  margin-bottom: 4rem;
}

.about-intro h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.about-intro p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.about-card {
  background-color: var(--light-bg);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

.about-card-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.about-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.values-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.team-section {
  padding: 5rem 0;
  background-color: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.team-bio {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.certifications-section {
  padding: 5rem 0;
  background-color: #fff;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.cert-item {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border-left: 4px solid var(--primary-color);
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cert-item h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.cert-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Services Page Styles */
.services-overview {
  padding: 5rem 0;
  background-color: #fff;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-hero-card {
  background-color: var(--light-bg);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  border-top: 4px solid var(--primary-color);
  transition: all 0.3s;
}

.service-hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.service-hero-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service-hero-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.detailed-services {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.service-detail {
  margin-bottom: 4rem;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background-color: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.service-content-reverse {
  direction: rtl;
}

.service-content-reverse > * {
  direction: ltr;
}

.service-text h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.service-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.process-section {
  padding: 5rem 0;
  background-color: #fff;
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.process-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.process-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  display: none;
}

.benefits-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-align: center;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-item h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.benefit-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-section {
  padding: 5rem 0;
  background-color: #fff;
}

/* Added comprehensive contact page styling */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form-wrapper {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-wrapper h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
}

.contact-info-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  background-color: var(--light-bg);
  padding: 1.75rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s;
}

.contact-info-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.contact-info-icon {
  font-size: 2.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-info-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.info-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem !important;
}

.business-hours {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
}

.business-hours h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.business-hours ul {
  list-style: none;
}

.business-hours li {
  padding: 0.5rem 0;
  line-height: 1.7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.business-hours li:last-child {
  border-bottom: none;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background-color: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.faq-item {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Map Section */
.map-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
  text-align: center;
}

.map-section h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.map-section > p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.map-placeholder {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-placeholder p {
  color: var(--text-light);
}

/* News/Blog Page Styles */
.news-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
  min-height: calc(100vh - 300px);
}

.news-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.news-full-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 0;
}

.news-full-card:hover {
  box-shadow: var(--shadow-lg);
}

.news-full-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.news-full-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.news-full-date {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-full-card h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-full-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Article Popup Modal */
.article-modal-content {
  padding: 3rem;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.article-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem 0;
}

.article-body {
  line-height: 1.9;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

/* Subscribe Section */
.subscribe-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: #fff;
}

.subscribe-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.subscribe-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.subscribe-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.subscribe-form button {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.subscribe-form button:hover {
  background-color: #0284c7;
}

/* Page Header */
.page-header {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 70px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.95;
}


.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* --- NEW: Cart, User Auth, and Order History Styles --- */

/* Navigation Section for Auth and Cart */
.nav-auth-section {
    display: flex;
    align-items: center;
    gap: 1rem; /* Space between login, logout, account, cart links */
}

.nav-auth-section a,
.nav-auth-section .cart-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-auth-section a:hover,
.nav-auth-section .cart-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Cart Link Specific */
.cart-link {
    background-color: var(--primary-color);
    color: white !important; /* Ensure white text overrides other styles */
    padding: 0.5rem 1rem;
    border-radius: 20px; /* Pill shape */
    font-weight: 600;
    display: inline-block;
}

.cart-link:hover {
    background-color: #059669; /* Darker shade on hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important; /* Ensure white text on hover */
}

/* Modals for Cart and Account */
#cartModal .modal-content,
#accountModal .modal-content {
    /* Override default modal content grid layout */
    display: block;
    padding: 2rem;
}

#cartContent,
#orderHistory {
    max-height: 60vh; /* Limit height for scrolling if needed */
    overflow-y: auto;
    padding: 1rem 0;
}

#cartContent ul,
#orderHistory .orders-list {
    list-style-type: none;
    padding: 0;
}

#cartContent li,
.order-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#cartContent button {
    margin: 0 0.25rem; /* Small gap between +/-/Remove buttons */
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.order-items-list {
    list-style-type: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.order-items-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}



/* --- Updated: Container Width and Mobile Breakpoint --- */


/* ========================================
   RESPONSIVE DESIGN — MOBILE FIRST (UP TO 1200px)
   ======================================== */

@media (max-width: 1200px) {
  /* === NAVIGATION MENU (MOBILE SIDEBAR) === */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    border-radius: 0;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none;
    background-color: var(--light-bg);
    transform: none;
    margin-top: 0;
  }

  .nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }

  .dropdown-item {
    padding-left: 2rem;
  }

  /* Show hamburger menu button on mobile */
  .mobile-menu-btn {
    display: flex;
  }

  /* === AUTH & CART IN MOBILE MENU === */
  .nav-auth-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-auth-section a,
  .nav-auth-section .cart-link {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .cart-link {
    background-color: var(--primary-color);
    color: white !important;
    text-align: center;
    border-radius: 8px;
  }

  /* === HERO SECTION === */
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* === SECTIONS & GRID LAYOUTS === */
  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .testimonials-grid,
  .news-grid,
  .team-grid,
  .values-grid,
  .certifications-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .service-content,
  .contact-content,
  .news-full-card,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modal-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    min-width: 20rem;
  }

  .modal-container {
    flex-direction: column;
  }

  .modal-product-name {
    font-size: 1.5rem;
  }

  .modal-product-price {
    font-size: 2rem;
  }

  /* === IMAGES & GALLERY === */
  .main-image-container,
  .service-image img,
  .news-full-image,
  .article-image,
  .map-placeholder {
    height: 300px;
  }

  .gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  /* === CTA & FORMS === */
  .cta-content h2 {
    font-size: 1.75rem;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
  }

  .products-filters {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  /* === FOOTER === */
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* === PAGE HEADER === */
  .page-header {
    margin-top: 60px;
    padding: 3rem 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  /* === ABOUT SECTION === */
  .about-card-number {
    font-size: 2rem;
  }

  .about-card h3 {
    font-size: 1.1rem;
  }

  .about-intro h2 {
    font-size: 1.75rem;
  }

  /* === CONTACT INFO === */
  .contact-info-item {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-info-icon {
    font-size: 1.75rem;
  }

  /* === ARTICLE & NEWS === */
  .article-header h2 {
    font-size: 1.75rem;
  }

  /* === HIDE PROCESS ARROW ON MOBILE === */
  .process-arrow {
    display: none;
  }
}

/* ========================================
   EXTRA SMALL SCREENS (UP TO 480px)
   ======================================== */

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }
  .alert-buttons{
  display: flex;
  gap: .5rem;
  flex-direction: column;
}
}

/* ========================================
   DESKTOP STYLES (1201px AND ABOVE)
   ======================================== */
/* --- NEW: Fix for Account Modal on Desktop --- */
@media (min-width: 1201px) {
   .modal-container {
        /* Override the default max-height for desktop */
        max-height: 95vh; /* Slightly less than 90vh to leave room for padding and close button */
        /* Ensure the container can scroll if needed */
        overflow-y: auto;
    }

   .modal-content {
        /* Ensure the content area can scroll if needed */
        max-height: 80vh; /* Set a maximum height for the content area */
        overflow-y: auto; /* Enable vertical scrolling */
        padding: 2rem;
        box-sizing: border-box; /* Ensure padding is included in the height calculation */
    }
}

/* Increase container max-width */
.container {
  max-width: 1400px; /* Increased from 1200px */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- END Updated: Container Width and Mobile Breakpoint --- */

/* Add specific rule for cart link text color if needed */
#viewCartBtn {
    color: rgb(0, 0, 0) !important; /* Ensure text color is white */
    font-weight: 600; /* Ensure text is bold */
    text-decoration: none; /* Ensure no underline */
}

/* Ensure the span inside the cart link also has correct color */
#viewCartBtn span {
    color: rgb(0, 0, 0) !important; /* Ensure count text color is white */
    font-weight: 600; /* Ensure count text is bold */
}
.view-details{

  display: flex;
  flex-direction: column;
  gap: .2rem;

}

/* --- NEW: Login/Signup Modal Styles --- */
#authModal .modal-content {
    display: block; /* Override any grid layout */
    padding: 2rem;
    max-width: 400px; /* Set a specific width */
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

#authSubmitBtn {
    width: 100%;
    margin-top: 1rem;
}

#authToggleText {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

#authToggleText a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

#authToggleText a:hover {
    text-decoration: underline;
}

#authError {
    font-size: 0.875rem;
}

/* --- END NEW: Login/Signup Modal Styles --- */
/* Cart Item Styling */
.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.cart-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

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

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

.cart-item-name {
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-quantity-price {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-actions button {
    margin-right: 5px;
    padding: 4px 8px;
    font-size: 0.85em;
}

.cart-item-actions button:last-child {
    margin-right: 0;
}
/* Order History Item Styling */
.order-item-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 10px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-details {
    flex-grow: 1;
}

.order-item-name {
    font-weight: bold;
    margin-bottom: 2px;
    line-height: 1.3;
}

.order-item-quantity-price {
    font-size: 0.85em;
    color: #666;
}

/* === CART STYLING === */

.cart-modal-content {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.cart-modal-content h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 16px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.cart-item-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    gap: 16px;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background: #fff;
}

.cart-item-image-wrapper {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #ddd;
}

.cart-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-image-wrapper img:hover {
    transform: scale(1.05);
}

.cart-item-info {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: bold;
    color: #4d4c4c;
    margin: 4px 0;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #bdc3c7;
    background: #ecf0f1;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #bdc3c7;
    color: white;
    border-color: #95a5a6;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-display {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #e74c3c;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.cart-total {
    margin-top: 20px;
    padding: 16px;
    background: #f0f7ff;
    border-radius: 10px;
    text-align: right;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    border-top: 2px solid #3498db;
}

.cart-total strong {
    color: #494747;
    font-size: 1.2rem;
}

.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.btn-checkout {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-continue {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: #eeeeee;
    color: rgb(10, 161, 48);
}

/* === ORDER HISTORY STYLING === */

.orders-list {
    margin-top: 16px;
}

.order-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.order-item p {
    margin: 6px 0;
    color: #555;
    font-size: 0.95rem;
}

.order-item p strong {
    color: #2c3e50;
    font-weight: 600;
}

.order-items-list {
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.order-history-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-image-wrapper {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 12px;
    border: 1px solid #ddd;
}

.order-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.order-item-image-wrapper img:hover {
    transform: scale(1.05);
}

.order-item-details {
    flex-grow: 1;
    min-width: 0;
}

.order-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.order-item-qty {
    background: #eaf2f8;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.order-item-price {
    font-weight: bold;
    color: #474747;
}


/* Payment Simulation Modal */
#paymentModal .modal-content {
    padding: 24px;
    max-width: 500px;
}

#paymentModal h2 {
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
}

#paymentModal p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #555;
}

.payment-status {
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.payment-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}


.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* === ORDER HISTORY STATUS BADGES === */

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    margin-left: 8px;
}

.status-badge.pending {
    background: #ffc107;
    color: #212529;
    border: 1px solid #e0a800;
}

.status-badge.paid {
    background: #28a745;
    border: 1px solid #1e7e34;
}

.status-badge.failed {
    background: #dc3545;
    border: 1px solid #c82333;
}

/* === CHECK PAYMENT BUTTON STYLING === */

.btn-check-payment {
    background: linear-gradient(135deg, #6f42c1, #4b0082);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-check-payment:hover {
    background: linear-gradient(135deg, #4b0082, #2d004b);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(111, 66, 193, 0.4);
}

.btn-check-payment:active {
    transform: translateY(0);
}

.btn-check-payment i {
    font-size: 0.9rem;
}

/* Optional: Add a small icon using emoji or Font Awesome */
/* If you want to use an icon, add this inside the button: */
/* <i>🔍</i> or <i>✅</i> */
.btn-reorder {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-reorder:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}
/* === ORDER HISTORY TOTAL AMOUNT STYLING === */

.order-total {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.order-total.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.order-total.paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-total.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- MOBILE NAVIGATION SCROLLABLE --- */
#navMenu.active {
    max-height: 100vh; /* Limits height to 80% of viewport height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Optional: Add padding so content doesn't stick to edges */
#navMenu.active .nav-item,
#navMenu.active .nav-dropdown {
    padding: 0.5rem 1rem;
}

/* Optional: Add a subtle scrollbar for better UX */
#navMenu.active::-webkit-scrollbar {
    width: 8px;
}

#navMenu.active::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#navMenu.active::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#navMenu.active::-webkit-scrollbar-thumb:hover {
    background: #555;
}
