/* ==========================================================================
   2K KARAVAN STYLE PRODUCT CARDS, FILTERS & MODALS
   ========================================================================== */

.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Card Media */
.product-media {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: #f8fafc;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.product-image-link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
}

.product-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-assurance-item {
  min-height: 78px;
  padding: .8rem .7rem;
  text-align: center;
  background: #fff;
  border: 1px solid #ffe600;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ürün verisinden bağımsız, tüm mevcut ve yeni ürün detaylarında sabit aralık. */
.product-detail-media > .product-media-gallery {
  margin-bottom: 0;
}

.product-detail-media > .product-assurance-grid {
  margin-top: 1rem;
}

.product-assurance-title { color:var(--text-main); font-size:.88rem; font-weight:800; line-height:1.25; }
.product-assurance-detail { margin-top:.3rem; color:var(--text-muted); font-size:.72rem; font-weight:600; }
.product-assurance-shipping { margin-top:.55rem; color:#111827; font-size:.76rem; font-weight:900; letter-spacing:.035em; line-height:1.2; }
.product-assurance-shipping.is-unavailable { color:#b45309; }
html[data-theme="dark"] body:not(.management-page) .product-assurance-shipping { color:#fff !important; }
html[data-theme="dark"] body:not(.management-page) .product-assurance-shipping.is-unavailable { color:#fbbf24 !important; }

.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-installment-badge {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 50%;
  background: #ffe600;
  color: #111827;
  box-shadow: 0 3px 10px rgba(105,84,0,.16);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.product-installment-badge strong {
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
}

.product-installment-badge small {
  margin: 0 0 3px;
  color: #111827;
  font-size: .46rem;
  font-weight: 900;
  line-height: 1;
}

html[data-theme="dark"] body:not(.management-page) .product-installment-badge,
html[data-theme="dark"] body:not(.management-page) .product-installment-badge small,
html[data-theme="dark"] body:not(.management-page) .product-installment-badge strong {
  color: #111827;
}

.modal-product-media,
.home-opportunity-image { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-amber {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.badge-cyan {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.product-quick-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}

.product-card:hover .product-quick-btn {
  opacity: 1;
}

.product-quick-btn:hover {
  background: #f58220;
}

/* Card Body */
.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.same-day-shipping {
  display: inline-flex;
  width: max-content;
  margin-top: 0.45rem;
  margin-bottom: 0.5rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 800;
}

.product-sku {
  font-family: monospace;
}

.product-card .dealer-price-view {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-card .retail-ref-price,
.product-card .wholesale-price,
.product-card .wholesale-price span,
.product-card .vat-included-note {
  color: #111827;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  display: inline-block;
  background: #10b981;
}

.product-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5rem;
}

.product-title:hover {
  color: #6b5800;
}

.product-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.85rem;
}

.spec-chip {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Pricing Box */
.product-pricing-box {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 0.75rem;
}

.dealer-price-view {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.retail-ref-price {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.wholesale-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #15803d;
  font-family: var(--font-heading);
}

.wholesale-price span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.b2b-locked-view {
  background: rgba(255, 230, 0, 0.12);
  border: 1px solid #ffe600;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.guest-retail-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
}
.guest-compare-price{margin-bottom:.12rem;color:#94a3b8;font-size:.78rem;font-weight:700;text-decoration:line-through}.product-campaign-label{display:inline-flex;width:max-content;margin:.35rem 0 0;padding:.25rem .5rem;border-radius:999px;background:#ffe600;color:#1b2a4a;font-size:.65rem;font-weight:900}

.guest-retail-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.vat-included-note {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
}

.b2b-lock-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1b2a4a;
}

/* Card Actions */
.product-card-actions {
  display: flex;
  gap: 6px;
}

.qty-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  width: 75px;
}

.qty-btn {
  background: #f8fafc;
  border: none;
  width: 22px;
  height: 34px;
  cursor: pointer;
  font-weight: 700;
  color: #475569;
}

.qty-input {
  width: 31px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
}

.product-card .qty-input-group {
  display: grid;
  grid-template-columns: 24px 32px 24px;
  align-items: stretch;
  width: 80px;
  height: 42px;
}

.product-card .qty-input-group > .qty-btn,
.product-card .qty-input-group > .qty-input {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 42px;
  text-align: center;
}

.product-card .qty-input-group > .qty-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.product-card .qty-input-group > .qty-input::-webkit-inner-spin-button,
.product-card .qty-input-group > .qty-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.btn-add-cart {
  flex: 1;
  background: #f58220;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}

.btn-add-cart:hover {
  background: #e07010;
}

/* Grid helper */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Quick View Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.modal-container {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  padding: 1.75rem;
}

.modal-product-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  margin: 0.75rem 0;
}

.specs-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.specs-table td:first-child {
  color: #64748b;
  width: 40%;
}
.specs-table td:last-child {
  font-weight: 600;
  color: #1e293b;
}

/* ========================================================================
   CATALOG PAGE — B2B buying surface
   ======================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-header,
.catalog-toolbar,
.catalog-sort-group,
.price-range-inputs,
.filter-checkbox-label {
  display: flex;
  align-items: center;
}

.sidebar-header {
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.btn-clear-filters {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
}

.filter-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
.filter-group:last-of-type { border-bottom: 0; }

.filter-title {
  margin-bottom: .7rem;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
}

.filter-options-list {
  list-style: none;
  display: grid;
  gap: .55rem;
}

.filter-checkbox-label {
  gap: .5rem;
  color: var(--text-secondary);
  font-size: .82rem;
  cursor: pointer;
  line-height: 1.3;
}
.filter-checkbox-label input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #ffe600;
}
.filter-checkbox-label span:first-of-type { flex: 1; }
.filter-count { color: var(--text-muted); font-size: .75rem; }

.price-range-inputs { gap: .45rem; }
.price-range-inputs > span { color: var(--text-muted); }
.price-range-input {
  min-width: 0;
  width: 100%;
  padding: .55rem .6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--text-main);
  outline: none;
}
.price-range-input:focus { border-color: #d3b900; box-shadow: 0 0 0 3px rgba(255,230,0,.2); }

.catalog-advisory {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #f1d23e;
  border-radius: 10px;
  background: rgba(255, 230, 0, 0.12);
  color: #5a4c00;
  font-size: .78rem;
  line-height: 1.55;
}
.catalog-advisory a { color: #5a4c00 !important; }

.catalog-content { min-width: 0; }
.catalog-toolbar {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.catalog-count-text {
  color: var(--text-secondary);
  font-size: .9rem;
}
.catalog-count-text strong {
  display: block;
  margin-top: .12rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.catalog-sort-group { gap: .6rem; }
.catalog-sort-select {
  min-width: 190px;
  padding: .58rem 2rem .58rem .7rem;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  outline: none;
}
.catalog-sort-select:focus { border-color: #d3b900; box-shadow: 0 0 0 3px rgba(255,230,0,.2); }

.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-content .product-card {
  min-width: 0;
  border-radius: 12px;
  align-self: start;
}
.catalog-content .product-body {
  padding: 1rem;
  flex: 0 0 auto;
}
.catalog-content .product-pricing-box {
  margin-top: 0;
}
.catalog-content .product-media { padding-top: 70%; }
.catalog-content .product-thumb { object-fit: contain; padding: .65rem; background: #fff; }
.catalog-content .product-card:hover { border-color: #e8ca00; box-shadow: 0 12px 25px rgba(27,42,74,.1); }

html[data-theme="dark"] body:not(.management-page) .product-card .retail-ref-price {
  color: #94a3b8;
}
html[data-theme="dark"] body:not(.management-page) .product-card .wholesale-price,
html[data-theme="dark"] body:not(.management-page) .product-card .wholesale-price span {
  color: #f8fafc;
}
html[data-theme="dark"] body:not(.management-page) .product-card .vat-included-note,
html[data-theme="dark"] body:not(.management-page) .product-card .dealer-price-view div[style] {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.management-page) .product-card .product-pricing-box {
  border-color: #334155;
}

@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-layout { display: block; }
  .catalog-sidebar { position: static; margin-bottom: 1rem; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .catalog-sort-group { width: 100%; justify-content: space-between; }
  .catalog-sort-select { min-width: 0; width: 65%; }
}
@media (max-width: 520px) {
  .grid-cols-3 { grid-template-columns: 1fr; }
  .catalog-sidebar { padding: 1rem; }
  .catalog-toolbar { padding: 1rem; }
}
.product-documents-section{margin-top:2rem;padding:1.45rem;border:1px solid var(--border-color);border-radius:14px;background:#fff}.product-documents-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.product-documents-head h2{margin:0 0 .2rem;color:var(--primary);font-size:1.25rem}.product-documents-head p{margin:0;color:var(--text-muted);font-size:.82rem}.product-document-list{display:grid;gap:.7rem}.product-document-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.85rem;padding:.9rem 1rem;border:1px solid #e1e7ef;border-radius:10px;background:#f8fafc}.product-document-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:9px;background:#ffe600;color:#1b2a4a}.product-document-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.product-document-card small,.product-document-card strong{display:block}.product-document-card small{color:#718096;font-size:.68rem}.product-document-card strong{margin-top:.18rem;color:var(--primary);font-size:.88rem}.product-document-card a{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d3b900;border-radius:8px;padding:.58rem .8rem;background:#ffe600;color:#1b2a4a;font-size:.75rem;font-weight:800;text-decoration:none}.product-document-card a:hover{background:#efd700}@media(max-width:560px){.product-document-card{grid-template-columns:auto 1fr}.product-document-card a{grid-column:1/-1}}
.product-warning-list{display:grid;gap:.55rem;margin:-.25rem 0 1.5rem}.product-warning-list>div{display:grid;grid-template-columns:auto 1fr;gap:.65rem;align-items:start;padding:.72rem .8rem;border:1px solid #ffe600;border-radius:9px;background:#fff}.product-warning-list span{display:grid;place-items:center;width:24px;height:24px;color:#111827}.product-warning-list svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.product-warning-list p{margin:1px 0 0;color:#111827;font-size:.76rem;line-height:1.45}.product-related-side{margin-top:1.7rem;padding-top:1.4rem;border-top:1px solid var(--border-color)}.product-related-side-head h2{margin:0;color:var(--primary);font-size:1.12rem}.product-related-side-head p{margin:.25rem 0 .85rem;color:var(--text-muted);font-size:.75rem}.product-related-side-list{display:grid;gap:.65rem}.product-related-side-card{display:grid;grid-template-columns:82px minmax(0,1fr);gap:.8rem;align-items:center;padding:.65rem;border:1px solid #e1e7ef;border-radius:10px;background:#fff;color:inherit;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease}.product-related-side-card:hover{border-color:#d3b900;box-shadow:0 7px 18px rgba(27,42,74,.08)}.product-related-side-card img{width:82px;height:68px;border-radius:7px;background:#f8fafc;object-fit:contain}.product-related-side-card small,.product-related-side-card strong,.product-related-side-card b{display:block}.product-related-side-card small{color:#718096;font-size:.63rem}.product-related-side-card strong{margin:.16rem 0;color:var(--primary);font-size:.76rem;line-height:1.35}.product-related-side-card b{color:#047857;font-size:.78rem}
.product-video-section{margin-top:2rem;padding:1.25rem;border:1px solid var(--border-color);border-radius:12px;background:#fff}.product-video-section h2{font-size:1.15rem;color:var(--primary);margin-bottom:1rem}.product-video-section video{display:block;width:min(820px,100%);max-height:520px;border-radius:10px;background:#101827}
.product-variant-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;padding:1rem;border:1px solid #ffe600;border-radius:10px;margin:1rem 0;background:#fff;color:#111827}.product-variant-field{display:grid;gap:.35rem}.product-variant-field label{font-size:.78rem;font-weight:800;color:#111827}.product-variant-field select{width:100%;padding:.7rem;border:1px solid #d9e0ea;border-radius:8px;background:#fff;color:#111827;font:inherit}.product-variant-status{grid-column:1/-1;padding:.65rem .75rem;border-radius:7px;background:#ecfdf5;color:#047857;font-size:.78rem;font-weight:700}.product-variant-status.is-unavailable{background:#fef2f2;color:#b91c1c}@media(max-width:620px){.product-variant-picker{grid-template-columns:1fr}}
.product-brand-line{display:flex;align-items:center;gap:.4rem;margin:-.1rem 0 1rem;color:var(--text-muted);font-size:.78rem}.product-brand-line span{font-weight:650}.product-brand-line strong{color:var(--text-main);font-size:.82rem;font-weight:900}
.product-pricing-box{position:relative}.product-price-shipping-badge{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:46px;margin:0 0 1rem;padding:.7rem .9rem;border-radius:10px;background:#ffe600;color:#111827;font-size:.86rem;font-weight:900;letter-spacing:.01em}.product-price-shipping-badge::before{content:'✓';display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;margin-right:.55rem;border-radius:50%;background:#111827;color:#ffe600;font-size:.72rem}.product-price-shipping-badge.is-unavailable{background:#e2e8f0;color:#475569}.product-price-shipping-badge.is-unavailable::before{content:'!';background:#64748b;color:#fff}
