@import url("fonts.css");

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

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: #000;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  padding-top: 0;
}

.place-order-btn{
  font-family: var(--font-primary);
}
/* Header Styles */
.header {
  background: #fff;
  position: static;
  z-index: 1000;
  padding: 0;
  width: 100%;
}

.header::after {
  content: "";
  display: block;
  height: 0;
  visibility: hidden;
}

.header-container {
  width: 100%;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.header-top-bar {
  background: #101114;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-bar-inner {
  width: 100%;
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 20px 0px;
}

.header-top-bar-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  font-family: var(--font-primary);
}

.header-top-bar-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-top-bar-link:hover {
  opacity: 0.9;
}

.header-top-bar-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.header-top-bar-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.mobile-left {
  display: none;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.hamburger-menu svg {
  width: 24px;
  height: 24px;
}

.mobile-profile {
  display: none;
}

.search-icon-mobile {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  color: #000;
}

.desktop-search {
  display: flex;
}

.desktop-profile {
  display: flex;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.logo {
  flex-shrink: 0;
}

.logo svg {
  display: block;
}

.main-nav {
  display: flex;
  gap: 35px;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-primary);
}

.nav-link {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
  font-family: var(--font-primary);
}

.nav-link:hover {
  color: #e21c2a;
}

.nav-link.red {
  color: #e21c2a;
}

.nav-link.active::after,
.nav-dropdown:hover .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #e21c2a;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 0;
  padding-top: 55px;
  /* border-top: 2px solid #E21C2A; */
  z-index: 1001;
}

.header-container {
  position: relative;
}

/* Invisible bridge to prevent hover gap - extends upward */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Keep dropdown open when hovering over it */
.dropdown-menu:hover {
  display: block;
}

.dropdown-content {
  max-width: 1400px;
  /* margin: 0 auto; */
  padding: 0 40px;
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
}

.dropdown-column {
  flex: 0 0 auto;
  min-width: 160px;
}

.dropdown-column:first-child {
  min-width: 140px;
  border-right: 1px solid #e0e0e0;
  padding-right: 30px;
  margin-right: 20px;
}

.dropdown-column h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  margin-top: 0;
  color: #000;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.dropdown-column a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.3s;
  line-height: 1.6;
  white-space: nowrap;
}

/* First column - no heading, all items are links */
.dropdown-column:first-child a {
  font-weight: 600;
}

.dropdown-column:first-child a:first-child {
  font-weight: 700;
}

.dropdown-column a:hover {
  color: #e21c2a;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-shrink: 0;
}

.search-desktop-wrap {
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dadada;
  border-radius: 2px;
  padding: 10px 14px;
  background: #f7f7f7;
  box-shadow: none;
  min-width: 240px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-bar input {
  border: none;
  outline: none;
  padding: 0;
  font-size: 14px;
  background: transparent;
  color: #333;
  flex: 1;
  font-family: var(--font-primary);
}

.search-bar input::placeholder {
  color: #666;
}

.search-cancel-btn {
  display: none;
  border: none;
  background: transparent;
  color: #111;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

.search-desktop-wrap.is-open .search-cancel-btn {
  display: inline-block;
}

.search-desktop-wrap.is-open .search-bar {
  background: #fff;
  border-color: #b8b8b8;
}

.search-desktop-wrap.is-open .search-desktop-form {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 32px));
  z-index: 1450;
  background: #fff;
}

.search-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: #000;
}

.header-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(42px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.search-desktop-wrap.is-open .header-search-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.header-search-panel-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 32px 18px;
}

.header-search-section-title {
  margin: 0 0 10px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-search-tag {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  line-height: 1;
  padding: 9px 12px;
  cursor: pointer;
}

.header-search-tag:hover {
  border-color: #c9cdd2;
  background: #f9fafb;
}

.header-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.header-search-results-head .header-search-section-title {
  margin-bottom: 0;
}

.header-search-all-link {
  font-size: 13px;
  color: #111827;
  text-decoration: underline;
}

.header-search-results-list {
  display: grid;
  gap: 8px;
}

.header-search-rich-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}

