/* Generated by scripts/build-performance-assets.mjs. Do not edit. */
/* source: shop.css */
/* GENERATED by scripts/extract-shop-styles.mjs; preserve source cascade order. */
/* Source: src/pages/shop/index.astro */
.shop-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(135deg, rgba(0, 126, 197, 0.08), rgba(255, 255, 255, 0.5));
}

.shop-hero__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.shop-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.shop-grid {
  padding: 3rem 0 5rem;
}

.shop-grid__layout {
  display: flex;
  gap: 2.5rem;
}

.shop-filters {
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  padding: 1.75rem;
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

/* Desktop sidebar - visible on desktop, hidden on mobile */
.shop-filters--desktop {
  display: block;
}

/* Mobile filter collapse - hidden on desktop */
.filter-collapse {
  display: none;
}

.filter-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: #007EC5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.filter-toggle:hover {
  background: rgba(0, 126, 197, 0.08);
  color: #006aa3;
}

.filter-toggle svg {
  flex-shrink: 0;
}

.filter-toggle[aria-expanded="true"] {
  background: rgba(255, 216, 24, 0.15);
  color: #007EC5;
}

.filter-collapse {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.filter-form {
  display: grid;
  gap: 1.75rem;
}

.filter-section {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.filter-section legend {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.price-slider {
  display: grid;
  gap: 0.75rem;
}

.price-slider__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #0f172a;
}

.price-slider__divider {
  padding: 0 0.5rem;
  color: #94a3b8;
}

.price-slider__wrapper {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.price-slider__track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
}

.price-slider__range {
  position: absolute;
  height: 100%;
  background: #007ec5;
  border-radius: 3px;
}

.price-slider__input {
  position: absolute;
  width: 100%;
  height: 40px;
  pointer-events: none;
  appearance: none;
  background: transparent;
  outline: none;
}

.price-slider__input::-webkit-slider-thumb {
  appearance: none;
  pointer-events: all;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 3px solid #007ec5;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-slider__input::-moz-range-thumb {
  pointer-events: all;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 3px solid #007ec5;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: none;
}

.price-slider__input--max {
  z-index: 3;
}

.price-slider__input--min {
  z-index: 4;
}

.filter-options {
  display: grid;
  gap: 0.6rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #334155;
}

.filter-options input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #007ec5;
}

.filter-options.primary {
  font-weight: 600;
  color: #0f172a;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #334155;
}

.filter-option--parent {
  font-weight: 600;
  color: #0f172a;
}

.filter-reset {
  justify-self: flex-start;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  color: #475569;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  background: rgba(0, 126, 197, 0.08);
  color: #0f172a;
}

.shop-products {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shop-products__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}


.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #1d1d1d;
}

