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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #111;
  background-image: url("Images/Background.avif");
  background-size: cover; /* or: 100% auto; */
  background-repeat: repeat-y; /* let it continue down the page */
  background-position: center top;
  background-attachment: fixed;
  animation: fadeIn 0.5s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

/* Page transition animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure Font Awesome icons display properly */
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-brands {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Top yellow bar */
.top-bar {
  background: #ecd864;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Header / Nav */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link {
  text-decoration: none;
  color: #111;
  position: relative;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: #111;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  margin-top: 8px;
  padding: 8px 0;
}

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

.dropdown-item {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #111;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

/* Search + cart */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  position: relative;
}

.search-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 26px; /* same as hover */
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.search-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease;
  z-index: -1;
}

.search-button:hover::before {
  width: 100%;
  height: 100%;
}

.search-button i,
.search-button .search-text {
  color: inherit;
  position: relative;
  z-index: 1;
}

/* hover: only color changes, not padding/size */
.search-button:hover {
  background: transparent;
  color: #000;
}

.search-button:hover .search-text {
  text-decoration: underline;
}

.cart-button {
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #000;
  color: #fff;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  background: transparent;
  padding: 40px 20px 60px;
  background-image: url("images/Background.avif"); /* optional */
  background-size: cover;
  background-position: center;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 700;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
}

.hero-footnote {
  margin-top: -50px;
  margin-bottom: 60px;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-cta {
  margin-top: 40px; /* adjust up/down to taste */
}

/* Center buttons */
.cta-section {
  background: transparent;
  background-image: url("images/hero-background.png"); /* same pattern */
  background-size: cover;
  background-position: center;
  padding: 50px 20px 40px;
}

.cta-inner {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-button {
  display: block; /* makes full‑width bars */
  text-align: center;
  padding: 14px 24px;
  background: #ffffff;
  border: 2px solid #111;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none; /* remove underline from <a> */
  color: #111;
  transition: background 0.15s, color 0.15s;
}

.cta-button:hover {
  background: #111;
  color: #fff;
}

/* 3 steps section */
.steps-section {
  background: transparent;
  background-image: url("images/hero-background.png");
  background-size: cover;
  background-position: center;
  padding: 40px 20px 60px;
}

.steps-inner {
  max-width: 850px;
  margin: 0 auto;
}

.steps-title {
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 35px;
}

.steps-list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.steps-heading {
  font-weight: 700;
  margin-bottom: 4px;
}

.steps-text {
  font-size: 0.96rem;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 26px 20px 40px;
  background: #ffffff;
}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-left {
  min-width: 210px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-text {
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-icons span {
  margin-right: 6px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  margin-top: 6px;
}

.footer-nav a {
  text-decoration: none;
  color: #111;
}

.footer-right {
  flex: 1;
  min-width: 260px;
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Products Section */
.products-section {
  padding: 40px 20px 60px;
  min-height: 60vh;
}

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

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 30px;
}

.filters-sort-container {
  display: flex;
  gap: 30px;
  width: 100%;
}

.filter-section {
  flex: 1;
}

.filter-section h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #111;
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #111;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.price-filter-section {
  margin-top: 24px;
}

.price-filter-section h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #111;
  font-weight: 600;
}

.price-range-container {
  margin-bottom: 16px;
}

.price-range-slider {
  position: relative;
  height: 20px;
  margin: 20px 0;
}

.price-range-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 0;
}

.price-range-slider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--min-percent, 0%);
  right: calc(100% - var(--max-percent, 100%));
  height: 4px;
  background: #111;
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.price-range-slider input[type="range"] {
  position: absolute;
  width: calc(100% - 20px);
  left: 10px;
  height: 4px;
  background: transparent;
  outline: none;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  z-index: 1;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #111;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.price-range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #111;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.price-range-slider input[type="range"]:first-child {
  z-index: 3;
}

.price-range-slider input[type="range"]:last-child {
  z-index: 2;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.clear-filters-btn {
  margin-top: 16px;
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  background: #eee;
  border-color: #ccc;
}

.sort-container {
  position: relative;
  display: inline-block;
}

.sort-container {
  position: relative;
  display: inline-block;
}

.sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 10px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  min-width: 150px;
  font-family: inherit;
  color: #111;
  gap: 8px;
}

.sort-button:hover {
  border-color: #999;
}

.sort-chevron {
  font-size: 0.75rem;
  color: #666;
  transition: transform 0.2s ease;
}

.sort-container.active .sort-chevron {
  transform: rotate(180deg);
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.sort-container.active .sort-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #111;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sort-option:hover,
.sort-option.active {
  background-color: #f5f5f5;
}

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

.product-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.product-img-main {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

.product-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-img-main {
  opacity: 0;
}

.product-card:hover .product-img-hover {
  opacity: 1;
}

/* If no hover image, just show main image */
.product-image img:only-child,
.product-image img.product-img-main:only-of-type {
  position: relative;
  opacity: 1 !important;
}

/* Fallback for products without hover images */
.product-image:not(:has(.product-img-hover)) .product-img-main {
  position: relative;
  opacity: 1 !important;
}

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

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
  text-transform: none;
  letter-spacing: normal;
}

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

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  background: #333;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, background 0.2s ease;
  font-family: inherit;
  margin-top: auto;
}

