/* styles.css - Complete Styles for GemFusion Jewellery */

/* global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #fafafa;
  color: #333;
}

/* header / navbar */
.top-bar .sale-banner {
  background: #d4af37;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sale-banner .contact-info {
  font-size: 12px;
  opacity: 0.95;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .top-bar .sale-banner {
    flex-direction: column;
    gap: 5px;
    padding: 8px 10px;
  }

  .sale-banner .contact-info {
    font-size: 11px;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
}

.nav-links a.active,
.nav-links a:hover {
  color: #d4af37;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  padding: 6px 8px;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.icon {
  cursor: pointer;
  font-size: 18px;
}

/* hero */
.home-main {
  padding: 20px 40px 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.hero-text h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 15px;
  margin-bottom: 18px;
  color: #666;
}

.btn-primary {
  padding: 10px 18px;
  border-radius: 24px;
  border: none;
  background: #d4af37;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: #b8860b;
}

/* Hero image with proper styling */
.hero-img-placeholder {
  background: #f2e1ea;
  border-radius: 10px;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}


/* Full-width Hero Banner with Text Overlay */
.hero-banner-full {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Banner Slider Styles */
.banner-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

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

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.banner-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 40px;
}

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

.banner-content p {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.banner-content .btn-primary {
  background: #d4af37;
  color: white;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.banner-content .btn-primary:hover {
  background: #b8860b;
  transform: translateY(-2px);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  z-index: 10;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-nav:hover {
  background: #d4af37;
  color: white;
}

.banner-nav.prev {
  left: 20px;
}

.banner-nav.next {
  right: 20px;
}

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

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

.banner-dots .dot.active {
  background: #d4af37;
  transform: scale(1.2);
}

.banner-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Responsive Banner Slider */
@media (max-width: 768px) {
  .banner-slider {
    height: 400px;
  }

  .banner-content h1 {
    font-size: 32px;
  }

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

  .banner-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .banner-nav.prev {
    left: 10px;
  }

  .banner-nav.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .banner-slider {
    height: 350px;
  }

  .banner-content h1 {
    font-size: 24px;
  }

  .banner-content p {
    font-size: 14px;
  }

  .banner-content {
    padding: 0 20px;
  }

  .banner-nav {
    width: 35px;
    height: 35px;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-overlay .hero-text {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 40px;
}

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

.hero-overlay .hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.hero-overlay .btn-primary {
  background: #d4af37;
  color: white;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hero-overlay .btn-primary:hover {
  background: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 75, 138, 0.22);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner-full {
    height: 400px;
  }

  .hero-overlay .hero-text h1 {
    font-size: 32px;
  }

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

@media (max-width: 480px) {
  .hero-banner-full {
    height: 350px;
  }

  .hero-overlay .hero-text h1 {
    font-size: 24px;
  }

  .hero-overlay .hero-text p {
    font-size: 14px;
  }
}


/* category strip */
.category-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-strip button {
  border-radius: 24px;
  border: 1px solid #f0d77c;
  background: #fdf8e7;
  color: #d4af37;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

.category-strip button:hover,
.category-strip button.active {
  background: #d4af37;
  color: #fff;
}

/* Category Slider with Round Images */
.category-slider-container {
  position: relative;
  max-width: 100%;
  padding: 0 40px;
}

.category-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-slider::-webkit-scrollbar {
  display: none;
}

.category-slider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.category-slider-item:hover {
  transform: translateY(-5px);
}

.category-slider-item .category-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0d77c;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.category-slider-item:hover .category-image {
  border-color: #d4af37;
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
  transform: scale(1.05);
}

.category-slider-item .category-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: center;
  max-width: 110px;
  line-height: 1.3;
}

.category-slider-item:hover .category-label {
  color: #d4af37;
}

/* Slider Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: #d4af37;
  color: white;
  border-color: #d4af37;
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

/* Responsive Category Slider */
@media (max-width: 768px) {
  .category-slider-container {
    padding: 0 16px;
  }

  .category-slider {
    gap: 20px;
    padding: 15px 5px;
  }

  .category-slider-item .category-image {
    width: 80px;
    height: 80px;
  }

  .category-slider-item .category-label {
    font-size: 12px;
    max-width: 90px;
  }

  .slider-nav {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .category-slider {
    gap: 16px;
  }

  .category-slider-item .category-image {
    width: 70px;
    height: 70px;
  }

  .category-slider-item .category-label {
    font-size: 11px;
    max-width: 80px;
  }

  .slider-nav {
    display: none;
  }
}

/* category section (home page) */
.category-section {
  padding: 40px 0;
  background: white;
}

.category-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  padding: 0 40px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 40px;
}

.category-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-name {
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

/* product sections on home */
.product-sections-wrapper {
  background: #fafafa;
}

.product-section {
  padding: 40px;
}

.product-section:nth-child(even) {
  background: white;
}

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

.section-header h2 {
  font-size: 24px;
}

.section-header a,
.btn-see-all {
  font-size: 13px;
  color: #d4af37;
  text-decoration: none;
  border-radius: 24px;
  border: 1px solid #d4af37;
  background: transparent;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.section-header a:hover,
.btn-see-all:hover {
  background: #d4af37;
  color: white;
}

/* product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-card-body {
  padding: 10px 12px 12px;
}

.product-card-title {
  font-size: 14px;
  font-weight: 500;
  min-height: 40px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.product-price {
  margin-top: 6px;
  font-weight: 600;
  color: #d4af37;
  font-size: 16px;
}

.card-buttons {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
}

.btn-shop,
.btn-options {
  flex: 1;
  border-radius: 20px;
  padding: 7px 0;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-shop {
  background: #d4af37;
  color: #fff;
}

.btn-shop:hover {
  background: #b8860b;
}

.btn-options {
  background: #fdf8e7;
  color: #d4af37;
}

.btn-options:hover {
  background: #f0d77c;
}

/* Stock & Availability */
.product-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.product-card-image-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.product-card.out-of-stock {
  opacity: 0.7;
  position: relative;
}

.product-card.out-of-stock .product-card-image-wrap img {
  filter: grayscale(40%);
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.low-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff9800;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.3px;
}

.btn-shop:disabled,
.btn-options:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
}

/* Stock status on product detail page */
.stock-status {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-status.in-stock {
  color: #2e7d32;
}

.stock-status.low-stock {
  color: #e65100;
}

.stock-status.out-of-stock-text {
  color: #e53935;
}

.btn-shop-now:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}

.btn-shop-now:disabled:hover {
  background: #ccc;
}

/* products page layout */
.products-main {
  padding: 20px 40px 40px;
}

.products-main h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-top: 18px;
}

.filters {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.filters h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.filters h4 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
}

.filter-group input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

#price-range {
  width: 100%;
  margin-top: 8px;
}

#price-value {
  margin-top: 8px;
  font-weight: 600;
  color: #d4af37;
}

.btn-reset-filters {
  width: 100%;
  padding: 10px;
  background: #fdf8e7;
  color: #d4af37;
  border: 1px solid #f0d77c;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 12px;
}

.btn-reset-filters:hover {
  background: #d4af37;
  color: white;
}

.products-list h2 {
  margin-bottom: 12px;
}

.products-header {
  margin-bottom: 16px;
}

.products-header p {
  font-size: 14px;
  color: #666;
}

/* product detail page */
.product-page {
  padding: 20px 40px 40px;
}

.product-main-block {
  background: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

.product-gallery-main {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f5f5f5;
}

.product-gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.product-gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.product-gallery-thumbs img:hover {
  border-color: #d4af37;
}

.product-gallery-thumbs img.active-thumb {
  border-color: #d4af37;
}

.product-info h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.product-tag {
  display: inline-block;
  background: #fdf8e7;
  color: #d4af37;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 10px;
}

.product-info .detail-price {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #d4af37;
}

.color-section {
  margin: 16px 0;
}

.color-section h3 {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-option {
  padding: 8px 16px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.color-option:hover {
  border-color: #d4af37;
}

.color-option.active {
  border-color: #d4af37;
  background: #d4af37;
  color: white;
}

.color-label {
  margin-top: 6px;
  font-size: 14px;
}

.qty-section {
  margin: 16px 0;
}

.qty-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.qty-row {
  margin: 12px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.qty-row input,
.qty-section input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.btn-shop-now {
  width: 100%;
  padding: 12px;
  background: #d4af37;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 16px 0;
  transition: background 0.3s;
}

.btn-shop-now:hover {
  background: #b8860b;
}

.product-description {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.product-description h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.product-description p {
  color: #666;
}

/* Similar Products */
.similar-products-section {
  padding: 40px;
  background: #f9f9f9;
}

.similar-products-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

#similar-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

/* Cart Popup */
.cart-popup {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: right 0.3s ease;
}

.cart-popup.show {
  right: 0;
}

.cart-popup-content {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cart-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #999;
}

.cart-popup-close:hover {
  color: #333;
}

.cart-popup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.cart-popup-check {
  width: 60px;
  height: 60px;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
}

.cart-popup-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cart-popup-info {
  text-align: center;
}

.cart-popup-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.cart-popup-info p {
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

.cart-popup-status {
  color: #4caf50 !important;
  font-weight: bold;
}

.btn-view-cart {
  width: 100%;
  padding: 12px;
  background: #d4af37;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
}

.btn-view-cart:hover {
  background: #b8860b;
}

/* Cart Page */
.cart-section {
  padding: 40px;
  min-height: 60vh;
}

.cart-section h1 {
  margin-bottom: 30px;
  font-size: 28px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

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

.cart-item-details h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cart-item-details p {
  color: #666;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 600;
  color: #d4af37;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: none;
  background: #fdf8e7;
  cursor: pointer;
  font-size: 16px;
  border-radius: 50%;
  color: #d4af37;
}

.qty-control button:hover {
  background: #d4af37;
  color: white;
}

.qty-control span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.cart-item-total {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.btn-remove {
  padding: 6px 14px;
  background: #fdf8e7;
  color: #d4af37;
  border: 1px solid #f0d77c;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
}

.btn-remove:hover {
  background: #f44336;
  color: white;
  border-color: #f44336;
}

.cart-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.summary-row.total {
  border-top: 2px solid #333;
  border-bottom: none;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  padding-top: 16px;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
}

.empty-cart h2 {
  margin-bottom: 15px;
  color: #666;
}

.empty-cart p {
  color: #999;
  margin-bottom: 30px;
}

/* footer */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #777;
  background: white;
  border-top: 1px solid #eee;
  margin-top: 40px;
}




/* responsive */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 20px;
  }

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

  .home-main,
  .products-main,
  .product-page {
    padding: 15px 20px 30px;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

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

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-popup {
    width: 100%;
    right: -100%;
  }

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

  .category-section h2,
  .product-section {
    padding: 20px;
  }
}


/* ============================================
   CHECKOUT PAGE STYLES ONLY
   ============================================ */

/* Checkout Progress Indicator */
.checkout-progress {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.progress-step.completed .step-icon {
  background: #d4af37;
  color: white;
}

.progress-step.active .step-icon {
  background: #d4af37;
  color: white;
}

.step-label {
  font-size: 13px;
  color: #666;
}

.progress-step.active .step-label {
  color: #d4af37;
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 10px;
  max-width: 100px;
}

.progress-line.completed {
  background: #d4af37;
}

/* Checkout Main Container */
.checkout-main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

/* Checkout Form Section (Left Side) */
.checkout-form-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkout-form-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
}

.section-title {
  font-size: 18px;
  margin: 30px 0 16px;
  color: #333;
  font-weight: 600;
}

/* Form Fields */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #d4af37;
}

/* Phone Input with Country Code */
/* Phone Input Styling */
.phone-input-wrapper {
  display: flex;
  gap: 10px;
  width: 100%;
}

.phone-input-wrapper .country-code {
  flex: 0 0 120px;
  /* Small fixed width for country code */
  min-width: 100px;
  padding: 12px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f8f9fa;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.phone-input-wrapper .country-code:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.phone-input-wrapper .phone-number-input {
  flex: 1;
  /* Takes up remaining space */
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.phone-input-wrapper .phone-number-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.phone-input-wrapper .phone-number-input::placeholder {
  color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .phone-input-wrapper .country-code {
    flex: 0 0 100px;
    min-width: 90px;
    font-size: 13px;
    padding: 10px 6px;
  }

  .phone-input-wrapper .phone-number-input {
    font-size: 14px;
    padding: 10px 12px;
  }
}


/* Form Row (City & State side by side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Shipping Method Selector */
.shipping-method {
  margin-bottom: 24px;
}

.shipping-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.shipping-option.selected {
  border-color: #d4af37;
  background: #fdf8e7;
}

.shipping-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipping-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.shipping-desc {
  font-size: 13px;
  color: #666;
}

.shipping-price {
  font-weight: 600;
  font-size: 15px;
  color: #d4af37;
}

/* Payment Method Selector */
.payment-method {
  margin-bottom: 24px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-option.selected {
  border-color: #d4af37;
  background: #fdf8e7;
}

.payment-icon {
  font-size: 24px;
}

.payment-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

/* Checkout Summary Section (Right Side) */
.checkout-summary-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.checkout-summary-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

/* Summary Items (Cart Items in Checkout) */
.summary-items {
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.summary-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

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

.summary-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.summary-item-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.summary-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #d4af37;
}

/* Order Summary Totals */
.summary-totals {
  padding-top: 20px;
  border-top: 2px solid #eee;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.summary-row.total-row {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #333;
}

/* WhatsApp Place Order Button */
.btn-place-order {
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-place-order:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  font-size: 20px;
}

/* Responsive Design for Checkout */
@media (max-width: 900px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }

  .checkout-summary-section {
    position: static;
  }

  .checkout-progress {
    padding: 0 10px;
  }

  .progress-line {
    max-width: 50px;
  }

  .step-label {
    font-size: 11px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .checkout-form-section {
    padding: 20px;
  }

  .checkout-summary-section {
    padding: 20px;
  }

  .checkout-main {
    padding: 10px;
  }

  .step-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* ============================================
   MOBILE RESPONSIVENESS - HAMBURGER MENU
   ============================================ */

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #333;
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Controls (Filter & Sort) */
.mobile-controls {
  display: none;
  gap: 12px;
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

.btn-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fdf8e7;
  color: #d4af37;
  border: 1px solid #f0d77c;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-filter-toggle:hover {
  background: #d4af37;
  color: white;
}

/* Sort Dropdown */
.sort-select {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  min-width: 160px;
}

.sort-select:focus {
  outline: none;
  border-color: #d4af37;
}

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

.filter-overlay.show {
  display: block;
}

/* Filters Header */
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filters-header h3 {
  margin: 0;
  font-size: 18px;
}

.btn-close-filters {
  display: none;
  width: 32px;
  height: 32px;
  background: #fdf8e7;
  color: #d4af37;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.btn-close-filters:hover {
  background: #d4af37;
  color: white;
}

/* ============================================
   MOBILE BREAKPOINT STYLES
   ============================================ */

@media (max-width: 768px) {

  /* Show hamburger, hide nav links */
  .hamburger {
    display: flex;
  }

  .navbar {
    position: relative;
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    gap: 0;
  }

  .nav-links.show {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }

  .nav-icons {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }

  .search-input {
    flex: 1;
    margin-right: 10px;
  }

  .logo {
    font-size: 16px;
  }

  /* Mobile controls visible */
  .mobile-controls {
    display: flex;
    flex-wrap: wrap;
  }

  .btn-close-filters {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Filters as slide-in drawer */
  .filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    z-index: 999;
    border-radius: 0;
    padding: 20px;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .filters.show {
    left: 0;
  }

  /* Products layout single column */
  .products-layout {
    grid-template-columns: 1fr;
  }

  /* Cart items mobile */
  .cart-item {
    flex-direction: column;
    gap: 12px;
  }

  .cart-item img {
    width: 100%;
    height: 180px;
  }

  .cart-item-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-summary {
    position: static;
  }

  .cart-section {
    padding: 20px;
  }

  /* Product detail page */
  .product-main-block {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .product-gallery-main img {
    height: 300px;
  }

  /* Product cards */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card img {
    height: 180px;
  }

  .product-card-body {
    padding: 8px;
  }

  .product-card-title {
    font-size: 13px;
    min-height: 36px;
  }

  .card-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .btn-shop,
  .btn-options {
    padding: 8px 0;
    font-size: 12px;
  }

  /* Hero banner */
  .hero-banner-full {
    height: 300px;
  }

  .hero-overlay .hero-text h1 {
    font-size: 24px;
  }

  .hero-overlay .hero-text {
    padding: 0 20px;
  }

  /* Category cards */
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
    gap: 12px;
  }

  .category-card img {
    height: 140px;
  }

  /* Product sections */
  .product-section {
    padding: 20px 16px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  /* Similar products */
  #similar-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hamburger {
    width: 36px;
    height: 36px;
  }

  .navbar {
    padding: 8px 12px;
  }

  .logo {
    font-size: 14px;
  }

  .sale-banner {
    font-size: 12px;
    padding: 6px 8px;
  }

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

  .product-card img {
    height: 150px;
  }

  .btn-shop,
  .btn-options {
    font-size: 11px;
    padding: 6px 0;
  }

  .products-main {
    padding: 12px;
  }

  .products-main h1 {
    font-size: 22px;
  }

  .filters {
    width: 85%;
  }

  .mobile-controls {
    flex-direction: column;
  }

  .sort-select {
    width: 100%;
  }
}