.header-search-rich-layout--products-only {
  grid-template-columns: 1fr;
}

.header-search-products-col {
  min-width: 0;
}

.header-search-suggestions-title {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 13px;
}

.header-search-suggestions-list {
  display: grid;
  gap: 8px;
}

.header-search-suggestion-item {
  border: none;
  background: transparent;
  text-align: left;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
  padding: 0;
  cursor: pointer;
}

.header-search-suggestion-item:hover {
  text-decoration: underline;
}

.header-search-products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.header-search-product-card {
  text-decoration: none;
  color: inherit;
}

.header-search-product-image {
  width: 100%;
  /* aspect-ratio: 1 / 1; */
  object-fit: cover;
  border-radius: 0;
  background: #f3f4f6;
  margin-bottom: 8px;
}

.header-search-product-name {
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 2px;
}

.header-search-product-meta {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 4px;
}

.header-search-product-price {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.header-search-see-all-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid #111827;
  border-radius: 2px;
  padding: 12px 14px;
  margin-top: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: #111827;
  color: #fff;
}

.header-search-see-all-btn:hover {
  background: #111827;
  color: #fff;
}

.header-search-ai-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.header-search-ai-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #d9f99d, #bef264 55%, #84cc16 100%);
  color: #111827;
  font-size: 16px;
}

.header-search-ai-text {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.header-search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px;
}

.header-search-result-item:hover {
  border-color: #eceff2;
  background: #f9fafb;
}

.header-search-result-image {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

.header-search-result-name {
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 3px;
}

.header-search-result-meta {
  color: #6b7280;
  font-size: 12px;
}

.header-search-result-price {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.header-search-empty {
  color: #6b7280;
  font-size: 13px;
  padding: 6px 2px 2px;
}

.mobile-search-overlay {
  display: none;
}

.profile-icon,
.cart-icon {
  position: relative;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon svg,
.cart-icon svg {
  width: 100%;
  height: 100%;
  stroke: #000;
}

.notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #e21c2a;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Main Content */
main {
  padding: 0;
  width: 100%;
}

.section-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 5px;
}

/* Women / Men / Kids row under homepage slider */
.gender-triptych-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.gender-triptych {
  display: flex;
  width: 100%;
  align-items: flex-start;
  padding: 2px 5px;
}

.gender-triptych-tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 2;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.gender-triptych-tile--border {
  border-left: 2px solid #fff;
  box-sizing: border-box;
}

.gender-triptych-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.55s ease;
}

.gender-triptych-tile:hover .gender-triptych-bg,
.gender-triptych-tile:focus-visible .gender-triptych-bg {
  transform: scale(1.06);
}

.gender-triptych-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
  transition: background 0.35s ease;
}

.gender-triptych-tile:hover .gender-triptych-overlay,
.gender-triptych-tile:focus-visible .gender-triptych-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.gender-triptych-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

@media (max-width: 768px) {
  /* Horizontal carousel: one main card + peek of next (swipe) */
  .gender-triptych {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 0;
    gap: 3px;
    padding: 0 4px 4px;
    background: #fff;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-inline: 12px;
  }

  .gender-triptych::-webkit-scrollbar {
    display: none;
  }

  .gender-triptych-tile {
    flex: 0 0 auto;
    width: min(82vw, 185px);
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .gender-triptych-tile--border {
    border-left: none;
    border-top: none;
  }

  .gender-triptych-label {
    font-weight: 700;
    font-size: clamp(1.875rem, 7vw, 2.35rem);
  }
}

/* Categories Section */
.categories-section {
  width: 100%;
  position: relative;
}

.categories-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.categories-slider-track {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.categories-slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.category-slide {
  min-width: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
}

.category-slide.active {
  opacity: 1;
}

.category-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.category-slide-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-slide:hover .category-slide-image {
  transform: scale(1.05);
}

.category-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
}

.category-slide-content h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-btn svg {
  width: 24px;
  height: 24px;
}

.categories-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.categories-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.categories-dots .dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

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

.category-card h3 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  transition: color 0.3s ease;
}