.sort-control select,
.sort-select {
  margin-left: auto;
  border-radius: 8px;
  border: 2px solid #007EC5;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #ffffff;
  color: #1d1d1d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-control select:hover,
.sort-select:hover {
  border-color: #006aa3;
  background: #f8fafc;
}

.sort-control select:focus,
.sort-select:focus {
  outline: none;
  border-color: #FFD818;
  box-shadow: 0 0 0 3px rgba(255, 216, 24, 0.2);
}


.filter-category-list {
  display: grid;
  gap: 0.65rem;
}

.filter-category {
  display: grid;
  gap: 0.4rem;
}

.filter-category.is-collapsed {
  display: none;
}

.filter-category__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.filter-category.has-children .filter-category__header {
  align-items: flex-start;
}

.filter-category__toggle {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.filter-category__toggle[aria-expanded='true'] {
  background: rgba(0, 126, 197, 0.08);
}

.filter-subcategories {
  padding-left: 1.75rem;
  display: grid;
  gap: 0.5rem;
}

.filter-view-more {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #007ec5;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card.is-hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.12);
}

.product-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.product-card__image {
  position: relative;
  padding-top: 62%;
  background: #ffffff;
}

.product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.product-card__body h2 {
  font-size: 1.25rem;
  margin: 0;
}

.product-card__body p {
  color: #475569;
  margin: 0;
  flex: 1;
}

.product-card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  flex: none;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  font-weight: 600;
}

.product-card__price {
  color: #0f172a;
  font-size: 1.125rem;
}

.product-card__cta {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  background: #007EC5;
  color: #ffffff;
  text-align: center;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.product-card:hover .product-card__cta {
  background: #FFD818;
  color: #1d1d1d;
}

@media (max-width: 991.98px) {
  .shop-grid {
    padding: 1rem 0 3rem;
  }

  .shop-grid__layout {
    flex-direction: column;
    gap: 0;
  }

  /* Hide desktop sidebar on mobile */
  .shop-filters--desktop {
    display: none !important;
  }

  /* Show mobile filter toggle */
  .filter-toggle {
    display: inline-flex;
  }

  /* Mobile filter collapse - appears below toolbar */
  .filter-collapse {
    display: block;
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
  }

  .filter-collapse.is-open {
    max-height: 2000px;
    opacity: 1;
    margin: 1rem 0;
  }

  .filter-collapse .filter-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
  }

  .filter-form {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }

  .shop-products__toolbar {
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .shop-products {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .shop-hero {
    padding: 1.5rem 0 1rem;
  }

  .shop-hero__content {
    padding: 0 1rem;
  }

  .shop-hero h1 {
    font-size: 1.5rem;
  }

  /* Amazon-style horizontal product cards */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card a {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
  }

  .product-card__image {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    height: auto;
    border-radius: 12px 0 0 12px;
  }

  .product-card__image img {
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .product-card__body {
    flex: 0 0 66.67%;
    padding: 1rem;
  }

  .product-card__body h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .product-card__summary {
    font-size: 0.875rem;
    line-height: 1.4;
    -webkit-line-clamp: 4;
    margin-bottom: 0.5rem;
  }

  .product-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .product-card__price {
    font-size: 1rem;
  }

  .product-card__cta {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .filter-form {
    grid-template-columns: 1fr;
  }

  .shop-products__toolbar {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .sort-select {
    margin-left: auto;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  /* Compact pagination on mobile */
  .pagination-container {
    padding: 1rem;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .pagination-info {
    font-size: 0.8rem;
  }

  .pagination-controls {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .btn-pagination {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.25rem;
  }

  .btn-pagination svg {
    width: 12px;
    height: 12px;
  }

  .pagination-pages {
    gap: 0.25rem;
  }

  .pagination-page {
    min-width: 34px;
    height: 34px;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }

  .pagination-ellipsis {
    padding: 0.375rem;
    font-size: 0.8rem;
  }
}

/* Out of Stock Ribbon */
.product-ribbon {
  position: absolute;
  top: 12px;
  left: -8px;
  padding: 6px 16px 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%);
}

.product-ribbon--out-of-stock {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.product-ribbon--sale {
  top: 48px;
  background: #1d1d1d;
  color: #FFD818;
  box-shadow: 0 2px 4px rgba(29, 29, 29, 0.3);
}

/* Sale Badge */
.product-sale-badge {
  display: inline-block;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Price Display */
.product-card__price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card__price--sale {
  color: #dc2626;
  font-size: 1.25rem;
  font-weight: 700;
}

.product-card__price--original {
  color: #64748b;
  font-size: 0.95rem;
  text-decoration: line-through;
  font-weight: 400;
}

/* Price Inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.price-input {
  width: 100px;
  padding: 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.price-input:focus {
  outline: none;
  border-color: #007EC5;
}

.price-divider {
  color: #94a3b8;
  font-weight: 600;
  align-self: flex-end;
  padding-bottom: 0.5rem;
}

/* Pagination */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(0,127,195,0.03), rgba(0,127,195,0.01));
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-info {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-pagination:hover:not(:disabled) {
  border-color: #007FC3;
  color: #007FC3;
  background: #e6f4fb;
  box-shadow: 0 4px 12px rgba(0, 127, 195, 0.15);
  transform: translateY(-1px);
}

.btn-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn-pagination svg {
  width: 14px;
  height: 14px;
}

.pagination-pages {
  display: flex;
  gap: 0.375rem;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  text-decoration: none;
}

.pagination-page:hover:not(.active) {
  border-color: #007FC3;
  color: #007FC3;
  background: #e6f4fb;
}

.pagination-page.active {
  border-color: #007FC3 !important;
  background: #007FC3 !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: default !important;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  color: #64748b;
  font-weight: 500;
  user-select: none;
  cursor: default;
}

@media (max-width: 640px) {
  .pagination-controls {
    flex-wrap: wrap;
  }

  .btn-pagination span {
    display: none;
  }
}

/* Loading State */
.product-grid.loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.product-grid.loading::after {
  content: 'Loading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 600;
  color: #007FC3;
}

/* Product Detail Page - Disabled Button */
.product-detail__add:disabled,
.add-to-cart-btn:disabled {
  background: #9ca3af !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

.product-detail__add:disabled:hover,
.add-to-cart-btn:disabled:hover {
  background: #9ca3af !important;
  transform: none !important;
}

.product-detail__quantity input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}

.gallery-main {
  position: relative;
}

/* Source: src/pages/shop/category/[slug].astro */
.shop-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(135deg, rgba(0, 126, 197, 0.08), rgba(255, 255, 255, 0.5));
}

.shop-hero__content--category {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.category-breadcrumb a {
  color: #007EC5;
  font-weight: 600;
  text-decoration: none;
}

.shop-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.4rem;
}

.category-desc {
  color: #475569;
  margin: 0;
}

.shop-grid {
  padding: 3rem 0 5rem;
}

.shop-grid__layout {
  display: flex;
  gap: 2.5rem;
}

.shop-filters {
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  padding: 1.75rem;
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

.shop-filters--desktop { display: block; }
.filter-collapse { display: none; }
.filter-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: #007EC5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.filter-toggle[aria-expanded="true"] { background: rgba(255,216,24,.15); }
.filter-form { display: grid; gap: 1.75rem; }
.filter-section { border: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.filter-section legend { font-weight: 700; font-size: 1rem; color: #0f172a; }
.filter-options { display: grid; gap: .6rem; }
.filter-options label { display:flex; align-items:center; gap:.6rem; font-size:.95rem; color:#334155; }
.filter-options input[type='checkbox'] { width: 18px; height: 18px; accent-color: #007ec5; }
.filter-empty { color:#64748b; font-size:.9rem; margin:0; }
.filter-reset {
  justify-self: flex-start;
  background: transparent;
  border: 1px solid rgba(148,163,184,.5);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .9rem;
  color: #475569;
}

.shop-products { flex:1 1 auto; display:flex; flex-direction:column; gap:1.5rem; }
.shop-products__toolbar { display:flex; justify-content:space-between; align-items:center; gap:.75rem; margin-bottom:1rem; }
.shop-result-count { color:#475569; font-weight:600; margin-right:auto; }
.sort-select {
  border-radius: 8px;
  border: 2px solid #007EC5;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #ffffff;
}

.price-slider__wrapper { position:relative; height:40px; display:flex; align-items:center; }
.price-slider__track { position:absolute; width:100%; height:6px; background:#e2e8f0; border-radius:3px; }
.price-slider__range { position:absolute; height:100%; background:#007ec5; border-radius:3px; }
.price-slider__input { position:absolute; width:100%; height:40px; pointer-events:none; appearance:none; background:transparent; }
.price-slider__input::-webkit-slider-thumb { appearance:none; pointer-events:all; width:20px; height:20px; background:#fff; border:3px solid #007ec5; border-radius:50%; }
.price-slider__input::-moz-range-thumb { pointer-events:all; width:20px; height:20px; background:#fff; border:3px solid #007ec5; border-radius:50%; }
.price-slider__input--max { z-index:3; }
.price-slider__input--min { z-index:4; }
.price-inputs { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; }
.price-input-group { display:flex; flex-direction:column; gap:.25rem; font-size:.75rem; color:#64748b; font-weight:600; }
.price-input { width:100px; padding:.5rem; border:2px solid #e5e7eb; border-radius:8px; font-size:.875rem; font-weight:600; text-align:center; }
.price-divider { color:#94a3b8; font-weight:600; align-self:flex-end; padding-bottom:.5rem; }

.product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:2rem; }
.product-card { background:#fff; border-radius:20px; box-shadow:0 18px 40px rgba(15,23,42,.08); overflow:hidden; transition:transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform:translateY(-6px); box-shadow:0 26px 52px rgba(15,23,42,.12); }
.product-card a { display:flex; flex-direction:column; height:100%; color:inherit; }
.product-card__image { position:relative; padding-top:62%; background:#fff; }
.product-card__image img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center; }
.product-card__body { flex:1; display:flex; flex-direction:column; gap:.75rem; padding:1.5rem; }
.product-card__body h2 { font-size:1.25rem; margin:0; }
.product-card__summary { color:#475569; margin:0; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; }
.product-card__footer { display:flex; flex-direction:column; gap:.75rem; }
.product-card__cta { display:block; width:100%; padding:.625rem 1rem; background:#007EC5; color:#fff; text-align:center; border-radius:8px; font-size:.875rem; font-weight:600; }
.product-card:hover .product-card__cta { background:#FFD818; color:#1d1d1d; }
.product-ribbon { position:absolute; top:12px; left:-8px; padding:6px 16px 6px 12px; font-size:.75rem; font-weight:700; text-transform:uppercase; z-index:10; clip-path:polygon(0 0,100% 0,95% 50%,100% 100%,0 100%); }
.product-ribbon--out-of-stock { background:#dc2626; color:#fff; }
.product-ribbon--sale { top:48px; background:#1d1d1d; color:#FFD818; }
.product-sale-badge { color:#dc2626; font-size:.875rem; font-weight:600; }
.product-card__price-wrapper { display:flex; align-items:baseline; gap:.5rem; flex-wrap:wrap; }
.product-card__price { color:#0f172a; font-size:1.125rem; }
.product-card__price--sale { color:#dc2626; font-size:1.25rem; font-weight:700; }
.product-card__price--original { color:#64748b; font-size:.95rem; text-decoration:line-through; font-weight:400; }

.pagination-container { display:flex; flex-direction:column; align-items:center; gap:1.25rem; margin:2rem 0; padding:1.75rem 2rem; background:linear-gradient(135deg, rgba(0,127,195,.03), rgba(0,127,195,.01)); border:1px solid #e5e7eb; border-radius:12px; }
.pagination-info { font-size:.875rem; color:#64748b; font-weight:600; }
.pagination-controls { display:flex; align-items:center; gap:.625rem; }
.btn-pagination { display:inline-flex; align-items:center; gap:.5rem; padding:.625rem 1.25rem; border:2px solid #e5e7eb; border-radius:10px; background:#fff; color:#64748b; font-size:.875rem; font-weight:600; cursor:pointer; }
.btn-pagination:disabled { opacity:.4; cursor:not-allowed; pointer-events:none; }
.pagination-pages { display:flex; gap:.375rem; }
.pagination-page { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:.5rem .75rem; border:2px solid #e5e7eb; border-radius:8px; background:#fff; color:#64748b; cursor:pointer; }
.pagination-page.active { border-color:#007FC3 !important; background:#007FC3 !important; color:#fff !important; }
.pagination-ellipsis { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; color:#64748b; }

.product-grid.loading { opacity:.5; pointer-events:none; position:relative; }
.product-grid.loading::after { content:'Loading...'; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:1.25rem; font-weight:600; color:#007FC3; }

@media (max-width: 991.98px) {
  .shop-grid { padding: 1rem 0 3rem; }
  .shop-grid__layout { flex-direction: column; gap: 0; }
  .shop-filters--desktop { display: none !important; }
  .filter-toggle { display: inline-flex; }
  .filter-collapse { display:block; max-height:0; opacity:0; margin:0; overflow:hidden; transition:max-height .3s ease-out, opacity .3s ease-out, margin .3s ease-out; }
  .filter-collapse.is-open { max-height:2000px; opacity:1; margin:1rem 0; }
  .filter-collapse .filter-form { background:#fff; border-radius:16px; padding:1.25rem; box-shadow:0 4px 16px rgba(15,23,42,.1); border:1px solid #e2e8f0; }
}

@media (max-width: 640px) {
  .shop-hero { padding: 1.5rem 0 1rem; }
  .shop-hero h1 { font-size: 1.5rem; }
  .product-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-card a { flex-direction: row; }
  .product-card__image { flex:0 0 33.33%; max-width:33.33%; }
  .product-card__body { flex:0 0 66.67%; padding:1rem; }
  .product-card__body h2 { font-size:1rem; }
  .product-card__summary { -webkit-line-clamp:4; font-size:.875rem; }
}

/* Source: src/pages/shop/product/[slug].astro */
.product-detail {
  padding: 3.5rem 0 5rem;
  max-width: 100%;
  overflow-x: hidden;
}

.product-detail .container {
  max-width: 100%;
  box-sizing: border-box;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.product-detail__content {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

/* Gallery Styles */
.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

/* Gallery Edit Button */
.gallery-edit-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.gallery-edit-btn:hover {
  background: #ffffff;
  color: #007ec5;
  box-shadow: 0 4px 12px rgba(0, 126, 197, 0.2);
  transform: translateY(-1px);
}

.gallery-edit-btn svg {
  flex-shrink: 0;
}

.gallery-main {
  position: relative;
  background: linear-gradient(120deg, rgba(148, 191, 255, 0.4), rgba(245, 249, 255, 0.9));
  border-radius: 24px;
  padding: 2rem;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-main__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  transition: opacity 0.3s ease;
}

.gallery-main__image.is-switching {
  opacity: 0;
}

/* Thumbnail Gallery */
.gallery-thumbnails {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  max-width: 100%;
  width: 100%;
}

.gallery-thumbnails__wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.gallery-thumbnails__track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.gallery-thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 3px solid transparent;
  background: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  filter: grayscale(0.3);
  opacity: 0.7;
}

.gallery-thumbnail:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.gallery-thumbnail.is-active {
  border-color: #007ec5;
  filter: grayscale(0);
  opacity: 1;
  box-shadow: 0 4px 16px rgba(0, 126, 197, 0.3);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrow Navigation */
.gallery-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #007ec5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 126, 197, 0.25);
}

.gallery-nav:hover:not(:disabled) {
  background: #006aa3;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 126, 197, 0.35);
}

.gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.gallery-nav svg {
  display: block;
}

.product-detail__info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-detail__summary {
  font-size: 1.125rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

.product-sale-badge-large {
  display: inline-block;
  color: #dc2626;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-discount-badge {
  display: inline-block;
  background: #1d1d1d;
  color: #FFD818;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-detail__price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.product-detail__price--sale {
  color: #dc2626;
  font-size: 2rem;
}

.product-detail__price--original {
  color: #64748b;
  font-size: 1.25rem;
  text-decoration: line-through;
  font-weight: 400;
}

.product-detail__stock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #0f172a;
}

.product-detail__stock strong,
.inventory-editable {
  font-size: 1.1rem;
}

.inventory-editable {
  background: rgba(148, 163, 184, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  min-width: 60px;
  text-align: center;
  border: 1px solid transparent;
  cursor: text;
}

.inventory-editable:focus {
  outline: none;
  border-color: #38bdf8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.inventory-editable.is-saving {
  border-color: rgba(99, 102, 241, 0.35);
}

.inventory-editable.has-success {
  border-color: rgba(34, 197, 94, 0.6);
}

.inventory-editable.has-error {
  border-color: rgba(248, 113, 113, 0.75);
}

.product-detail__featured {
  margin-top: 0.75rem;
}

.featured-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.9rem;
  color: #64748b;
  transition: all 0.2s ease;
}

.featured-checkbox-label:hover {
  background: rgba(148, 163, 184, 0.2);
}

.featured-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007EC5;
  cursor: pointer;
}

.featured-checkbox-label:has(input:checked) {
  background: rgba(0, 126, 197, 0.1);
  color: #007EC5;
  font-weight: 500;
}

.featured-checkbox-label.is-saving {
  opacity: 0.7;
  pointer-events: none;
}

.featured-checkbox-label.has-success {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.1);
}

.featured-checkbox-label.has-error {
  border-color: rgba(248, 113, 113, 0.75);
  background: rgba(248, 113, 113, 0.1);
}

.product-detail__form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-detail__quantity {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #0f172a;
}

.product-detail__quantity input {
  width: 120px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 1rem;
}

/* Hide quantity input spinner */
.product-detail__quantity input::-webkit-outer-spin-button,
.product-detail__quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail__quantity input[type="number"] {
  -moz-appearance: textfield;
}

.product-detail__add {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  background: #007ec5;
  color: #fff;
  border: none;
  box-shadow: 0 16px 28px rgba(14, 116, 241, 0.2);
  cursor: pointer;
}

.product-detail__add:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.product-detail__add:disabled:hover {
  background: #9ca3af;
  transform: none;
}

.product-detail__add.is-adding {
  background: #007ec5 !important;
  color: #fff !important;
  cursor: wait;
  pointer-events: none;
}

.product-detail__add.is-added {
  background: #ffd818 !important;
  color: #1d1d1d !important;
  pointer-events: none;
}

.product-detail__add.is-error {
  background: #ffd818 !important;
  color: #1d1d1d !important;
}

.product-detail__feedback {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 4.25rem;
  grid-column: 1 / -1;
  padding: 0.7rem 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #1d1d1d;
  font-family: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.product-detail__feedback.is-visible {
  border-color: rgba(0, 126, 197, 0.22);
  background: #e5f2f9;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.product-detail__feedback.is-error {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff7d6;
}

.product-detail__feedback-message {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-detail__feedback-link {
  display: inline-flex;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #007ec5;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.product-detail__feedback-link:hover,
.product-detail__feedback-link:focus-visible {
  background: #ffd818;
  color: #1d1d1d;
}

@media (max-width: 520px) {
  .product-detail__feedback {
    min-height: 6.5rem;
    align-items: stretch;
    flex-direction: column;
  }

  .product-detail__feedback-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail__form .product-detail__add,
  .product-detail__feedback {
    transition: none !important;
  }
}

.product-detail__descriptions {
  margin-top: 3rem;
}

.product-detail__short-description,
.product-detail__long-description {
  color: #334155;
  line-height: 1.7;
}

.product-detail__short-description p,
.product-detail__long-description p {
  margin-bottom: 1rem;
}

.product-detail__long-description h2 {
  font-size: 1.75rem;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.product-detail__long-description h3 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.product-detail__long-description ul,
.product-detail__long-description ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-detail__long-description li {
  margin-bottom: 0.5rem;
}

.product-detail__long-description strong {
  font-weight: 600;
  color: #0f172a;
}

.product-detail__long-description a {
  color: #007ec5;
  text-decoration: underline;
}

.product-alert {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(220, 252, 231, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #166534;
  font-weight: 600;
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.is-open {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

.lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-nav--prev {
  left: 2rem;
}

.lightbox-nav--next {
  right: 2rem;
}

.lightbox-nav svg {
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .gallery-thumbnail {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .gallery-thumbnail {
    width: 80px;
    height: 80px;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .gallery-nav svg {
    width: 16px;
    height: 16px;
  }

  .lightbox-nav {
    width: 48px;
    height: 48px;
  }

  .lightbox-nav--prev {
    left: 1rem;
  }

  .lightbox-nav--next {
    right: 1rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 640px) {
  .product-detail {
    padding: 1.5rem 0 3rem;
  }

  .product-detail .container {
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .product-detail__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-detail__gallery {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .gallery-main {
    padding: 1rem;
    border-radius: 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gallery-main__image {
    border-radius: 12px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }

  .gallery-thumbnails {
    gap: 0.5rem;
    max-width: 100%;
    overflow: hidden;
  }

  .gallery-thumbnails__wrapper {
    max-width: calc(100% - 80px);
    overflow: hidden;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .product-detail__info h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .product-detail__summary {
    font-size: 1rem;
  }

  .product-detail__price {
    font-size: 1.5rem;
  }

  .product-detail__price--sale {
    font-size: 1.65rem;
  }

  .product-detail__price--original {
    font-size: 1.1rem;
  }

  .product-detail__stock {
    font-size: 0.875rem;
  }

  .product-detail__add {
    width: 100%;
    padding: 1rem;
  }

  .product-detail__quantity input {
    width: 100%;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }

  .btn-edit-backend {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .out-of-stock-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .product-detail__descriptions {
    margin-top: 2rem;
  }

  .product-detail__two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .column-header h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .product-detail__info h1 {
    font-size: 1.25rem;
  }

  .gallery-main {
    padding: 0.5rem;
  }

  .gallery-thumbnail {
    width: 45px;
    height: 45px;
  }

  .gallery-thumbnails__wrapper {
    max-width: calc(100% - 70px);
  }

  .gallery-nav {
    width: 28px;
    height: 28px;
  }

  .gallery-nav svg {
    width: 14px;
    height: 14px;
  }

  .product-detail__price {
    font-size: 1.25rem;
  }

  .product-detail__price--sale {
    font-size: 1.4rem;
  }

  .product-detail__price--original {
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  .product-detail__info h1 {
    font-size: 1.75rem;
  }

  .gallery-edit-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .gallery-edit-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Editable Field Styles */
.product-title-wrapper,
.product-summary-wrapper {
  position: relative;
}

.product-title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-summary-wrapper {
  position: relative;
}

.editable-title {
  flex: 1;
  outline: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  transition: all 0.2s ease;
}

.editable-title:focus {
  border-color: #007ec5;
  background: rgba(0, 126, 197, 0.05);
}

.editable-title.is-saving {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.05);
}

.editable-title.has-success {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.05);
}

.editable-title.has-error {
  border-color: rgba(248, 113, 113, 0.75);
  background: rgba(248, 113, 113, 0.05);
}

/* Edit Icon Styles */
.edit-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.edit-icon:hover {
  background: #007ec5;
  border-color: #007ec5;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 126, 197, 0.3);
}

.edit-icon svg {
  display: block;
}

.title-edit-icon .icon-save {
  display: none;
}

.title-edit-icon.is-save-mode .icon-pencil {
  display: none;
}

.title-edit-icon.is-save-mode .icon-save {
  display: block;
}

.title-edit-icon.is-save-mode {
  background: #007ec5;
  border-color: #007ec5;
  color: #ffffff;
}

.summary-edit-icon {
  position: absolute;
  top: 0;
  right: 0;
}

/* Category Display Styles */
/* Model Number Display */
.product-model-number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #64748b;
  margin: 0.5rem 0 0.75rem 0;
}

.model-label {
  font-weight: 600;
  color: #475569;
}

.model-value {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
  letter-spacing: 0.02em;
}

.product-category-display {
  margin: 0.75rem 0 1.5rem 0;
}

.category-display,
.category-editable-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 126, 197, 0.08);
  border: 1px solid rgba(0, 126, 197, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #007ec5;
}

.category-icon {
  flex-shrink: 0;
  color: #007ec5;
}

.category-name {
  color: #007ec5;
}

.category-dropdown {
  border: none;
  background: transparent;
  color: #007ec5;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  outline: none;
  appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23007ec5' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.category-dropdown:hover {
  opacity: 0.8;
}

.category-dropdown option {
  background: #fff;
  color: #0f172a;
  padding: 0.5rem;
}

.category-dropdown option[data-is-subcategory] {
  padding-left: 1.5rem;
}

.category-editable-wrapper:hover {
  background: rgba(0, 126, 197, 0.12);
  border-color: rgba(0, 126, 197, 0.3);
}

/* Two-Column Layout for Long Description and FAQ */
.product-detail__two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.product-detail__column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.column-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.column-header .edit-icon {
  width: 32px;
  height: 32px;
}

.product-detail__faq {
  color: #334155;
  line-height: 1.7;
}

.product-detail__faq p {
  margin-bottom: 1rem;
}

.product-detail__faq h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.product-detail__faq h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-detail__faq ul,
.product-detail__faq ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-detail__faq li {
  margin-bottom: 0.5rem;
}

.product-detail__faq strong {
  font-weight: 600;
  color: #0f172a;
}

.product-detail__faq a {
  color: #007ec5;
  text-decoration: underline;
}

/* Responsive two-column layout */
@media (max-width: 900px) {
  .product-detail__two-column {
    grid-template-columns: 1fr;
  }
}

/* Out of Stock Badge */
.out-of-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fee;
  border: 2px solid #dc2626;
  border-radius: 8px;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.out-of-stock-badge svg {
  flex-shrink: 0;
}

/* Edit in Backend Button */
.btn-edit-backend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #007ec5;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.btn-edit-backend:hover {
  background: #FFD818;
  color: #1d1d1d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 126, 197, 0.2);
}

.btn-edit-backend svg {
  flex-shrink: 0;
}

/* source: shop-adapter.css */
/* WordPress/Woo adapters layered after the source shop CSS. */
.shop-wrapper { margin-block-start: 0 !important; }
.shop-wrapper .container {width:min(100% - 2rem,var(--swp-content-width))!important;max-width:none!important;margin-inline:auto!important;}
.shop-result-count .woocommerce-result-count { margin: 0; }
.shop-products__toolbar .woocommerce-ordering { margin: 0 0 0 auto; }
.shop-products__toolbar .orderby { min-height: 44px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 2.5rem 0 .85rem; background: #fff; }
.filter-collapse.is-open { display: block; padding: 1rem; background: #fff; border-radius: 16px; box-shadow: 0 16px 35px rgba(15,23,42,.08); }
.filter-form .btn { border: 0; cursor: pointer; }
.pagination-container { margin-top: 2rem; }
.pagination-container .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; gap: .5rem; list-style: none; padding: 0; }
.pagination-container a, .pagination-container span { display: grid; place-items: center; min-width: 42px; min-height: 42px; border-radius: 999px; text-decoration: none; }
.pagination-container .current { background: #007ec5; color: #fff; }
.product-card__price .price { color: inherit; }
.product-card__price del { color: #64748b; font-size: .9em; }
.product-card__price ins { color: #dc2626; text-decoration: none; }
.product-detail__gallery img { max-width: 100%; height: auto; }
.gallery-thumbnail { border: 2px solid transparent; background: #fff; border-radius: 10px; padding: .25rem; cursor: pointer; }
.gallery-thumbnail.is-active { border-color: #007ec5; }
.product-category-display { margin: .75rem 0; color: #475569; }
.product-detail__summary p { margin: 0; }
.product-detail__price .price { color: inherit; }
.product-detail__form { display: flex; gap: 1rem; align-items: end; margin-top: 1.5rem; }
.product-detail__quantity { display: grid; gap: .35rem; font-weight: 600; }
.product-detail__quantity input { width: 90px; min-height: 48px; border: 1px solid #cbd5e1; border-radius: 10px; padding: .5rem; }
.product-specifications { margin-top: 2rem; }
.product-specifications table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.product-specifications th, .product-specifications td { padding: .8rem 1rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.product-specifications th { width: 42%; overflow-wrap: anywhere; }
.product-specifications td { overflow-wrap: anywhere; }
.product-search-results { position: absolute; z-index: 1100; inset: calc(100% + .4rem) 0 auto; max-height: min(62vh, 520px); background: #fff; border: 1px solid #dbe3ea; border-radius: 18px; box-shadow: 0 18px 40px rgba(15,23,42,.16); overflow: auto; }
.product-search-result { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .75rem; color: #1d1d1d; text-decoration: none; }
.product-search-result:hover, .product-search-result:focus { background: #f5f8fb; }
.product-search-result.is-active { background: #e5f2f9; }
.product-search-result img, .product-search-result__placeholder { width: 58px; height: 58px; object-fit: contain; border-radius: 10px; background: #f8fafc; }
.product-search-result__copy { display: grid; min-width: 0; gap: .15rem; }
.product-search-result__copy strong { overflow-wrap: anywhere; font-size: .95rem; line-height: 1.25; }
.product-search-result__copy span { color: #007ec5; font-size: .8rem; font-weight: 700; }
.header-search-form { position: relative; }
.filter-section--price { display: none !important; }
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content, .woocommerce-account .entry-content { width: min(100% - 2rem, var(--swp-content-width)); margin: 3rem auto 5rem; }
.woocommerce table.shop_table { border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, #place_order { background: #ffd818; color: #1d1d1d; border-radius: 999px; font-weight: 700; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, #place_order:hover { background: #007ec5; color: #fff; }
.woocommerce-checkout #payment { background: transparent; }
.woocommerce-checkout #payment .payment_methods { display: none !important; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.woocommerce-checkout .form-row { width: auto !important; float: none !important; margin: 0; }
.woocommerce-checkout .form-row-wide { grid-column: 1 / -1; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { min-height: 48px; border: 1px solid #cbd5e1; border-radius: 10px; padding: .7rem .8rem; }
@media (max-width: 767px) {
  .shop-wrapper .container {width:min(100% - 2rem,var(--swp-content-width))!important;max-width:none!important;margin-inline:auto!important;}
  .shop-products__toolbar { flex-wrap: wrap; }
  .shop-products__toolbar .woocommerce-ordering { width: 100%; margin-left: 0; }
  .shop-products__toolbar .orderby { width: 100%; }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
  .product-detail__form { align-items: stretch; flex-direction: column; }
}

/* -------------------------------------------------------------------------
   Product detail: centred, calm, and quote-first
   ---------------------------------------------------------------------- */
.product-detail {
  padding: clamp(2rem, 4vw, 4rem) 0 5rem;
  background: linear-gradient(180deg, #fff 0, #f8fafc 100%);
}

.product-detail > .container {width:min(100% - 2rem,var(--swp-content-width))!important;max-width:none!important;margin-inline:auto!important;}

.product-detail .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
  font-size: .95rem;
}

.product-detail__content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.product-detail__gallery { min-width: 0; }

.gallery-main {
  display: grid;
  min-height: min(62vw, 690px);
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(0, 126, 197, .1);
  background: linear-gradient(145deg, #e5f2f9, #fff 62%);
  box-shadow: 0 22px 50px rgba(16, 27, 49, .08);
	border: 1px solid rgba(0, 126, 197, .1);
	cursor: zoom-in;
}

.gallery-main__hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(16, 27, 49, .82);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.gallery-thumbnails__wrapper { overflow-x: auto; scrollbar-width: none; }
.gallery-thumbnails__wrapper::-webkit-scrollbar { display: none; }
.gallery-nav span { font-size: 1.65rem; line-height: 1; }

.gallery-main__image {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #fff;
}

.product-detail__info {
  position: sticky;
  top: 1.5rem;
  box-sizing: border-box;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(16, 27, 49, .1);
}

.product-detail__info h1 {
  margin: 0 0 .85rem;
  color: #101b31;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.08;
}

.product-category-display {
  margin: 0 0 1rem;
  color: #007ec5;
  font-weight: 600;
}

.product-detail__summary {
  margin-bottom: 1.5rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
}

.product-detail__price-wrapper { margin-bottom: .75rem; }
.product-detail__price { color: #101b31; font-size: 1.85rem; }
.product-detail__stock { margin-bottom: 1.25rem; color: #166534; }

.product-detail__form {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.product-detail__quantity input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.product-detail__add {
  width: 100%;
  min-height: 54px;
  background: #ffd818 !important;
  color: #1d1d1d !important;
  font-size: 18px !important;
}

.product-detail__descriptions {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Woo wraps the custom message; the inner component controls its geometry. */
.product-detail .woocommerce-message {
  margin: 0 0 1.5rem;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: inherit;
}
.product-detail .woocommerce-message::before,
.product-detail .woocommerce-message::after { content: none; }

.swp-estimate-confirmation,
.swp-quote-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 126, 197, .18);
  border-radius: 20px;
  background: #e5f2f9;
  box-shadow: 0 12px 30px rgba(16, 27, 49, .08);
}
.swp-estimate-confirmation__icon,
.swp-quote-confirmation__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #007ec5;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}
.swp-estimate-confirmation__copy,
.swp-quote-confirmation__copy { display: grid; gap: .1rem; }
.swp-estimate-confirmation__copy strong,
.swp-quote-confirmation__copy strong { color: #101b31; font-size: 1.05rem; }
.swp-estimate-confirmation__copy span,
.swp-quote-confirmation__copy span { color: #475569; }
.swp-estimate-confirmation .swp-button,
.swp-quote-confirmation .swp-button { min-height: 46px; padding: 9px 17px !important; font-size: 16px !important; }

.product-detail .wc-block-components-notice-banner.is-success { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.product-detail .wc-block-components-notice-banner.is-success > svg { display: none !important; }
.product-detail .wc-block-components-notice-banner__content { width: 100%; }

.toast-container { position: fixed; z-index: 10020; right: 1rem; bottom: 1rem; display: grid; width: min(420px, calc(100% - 2rem)); gap: .75rem; pointer-events: none; }
.toast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: 1rem 1.15rem; border: 1px solid rgba(0,126,197,.2); border-radius: 18px; background: #e5f2f9; box-shadow: 0 18px 42px rgba(16,27,49,.2); opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; pointer-events: auto; }
.toast.is-js-managed { opacity: 0; transform: translateY(14px); }
.toast.is-js-managed.is-visible { opacity: 1; transform: none; }
.toast strong, .toast span { grid-column: 1; }
.toast a { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #007ec5; font-weight: 700; text-decoration: none; }

.has-product-lightbox { overflow: hidden; }
.lightbox-viewport { position: relative; display: grid; max-width: 90vw; max-height: 86vh; place-items: center; overflow: auto; }
.lightbox-viewport img { transform-origin: center; transition: transform .15s ease; }
.lightbox-zoom { position: fixed; bottom: 1.25rem; left: 50%; display: flex; gap: .5rem; padding: .45rem; border-radius: 999px; background: rgba(16,27,49,.86); transform: translateX(-50%); }
.lightbox-zoom button { min-width: 44px; min-height: 40px; border: 0; border-radius: 999px; background: #fff; color: #101b31; font-weight: 700; cursor: pointer; }
.lightbox-zoom button:focus-visible { outline: 3px solid #ffd818; outline-offset: 2px; }

/* -------------------------------------------------------------------------
   Shared cart / checkout shell
   ---------------------------------------------------------------------- */
.swp-commerce-page {
  margin: 0;
  padding: 0 0 clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, #f8fafc 0, #fff 36rem);
}

.swp-commerce-page__hero,
.swp-commerce-page__content {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), var(--swp-content-width)) !important;
  max-width: var(--swp-content-width) !important;
  margin-inline: auto !important;
}

.swp-commerce-page__hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 2rem; }
.swp-commerce-page__hero > * { margin-inline: 0 !important; }
.swp-commerce-page__eyebrow {
  margin: 0 0 .4rem;
  color: #007ec5;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.swp-commerce-page__hero h1 {
  margin: 0 0 .65rem;
  color: #101b31;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
}
.swp-commerce-page__hero > p:not(.swp-commerce-page__eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

.swp-estimate-steps,
.swp-quote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.swp-estimate-steps li,
.swp-quote-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #94a3b8;
  font-size: .9rem;
  font-weight: 600;
}
.swp-estimate-steps li:not(:last-child)::after,
.swp-quote-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: .75rem;
  left: 2.5rem;
  bottom: -.65rem;
  height: 3px;
  border-radius: 999px;
  background: #e5e7eb;
}
.swp-estimate-steps li span,
.swp-quote-steps li span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
}
.swp-estimate-steps li[aria-current="step"],
.swp-estimate-steps li.is-complete,
.swp-quote-steps li[aria-current="step"],
.swp-quote-steps li.is-complete { color: #101b31; }
.swp-estimate-steps li[aria-current="step"] span,
.swp-quote-steps li[aria-current="step"] span { border-color: #ffd818; background: #ffd818; color: #1d1d1d; }
.swp-estimate-steps li.is-complete span,
.swp-quote-steps li.is-complete span { border-color: #007ec5; background: #007ec5; color: #fff; }
.swp-estimate-steps a { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.swp-estimate-steps a:hover { color: #007ec5; }
.swp-estimate-steps a:focus-visible { border-radius: 8px; outline: 3px solid rgba(0,126,197,.2); outline-offset: 4px; }

.swp-commerce-page__content > .wp-block-post-content,
.swp-commerce-page__content > .swp-confirmation-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.swp-commerce-page__content { padding-inline: 0 !important; }
.swp-commerce-page__content .woocommerce {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.swp-commerce-page .woocommerce-notices-wrapper,
.swp-commerce-page .woocommerce-error,
.swp-commerce-page .woocommerce-message,
.swp-commerce-page .woocommerce-info { grid-column: 1 / -1; }

/* -------------------------------------------------------------------------
   Quote cart
   ---------------------------------------------------------------------- */
.swp-cart-page .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .65fr);
  gap: 2rem;
  align-items: start;
}

.swp-cart-page .woocommerce-cart-form,
.swp-cart-page .cart-collaterals {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 27, 49, .08);
}
.swp-cart-page .woocommerce-cart-form { grid-column: 1; }
.swp-cart-page .cart-collaterals { grid-column: 2; padding: 1.5rem; }
.swp-cart-page .cart-collaterals .cart_totals { width: 100%; float: none; }
.swp-cart-page .cart-collaterals h2 { margin: 0 0 1rem; color: #101b31; font-size: 1.5rem; }
.swp-cart-page table.shop_table { width: 100% !important; margin: 0; border: 0; border-radius: 0; }
.swp-cart-page table.shop_table th,
.swp-cart-page table.shop_table td { padding: 1rem; border-color: #e5e7eb; }
.swp-cart-page table.shop_table th.product-remove,
.swp-cart-page table.shop_table td.product-remove { width: 44px; padding-right: .25rem; }
.swp-cart-page table.shop_table th.product-thumbnail,
.swp-cart-page table.shop_table td.product-thumbnail { width: 102px; padding-inline: .5rem; }
.swp-cart-page table.shop_table th.product-quantity,
.swp-cart-page table.shop_table td.product-quantity { width: 132px; white-space: nowrap; }
.swp-cart-page .product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  width: 90px;
  max-width: 100%;
}
.swp-cart-page .product-quantity .quantity input.qty {
  box-sizing: border-box;
  width: 90px;
  max-width: 100%;
  min-height: 48px;
  padding: .5rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  line-height: 1.25;
  text-align: center;
}
.swp-cart-page .product-quantity .quantity input.qty:focus {
  border-color: #007ec5;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0,126,197,.15);
}
.swp-cart-page td.product-thumbnail img { width: 86px; height: 86px; object-fit: contain; border-radius: 12px; background: #f8fafc; }
.swp-cart-page td.product-name a { color: #101b31; font-weight: 700; }
.swp-cart-page td.actions { padding: 1rem; background: #f8fafc; }
.swp-cart-page td.actions .button { float: right; background: #007ec5 !important; color: #fff !important; }
.swp-cart-page .wc-proceed-to-checkout { padding: 1.25rem 0 0; }
.swp-cart-page .wc-proceed-to-checkout .checkout-button { width: 100%; margin: 0; font-size: 17px !important; }
.swp-estimate-summary { display: grid; gap: .75rem; margin: 0 0 1.25rem; }
.swp-estimate-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #e5e7eb; }
.swp-estimate-summary dt { font-weight: 700; }
.swp-estimate-summary dd { margin: 0; color: #007ec5; font-weight: 700; }

/* -------------------------------------------------------------------------
   Quote request checkout
   ---------------------------------------------------------------------- */
.swp-checkout-page form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: 0 2.5rem;
  align-items: start;
}
.swp-checkout-page .woocommerce-form-coupon-toggle,
.swp-checkout-page form.checkout_coupon { display: none !important; }
.swp-checkout-page #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.swp-checkout-page #customer_details.col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}
.swp-checkout-page #customer_details .col-1,
.swp-checkout-page #customer_details .col-2 { width: 100%; float: none; }
.swp-checkout-page #customer_details .col-1,
.swp-checkout-page #customer_details .col-2,
.swp-checkout-page #order_review {
  box-sizing: border-box;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 27, 49, .08);
}
.swp-checkout-page #order_review_heading {
  grid-column: 2;
  margin: 0 0 .9rem;
  color: #101b31;
  font-size: 1.7rem;
}
.swp-checkout-page #order_review {
  grid-column: 2;
  position: sticky;
  top: 1.5rem;
}
.swp-checkout-page h3 { margin: 0 0 1.25rem; color: #101b31; font-size: 1.55rem; }
.swp-checkout-page .woocommerce-billing-fields__field-wrapper { gap: 1rem; }
.swp-checkout-page .form-row label { margin-bottom: .35rem; color: #334155; font-weight: 600; }
.swp-checkout-page .form-row input.input-text,
.swp-checkout-page .form-row textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.swp-checkout-page .form-row input.input-text:focus,
.swp-checkout-page .form-row textarea:focus {
  border-color: #007ec5;
  box-shadow: 0 0 0 3px rgba(0, 126, 197, .14);
  outline: 0;
}
.swp-checkout-page table.shop_table { margin: 0 0 1.25rem; border: 0; border-radius: 14px; background: #f8fafc; }
.swp-checkout-page table.shop_table th,
.swp-checkout-page table.shop_table td { padding: .8rem .9rem; border-color: #e5e7eb; }
.swp-checkout-page table.shop_table .product-quantity { width: 90px; text-align: right; }
.swp-checkout-page #payment .place-order { padding: 0; }
.swp-checkout-page #place_order { width: 100%; min-height: 56px; margin-top: 1rem; float: none; }
.swp-estimate-reassurance,
.swp-quote-reassurance {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: #e5f2f9;
  color: #334155;
  font-size: .92rem;
  line-height: 1.5;
}
.swp-estimate-reassurance strong,
.swp-quote-reassurance strong { color: #101b31; }

.swp-confirmation-card { box-sizing: border-box; width: 100%; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid #e5e7eb; border-radius: 24px; background: #fff; box-shadow: 0 18px 42px rgba(16,27,49,.08); }
.swp-confirmation-card__meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 0 0 2rem; }
.swp-confirmation-card__meta div { padding: 1rem; border-radius: 14px; background: #f8fafc; }
.swp-confirmation-card__meta dt { color: #64748b; font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.swp-confirmation-card__meta dd { margin: .25rem 0 0; color: #101b31; font-weight: 700; overflow-wrap: anywhere; }
.swp-confirmation-card__items { margin: 0; padding: 0; list-style: none; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.swp-confirmation-card__items li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; }
.swp-confirmation-card__items li + li { border-top: 1px solid #e5e7eb; }
.swp-confirmation-card__actions { margin-top: 1.5rem; }

.swp-auth-card { box-sizing: border-box; width: min(calc(100% - 2rem), 640px); margin: 0 auto; padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid #e5e7eb; border-radius: 24px; background: #fff; box-shadow: 0 18px 42px rgba(16,27,49,.1); }
/* Auth pages: pad the content shell so the sign-in/create-account card clears the header and footer (card margins collapse through the flow wrappers, so use non-collapsing padding scoped to auth pages). */
.solarwyse-content-shell:has(.swp-auth-card) { padding-block: clamp(3rem, 8vw, 6rem); }
.swp-auth-card h1 { margin-top: 0; color: #101b31; }
.swp-auth-form { display: grid; gap: 1rem; }
.swp-auth-form label { display: grid; gap: .35rem; color: #334155; font-weight: 600; }
.swp-auth-form input { box-sizing: border-box; width: 100%; min-height: 52px; padding: .75rem .85rem; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; }
.swp-auth-form input:focus { border-color: #007ec5; outline: 3px solid rgba(0,126,197,.14); }
.swp-auth-google { width: 100%; margin-top: 1rem; }

@media (max-width: 900px) {
  .product-detail__content { grid-template-columns: 1fr; }
  .product-detail__info { position: static; }
  .gallery-main { min-height: auto; }
  .swp-cart-page .woocommerce,
  .swp-checkout-page form.checkout { grid-template-columns: 1fr; gap: 1.5rem; }
  .swp-cart-page .woocommerce-cart-form,
  .swp-cart-page .cart-collaterals,
  .swp-checkout-page #customer_details,
  .swp-checkout-page #order_review_heading,
  .swp-checkout-page #order_review { grid-column: 1; grid-row: auto; }
  .swp-checkout-page #order_review { position: static; }
}

@media (min-width: 641px) and (max-width: 768px) {
  .swp-cart-page .woocommerce-cart-form table.shop_table_responsive td.product-quantity {
    box-sizing: border-box;
    display: flex !important;
    width: 100% !important;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
  }
  .swp-cart-page .product-quantity .quantity {
    width: 90px;
    max-width: calc(100% - 1rem);
    flex: 0 0 90px;
  }
}

@media (max-width: 640px) {
  .product-detail > .container,
  .swp-commerce-page__hero,
  .swp-commerce-page__content {width:min(100% - 2rem,var(--swp-content-width))!important;max-width:none!important;margin-inline:auto!important;}
  .product-detail__info { padding: 1.25rem; border-radius: 20px; }
  .product-detail__form { grid-template-columns: 88px minmax(0, 1fr); gap: .75rem; }
  .swp-estimate-confirmation, .swp-quote-confirmation { grid-template-columns: auto 1fr; }
  .swp-estimate-confirmation .swp-button, .swp-quote-confirmation .swp-button { grid-column: 1 / -1; width: 100%; }
  .swp-estimate-steps, .swp-quote-steps { gap: .35rem; }
  .swp-estimate-steps li, .swp-quote-steps li { display: grid; justify-items: start; gap: .35rem; font-size: .75rem; }
  .swp-estimate-steps li:not(:last-child)::after, .swp-quote-steps li:not(:last-child)::after { display: none; }
  .swp-confirmation-card__meta { grid-template-columns: 1fr; }
  .swp-cart-page .woocommerce-cart-form,
  .swp-cart-page .cart-collaterals,
  .swp-checkout-page #customer_details .col-1,
  .swp-checkout-page #customer_details .col-2,
  .swp-checkout-page #order_review { border-radius: 18px; }
  .swp-cart-page .woocommerce-cart-form table.shop_table_responsive tr { display: grid; grid-template-columns: 36px 86px minmax(0, 1fr); }
  .swp-cart-page .woocommerce-cart-form table.shop_table_responsive tr td {
    box-sizing: border-box;
    min-width: 0;
    text-align: left !important;
  }
  .swp-cart-page .woocommerce-cart-form table.shop_table_responsive tr td::before { margin-right: .5rem; }
  .swp-cart-page td.product-remove { grid-column: 1; grid-row: 1 / span 2; }
  .swp-cart-page td.product-thumbnail {
    display: block !important;
    width: auto;
    padding-inline: .35rem;
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .swp-cart-page td.product-thumbnail::before,
  .swp-cart-page td.product-name::before { display: none !important; content: none !important; }
  .swp-cart-page td.product-thumbnail img { width: 74px; height: 74px; }
  .swp-cart-page td.product-name { width: auto; padding-left: .65rem; grid-column: 3; overflow-wrap: anywhere; }
  .swp-cart-page td.product-quantity {
    display: flex !important;
    width: auto !important;
    justify-content: space-between;
    grid-column: 1 / -1;
    white-space: normal;
  }
  .swp-cart-page td.actions { display: block !important; grid-column: 1 / -1; }
  .swp-cart-page td.actions .button { width: 100%; float: none; }
  .swp-cart-page .cart_totals table.shop_table_responsive tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .swp-cart-page .cart_totals table.shop_table_responsive th,
  .swp-cart-page .cart_totals table.shop_table_responsive td {
    display: block !important;
    width: auto !important;
    padding: .85rem .65rem;
    text-align: left !important;
  }
  .swp-cart-page .cart_totals table.shop_table_responsive td::before { display: none !important; content: none !important; }
}
