:root {
  --primary: #1468df;
  --primary-dark: #0e6ae3;
  --secondary: #f57c00;
  --light: #f0f4f9;
  --dark: #202124;
  --gray: #5f6368;
  --light-gray: #e8eaed;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s ease;
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--light);
  position: relative;
  min-height: 100vh;
}

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

/* Top Bar - Mobile improvements */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 6px 0;
  font-size: 13px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-search {
  flex: 0 1 300px;
  /* Fixed width for search bar */
}

.top-bar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-contact a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 300;
  white-space: nowrap;
}

.top-bar-contact a:hover {
  text-decoration: underline;
}

.top-bar-user {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-bar-user a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 300;
}

.top-bar-user a:hover {
  text-decoration: underline;
}

/* Header - Mobile navigation */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
}

.company-name h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.company-name p {
  font-size: 13px;
  color: var(--gray);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 22px;
  color: var(--dark);
  margin-left: 20px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  padding: 5px 10px;
  margin-left: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

nav a:hover {
  color: var(--primary);
}

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

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.05);
}

.slide.active {
  opacity: 1;
  animation: zoomEffect 6s linear forwards;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.slide-1 {
  background-image: url('https://images.unsplash.com/photo-1611078489935-0cb964de46d6?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.slide-2 {
  background-image: url('https://images.unsplash.com/photo-1612815154858-60aa4c59eaa6?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.slide-3 {
  background-image: url('https://images.unsplash.com/photo-1541807084-5c52b6b3adef?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.slide-4 {
  background-image: url('https://images.unsplash.com/photo-1593642702821-c8da6771f0c6?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NTJ8fGxhcHRvcHxlbnwwfHwwfHx8MA%3D%3D');
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 10;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  display: none;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--light);
  transform: scale(1.2);
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--white);
  padding-top: 25vh;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 17px;
  margin-bottom: 25px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  background: linear-gradient(to right, var(--secondary), #e06d00);
  color: var(--white);
  padding: 10px 26px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 15px;
  opacity: 0;
  animation: fadeIn 0.8s 0.8s forwards;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

/* Categories Section */
.categories {
  background-color: var(--primary);
  padding: 12px 0;
}

.categories-container {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  padding-bottom: 15px;
}

.categories-container::-webkit-scrollbar {
  display: none;
}

.category-btn {
  display: inline-block;
  white-space: nowrap;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 400;
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--white);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 70px 0;
  padding-bottom: 80px !important;
}

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

.section-title h2 {
  font-size: 32px;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

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

/* Services */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  list-style: none;
}

.service-list li {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.service-list li:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 28px;
  color: var(--primary);
  min-width: 40px;
}

.service-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* Products */
.search-container {
  max-width: 560px;
  margin: 0 auto 35px;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  font-size: 15px;
  padding-left: 45px;
  transition: var(--transition);
}

.search-container input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 104, 223, 0.15);
}

.search-container i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 17px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid #e8eaed
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 180px;
  background-color: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-content p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-content span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-card .button-group {
  display: flex;
  gap: 10px;
}

.product-card .button-group button {
  flex: 1;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.product-card .button-group button:last-child {
  background-color: #f0f4f9;
  color: var(--primary);
}

.product-card .button-group button:hover {
  background-color: var(--primary-dark);
}

.product-card .button-group button:last-child:hover {
  background-color: #e2e8f0;
}

/* About Section */
#about {
  background-color: #edf3ff;
}

.about-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.contact-info {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  color: var(--primary);
  font-size: 19px;
  min-width: 28px;
}

.contact-text {
  color: var(--gray);
  font-size: 15px;
}

.contact-text a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

.map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 280px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 25px 0;
  text-align: center;
  margin-top: auto;
  margin-bottom: 65px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  color: var(--white);
  font-size: 19px;
  transition: var(--transition);
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 30px;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    justify-content: center;
    gap: 8px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .hero {
    height: 60vh;
  }

  .hero-content {
    padding-top: 20vh;
  }

  .hero h2 {
    font-size: 26px;
  }

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

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Components */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 25px;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.close-modal:hover {
  color: var(--dark);
}

/* Auth Modal */
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  margin-bottom: -1px;
}

