/* ==========================================================================
   Easy Solution BD — 3D Foam Wall & Ceiling Stickers storefront
   Layout inspired by a modern Laravel storefront.
   ========================================================================== */

:root {
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-soft: #f0fdfa;
  --brand-ring: rgba(13, 148, 136, 0.16);
  --ink: #111827;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-2: #e2e8f0;
  --soft: #f8fafc;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 22px rgba(0, 0, 0, 0.08);
  --font: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
}

.container {
  width: min(1400px, calc(100% - 24px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 18px 0;
}

.section-muted {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 800;
  color: var(--ink);
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* ==========================================================================
   Announcement + Header
   ========================================================================== */

.announcement-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-main {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-inline: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.brand-logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.header-search-container {
  flex: 1;
  max-width: 580px;
  position: relative;
  margin: 0 10px;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  overflow: hidden;
  height: 44px;
  transition: box-shadow 0.2s;
}

.header-search-form:focus-within {
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.header-search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 0 16px;
}

.header-search-input::placeholder {
  color: #94a3b8;
}

.header-search-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  height: 100%;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.header-search-btn:hover {
  background: var(--brand-dark);
}

.header-search-btn svg {
  stroke: #fff;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.is-open {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: var(--brand-soft);
}

.suggestion-item img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}

.suggestion-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}

.suggestion-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}

.search-empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

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

.header-hotline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  height: 44px;
  padding: 0 16px;
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.2s;
}

.header-hotline-btn:hover {
  background: var(--brand);
  color: #fff;
}

.header-hotline-btn:hover svg {
  stroke: #fff;
}

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff !important;
  border-radius: var(--radius);
  height: 44px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 800;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.header-cart-btn:hover {
  background: var(--brand-dark);
}

.cart-btn-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-btn-icon-wrap svg {
  fill: #fff;
}

.cart-btn-text {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #fff;
  color: var(--brand);
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--brand);
}

.cart-count-badge[hidden] {
  display: none;
}

