/* Site preloader */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #faf8f8);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

html.is-ready .site-preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.site-preloader-logo {
  width: auto;
  height: 3.5rem;
  max-width: min(85vw, 16rem);
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-preloader-logo {
    height: 4.25rem;
  }
}

.site-preloader-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(196, 30, 58, 0.15);
  border-top-color: var(--brand, #c41e3a);
  border-radius: 50%;
  animation: site-preloader-spin 0.75s linear infinite;
}

.site-preloader-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

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

/* SarkerTrade – shared theme */
:root {
  --brand: #c41e3a;
  --brand-dark: #8b1529;
  --brand-deeper: #4a0e0e;
  --surface: #faf8f8;
  --input-bg: #fff5f6;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  background: var(--surface);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(196, 30, 58, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(196, 30, 58, 0.04) 0%, transparent 45%);
}

.pb-safe {
  padding-bottom: calc(0.5rem + var(--safe-bottom));
}

.container-fluid {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Homepage – full viewport width */
.page-full-width .container-fluid {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.page-full-width .hero-full-bleed {
  padding-left: 0;
  padding-right: 0;
}
.page-full-width main,
.page-full-width header,
.page-full-width footer {
  width: 100%;
}
@media (min-width: 640px) {
  .container-fluid { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-fluid { padding-left: 2rem; padding-right: 2rem; }
}

/* Homepage: edge-to-edge layout */
.page-full-width .container-fluid {
  max-width: none;
  width: 100%;
}
.page-full-width .hero-full-bleed {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.nav-link { transition: background 0.2s, color 0.2s; border-radius: 0.25rem; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }

.site-logo img {
  display: block;
}

.header-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(196, 30, 58, 0.12);
  border-color: rgba(196, 30, 58, 0.2);
}

.category-card {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.category-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--brand);
}

.section-title {
  position: relative;
  padding-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  border-radius: 2px;
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.25);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-dark {
  background: #111;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn-dark:hover { background: #000; }
.btn-dark:active { transform: scale(0.98); }

.home-fab { box-shadow: 0 4px 14px rgba(196, 30, 58, 0.45); }

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

.hero-carousel {
  isolation: isolate;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-carousel-track { height: 440px; }
}

@media (min-width: 1024px) {
  .hero-carousel-track { height: 720px; }
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel .hero-banner {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel .hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 640px) {
  .hero-carousel .hero-banner img { min-height: 440px; }
}

@media (min-width: 1024px) {
  .hero-carousel .hero-banner img { min-height: 720px; }
}

.hero-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.hero-carousel-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-carousel-btn:hover {
  transform: scale(1.06);
  background: #fff;
  color: var(--brand-dark);
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.hero-carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-carousel-dot.is-active {
  width: 1.5rem;
  background: #fff;
}

.hero-carousel-caption {
  z-index: 10;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px dashed #f0c4cb;
  border-radius: 0.5rem;
  background: var(--input-bg);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  border-style: solid;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.form-input::placeholder { color: #9ca3af; }
.form-input.error { border-color: #ef4444; border-style: solid; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.card-panel {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.page-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.page-divider::before,
.page-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}
.page-divider span {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.02em;
}

.toast {
  position: fixed;
  bottom: calc(5.5rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 60;
  background: #111;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
@media (min-width: 1024px) {
  .toast { bottom: 2rem; }
}

/* Cart drawer */
.cart-drawer-panel {
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.cart-drawer-open .cart-drawer-panel {
  transform: translateX(0);
}
.cart-drawer-overlay {
  opacity: 0;
  transition: opacity 0.28s ease;
}
.cart-drawer-open .cart-drawer-overlay {
  opacity: 1;
}
.cart-drawer-items {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.cart-item-card {
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  background: #fafafa;
}
.cart-item-card:hover {
  border-color: #fecdd3;
  background: #fff;
}
.cart-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.cart-item-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}
.cart-item-name:hover {
  color: var(--brand);
}
.cart-item-meta {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 0.125rem;
}
.cart-item-remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #9ca3af;
}
.cart-item-remove:hover {
  color: var(--brand);
  background: #fef2f2;
}
.cart-item-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 0.5rem;
  margin-top: 0.375rem;
}
.cart-item-compare {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.cart-item-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}
.cart-item-save {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  margin-top: 0.25rem;
}
.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff;
}
.cart-qty-btn {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #4b5563;
}
.cart-qty-btn:hover {
  background: #fef2f2;
  color: var(--brand);
}
.cart-qty-value {
  min-width: 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 800;
}
.cart-item-line-total {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--brand);
}

.feature-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(196, 30, 58, 0.12);
}

.mobile-nav-active { color: var(--brand) !important; font-weight: 600; }

/* Trust strip */
.trust-strip {
  background: linear-gradient(90deg, #fff 0%, #fff5f6 50%, #fff 100%);
  border-bottom: 1px solid #f3f4f6;
}

/* Flash sale */
.flash-sale {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1519 50%, #4a0e0e 100%);
}

.countdown-box {
  min-width: 2.75rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Filter chips */
.filter-chip {
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.category-filter {
  border-color: #d1d5db;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.category-filter.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.category-filter:hover {
  border-color: #0f172a;
}

.category-tile {
  display: block;
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
}

.category-tile .category-tile-media {
  min-height: 4.75rem;
}

.category-tile.active .category-tile-media {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(196, 30, 58, 0.14);
  background: linear-gradient(180deg, #fff 0%, #fff4f6 100%);
}

.category-tile.active span {
  color: var(--brand);
}

.category-submenu-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
  border: 1px solid #f3d8dd;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.subcategory-chip {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subcategory-chip:hover {
  border-color: #111827;
}

.subcategory-chip.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(5.5rem + var(--safe-bottom));
  z-index: 35;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .back-to-top { bottom: 2rem; }
}

/* Checkout steps */
.checkout-steps .step {
  flex: 1;
  text-align: center;
  position: relative;
}
.checkout-steps .step::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.checkout-steps .step:last-child::after { display: none; }
.checkout-steps .step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.checkout-steps .step.active .step-num {
  background: var(--brand);
  color: #fff;
}
.checkout-steps .step.done .step-num {
  background: #10b981;
  color: #fff;
}

/* Sticky mobile bars */
.sticky-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(4.25rem + var(--safe-bottom));
  z-index: 38;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
}
@media (min-width: 1024px) {
  .sticky-mobile-bar { display: none; }
}

/* Product gallery */
.gallery-thumb {
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  cursor: pointer;
  opacity: 0.7;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--brand);
  opacity: 1;
}

.bundle-option {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.bundle-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.bundle-option.active {
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.14);
}

.bundle-radio {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.bundle-option.active .bundle-radio {
  border-color: #f97316;
}

.bundle-option.active .bundle-radio::after {
  content: '';
  position: absolute;
  inset: 0.24rem;
  border-radius: 9999px;
  background: #f97316;
}

.bundle-badge {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.38rem 0.5rem;
  border-radius: 0.45rem;
}

/* FAQ accordion */
.faq-item details summary {
  list-style: none;
  cursor: pointer;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; }

/* Testimonial */
.testimonial-card {
  scroll-snap-align: start;
}

/* Promo marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.promo-marquee-inner {
  animation: marquee 28s linear infinite;
}
.promo-marquee:hover .promo-marquee-inner {
  animation-play-state: paused;
}

/* Modal */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Wishlist heart */
.wishlist-btn.active svg { fill: var(--brand); stroke: var(--brand); }

/* Fade in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInUp 0.4s ease forwards;
}

/* Product hidden by filter */
.product-card-hidden { display: none !important; }
.shop-filter-hidden { display: none !important; }

/* Header product search dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(24rem, 70vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.search-results-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}
.search-results-item:last-child { border-bottom: none; }
.search-results-item:hover,
.search-results-item:focus-visible {
  background: #fef2f2;
  outline: none;
}
.search-results-thumb {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.375rem;
  background: #f9fafb;
  flex-shrink: 0;
}
.search-results-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.search-results-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-results-meta {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-results-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: #c41e3a;
  flex-shrink: 0;
}
.search-results-empty,
.search-results-loading {
  padding: 1rem 0.875rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

/* Floating contact buttons (desktop) */
.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}

.floating-contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.3);
  color: #fff;
}

.floating-contact-btn--messenger {
  background: #0084ff;
}

.floating-contact-btn--call {
  background: var(--brand, #c41e3a);
}

.floating-contact-btn--whatsapp {
  background: #22c55e;
}

/* Product page — related sidebar */
.product-related-sidebar {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.related-product-item:focus-visible {
  outline: 2px solid var(--brand, #c41e3a);
  outline-offset: 2px;
}