/* Form Elements */
#inquiry-form input,
#inquiry-form textarea,
#login-form input,
#register-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

#inquiry-form textarea {
  height: 110px;
  resize: vertical;
}

#inquiry-form input:focus,
#inquiry-form textarea:focus,
#login-form input:focus,
#register-form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 104, 223, 0.15);
}

#inquiry-form button,
#login-form button,
#register-form button {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
  font-size: 15px;
}

#inquiry-form button:hover,
#login-form button:hover,
#register-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(20, 104, 223, 0.3);
}

/* Cart Components */
.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 22px;
  color: var(--dark);
  margin-left: 20px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

#cart-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 340px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

/* Admin Panel */
.admin-form {
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  max-width: 580px;
  margin: 0 auto;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

/* Product Images */
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-icon {
  font-size: 3.5rem;
  color: #6c757d;
}

/* Product List in Admin */
.admin-products-list {
  margin-top: 25px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Admin Panel Styles */
#admin {
  background-color: #f9f9f9;
  padding: 40px 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.admin-form,
.admin-products-list {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.admin-form h3,
.admin-products-list h3 {
  margin-top: 0;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
  outline: none;
  background-color: #fff;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

#image-preview {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#image-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 5px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.admin-form button[type="submit"] {
  background-color: #4a6cf7;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: block;
  width: 100%;
  margin-top: 10px;
}

.admin-form button[type="submit"]:hover {
  background-color: #3a5af0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 90, 240, 0.3);
}

/* Product List Styles */
.admin-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
  background: #fff;
}

.admin-product-item:hover {
  background-color: #f8f9ff;
}

.admin-product-info {
  flex: 1;
  min-width: 0;
}

.admin-product-info strong {
  display: block;
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 6px;
  font-weight: 500;
}

.admin-product-info div {
  color: #666;
  font-size: 0.95rem;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Delete Button Container */
.admin-product-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: 20px;
}

/* Delete Button Styles */
.delete-product-btn {
  background-color: #e60023;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delete-product-btn:hover {
  background-color: #cc001f;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(230, 0, 35, 0.2);
}

.delete-product-btn i {
  font-size: 0.85rem;
}

.products-list-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.products-list-container::-webkit-scrollbar {
  width: 8px;
}

.products-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.products-list-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.products-list-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Form Validation */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #ff4d4f;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .admin-form,
  .admin-products-list {
    padding: 20px;
  }

  .admin-product-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .admin-product-actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .delete-product-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Scrollable Product List */
.products-list-container {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.products-list-container::-webkit-scrollbar {
  width: 6px;
}

.products-list-container::-webkit-scrollbar-track {
  background: #f2f2f2;
}

.products-list-container::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 6px;
}

.products-list-container::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* Form Validation */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #ff4d4f;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15);
}

/* Responsive */
@media (max-width: 768px) {

  .admin-form,
  .admin-products-list {
    padding: 16px;
  }

  .admin-product-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-product-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 10px;
  }

  .delete-product-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Add to your CSS */
.forgot-password {
  text-align: right;
  margin: 10px 0 20px;
}

.forgot-password a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.9em;
}

.forgot-password a:hover {
  text-decoration: underline;
}

#reset-message {
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

/* Mobile Header Styling */
.mobile-header {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: sticky;
  top: 0;
}

.mobile-header-top {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.mobile-logo {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.mobile-company-name h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #1468df;
  font-size: 18px;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-header-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.mobile-search {
  flex: 1;
  position: relative;
}

.mobile-search input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  background-color: #edf2ff;
  font-size: 15px;
}

.mobile-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #1468df;
}