.product-card:hover .add-to-cart-btn {
  max-height: 100px;
  opacity: 1;
  padding: 14px 20px;
}

.add-to-cart-btn:hover {
  background: #000;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
  }

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

  .products-header {
    justify-content: center;
  }
}

/* Quick View Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
  background: #ffffff;
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #111;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f5f5f5;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-image-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-image-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.image-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s ease;
}

.image-dot.active {
  background: #111;
}

.modal-details-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-product-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.modal-product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.modal-quantity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-quantity label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: fit-content;
}

.quantity-btn {
  background: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #111;
  transition: background 0.2s ease;
  font-family: inherit;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.quantity-btn:first-child {
  border-right: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.quantity-btn:last-child {
  border-left: 1px solid #ddd;
  border-radius: 0 4px 4px 0;
}

#modal-quantity-input {
  border: none;
  padding: 12px 20px;
  width: 60px;
  text-align: center;
  font-size: 1rem;
  font-family: inherit;
  color: #111;
  appearance: textfield;
  -moz-appearance: textfield;
}

#modal-quantity-input::-webkit-outer-spin-button,
#modal-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-add-to-cart-btn {
  background: #333;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  border-radius: 4px;
}

.modal-add-to-cart-btn:hover {
  background: #000;
}

.modal-view-details {
  color: #111;
  text-decoration: underline;
  font-size: 0.9rem;
  text-align: center;
  transition: color 0.2s ease;
}

.modal-view-details:hover {
  color: #666;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }

  .modal-content {
    width: 95%;
  }
}

/* Cart Modal Styles */
.cart-modal-content {
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.cart-modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.cart-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.cart-modal-body {
  padding: 30px;
}

.cart-items {
  margin-bottom: 30px;
}

.empty-cart {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 20px;
}

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

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

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

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

.cart-item-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  word-wrap: break-word;
}

.cart-item-price {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

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

.cart-item-quantity span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.cart-item-total {
  text-align: right;
  min-width: 100px;
}

.cart-item-total p {
  font-weight: 600;
  margin-bottom: 10px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background: #f5f5f5;
  color: #ff4444;
}

.cart-total {
  text-align: right;
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.cart-total p {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.cart-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.cart-checkout-btn,
.cart-continue-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-checkout-btn {
  background: #000;
  color: white;
}

.cart-checkout-btn:hover {
  background: #333;
}

.cart-continue-btn {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.cart-continue-btn:hover {
  background: #e9e9e9;
}

/* Responsive Cart Modal */
@media (max-width: 768px) {
  .cart-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .cart-modal-header {
    padding: 15px 20px;
  }

  .cart-modal-body {
    padding: 20px;
  }

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

  .cart-item-total {
    text-align: left;
    width: 100%;
  }

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

  .cart-checkout-btn,
  .cart-continue-btn {
    width: 100%;
  }
}

/* Search Modal Styles */
.search-modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.search-modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.search-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.search-modal-body {
  padding: 30px;
}

.search-input-container {
  position: relative;
  margin-bottom: 30px;
}

#search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

#search-input:focus {
  border-color: #000;
}

.search-submit-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-submit-btn:hover {
  background: #f0f0f0;
  color: #000;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #f9f9f9;
}

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

.search-result-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-right: 15px;
}

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

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  word-wrap: break-word;
}

.search-result-price {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.search-result-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.search-result-card:hover {
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.search-result-image {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

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

.search-result-info {
  flex: 1;
  width: 100%;
}

.search-result-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  word-wrap: break-word;
  line-height: 1.3;
}

.search-result-price {
  color: #666;
  font-size: 0.85rem;
  margin: 0 0 8px 0;
}

.search-result-category {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: capitalize;
}

/* Trending Products Styles */
.trending-section {
  margin-bottom: 30px;
}

.trending-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.trending-product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.trending-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

.trending-product-image {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

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

.trend-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff6b35;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trending-product-info {
  padding: 12px;
}

.trending-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.3;
  color: #333;
}

.trending-product-price {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* Responsive Trending Products */
@media (max-width: 768px) {
  .trending-products {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .trending-product-image {
    height: 100px;
  }

  .trending-product-info {
    padding: 10px;
  }

  .trending-product-name {
    font-size: 0.85rem;
  }

  .trending-product-price {
    font-size: 0.8rem;
  }
}

/* Responsive Search Modal */
@media (max-width: 768px) {
  .search-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .search-modal-header {
    padding: 15px 20px;
  }

  .search-modal-body {
    padding: 20px;
  }

  .search-result-item {
    padding: 12px 0;
  }

  .search-result-image {
    width: 50px;
    height: 50px;
  }
}

/* Age Verification Page Styles */
.verify-section {
  min-height: calc(100vh - 120px); /* Adjust for header and footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  backdrop-filter: blur(5px); /* Blur effect */
}

.verify-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verify-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ecd864, #f4a261);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verify-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

.verify-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.verify-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 160px;
  text-align: center;
}

.yes-button {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.yes-button:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.no-button {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.no-button:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  font-weight: 500;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.error {
  background: #f44336;
}

/* Responsive for toast */
@media (max-width: 768px) {
  .toast {
    right: 10px;
    left: 10px;
    text-align: center;
  }
}