.header-nav-strip {
  background: var(--soft);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.nav-strip-container {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.header-nav-middle {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.header-nav-middle::-webkit-scrollbar {
  display: none;
}

.header-nav-middle .nav-item {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-nav-middle .nav-item:hover,
.header-nav-middle .nav-item.active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Side menu (mobile bottom sheet) */
.performance-side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.performance-side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.performance-side-menu {
  position: fixed;
  top: 0;
  left: -70vw;
  width: 70vw;
  height: 100vh;
  background: #fff;
  z-index: 10001;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.performance-side-menu.active {
  left: 0;
}

.side-menu-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.side-menu-brand img {
  height: 34px;
  width: auto;
}

.side-menu-close {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.side-menu-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.side-menu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.side-menu-list li a:hover {
  background: var(--soft);
  color: var(--brand);
}

.side-menu-list li a img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: 12px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #0b3b36 0%, #0f766e 50%, #14b8a6 100%);
  aspect-ratio: 1200 / 420;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Source photos are square (600×600). Show the whole image on the right
   instead of cropping it into a wide strip. */
.hero-slide img {
  order: 2;
  flex: 0 0 44%;
  width: 44%;
  min-width: 0;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px 22px 14px 0;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-overlay {
  order: 1;
  position: static;
  flex: 0 0 56%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 5%;
  color: #fff;
  z-index: 2;
}

.hero-overlay h2 {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 38px);
  font-weight: 800;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-overlay p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  opacity: 0.95;
}

.hero-overlay .btn {
  margin-top: 12px;
  align-self: flex-start;
}

/* Phones: stack the full image above the text panel. */
@media (max-width: 767.98px) {
  .hero .hero-media {
    aspect-ratio: auto;
    height: clamp(380px, 112vw, 500px);
    min-height: 0;
  }

  .hero .hero-slide {
    flex-direction: column;
  }

  .hero .hero-slide img {
    order: 1;
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 10px 14px 2px;
    object-position: center;
  }

  .hero .hero-overlay {
    order: 2;
    flex: 0 0 auto;
    padding: 12px 16px 40px;
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.06) 0%,
      rgba(15, 23, 42, 0.55) 100%
    );
  }

  .hero .hero-overlay h2 {
    font-size: clamp(17px, 4.4vw, 22px);
    line-height: 1.28;
  }

  .hero .hero-arrow {
    display: none;
  }

  .hero .hero-dots {
    bottom: 12px;
  }
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}

.hero-dot.is-active {
  width: 24px;
  background: var(--brand);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s;
  padding: 0;
}

.hero-arrow:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-md);
}

.product-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
  display: block;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.badge-sale {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-align: center;
  background: #ff0034;
  box-shadow: 0 3px 8px rgba(255, 0, 52, 0.35);
}

.badge-stock-out {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

.stock-out-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-stock-out-center {
  display: inline-flex;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

.product-card.is-out-of-stock .product-image img {
  opacity: 0.65;
  filter: grayscale(35%) brightness(0.92);
}

.product-body {
  padding: 12px;
  display: flex;
  flex: 1;
  flex-direction: column;
  text-align: center;
}

.product-name {
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0f172a;
  margin-bottom: 8px;
}

.product-name:hover {
  color: var(--brand);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  background: var(--soft);
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid #f1f5f9;
  margin-bottom: 10px;
}

.old-price {
  color: #e53e3e;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 700;
}

.new-price {
  color: #0f172a;
  font-weight: 900;
  font-size: 17px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.order-link,
.cart-link {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
}

.order-link {
  width: 100%;
  background: var(--brand);
  color: #fff;
  padding: 0 8px;
}

.order-link:hover {
  background: var(--brand-dark);
}

.cart-link {
  width: 46px;
  background: var(--brand);
  color: #fff;
  padding: 0;
}

.cart-link:hover {
  background: var(--brand-dark);
}

.cart-link svg {
  fill: #fff;
}

.cart-link.is-added {
  background: var(--success);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 14.5px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 11px 22px;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 11px 22px;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-light {
  background: #fff;
  color: var(--brand);
  padding: 10px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15.5px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Product details page
   ========================================================================== */

.details-section {
  background: var(--soft);
  padding: 18px 0 40px;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.details-grid > * {
  min-width: 0;
}
.details-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.details-gallery {
  padding: 14px;
}

.details-main-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
}

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

/* Product video lives in the gallery's first slot, before the photos. */
.details-video-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  background: #000;
}

.details-main-image.is-video .details-video-stage {
  display: block;
}

.details-main-image.is-video #mainImage {
  visibility: hidden;
}

.details-video-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "Watch video" pill shown on the photo when the video is not selected. */
.video-play-btn {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.video-play-btn:hover {
  background: rgba(15, 23, 42, 0.97);
}

/* Hide the pill while the video itself is showing. */
.details-main-image.is-video .video-play-btn {
  display: none;
}

.video-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding-left: 2px;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 10px;
}

/* Video thumbnail that leads the strip. */
.thumb-btn.thumb-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #0f172a;
  color: #fff;
}

.thumb-video-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding-left: 2px;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
}

.thumb-video-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Mobile buy bar — keeps price + actions reachable without scrolling. */
.mobile-buy-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
  padding: 8px 12px;
}

.mobile-buy-bar-inner {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-buy-bar-price {
  flex-shrink: 0;
  line-height: 1.2;
}

.mobile-buy-bar-price strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.mobile-buy-bar-price del {
  font-size: 11.5px;
  color: #94a3b8;
  margin-right: 4px;
}

/* Compact quantity stepper inside the sticky bar. */
.qty-control.qty-control-sm {
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
}

.qty-control.qty-control-sm button {
  width: 28px;
  font-size: 1rem;
}

.qty-control.qty-control-sm input {
  width: 30px;
  font-size: 14px;
}

.mobile-buy-bar .btn.mobile-buy-bar-cart {
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
}

.mobile-buy-bar .btn {
  flex: 1;
  padding: 9px 8px;
  font-size: 13.5px;
  white-space: nowrap;
}

.details-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: #ff0034;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255, 0, 52, 0.4);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.thumb-btn.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-ring);
}

/* Thumbnail that belongs to the currently selected colour variant. */
.thumb-btn.is-variant {
  border-color: var(--brand);
}

.thumb-btn.is-variant:not(.active) {
  box-shadow: 0 0 0 1px var(--brand-ring);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-info {
  padding: 20px;
}

.details-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.badge-brand {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.rating-pill {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.details-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.28;
}

.details-short {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  white-space: pre-line;
}

.details-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.details-price {
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
}

.details-compare {
  font-size: 17px;
  color: #94a3b8;
  text-decoration: line-through;
}

.save-pill {
  background: var(--success-soft);
  color: #065f46;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.stock-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 14px;
}

.stock-line.low {
  color: #d97706;
}

.stock-line.out {
  color: var(--danger);
}

.variant-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.variant-title span {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.variant-chip {
  cursor: pointer;
}

.variant-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.variant-chip-body {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  transition: all 0.2s;
  user-select: none;
}

.variant-chip-body:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.variant-chip input:checked + .variant-chip-body {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--brand);
}

.variant-chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.variant-chip--disabled {
  cursor: not-allowed;
}

.variant-chip--disabled .variant-chip-body {
  border-color: #f3f4f6;
  background: #f9fafb;
  color: #9ca3af;
  text-decoration: line-through;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  height: 44px;
}

.qty-control button {
  width: 42px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}

.qty-control button:hover {
  background: var(--soft);
  color: var(--brand);
}

.qty-control input {
  width: 46px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
  outline: none;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.trust-item {
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
}

.trust-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.details-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.details-actions .btn {
  flex: 1;
  min-width: 150px;
}

.details-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line-2);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.details-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Embedded product video (YouTube). */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose {
  color: #334155;
  font-size: 14.5px;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 12px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}

.spec-table td:first-child {
  width: 190px;
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.feature-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.feature-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-answer {
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.vcart-section {
  background: var(--soft);
  padding: 18px 0 50px;
}

.vcart-inner {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.cart-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 10px 10px;
  border-bottom: 1px solid var(--line-2);
}

.cart-table td {
  padding: 12px 10px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 14px;
  vertical-align: middle;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-thumb {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  background: var(--soft);
}

.cart-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  display: block;
  line-height: 1.35;
}

.cart-name:hover {
  color: var(--brand);
}

.cart-variant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.cart-variant .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.remove-btn {
  background: var(--danger-soft);
  border: none;
  color: var(--danger);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.remove-btn:hover {
  background: var(--danger);
  color: #fff;
}

.vcart-qty .quantity {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  overflow: hidden;
  height: 34px;
}

.vcart-qty .quantity button {
  width: 32px;
  height: 100%;
  border: none;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.vcart-qty .quantity button:hover {
  background: var(--brand);
  color: #fff;
}

.vcart-qty .quantity input {
  width: 40px;
  height: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  outline: none;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cart-table-wrap {
  overflow-x: auto;
}

.cart-mobile-list {
  display: none;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 92px;
}

.cart-summary h5 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  padding-bottom: 4px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  padding: 7px 0;
}

.summary-line span:last-child {
  font-weight: 700;
  color: var(--ink);
}

.summary-line.total {
  border-top: 1.5px dashed var(--line-2);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 800;
}

.summary-line.total span:last-child {
  color: var(--brand);
  font-size: 19px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-state svg {
  color: #94a3b8;
  margin: 0 auto 16px;
  display: block;
}

.empty-state h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-section {
  background: var(--soft);
  padding: 20px 0 50px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 18px;
}

.checkout-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.checkout-header h6 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkout-header svg {
  color: var(--brand);
  flex-shrink: 0;
}

.card-body-custom {
  padding: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.form-control-custom {
  width: 100%;
  height: 46px;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: all 0.2s;
}

textarea.form-control-custom {
  height: 76px;
  padding: 11px 14px;
  line-height: 1.45;
  resize: vertical;
}

.form-control-custom:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
  outline: none;
}

.form-control-custom.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-error {
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 5px;
  display: none;
}

.field-error.show {
  display: block;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  position: relative;
}

.payment-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand);
}

.payment-option input {
  position: absolute;
  opacity: 0;
}

.payment-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-content strong {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
}

.payment-content small {
  font-size: 12px;
  color: var(--muted);
}

.check-circle {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.payment-option input:checked ~ .check-circle {
  border-color: var(--brand);
  background: var(--brand);
}

.payment-option input:checked ~ .check-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.terms-block {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--soft);
  border: 1px solid #edf2f7;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.terms-block input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.terms-block a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}

.cart-items-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 20px;
}

.checkout-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-2);
  align-items: center;
  position: relative;
}

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

.checkout-pro-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--soft);
}

.checkout-pro-info h6 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 3px;
  line-height: 1.35;
}

.checkout-pro-info .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 3px;
  width: fit-content;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: #fff;
  border-radius: 4px;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}

.qty-btn:hover {
  background: var(--brand);
  color: #fff;
}

.qty-val {
  width: 30px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}

.summary-totals {
  padding: 14px 20px;
  border-top: 1px solid var(--line-2);
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 14px;
  color: var(--ink-2);
}

.total-row.final {
  border-top: 1.5px dashed var(--line-2);
  margin-top: 10px;
  padding-top: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
}

.cod-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #166534;
}

