/* ===========================================
   Innovation Living – Product Page Styles
   =========================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #333;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================================
   Header
   =========================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #333;
}
.logo:hover {
  text-decoration: none;
}

/* ===========================================
   Breadcrumb
   =========================================== */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a {
  color: #999;
}
.breadcrumb a:hover {
  color: #333;
}
.breadcrumb .sep {
  margin: 0 6px;
  color: #ccc;
}
.breadcrumb .current {
  color: #666;
}

/* ===========================================
   Product Layout
   =========================================== */
.product-page {
  padding: 30px 0 60px;
}

.product-layout {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 0 40px;
  align-items: start;
}

/* Left wrapper holds image + accordions as one grid cell */
.product-left-wrapper {
  grid-column: 1;
}

.product-image-wrapper {
  background: #f8f8f8;
  border-radius: 4px;
  overflow: hidden;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  background: #f5f5f5;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.product-image-container img.loading {
  opacity: 0.4;
}

/* Spinner */
.spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid #e0e0e0;
  border-top-color: #0d8756;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 2;
}

.spinner.active {
  display: block;
}

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

/* 360 Rotation Controls */
.rotation-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.rot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.rot-btn:hover {
  border-color: #0d8756;
  color: #333;
}

.rot-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.5px;
}

/* Position Tabs */
.position-tabs {
  display: flex;
  border-top: 1px solid #e0e0e0;
}

.position-tab {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #999;
  background: #fff;
  border: none;
  border-right: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s;
}
.position-tab:last-child {
  border-right: none;
}
.position-tab:hover {
  color: #333;
  background: #f9f9f9;
}
.position-tab.active {
  color: #333;
  background: #f0f0f0;
}

/* ===========================================
   Right Column – Product Details
   =========================================== */
.product-details-col {
  grid-column: 2;
}

.product-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #333;
}

.product-description {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.product-designer {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-bottom: 28px;
}

/* ===========================================
   Accordion (details/summary)
   =========================================== */
.accordion {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  background: #fafafa;
  border: none;
  list-style: none;
  transition: background 0.2s;
}
.accordion-header:hover {
  background: #f0f0f0;
}

/* Custom arrow */
.accordion-header::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion[open] > .accordion-header::after {
  transform: rotate(-135deg);
}

/* Remove default marker */
.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-body {
  padding: 16px 20px 20px;
  border-top: 1px solid #dee2e6;
}

/* ===========================================
   Fabric Selection
   =========================================== */
.fabric-group {
  margin-bottom: 20px;
}

.fabric-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}