.mobile-header-icons {
  margin-left: auto;
}

.mobile-user-profile,
.mobile-cart {
  position: relative;
}

.mobile-user-profile i {
  background: #f0f4f9;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 500;
  color: #1468df;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.mobile-cart i {
  font-size: 20px;
  color: #333;
}

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

/* Mobile Navigation Styling */
.mobile-nav-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-logo .logo {
  width: 45px;
  height: 45px;
  font-size: 20px;
}

.mobile-nav-logo .company-name h2 {
  font-size: 18px;
  margin: 0;
  color: var(--primary);
}

.mobile-nav-logo .company-name p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

.mobile-nav-close {
  font-size: 28px;
  cursor: pointer;
  color: #777;
}

.mobile-nav ul {
  padding: 20px;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  display: block;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #2d3748;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-nav ul li a:hover {
  background: #edf2f7;
}

.mobile-nav-footer {
  padding: 20px;
  border-top: 1px solid #f1f1f1;
  margin-top: auto;
}

.mobile-nav-footer .mobile-user-profile {
  display: flex;
  flex-direction: column;
}

.mobile-nav-footer #mobile-welcome {
  font-weight: 600;
  margin-bottom: 5px;
}

.mobile-nav-footer #mobile-logout-btn {
  color: #e53e3e;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 480px) {
  .mobile-company-name h1 {
    font-size: 16px;
    max-width: 120px;
  }

  .mobile-header-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
  }

  .mobile-search input {
    padding: 6px 12px 6px 30px;
    font-size: 13px;
  }
}

.categories-container {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 5px;
}

.categories-container::-webkit-scrollbar {
  display: none;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.nav-item.active {
  color: #2563eb;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 3px;
}


@media (min-width: 769px) {

  .mobile-header,
  .bottom-nav {
    display: none;
  }
}

/* Mobile Auth Modal */
.mobile-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: flex-end;
  align-items: flex-end;
}

.mobile-modal-content {
  background-color: white;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
}

.close-mobile-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.mobile-auth-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.mobile-auth-btn {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.mobile-login-btn {
  background-color: #2563eb;
  color: white;
}

.mobile-register-btn {
  background-color: #f1f5f9;
  color: #1e293b;
}

/* Add to style.css */
.mobile-user-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 10px;
  font-size: 12px;
  color: #333;
}

.mobile-user-profile #mobile-welcome {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  min-width: 120px;
  text-align: right;
}

.mobile-user-profile #mobile-logout-btn {
  color: #e74c3c;
  font-size: 11px;
  text-decoration: none;
  margin-top: 2px;
}

.mobile-user-profile #mobile-logout-btn:hover {
  text-decoration: underline;
}

/* Shopping Cart Sidebar */
#cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #2c3e50;
  color: white;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.close-cart {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-cart:hover {
  transform: scale(1.1);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background-color: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.cart-item-img i {
  font-size: 1.8rem;
  color: #3498db;
}

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

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

.cart-item-price {
  color: #e74c3c;
  font-weight: 500;
}

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

.cart-item-actions button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f1f2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-actions button:hover {
  background: #3498db;
  color: white;
}

.cart-item-actions .remove-item {
  color: #e74c3c;
  background: transparent;
  font-size: 1rem;
  margin-left: 5px;
}

.cart-item-actions .remove-item:hover {
  color: #c0392b;
  background: transparent;
  transform: scale(1.1);
}

.cart-item-quantity {
  min-width: 25px;
  text-align: center;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: white;
}

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

.total-amount {
  color: #e74c3c;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: #27ae60;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #7f8c8d;
}

.empty-cart i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #bdc3c7;
}

/* Mobile Cart */
@media (max-width: 768px) {
  #cart-sidebar {
    max-width: 100%;
    right: -100%;
  }

  .cart-item {
    padding: 12px 0;
  }

  .cart-item-img {
    width: 60px;
    height: 60px;
  }

  .cart-item-title {
    font-size: 0.9rem;
  }

  .cart-item-price {
    font-size: 0.9rem;
  }

  .cart-item-actions button {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .cart-total {
    font-size: 1.1rem;
  }
}

/* Cart Counter */
.cart-count,
.mobile-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Overlay for mobile */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

#cart-sidebar.active+.cart-overlay {
  display: block;
}