.category-card:hover h3 {
  color: #e21c2a;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

/* Black Friday Section */
.black-friday-section {
  padding: 60px 0;
}

/* Sale / discount homepage section */
.sale-section {
  padding: 60px 0;
}

.sale-section .product-card-category {
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.35;
}

.sale-section .product-price {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.sale-section .current-price {
  font-weight: 700;
  color: #000;
}

.black-friday-section .product-discount-pct,
.sale-section .product-discount-pct,
.gifts-section .product-discount-pct,
.category-main .product-discount-pct {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #e21c2a;
  line-height: 1.3;
  text-align: left;
}

.black-friday-section .product-price,
.gifts-section .product-price,
.category-main .product-price {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.black-friday-section .product-price:has(.original-price) .current-price,
.gifts-section .product-price:has(.original-price) .current-price,
.category-main .product-price:has(.original-price) .current-price {
  font-weight: 700;
  color: #000;
}

/* ახალი პროდუქცია: 30 in DOM; collapsed = 15 + button desktop, 14 + button mobile */
.home-new-arrivals-grid .home-new-arrivals-more {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 8px 0 0;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #1a1a1a;
  background: #000000;
  color: #ffffff;
  border-radius: 2px;
  font-family: var(--font-primary);
}

.home-new-arrivals-grid .home-new-arrivals-more:hover {
  background: #000000;
  color: #fff;
}

/* გაშლილად: ღილაკი ბოლოში, არა პირველი და მეორე ნაწილს შორის */
.home-new-arrivals-grid[data-collapsed="false"] .home-new-arrivals-more {
  order: 999 !important;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .home-new-arrivals-grid[data-collapsed="true"] .home-new-arrival-mobile-extra {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .home-new-arrivals-grid[data-collapsed="true"] .home-new-arrival-desktop-extra {
    display: none !important;
  }

  .home-new-arrivals-grid--lte15-desktop .home-new-arrivals-more {
    display: none !important;
  }
}

/* Product Carousel */
.product-carousel {
  position: relative;
  margin: 30px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  min-width: 280px;
  flex-shrink: 0;
}

.product-image {
  width: 100%;
  /* border-radius: 8px; */
  margin-bottom: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 100%; /* Creates square aspect ratio (1:1) - background fills this area */
}

/* Modern browsers - prefer aspect-ratio */
@supports (aspect-ratio: 1 / 1) {
  .product-image {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 1 / 1;
  }
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #000;
}

.product-category {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0e0e0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Gifts Section */
.gifts-section {
  margin: 60px 0;
}

.gifts-section {
  text-align: center;
}

.gifts-tabs {
  display: inline-flex;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 4px;
  margin: 0 auto 30px auto;
  gap: 0;
  position: relative;
  width: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-family: var(--font-primary);
}

.tab-btn.active {
  background: #fff;
  color: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
  color: #000;
  background: rgba(255, 255, 255, 0.5);
}

.shop-all {
  text-align: center;
  margin-top: 30px;
}

.shop-all-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s;
}

.shop-all-btn:hover {
  background: #333;
}

/* Showcase Section */
.showcase-section {
  margin: 60px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.showcase-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.showcase-image {
  width: 100%;
  background-size: cover;
  background-position: center;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  /* margin-top: 80px; */
  /* margin-bottom: 70px; */
}

.footer-signup {
  background: #000;
  color: #fff;
  padding: 14px 0;
}

.footer-signup .footer-container {
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  text-align: center;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-signup p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.signup-btn {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  line-height: 30px;
  transition: background 0.25s ease, color 0.25s ease;
  width: 160px;
}

.signup-btn:hover,
.signup-btn:focus,
.signup-btn:active {
  background: #fff;
  color: #000;
  border-color: #fff;
  outline: none;
}

.footer-main {
  background: #000;
  padding: 10px 0 40px;
}

.footer-main .footer-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-column-toggle {
  display: none;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  /* margin-bottom: 15px; */
}

.footer-column-toggle h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.footer-caret {
  width: 25px;
  height: 25px;
  color: #fff;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.footer-column.expanded .footer-caret {
  transform: rotate(180deg);
}

.footer-links {
  display: block;
}

.footer-column a {
  display: block;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #bdbdbd;
}

.footer-column.independent {
  grid-column: span 1;
}

.independent-title {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 15px;
}

.nb-logo-footer {
  margin-bottom: 15px;
}

.footer-column.independent p {
  font-size: 13px;
  color: #d0d0d0;
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: color 0.25s ease, transform 0.25s ease;
  line-height: 1;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon:hover {
  color: #e21c2a;
  transform: translateY(-1px);
}

/* Feedback Button */
.feedback-btn {
  display: none !important;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  background: #f5f5f5;
  color: #000;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  z-index: 999;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.feedback-btn:hover {
  background: #e0e0e0;
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: -webkit-fill-available;
  height: 100%;
  background: #fff;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 2001;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-logo {
  flex-shrink: 0;
}

.mobile-menu-close {
  background: #f5f5f5;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background 0.3s;
}

.mobile-menu-close:hover {
  background: #e0e0e0;
}

.mobile-menu-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0;
}

.mobile-menu-nav {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: background 0.3s;
}

.mobile-nav-link:hover {
  background: #f9f9f9;
}

.mobile-nav-link.red {
  color: #e21c2a;
}

.mobile-nav-link svg {
  flex-shrink: 0;
  color: #666;
  width: 16px;
  height: 16px;
}

.mobile-menu-utility {
  padding: 10px 0;
}

.mobile-utility-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.3s;
}

.mobile-utility-link:hover {
  background: #f9f9f9;
}

.mobile-utility-link svg {
  flex-shrink: 0;
  color: #666;
}

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

.mobile-footer-link {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.mobile-footer-link strong {
  font-weight: 700;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dropdown-menu {
    min-width: 800px;
  }

  .footer-main .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  .mobile-left {
    display: flex;
  }

  .mobile-profile {
    display: flex;
  }

  .search-icon-mobile {
    display: block;
  }

  .header-left {
    flex: 1;
    justify-content: center;
    order: 2;
  }

  .mobile-left {
    order: 1;
  }

  .header-right {
    order: 3;
  }

  .main-nav {
    display: none;
  }

  .desktop-search {
    display: none;
  }

  .mobile-search-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1300;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .mobile-search-overlay.is-open {
    display: flex;
  }

  .mobile-search-shell {
    width: 100%;
    max-width: none;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: auto;
    margin-top: 0;
    min-height: 100vh;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .mobile-search-form {
    border: none;
    border-bottom: 0;
    border-radius: 0;
    min-width: 0;
    background: #fff;
    box-shadow: none;
    padding: 12px 12px 8px;
  }

  .mobile-search-cancel {
    display: inline-block;
  }

  .mobile-search-content {
    max-height: none;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 8px 14px 18px;
  }

  .header-search-rich-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .header-search-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .header-search-results-head {
    display: none;
  }

  .header-search-suggestions-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .header-search-suggestion-item {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 500;
  }

  .header-search-ai-row {
    margin-bottom: 14px;
  }

  .header-search-ai-text {
    font-size: 28px;
  }

  .header-search-see-all-btn {
    margin-top: 16px;
    border-radius: 2px;
    padding: 12px;
    background-color: black;
    color: white;
  }

  .desktop-profile {
    display: none;
  }

  .header-container {
    padding: 12px 15px;
  }

  .header-top-bar-inner {
    min-height: 50px;
    padding: 4px 10px 0px;
    gap: 2px;
  }

  .header-top-bar-text {
    font-size: 14px;
    line-height: 1.2;
    font-family: none;
  }

  .header-top-bar-dots span {
    width: 4px;
    height: 4px;
  }

  .logo {
    margin: 0;
  }

  .header-right {
    gap: 15px;
  }

  .dropdown-menu {
    min-width: 600px;
    flex-direction: column;
  }

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

  .section-container {
    padding: 0 8px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .black-friday-section,
  .sale-section,
  .gifts-section {
    padding: 40px 0;
  }

  .gifts-tabs {
    padding: 3px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .categories-section {
    padding: 2px 0;
  }

  .category-slide-link {
    height: 350px;
  }

  .category-slide-content {
    padding: 30px 20px;
  }

  .category-slide-content h3 {
    font-size: 24px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .slider-btn svg {
    width: 20px;
    height: 20px;
  }

  .categories-dots {
    bottom: 15px;
    gap: 6px;
  }

  .categories-dots .dot {
    width: 6px;
    height: 6px;
  }

  .categories-dots .dot.active {
    width: 20px;
  }

  .footer-main .footer-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-column {
    border-bottom: 1px solid #2a2a2a;
    padding: 20px 0;
  }

  .footer-column:last-child {
    border-bottom: none;
  }

  .footer-column-toggle {
    display: flex;
  }

  .footer-column h4.desktop-only {
    display: none;
  }

  .footer-links {
    display: none;
    padding-top: 10px;
  }

  .footer-column.expanded .footer-links {
    display: block;
  }

  .footer-column:first-child {
    border-top: none;
  }

  .footer-column.expanded .footer-caret {
    transform: rotate(180deg);
  }

  .footer-column:first-child {
    border-top: none;
  }

  .footer-signup .footer-container {
    flex-direction: row;
    align-items: center;
    /* justify-content: space-between; */
    gap: 12px;
    text-align: left;
    padding: 0 16px;
  }

  .footer-signup p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    max-width: 180px;
    text-align: left;
  }

  .footer-signup .signup-btn {
    height: 44px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: 42px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .footer-column.independent {
    grid-column: span 1;
    /* border-top: 1px solid #2a2a2a; */
    margin-top: -13px;
    padding-top: 20px;
  }

  .carousel-btn {
    display: none;
  }

  .section-container {
    padding: 0 5px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .black-friday-section,
  .sale-section,
  .gifts-section {
    padding: 30px 0;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 5px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .black-friday-section,
  .sale-section,
  .gifts-section {
    padding: 25px 0;
  }

  .gifts-tabs {
    padding: 2px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .category-slide-link {
    height: 300px;
  }

  .category-slide-content {
    padding: 20px 15px;
  }

  .category-slide-content h3 {
    font-size: 20px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .slider-prev {
    left: 5px;
  }

  .slider-next {
    right: 5px;
  }

  .slider-btn svg {
    width: 18px;
    height: 18px;
  }

  .categories-dots {
    bottom: 10px;
    gap: 5px;
  }

  .categories-dots .dot {
    width: 5px;
    height: 5px;
  }

  .categories-dots .dot.active {
    width: 18px;
  }
}

/* Cart Sidebar */
.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.cart-sidebar-overlay.active .cart-sidebar {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.cart-sidebar-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #000;
}

.cart-sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: opacity 0.2s;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #111;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f2f2f2;
  font-size: 24px;
  line-height: 1;
}

.cart-sidebar-close:hover {
  opacity: 0.7;
}

.cart-sidebar-close svg {
  width: 24px;
  height: 24px;
}

.cart-sidebar-divider {
  height: 1px;
  background-color: #e0e0e0;
}

.cart-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.cart-sidebar-item-image-wrap {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  /* background: #f2f2f2; */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-sidebar-item-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.cart-sidebar-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-sidebar-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.cart-sidebar-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.25;
}

.cart-sidebar-item-specs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.cart-sidebar-item-spec {
  font-size: 12px;
  color: #5c6b78;
  margin: 0;
  line-height: 1.35;
}

.cart-sidebar-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.cart-sidebar-item-quantity {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.cart-sidebar-quantity-btn {
  background: #f2f2f2;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #000;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
}

.cart-sidebar-quantity-btn:hover {
  background: #e8e8e8;
}

.cart-sidebar-qty-label {
  font-size: 13px;
  color: #000;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.cart-sidebar-quantity-value {
  font-size: 13px;
  font-weight: 400;
  min-width: 1ch;
  text-align: center;
}

.cart-sidebar-item-remove {
  background: #f2f2f2;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.cart-sidebar-item-remove:hover {
  background: #e5e5e5;
  color: #000;
}

.cart-sidebar-item-remove svg {
  display: block;
}

.cart-sidebar-item-line-price {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin: 0;
  white-space: nowrap;
}

.cart-sidebar-item-promo {
  font-size: 11px;
  color: #8b4513;
  margin-top: 4px;
}

.cart-sidebar-footer {
  border-top: 1px solid #e0e0e0;
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background-color: #fff;
}

.cart-sidebar-footer[hidden] {
  display: none !important;
}

.cart-sidebar-summary {
  margin-bottom: 20px;
}

.cart-sidebar-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cart-sidebar-summary-row > span:first-child {
  font-size: 14px;
  color: #646970;
}

.cart-sidebar-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cart-sidebar-subtotal {
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.cart-sidebar-shipping {
  font-size: 12px;
  color: #646970;
}

.cart-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-sidebar-btn {
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
  display: block;
}

.cart-sidebar-btn-view {
  background-color: #fff;
  border: 1px solid #000;
  color: #000;
}

.cart-sidebar-btn-view:hover {
  background-color: #f5f5f5;
}

.cart-sidebar-btn-checkout {
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
}

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

@media (max-width: 768px) {
  .cart-sidebar {
    max-width: 100%;
    width: 90%;
    height: 100dvh;
    max-height: 100dvh;
  }

  .cart-sidebar-content {
    -webkit-overflow-scrolling: touch;
  }
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 90%;
  width: 100%;
  max-width: 400px;
}

.toast {
  min-width: 280px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.hiding {
  opacity: 0;
  transform: translateY(20px);
}

.toast-success {
  background: #10b981;
  color: #fff;
}

.toast-error {
  background: #e21c2a;
  color: #fff;
}

.toast-warning {
  background: #f59e0b;
  color: #fff;
}

.toast-info {
  background: #3b82f6;
  color: #fff;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

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

@media (max-width: 768px) {
  .toast-container {
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: none;
    max-width: none;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 90%;
  }
}

/* Confirmation Toast/Dialog */
.confirm-toast {
  background: #fff;
  color: #000;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 20px 24px;
  min-width: 320px;
  max-width: 400px;
}

.confirm-toast .toast-message {
  margin-bottom: 16px;
  font-weight: 500;
  color: #333;
}

.confirm-toast-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.confirm-toast-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-toast-btn-primary {
  background: #000;
  color: #fff;
}

.confirm-toast-btn-primary:hover {
  background: #333;
}

.confirm-toast-btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #e0e0e0;
}

.confirm-toast-btn-secondary:hover {
  background: #e0e0e0;
}

/* Login / Create Account Modal */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.login-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: 16px;
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
}

.login-modal-close:hover {
  background: #f0f0f0;
}

.login-modal-banner {
  background: #f0f0f0;
  color: #000;
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.4;
}

.login-modal-tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
}

.login-modal-tab {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: #f0f0f0;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.login-modal-tab:first-child {
  border-radius: 0;
}

.login-modal-tab.active {
  background: #fff;
  color: #000;
  border-bottom: 2px solid #fff;
  margin-bottom: -1px;
}

.login-modal-tab:not(.active):hover {
  background: #e8e8e8;
}

.login-modal-body {
  padding: 24px 24px 16px;
}

.login-modal-form .login-modal-field {
  position: relative;
  margin-bottom: 14px;
}

.login-modal-field input {
  width: 100%;
  padding: 12px 14px;
  padding-right: 44px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  color: #000;
  background: #fff;
  box-sizing: border-box;
}

.login-modal-field input::placeholder {
  color: #333;
}

.login-modal-field-password .login-modal-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
}

.login-modal-field-password .login-modal-password-toggle:hover {
  color: #000;
}

.login-modal-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.login-modal-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #000;
  cursor: pointer;
}

.login-modal-remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.login-modal-checkbox {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 2px solid #e21c2a;
  border-radius: 2px;
  background: #fff;
  align-items: center;
  justify-content: center;
}

.login-modal-remember input:checked + .login-modal-checkbox::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #e21c2a;
  border-bottom: 2px solid #e21c2a;
  transform: rotate(-45deg);
  margin-bottom: 3px;
}

.login-modal-forgot {
  font-size: 14px;
  color: #000;
  text-decoration: underline;
}

.login-modal-forgot:hover {
  color: #333;
}

.login-modal-btn {
  width: 100%;
  padding: 14px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-modal-btn:hover {
  background: #333;
}

.login-modal-back {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  color: #666;
}
.login-modal-back:hover {
  background: #f5f5f5;
  color: #333;
}

.login-modal-hint {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
}

.login-modal-legal {
  padding: 12px 24px 20px;
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}

.login-modal-legal a {
  color: #000;
  text-decoration: underline;
}

.login-modal-legal a:hover {
  color: #333;
}

.phone-auth-verify-btn[hidden],
.phone-auth-send-btn[hidden] {
  display: none !important;
}

.phone-auth-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
  color: #000;
}

.login-modal-overlay.phone-auth-on-otp-step .phone-auth-modal-title {
  display: none;
}

.login-modal-overlay.phone-auth-on-otp-step .login-modal-legal {
  display: none;
}

.login-modal-overlay.phone-auth-on-otp-step .login-modal {
  max-width: 400px;
}

.phone-otp-verify {
  text-align: center;
  padding: 8px 0 4px;
}

.phone-otp-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #000;
  line-height: 1.35;
}

.phone-otp-subtitle {
  font-size: 14px;
  color: #333;
  margin: 0 0 6px;
}

.phone-otp-phone {
  font-size: 16px;
  font-weight: 600;
  color: #1a73e8;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}

.phone-otp-change-number {
  display: inline-block;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
}

.phone-otp-change-number:hover {
  text-decoration: underline;
}

.phone-otp-form {
  margin: 0 0 20px;
  position: relative;
}

.phone-otp-capture {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: 0;
  top: 0;
}

.phone-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.phone-otp-box {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 10px;
  background: #f0f0f0;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #000;
  caret-color: #1a73e8;
  padding: 0;
  box-sizing: border-box;
}

.phone-otp-box:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
  background: #fff;
}

.phone-otp-timer {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.phone-otp-timer-value {
  color: #1a73e8;
  font-weight: 600;
}

.phone-auth-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.phone-auth-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 48px;
  min-height: 48px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.phone-auth-flag-img {
  display: block;
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.phone-auth-code {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 400;
  color: #555;
  letter-spacing: 0.02em;
}

.phone-auth-input,
.phone-auth-local-input {
  flex: 1;
  min-width: 0;
}

.phone-auth-input {
  padding: 14px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  background: #f5f5f5;
  min-height: 48px;
  box-sizing: border-box;
}

.phone-auth-input:focus {
  outline: none;
  border-color: #000;
  background: #fff;
}

.phone-auth-fl-field {
  flex: 1;
  min-width: 0;
}

.login-modal-field-input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

.page-main-product-grid {
  grid-template-columns: 227px;
}

@media (max-width: 768px) {
  .page-main-product-grid {
    grid-template-columns: 200px;
  }
}

/* Checkout sidebar (same slide-in pattern as cart) */
.checkout-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

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

.checkout-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10003;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.checkout-sidebar-overlay.active .checkout-sidebar {
  transform: translateX(0);
}

.checkout-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.checkout-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.checkout-sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #000;
}

.checkout-sidebar-close:hover {
  opacity: 0.7;
}

.checkout-sidebar-divider {
  height: 1px;
  background-color: #e0e0e0;
  flex-shrink: 0;
}

.checkout-sidebar-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.checkout-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 8px;
}

.checkout-sidebar-summary-list {
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.checkout-sidebar-summary-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.checkout-sidebar-summary-img {
  width: 66px;
  height: 88px;
  object-fit: cover;
  border-radius: 2px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.checkout-sidebar-summary-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.checkout-sidebar-summary-spec {
  font-size: 13px;
  color: #666;
  margin: 0 0 2px;
}

.checkout-sidebar-summary-price {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 0;
}

.checkout-sidebar-empty {
  text-align: center;
  padding: 32px 12px;
  color: #666;
}

.checkout-sidebar-empty-link {
  color: #000;
  font-weight: 600;
}

.checkout-sidebar .checkout-section {
  margin-bottom: 20px;
}

.checkout-sidebar .checkout-section-heading {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.checkout-sidebar .checkout-field {
  margin-bottom: 14px;
}

.checkout-sidebar .payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  margin-bottom: 8px;
  cursor: pointer;
}

.checkout-sidebar .payment-option.selected {
  border: none;
}

.checkout-sidebar .checkout-section--payment-single .payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.checkout-sidebar .checkout-section--payment-single .payment-option {
  cursor: default;
}

.checkout-sidebar .payment-option input[type="radio"] {
  flex-shrink: 0;
  accent-color: #000;
}

.checkout-sidebar .payment-option-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.checkout-sidebar-footer {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.checkout-sidebar-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.checkout-sidebar-overlay--buy-now .checkout-sidebar-summary-row,
.checkout-sidebar-overlay[data-cart-mode="buy_now"] .checkout-sidebar-summary-row {
  display: none;
}

.checkout-sidebar-overlay--buy-now .checkout-sidebar-header,
.checkout-sidebar-overlay--buy-now .checkout-sidebar-divider,
.checkout-sidebar-overlay[data-cart-mode="buy_now"] .checkout-sidebar-header,
.checkout-sidebar-overlay[data-cart-mode="buy_now"] .checkout-sidebar-divider {
  display: none;
}

.checkout-sidebar .checkout-section--payment.checkout-sidebar-payment-as-header {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.checkout-sidebar-payment-topbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 0px 7px;
  /* border-bottom: 1px solid #e0e0e0; */
  flex-shrink: 0;
}

.checkout-sidebar-payment-topbar .checkout-sidebar-close {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: opacity 0.2s;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #111;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f2f2f2;
  font-size: 24px;
  line-height: 1;
}

.checkout-sidebar-payment-as-header > .checkout-section-heading {
  display: none !important;
}

.checkout-sidebar-payment-as-header > .payment-option {
  display: none !important;
}

.checkout-sidebar-payment-topbar .payment-option {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  width: auto;
  box-sizing: border-box;
  cursor: default;
}

.checkout-sidebar-totals {
  text-align: right;
}

.checkout-sidebar-total {
  display: block;
  font-weight: 700;
}

.checkout-sidebar-shipping {
  display: block;
  font-size: 13px;
  color: #2e7d32;
  margin-top: 2px;
}

.checkout-sidebar-btn {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

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

.checkout-sidebar-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .checkout-sidebar {
    max-width: 100%;
  }
}