.order-submit-wrap {
  padding: 14px 20px 18px;
}

.btn-place-order {
  background: var(--brand-dark);
  color: #fff;
  width: 100%;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-place-order:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

.secure-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.form-error-banner {
  background: var(--danger-soft);
  color: var(--danger);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
  display: none;
}

.form-error-banner.show {
  display: block;
}

/* ==========================================================================
   Success / invoice
   ========================================================================== */

.success-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  margin-bottom: 18px;
}

.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.success-hero h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.success-hero p {
  margin: 0;
  color: #166534;
  font-size: 14px;
}

.invoice-wrap {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.inv-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}

.inv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inv-brand img {
  height: 36px;
}

.inv-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.inv-meta {
  text-align: right;
}

.inv-meta h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.inv-meta p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.inv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-2);
}

.info-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-val {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.status-tag {
  display: inline-block;
  margin-top: 6px;
  background: var(--success-soft);
  color: #065f46;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.inv-table th {
  background: var(--soft);
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 11px 20px;
  border-bottom: 1px solid var(--line-2);
}

.inv-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}

.inv-table tr:last-child td {
  border-bottom: none;
}

.inv-sum {
  padding: 16px 20px;
  background: var(--soft);
  border-top: 1px solid var(--line-2);
}

.inv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--line-2);
}