.delivery-hint {
  font-weight: 400;
  color: #999;
  font-size: 13px;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.fabric-swatch {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.fabric-swatch:hover {
  border-color: #aaa;
  transform: scale(1.05);
}
.fabric-swatch.active
{
  border-color: #0d8756;
  box-shadow: 0 0 0 2px #0d8756;
}

.fabric-swatch[title]::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.fabric-swatch:hover::after {
  opacity: 1;
}

/* Fabric Detail Panel */
.fabric-detail {
  margin-top: 16px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.fabric-detail-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.fabric-detail-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}

.fabric-detail-info {
  flex: 1;
  min-width: 0;
}

.fabric-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.fabric-table td {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.fabric-table td:first-child {
  font-weight: 600;
  color: #666;
  width: 40%;
  padding-right: 12px;
}

.fabric-table td:last-child {
  color: #333;
}

/* ===========================================
   Dimensions
   =========================================== */
.dimensions-section {
  display: flex;
  gap: 30px;
}

.dim-block {
  flex: 1;
}

.dim-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin-bottom: 12px;
}

.dim-icon {
  flex-shrink: 0;
}

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

.dim-table td {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.dim-table td:first-child {
  color: #666;
}

.dim-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #333;
}

/* Dimension Icon */
.dim-icon-wrapper {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.dim-icon-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ===========================================
   Features
   =========================================== */
.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #555;
}

.features-list li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: #999;
}

.comfort-type {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* ===========================================
   Fabric Overview Link
   =========================================== */
.fabric-overview-link {
  margin: 24px 0 16px;
}

.fabric-overview-link a {
  color: #333;
  font-weight: 600;
  text-decoration: underline;
  font-size: 15px;
}

.fabric-disclaimer {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  line-height: 1.5;
}

/* ===========================================
   Price + Cart Section
   =========================================== */
.price-cart-section {
  margin-top: 24px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.price-display {
  margin-bottom: 16px;
}

.price-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.price-note {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cart {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #0d8756;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 3px 12px rgba(23,88,70,.35);
}
.btn-cart:hover {
  background: #124a3a;
}
.btn-cart:disabled {
  cursor: not-allowed;
}

.btn-inquiry {
  display: block;
  width: 100%;
  padding: 10px 24px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-inquiry:hover {
  border-color: #0d8756;
  background: #f5f5f5;
}

.btn-sample {
  display: block;
  width: 100%;
  padding: 10px 24px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-sample:hover {
  border-color: #0d8756;
  background: #f5f5f5;
}

/* ===========================================
   Checkout Modal
   =========================================== */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.checkout-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.checkout-close:hover {
  color: #333;
}

.checkout-modal h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.summary-row span:first-child {
  color: #666;
}

.summary-row span:last-child {
  font-weight: 600;
  color: #333;
  text-align: right;
  max-width: 60%;
}

/* Shipping Section */
.checkout-shipping {
  margin-bottom: 20px;
}

.checkout-shipping h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

/* Country Cards */
.shipping-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.shipping-card {
  padding: 10px 8px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.shipping-card:hover {
  border-color: #aaa;
  background: #fafafa;
}
.shipping-card.active {
  border-color: #0d8756;
  background: #f0f7f5;
  color: #0d8756;
}

/* Method Cards */
.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}
.method-card:hover {
  border-color: #aaa;
  background: #fafafa;
}
.method-card.active {
  border-color: #0d8756;
  background: #f0f7f5;
}

.method-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.method-card.active .method-card-title {
  color: #0d8756;
}

.method-card-desc {
  font-size: 12px;
  color: #888;
}

.method-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #0d8756;
  margin-top: 4px;
}

/* Checkout Total */
.checkout-total {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #555;
}

.checkout-total-row.total {
  border-top: 2px solid #ddd;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.checkout-delivery-time {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  text-align: center;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-order {
  width: 100%;
  padding: 14px 24px;
  background: #0d8756;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 3px 12px rgba(23,88,70,.35);
}
.btn-order:hover {
  background: #124a3a;
}
.btn-order:disabled {
  background: #999;
  cursor: not-allowed;
}

.btn-order.is-email {
  background: #333;
  box-shadow: none;
}
.btn-order.is-email:hover {
  background: #555;
}

.btn-inquiry-alt {
  width: 100%;
  padding: 10px 24px;
  background: transparent;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.btn-inquiry-alt:hover {
  color: #333;
}

/* Checkout Loading */
.checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.checkout-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #0d8756;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.checkout-loading p {
  font-size: 14px;
  color: #666;
}

.checkout-error {
  background: #fff3f3;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 12px;
}

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


/* Mobile product header (title + SKU above image) */
.mobile-product-header {
  display: none;
}
/* Tablet */
@media (max-width: 992px) {
  .product-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .product-left-wrapper {
    display: contents;
  }

  .product-image-col,
  .product-details-col,
  .product-info-accordions {
    max-width: 100%;
    width: 100%;
  }

  /* Mobile header: title + SKU above image */
  .mobile-product-header {
    display: block;
    order: 0;
  }

  /* Hide original title + SKU in details col */
  .product-details-col > .product-title,
  .product-details-col > .product-sku {
    display: none;
  }

  /* Order: header(0) -> image(1) -> details/cart(2) -> accordions(3) */
  .product-image-col {
    order: 1;
  }
  .product-details-col {
    order: 2;
  }
  .product-info-accordions {
    order: 3;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .product-page {
    padding: 20px 0 40px;
  }

  .product-title {
    font-size: 22px;
  }

  .accordion-header {
    padding: 14px 16px;
    font-size: 15px;
  }

  .accordion-body {
    padding: 12px 16px 16px;
  }

  .fabric-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 5px;
  }

  .fabric-detail-inner {
    flex-direction: column;
    align-items: center;
  }

  .fabric-detail-img {
    width: 120px;
    height: 120px;
  }

  .dimensions-section {
    flex-direction: column;
    gap: 20px;
  }

  .position-tab {
    font-size: 11px;
    padding: 10px 8px;
  }

  .rotation-controls {
    gap: 8px;
  }

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

  .checkout-modal {
    padding: 24px 20px;
  }

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

/* ── Komfort Section ── */
.comfort-section { display: flex; gap: 24px; align-items: flex-start; }
.comfort-content { flex: 1; }
.comfort-description { font-size: 14px; line-height: 1.7; color: #555; margin: 0 0 16px; }
.comfort-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.comfort-pill { background: #f0ede9; border-radius: 20px; padding: 6px 16px; font-size: 12px; color: #555; }
.comfort-pill strong { color: #222; }
.comfort-image-wrap { flex-shrink: 0; width: 140px; }
.comfort-image-wrap img { width: 100%; border-radius: 8px; }
@media (max-width: 600px) {
  .comfort-section { flex-direction: column-reverse; }
  .comfort-image-wrap { width: 100%; max-width: 200px; }
}

/* ── Cushion Material ── */
.cushion-material { font-size: 13px; color: #666; margin-top: 12px; }
.cushion-material strong { color: #222; }

/* ── Produktinformation ── */
.productinfo-text { font-size: 14px; line-height: 1.75; color: #555; }
.productinfo-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.productinfo-tag { background: #f0ede9; border-radius: 4px; padding: 4px 10px; font-size: 12px; color: #555; }
.productinfo-downloads { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.productinfo-download-btn { display: inline-flex; align-items: center; gap: 6px; background: #222; color: #fff; padding: 8px 16px; border-radius: 4px; font-size: 12px; text-decoration: none; transition: background 0.15s; }
.productinfo-download-btn:hover { background: #b08a6e; color: #fff; }

/* ── Designer ── */
.designer-section { display: flex; gap: 24px; align-items: flex-start; }
.designer-portrait { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.designer-content { flex: 1; }
.designer-name { font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.designer-year { font-size: 12px; color: #888; margin: 0 0 12px; }
.designer-bio { font-size: 13px; line-height: 1.7; color: #555; }
.designer-bio p { margin: 0 0 10px; }
.designer-bio p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .designer-section { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Garantie ── */
.warranty-section { display: flex; gap: 24px; align-items: center; }
.warranty-badge { background: #b08a6e; color: #fff; border-radius: 50%; width: 72px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.warranty-years { font-size: 26px; font-weight: 700; line-height: 1; }
.warranty-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.warranty-content { flex: 1; }
.warranty-text { font-size: 13px; color: #555; line-height: 1.7; margin: 0 0 10px; }
.warranty-pdf-link { font-size: 13px; color: #b08a6e; text-decoration: none; border-bottom: 1px solid #b08a6e; }
.warranty-pdf-link:hover { color: #8a6a4e; border-color: #8a6a4e; }

/* ── Abstand zwischen Bild und Akkordeons in linker Spalte ── */
.product-info-accordions .accordion:first-of-type {
  margin-top: 12px;
}

/* ── Preis oben ── */
.price-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.price-top-label {
  font-size: 14px;
  color: #888;
}
.price-top-value {
  font-size: 28px;
  font-weight: 600;
  color: #222;
}

/* Country Select Dropdown */
.country-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Source Sans Pro', sans-serif;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.country-select:focus {
  outline: none;
  border-color: #0d8756;
}

/* Product SKU */
.product-sku {
  font-size: 13px;
  color: #999;
  margin: 4px 0 8px;
}

/* ---- Carousels ---- */
.carousel-section {
  padding: 40px 0;
  border-top: 1px solid #eee;
}
.carousel-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
}
.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}
.carousel-card {
  flex: 0 0 200px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.carousel-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.carousel-card-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #f8f8f8;
  display: block;
}
.carousel-card-body {
  padding: 10px 12px;
}
.carousel-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-card-price {
  font-size: 13px;
  color: #666;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s;
}
.carousel-arrow:hover {
  background: #f0f0f0;
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 160px;
  }
  .carousel-card-img {
    height: 120px;
  }
}



/* Fixed Fabric Info */
.fixed-fabric-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.fixed-fabric-swatch {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.fixed-fabric-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* ---- Footer ---- */
.site-footer {
  background: #282828;
  color: #f4f4f4;
  padding: 48px 0 0;
  margin-top: 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-heading {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-contact {
  color: #bbb;
  margin: 0 0 4px;
  line-height: 1.6;
}
.footer-contact a {
  color: #bbb;
  text-decoration: none;
}
.footer-contact a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid #444;
  font-size: 13px;
  color: #888;
  text-align: center;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Group price in fabric group headers */
.group-price {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95em;
}