.inquiry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}

@media (max-width: 768px) {
  .inquiry-modal .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Admin Panel Section */
#admin .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-top-bar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.admin-top-bar h2 {
  margin: 0;
  font-size: 24px;
  color: #2c3e50;
}

/* Admin Search Container */
.admin-search-container {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 8px 15px;
  border-radius: 30px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.admin-search-container:focus-within {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.admin-search-container i {
  margin-right: 10px;
  color: #7f8c8d;
}

#admin-search-input {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
}

/* Admin Content Layout */
.admin-content {
  display: flex;
  gap: 30px;
}

.admin-form {
  flex: 1;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.admin-products-list {
  flex: 2;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.admin-products-list h3 {
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
  font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .admin-content {
    flex-direction: column;
  }

  .admin-search-container {
    width: 100%;
  }
}

/* Add to your style.css */
.admin-search-container {
  position: relative;
  margin-bottom: 20px;
  max-width: 400px;
}

.admin-search-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

#admin-search-input {
  width: 100%;
  padding: 12px 20px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#admin-search-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  margin-right: 15px;
  cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: white;
  z-index: 1100;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 70px 20px 20px;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  display: block;
  padding: 12px;
  background: #f5f7fa;
  border-radius: 6px;
  text-decoration: none;
  color: #2d3748;
  font-weight: 500;
}

.mobile-nav ul li a:hover {
  background: #e2e8f0;
}

/* Mobile Nav Close Button */
.mobile-nav-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Add to style.css */
.bottom-nav {
  height: 65px;
  /* Increase height */
  padding: 8px 0;
}

.nav-item i {
  font-size: 26px;
  /* Larger icons */
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 12px;
  /* Larger text */
}

.mobile-cart i {
  font-size: 24px;
  /* Larger cart icon */
}

.mobile-cart-count {
  width: 20px;
  height: 20px;
  font-size: 12px;
  top: -8px;
  right: -8px;
}

/* Ensure bottom nav stays visible */
.bottom-nav {
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {

  .mobile-header,
  .mobile-nav,
  .bottom-nav,
  .mobile-modal {
    display: none !important;
  }
}

/* Hide desktop header on mobile */
@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .top-bar-content {
    justify-content: center;
    gap: 8px;
  }

  .mobile-header {
    display: block;
  }
}

/* Mobile Header User Profile */
.mobile-header .mobile-user-profile {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: #333;
  flex-direction: column;
  align-items: flex-end;
}

.mobile-header .mobile-user-profile a {
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 12px;
  color: #e74c3c;
  text-decoration: none;
  margin-top: 2px;
}

.mobile-header .mobile-user-profile a:hover {
  text-decoration: underline;
}

.mobile-user-profile span:nth-child(2) {
  display: none;
}

@media (max-width: 480px) {
  .mobile-header-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-search {
    order: 1;
    /* Keep search on left */
    flex-grow: 1;
    max-width: 70%;
  }

  .mobile-header-icons {
    order: 2;
    /* Move to right side */
    margin-left: auto;
  }
}


/* WhatsApp glow effect */
.bottom-nav .whatsapp-nav {
  color: #25D366 !important;
  /* WhatsApp green */
}

.bottom-nav .whatsapp-nav i {
  color: #25D366;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.8);
  animation: whatsapp-glow 1.5s infinite;
}

@keyframes whatsapp-glow {
  0% {
    text-shadow: 0 0 5px rgba(37, 211, 102, 0.8);
  }

  50% {
    text-shadow: 0 0 20px rgba(37, 211, 102, 1);
  }

  100% {
    text-shadow: 0 0 5px rgba(37, 211, 102, 0.8);
  }
}

/* Add this at the end of your style.css file */
@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }

  .desktop-header {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
  }
}

