:root {
  --brand-primary: #111;
  --brand-hover: #000;
  --brand-bg: #fff;
  --brand-light-bg: #f8f9fa;
  --brand-muted: #555;
  --navbar-glass-bg: rgba(255, 255, 255, 0.8);
  --footer-gradient: rgba(13,110,253,0.03);
}

[data-bs-theme="dark"] {
  --brand-primary: #fff;
  --brand-hover: #ddd;
  --brand-bg: #16161a;
  --brand-light-bg: #1e1e22;
  --brand-muted: #aaa;
  --navbar-glass-bg: rgba(22, 22, 26, 0.8);
  --footer-gradient: rgba(255,255,255,0.03);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--brand-primary);
  background-color: var(--brand-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
}

p, small {
  color: var(--brand-muted);
}

.navbar-glass {
  background-color: var(--navbar-glass-bg);
}

.navbar .oval-search-bar .form-control,
.navbar .oval-search-bar .form-select,
.navbar .oval-search-bar .btn {
    min-height: 32px !important;
    padding: 4px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 999px !important;
}

.navbar .oval-search-bar .search-input {
    background-position: 10px center !important;
    padding-left: 2rem !important;
}

.oval-search-bar .form-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2rem !important;
}

.navbar .oval-search-bar .btn {
    background-color: #000;
    color: #fff;
}

#react-search-bar {
    max-width: 550px;
}

#react-search-bar .sticky-top {
    position: static !important;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--brand-primary);
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--brand-hover);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--brand-hover);
  font-weight: 600;
}

.header-gradient {
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, #20c997, #ffc107, #0d6efd);
  background-size: 300% 100%;
  animation: slide 6s linear infinite;
}

@keyframes slide {
  0% { background-position: 0% 50% }
  100% { background-position: 300% 50% }
}

.footer-neo {
  background: linear-gradient(180deg, var(--footer-gradient), rgba(0, 0, 0, 0));
}

.footer-legal {
  border-top: 1px solid var(--bs-border-color);
  background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .footer-legal {
  background: rgba(255, 255, 255, 0.03);
}

.footer-neo h6 {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.link-quiet {
  color: var(--brand-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-quiet:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.btn-icon,
.btn-circle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn,
.nav-link,
a {
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: var(--brand-primary);
  color: #fff;
}

.back-to-top.show {
  display: inline-flex;
}

.fancy-card {
  background-color: var(--brand-bg);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.fancy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.fancy-card-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  display: block;
}

.fancy-card-body {
  padding: 1rem;
  text-align: center;
}

.fancy-card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--brand-primary);
  text-decoration: none;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;

  line-height: 1.4;
  min-height: 2.8em;
}

.fancy-card-price {
  color:  #28a745;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card, .fancy-image-card {
  border: none;
  background: transparent;
  box-shadow: none;
}

.fancy-card,
.card,
.fancy-image-card,
.img-fluid {
  border-radius: 0 !important;
}

#thumbStrip {
  max-height: 520px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#thumbStrip::-webkit-scrollbar {
  display: none;
}

.thumb-btn {
  border: none;
  background-color: transparent;
  box-shadow: none;
}

.thumb-btn.active {
  outline: 2px solid var(--brand-primary);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.thumb-btn,
.thumb-btn img,
.thumb-strip img,
.fancy-card-img,
#thumbStrip img {
    border-radius: 0 !important;
}

.promo-carousel,
.no-scrollbar {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.back-to-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: transparent;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  box-shadow: none;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: none;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.back-to-top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: #000;
}

.back-to-top-inner .arrow-up {
  font-size: 1.25rem;
  line-height: 1;
  color: #000;
}

.back-to-top-inner .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
}

.back-to-top:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#cookieConsentContainer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 95%;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  line-height: 1.5;
}

#cookieConsentContainer p {
  margin: 0;
  flex: 1;
}

#cookieConsentContainer button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  background-color: #000;
  color: #fff;
  transition: background-color 0.2s ease-in-out;
}

#cookieConsentContainer button:hover {
  background-color: #333;
}

#cookieConsentContainer button:focus {
  outline: none;
  box-shadow: none;
}

.trust-card {
  background-color: #f8f9fa;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
  cursor: default;
}

.trust-card:hover {
  transform: translateY(-2px) scale(1.01);
  background-color: #ffffff;
}

.trust-card i {
  font-size: 1.5rem;
}

.trust-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ship-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.ship-info i {
  color: #ff6b35;
}

.ship-badge {
  background-color: #f1f3f5;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
}

.cookie-consent-container {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
}

.cookie-consent-container p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #333;
}

.cookie-consent-container .btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  min-width: 100px;
}

.cookie-consent-container .btn + .btn {
  margin-left: 0.5rem;
}

@media (min-width: 480px) {
  .cookie-consent-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cookie-consent-container p {
    margin: 0;
    flex: 1;
  }
}

.currency-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 24px 4px 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  background-image: none !important;
  line-height: 1.4;
  height: auto;
}

.currency-select:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.currency-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.4);
}

.currency-select option {
  color: #111;
  background-color: #fff;
}

.navbar .currency-select {
  margin-top: 2px;
}

.thumb-strip {
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.thumb-strip::-webkit-scrollbar {
  display: none;
}

.btn-check:checked + .btn {
  background-color: #111;
  color: #fff;
  border-color: #111;
  transition: all 0.2s ease-in-out;
}
.btn-check:disabled + .btn {
  opacity: 0.5;
  cursor: not-allowed;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.related-products-mobile .row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.related-products-mobile .row::-webkit-scrollbar {
  display: none;
}

.related-products-mobile .col-6 {
  flex: 0 0 75%;
  scroll-snap-align: start;
}

.related-products-mobile .fancy-card {
  transition: transform 0.2s ease;
}
.related-products-mobile .fancy-card:active {
  transform: scale(0.97);
}

.category-grid-wrapper {
  margin-bottom: 2rem;
  padding: 0;
}

.category-grid-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.category-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.category-card-img {
  width: 100%;
  height: 110px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 10px;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.category-card-special {
  background: #000;
  color: #fff;
}

.category-card-special:hover {
  background: #222;
}

@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.variant-thumb-radio { display: none; }

.variant-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.variant-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.variant-thumb-radio:checked + .variant-thumb {
    border-color: #000;
}

.size-radio { display: none; }

.size-radio + .size-pill {
    padding: 8px 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.size-radio:checked + .size-pill {
    border-color: #0d6efd;
    background: #fff;
    color: black;
}

.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