.call-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-soft);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--brand-dark);
}

.call-badge svg {
  flex-shrink: 0;
  color: var(--brand);
}

/* ==========================================================================
   Footer + floating widgets
   ========================================================================== */

.site-footer {
  background: #111827;
  color: #fff;
  padding: 44px 0 0;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: start;
}

.footer-col-1 p {
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 340px;
}

.footer-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
}

.hotline-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
}

.footer-title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 2.5px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, filter 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.social-box:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.social-box.facebook {
  background: #1877f2;
}

.social-box.instagram {
  background: #e1306c;
}

.social-box.whatsapp {
  background: #25d366;
}

.social-box.youtube {
  background: #ff0000;
}

.copyright {
  padding: 16px 0;
  background: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.copyright a {
  color: var(--brand);
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid #25d366;
  border-radius: 50%;
  animation: waPulse 2s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.mobile-bottom {
  display: none;
}

/* ==========================================================================
   Toasts
   ========================================================================== */

.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #111827;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.3s ease-out;
  font-size: 14px;
  font-weight: 600;
  max-width: 330px;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loading-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line-2);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .details-grid,
  .checkout-grid,
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-summary {
    position: static;
  }

  /* Gallery always fills full width on mobile — no wasted space beside the photo. */
  .details-gallery {
    width: 100%;
  }

  .details-main-image {
    width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .details-main-image img {
    object-fit: cover;
    background: var(--soft);
  }

  .thumb-row {
    max-width: 100%;
  }

  /* One-line announcement instead of a 3-line block. */
  .announcement-bar {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Thumbnails become a single swipeable strip instead of a tall grid. */
  .thumb-row {
    display: flex;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .thumb-btn {
    flex: 0 0 58px;
    width: 58px;
    scroll-snap-align: start;
  }

  /* Sticky action bar so the customer can always order. */
  .mobile-buy-bar {
    display: flex;
    bottom: 0;
  }

  body.has-buy-bar {
    padding-bottom: 82px;
  }

  /* The sticky bar is the single action surface here — no duplicate buttons. */
  .details-actions {
    display: none;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: 64px;
  }

  .announcement-bar {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .header-main {
    min-height: 54px;
    height: 54px;
    padding: 0 10px;
    gap: 8px;
  }

  .brand-logo img {
    height: 30px;
    width: auto;
    max-width: 132px;
  }

  .header-search-container {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0 4px;
    position: static;
  }

  .header-search-form {
    background: var(--soft);
    border: 1.5px solid var(--brand);
    border-radius: 999px;
    height: 36px;
  }

  .header-search-input {
    font-size: 12.5px;
    padding: 0 6px 0 12px;
  }

  .header-search-btn {
    padding: 0 12px;
  }

  .header-search-btn span {
    display: none;
  }

  .header-nav-strip {
    display: none;
  }

  .header-hotline-btn {
    display: none;
  }

  .header-cart-btn {
    height: 38px;
    width: 38px;
    padding: 0;
    border-radius: var(--radius);
    position: relative;
  }

  .header-cart-btn .cart-btn-text {
    display: none;
  }

  /* Centre the icon and anchor the badge to the button's corner. */
  .header-cart-btn .cart-btn-icon-wrap {
    position: static;
  }

  .header-cart-btn .cart-count-badge {
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
  }

  .performance-side-menu {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  }

  .performance-side-menu.active {
    transform: translateY(0);
  }

  .side-menu-header {
    position: relative;
    padding: 16px 20px;
    background: var(--soft);
    border-bottom: 1px solid var(--line-2);
    border-radius: 24px 24px 0 0;
  }

  .side-menu-header::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
  }

  .side-menu-list {
    padding: 14px 16px 30px;
    overflow-y: auto;
    max-height: calc(80vh - 65px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .side-menu-list li a {
    background: var(--soft);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero-media {
    aspect-ratio: 1200 / 450;
    min-height: 125px;
  }

  .section {
    padding: 14px 0;
  }

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

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .trust-icon {
    margin-bottom: 0;
  }

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

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

  .inv-meta {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
  }

  .footer-col-1,
  .footer-col-4 {
    grid-column: span 2;
  }

  .floating-whatsapp {
    bottom: 78px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  /* Lift it clear of the sticky product buy bar. */
  body.has-buy-bar .floating-whatsapp {
    bottom: 142px;
  }

  /* The buy bar sits above the mobile bottom navigation. */
  .mobile-buy-bar {
    bottom: 64px;
  }

  body.has-buy-bar {
    padding-bottom: 138px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .mobile-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    height: 64px;
    background: #fff;
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 0 5px;
    align-items: center;
    justify-content: space-around;
  }

  .mobile-bottom a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    gap: 3px;
    position: relative;
    transition: color 0.2s;
  }

  .mobile-bottom a.active,
  .mobile-bottom a:hover {
    color: var(--brand);
  }

  .mobile-bottom svg {
    width: 22px;
    height: 22px;
  }

  .mobile-bottom .badge {
    position: absolute;
    top: 2px;
    left: 50%;
    right: auto;
    transform: translateX(5px);
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .mobile-bottom .badge[hidden] {
    display: none !important;
  }

  .cart-table {
    display: none;
  }

  .cart-mobile-list {
    display: block;
  }
}

@media (max-width: 680px) {
  /* Compact header: smaller logo, tighter search, room for the cart button. */
  .header-main {
    gap: 6px;
    padding: 0 8px;
  }

  .brand-logo img {
    height: 26px !important;
    width: auto !important;
    max-width: 116px;
  }

  .header-search-container {
    margin: 0 2px;
  }

  .header-search-form {
    height: 34px;
  }

  .header-search-input {
    font-size: 12px;
    padding: 0 4px 0 10px;
  }

  .header-search-btn {
    padding: 0 10px;
  }

  .header-search-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 576px) {
  .container {
    width: calc(100% - 16px);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }

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

  .product-name {
    font-size: 13px;
    min-height: 34px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .price-row {
    padding: 4px 6px;
    margin-bottom: 8px;
    gap: 6px;
  }

  .old-price {
    font-size: 12px;
  }

  .new-price {
    font-size: 15px;
  }

  .card-actions {
    padding-top: 8px;
    grid-template-columns: 1fr 38px;
    gap: 5px;
  }

  .order-link {
    height: 38px;
    font-size: 13px;
    padding: 0 4px;
  }

  .cart-link {
    width: 38px;
    height: 38px;
  }

  .cart-link svg {
    width: 18px;
    height: 18px;
  }

  .badge-sale {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }

  .section-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 19px;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .chip {
    padding: 5px 12px;
    font-size: 12px;
  }

  .details-info,
  .details-gallery,
  .card-body-custom {
    padding: 14px;
  }

  .details-price {
    font-size: 26px;
  }

  .details-actions .btn {
    min-width: 0;
    flex: 1 1 100%;
  }

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

  .footer-col-1,
  .footer-col-4 {
    grid-column: span 1;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .toast {
    max-width: none;
  }
}

@media (min-width: 992px) {
  .cart-mobile-list {
    display: none;
  }
}