/* Mobile Header Styling */
.mobile-header-bottom {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #f8f9fa;
  gap: 12px;
}

.mobile-search {
  flex: 1;
  position: relative;
  min-width: 0;
}

.mobile-search input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  background-color: #edf2ff;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mobile-search input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(20, 104, 223, 0.15);
}

.mobile-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

.mobile-header-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.mobile-cart {
  position: relative;
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  /* Push to the right */
}

.mobile-cart i {
  font-size: 20px;
  color: white;
}

.mobile-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--secondary);
  color: white;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-user-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  line-height: 1.4;
  background: var(--primary);
  padding: 6px 10px;
  border-radius: 20px;
  color: white;
  min-width: 100px;
  /* Ensure minimum width */
  max-width: 150px;
  /* Prevent excessive width */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-user-profile #mobile-welcome-header {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mobile-user-profile #mobile-logout-header {
  color: #ffd166;
  font-size: 11px;
  text-decoration: none;
}

/* Adjustments for smaller screens */
@media (max-width: 480px) {
  .mobile-header-bottom {
    gap: 8px;
    padding: 8px 12px;
  }

  .mobile-search input {
    padding: 8px 12px 8px 36px;
    font-size: 14px;
  }

  .mobile-user-profile {
    padding: 4px 8px;
    min-width: 80px;
  }

  .mobile-cart {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .categories {
    padding: 8px 0;
  }

  .categories-container {
    padding: 0 15px 10px;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories-container::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Product Details */
#product-details {
  background-color: #f8f9fa;
  padding: 40px 0;
}

.back-btn {
  background: #e9ecef;
  color: #495057;
  margin-bottom: 25px;
}

.back-btn:hover {
  background: #dee2e6;
  transform: none;
}

.product-details-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.main-image {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.thumbnail-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.product-info {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.price-category {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.category {
  background: #edf2ff;
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.description {
  line-height: 1.7;
  margin-bottom: 25px;
  color: #495057;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.cart-btn {
  background: var(--primary);
  flex: 1;
}

.whatsapp-btn {
  background: #25D366;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive styles */
@media (min-width: 768px) {
  .product-details-container {
    grid-template-columns: 1fr 1fr;
  }

  .product-gallery {
    grid-template-rows: auto 100px;
  }

  .thumbnail-container {
    justify-content: center;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading {
  font-size: 1.5rem;
  color: #333;
}

/* Add these styles to your CSS */
.product-card {
  background-color: white;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-content h3,
.product-category {
  display: none;
}

.product-content p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 10px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.button-group {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-card:hover .button-group {
  opacity: 1;
  transform: translateY(0);
}

.product-card .button-group button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.product-card .button-group button:first-child {
  background-color: var(--primary);
  color: white;
}

.product-card .button-group button:last-child {
  background-color: #f0f4f9;
  color: var(--primary);
}

/* Mobile - always show buttons */
@media (max-width: 768px) {
  .button-group {
    opacity: 1;
    transform: none;
  }
}

/* Offers Section */
.offers-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.offers-slider {
  position: relative;
  overflow: hidden;
}

.offers-container {
  display: flex;
  transition: transform 0.4s ease;
  gap: 20px;
  padding: 10px 0;
}

.offer-card {
  flex: 0 0 calc(33.333% - 20px);
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.offer-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.offer-content {
  padding: 20px;
}

.offer-prices {
  display: flex;
  gap: 15px;
  margin: 10px 0;
}

.old-price {
  text-decoration: line-through;
  color: #6c757d;
}

.new-price {
  font-weight: bold;
  color: #e74c3c;
  font-size: 1.2rem;
}

.offer-save {
  background: #ffeaa7;
  color: #d35400;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
}

.offers-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.offers-controls button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.offers-controls button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Admin Offers */
.admin-offers {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.admin-offer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.delete-offer-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .offer-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .offer-card {
    flex: 0 0 100%;
  }

  .offers-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 0;
    transform: translateY(-50%);
  }
}

/* Hero Offer Content */
.hero-offer-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-offer-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-offer-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.hero-prices {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.hero-old-price {
  text-decoration: line-through;
  font-size: 1.5rem;
  color: #bbb;
}

.hero-new-price {
  font-size: 2rem;
  font-weight: bold;
  color: #ff9f43;
}

.offers-section {
  transition: all 0.3s ease;
}

/* Hide controls when no offers */
.offers-section:not([style*="display: none"])~#products {
  margin-top: 0;
}

/* Add to style.css */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* Two columns */
    gap: 15px;
  }

  .product-card {
    min-width: 0;
    /* Allow cards to shrink */
    max-width: 100%;
    /* Prevent overflow */
  }

  .product-img {
    height: 140px;
    /* Reduced height */
  }

  .product-content {
    padding: 12px;
  }

  .product-content p {
    font-size: 13px;
    /* Smaller text */
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
  }

  .price {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .button-group button {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
  .product-grid {
    gap: 10px;
  }

  .product-img {
    height: 120px;
  }

  .button-group button {
    font-size: 11px;
    padding: 5px;
  }
}

/* Hide the search container in products section on mobile */
.search-container {
  display: none;
}

/* Adjust mobile header layout */
.mobile-header-bottom {
  flex-direction: column;
  gap: 10px;
  padding: 10px 15px;
}

.mobile-search {
  width: 100%;
}

.mobile-header-icons {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Add this at the end of the CSS */
@media (max-width: 480px) {
  .mobile-header-icons {
    flex-wrap: wrap;
  }

  .mobile-user-profile {
    min-width: 100%;
    text-align: center;
    margin-top: 5px;
  }
}

/* Offers Section */
.offers-section {
  background-color: #f8f9fa;
  padding: 50px 0;
}

.offers-container {
  display: flex;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.offer-card {
  flex: 0 0 auto;
  width: 280px;
  margin: 0 15px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.offer-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.offer-content {
  padding: 15px;
}

.offer-prices {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.new-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e74c3c;
}

.offer-save {
  background: #f1c40f;
  color: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
}

.offers-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.offers-prev,
.offers-next {
  background: #3498db;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add to style.css */
.top-bar-search {
  margin-top: 8px;
  max-width: 300px;
  margin-left: auto;
}

.top-bar-search input {
  padding: 8px 15px 8px 35px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 30px;
}

.top-bar-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.top-bar-search input:focus {
  background: white;
  color: var(--dark);
  border-color: white;
}

.top-bar-search input:focus::placeholder {
  color: var(--gray);
}

.top-bar-search i {
  color: rgba(255, 255, 255, 0.7);
  left: 12px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .top-bar-search {
    display: flex;
  }
}

/* Add cursor pointer to offer cards */
.offer-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure consistent card sizing */
.offer-card {
  width: 280px;
  flex: 0 0 auto;
}

/* Offers Section */
.offers-section {
  background-color: #f8f9fa;
  padding: 50px 0;
}

.offers-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 5px 25px;
  scrollbar-width: thin;
  scrollbar-color: #1468df #f1f1f1;
}

.offers-container::-webkit-scrollbar {
  height: 8px;
}

.offers-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.offers-container::-webkit-scrollbar-thumb {
  background: #1468df;
  border-radius: 4px;
}

.offer-card {
  flex: 0 0 auto;
  width: 280px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.offer-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.offer-content {
  padding: 15px;
}

.offer-prices {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.new-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e74c3c;
}

.offer-save {
  background: #f1c40f;
  color: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
}

/* Offers Section */
.offers-section {
  background-color: #f8f9fa;
  padding: 50px 0;
}

.offers-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 5px 25px;
  scrollbar-width: thin;
  scrollbar-color: #1468df #f1f1f1;
}

.offers-container::-webkit-scrollbar {
  height: 8px;
}

.offers-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.offers-container::-webkit-scrollbar-thumb {
  background: #1468df;
  border-radius: 4px;
}

.offer-card {
  flex: 0 0 auto;
  width: 280px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.offer-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.offer-content {
  padding: 15px;
}

.offer-prices {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.new-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e74c3c;
}

.offer-save {
  background: #f1c40f;
  color: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
}

/* Updated Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 5px;
  padding: 10px 0;
  top: 100%;
  left: 0;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content .subcategory-btn {
  display: block;
  width: 100%;
  padding: 8px 16px;
  text-align: left;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.dropdown-content .subcategory-btn:hover {
  background-color: #f5f5f5;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    width: 100%;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* Hide slider dots in offers section */
.offers-controls {
  display: none !important;
}

/* Make modals scrollable */
.modal-content,
.mobile-modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

/* Password toggle styles */
.password-container {
  position: relative;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
}

/* Add to style.css */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.header-search {
  position: relative;
  margin: 0 20px;
}

.header-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
}

.header-search input {
  padding: 8px 8px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 250px;
  transition: width 0.3s;
}

.header-search input:focus {
  width: 350px;
  outline: none;
  border-color: #3498db;
}

/* Hide top bar search */
.top-bar-search {
  display: none;
}

/* Mobile header search should remain visible only on mobile */
.mobile-header .mobile-search {
  display: none;
}

@media (max-width: 768px) {
  .header-search {
    display: none;
    /* Hide on mobile */
  }

  .mobile-header .mobile-search {
    display: flex;
    /* Show mobile search */
  }
}

/* Add this to the end of style.css */

/* Fix for desktop search bar visibility */
@media (min-width: 769px) {
  .header-search {
    display: block !important;
    flex: 1;
    max-width: 400px;
    margin: 0 15px;
  }

  .header-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s ease;
  }

  .header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 104, 223, 0.15);
    outline: none;
  }

  .logo-container {
    flex-wrap: nowrap;
  }

  .company-name {
    min-width: 180px;
  }
}

/* Adjust top bar spacing */
.top-bar-content {
  flex-wrap: nowrap;
}

/* Product Specifications */
.specifications-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.specifications-section h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.4rem;
}

.specifications-content {
  line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
  margin: 3rem 0;
}

.reviews-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.review {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-author {
  font-weight: 600;
  color: #333;
}

.review-rating {
  color: #ffc107;
  font-size: 1.2rem;
}

.review-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.review-content {
  line-height: 1.6;
  color: #555;
}

/* Related Products */
.related-products-section {
  margin: 3rem 0;
}

.related-products-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

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

.related-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.related-product-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 1rem;
}

.related-product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.related-product-img .product-icon {
  font-size: 3rem;
  color: #4a6cf7;
}

.related-product-info {
  padding: 1rem;
  text-align: center;
}

.related-product-info h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.related-product-price {
  font-weight: 600;
  color: #4a6cf7;
}

.specifications-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #710606;
}

.specifications-content {
  margin-top: 1rem;
  line-height: 1.6;
}

.related-products-section {
  margin-top: 3rem;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.related-product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.related-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-product-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}

.related-product-info {
  padding: 1rem;
}

.related-product-info h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-product-price {
  font-weight: bold;
  color: #333;
}

/* Add to style.css */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 10px 5px;
}

.spec-key {
  font-weight: 600;
  color: #333;
  width: 35%;
}

.spec-value {
  color: #666;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
  background-color: #0056b3;
}

.pagination span {
  font-weight: 500;
  font-size: 1.1rem;
}

/* =========================================================
   PRODUCT DETAIL PAGE STYLES
   ========================================================= */

/* --- 1. Back button --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f5;
  color: #495057;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: .25s;
}

.back-btn:hover {
  background: #dee2e6;
}

/* --- 2. Layout Container --- */
.product-details-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
  padding: 0 15px 40px;
}

@media (min-width: 768px) {
  .product-details-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- 3. Gallery --- */
.product-gallery {
  display: grid;
  gap: 15px;
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  overflow: hidden;
}

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

.thumbnail-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* --- 4. Info Card --- */
.product-info {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.product-info h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 8px;
}

.price-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
}

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

.category {
  background: var(--light-gray);
  color: var(--gray);
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 12px;
}

.description {
  line-height: 1.7;
  color: #495057;
  margin-bottom: 20px;
}

/* --- 5. Specifications --- */
.specifications-section {
  margin: 25px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.specifications-section h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--dark);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #e9ecef;
}

.specs-table tr:last-child {
  border: none;
}

.spec-key,
.spec-value {
  padding: 8px 0;
  font-size: .9rem;
}

.spec-key {
  font-weight: 600;
  width: 35%;
  color: #343a40;
}

.spec-value {
  color: #6c757d;
}

/* --- 6. Action Buttons --- */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.cart-btn,
.whatsapp-btn {
  flex: 1 1 180px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

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

.whatsapp-btn {
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.whatsapp-btn:hover {
  background: #1ebe56;
}

/* --- 7. Reviews --- */
.reviews-section {
  margin-top: 40px;
}

.reviews-section h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--dark);
}

.review {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.review-author {
  font-weight: 600;
  color: var(--dark);
}

.review-rating {
  color: #ffc107;
  font-size: 1.1rem;
}

.review-date {
  font-size: .8rem;
  color: #6c757d;
  margin-bottom: 8px;
}

.review-content {
  color: #495057;
  line-height: 1.55;
}

/* --- 8. Related Products --- */
.related-products-section {
  margin-top: 40px;
}

.related-products-section h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--dark);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.related-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: transform .25s;
}

.related-product-card:hover {
  transform: translateY(-4px);
}

.related-product-img {
  height: 120px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-product-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.related-product-info {
  padding: 12px;
  text-align: center;
}

.related-product-info h4 {
  font-size: .9rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.related-product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- 9. Loading Overlay --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .loading {
  font-size: 1.2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-overlay .loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid #e9ecef;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#custom-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

#custom-toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* detail page – image left / info right */
.detail-flex {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-gallery {
  flex: 0 0 45%;
}

.product-info-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.product-info-right h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.product-info-right .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
}

.product-info-right .description {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  gap: .8rem;
  margin-top: .5rem;
}

/* responsive: stack on narrow screens */
@media (max-width: 768px) {
  .detail-flex {
    flex-direction: column;
  }

  .product-gallery {
    flex: none;
  }
}

#custom-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#custom-toast.show {
  opacity: 1;
  pointer-events: auto;
}

.subcategories {
  padding: 10px 0;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.subcategories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subcategory-btn {
  background: #f3f3f3;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s ease;
}

.subcategory-btn.active,
.subcategory-btn:hover {
  background: var(--primary);
  color: #fff;
}

.category-btn .indicator {
  margin-left: 6px;
  font-size: 12px;
  color: #555;
}

.product-details-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.product-gallery {
  flex: 1 1 45%;
  max-width: 500px;
}

.product-gallery .main-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thumbnail-container img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.product-info {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-category {
  font-weight: bold;
  color: #333;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.specifications-section,
.reviews-section,
.related-products-section {
  margin-top: 30px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .product-details-flex {
    flex-direction: column;
  }

  .product-gallery,
  .product-info {
    width: 100%;
    max-width: 100%;
  }

  .thumbnail-container img {
    width: 60px;
    height: 60px;
  }
}

/* Add to style.css */
.cancel-edit-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.3s;
}

.cancel-edit-btn:hover {
  background-color: #5a6268;
}

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

.edit-product-btn {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

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