/* ===============================================================================
   delinte-collection.css
   DELINTE Tire Catalog — Isolated Collection Styles
   Scope: .delinte-collection and child selectors only.
   Does NOT override ATLAS, LANDSPIDER, or SOLITE selectors.
   =============================================================================== */

/* ── Root variables ─────────────────────────────────────────────────────────── */
.delinte-collection {
  --dc-navy:     #0f1f3d;
  --dc-blue:     #1a3a6e;
  --dc-accent:   #e63312;
  --dc-accent2:  #c72a0e;
  --dc-gold:     #d97706;
  --dc-green:    #15803d;
  --dc-bg:       #f4f7fb;
  --dc-card:     #ffffff;
  --dc-border:   #dde4f0;
  --dc-muted:    #64748b;
  --dc-text:     #1e293b;
  --dc-radius:   10px;
  --dc-shadow:   0 4px 16px -4px rgba(0,0,0,.10);
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--dc-text);
}

/* ── Collection header ──────────────────────────────────────────────────────── */
.delinte-collection-heading {
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--dc-navy);
  line-height: 1.2;
}
.delinte-collection-sub {
  color: var(--dc-muted);
  font-size: 15px;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Stats bar ──────────────────────────────────────────────────────────────── */
.delinte-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.delinte-stat-card {
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 14px 20px;
  min-width: 130px;
  flex: 1;
  box-shadow: var(--dc-shadow);
}
.delinte-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--dc-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.delinte-stat-label {
  font-size: 12px;
  color: var(--dc-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Inquiry notice ─────────────────────────────────────────────────────────── */
.delinte-inquiry-notice {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--dc-accent);
  border-radius: var(--dc-radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #92400e;
}
.delinte-inquiry-notice strong {
  color: var(--dc-accent);
  font-weight: 700;
}

/* ── Category tabs ──────────────────────────────────────────────────────────── */
.delinte-category-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.delinte-category-tabs::-webkit-scrollbar { display: none; }

.delinte-tab-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dc-muted);
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.delinte-tab-btn:hover {
  background: #f1f5f9;
  color: var(--dc-navy);
}
.delinte-tab-btn.active {
  background: var(--dc-accent);
  color: #fff;
}

/* ── Category panel ─────────────────────────────────────────────────────────── */
.delinte-category-panel { display: none; }
.delinte-category-panel.active { display: block; }

/* ── Category banner ────────────────────────────────────────────────────────── */
.delinte-category-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-radius: var(--dc-radius);
  background: #111;
  margin-bottom: 24px;
  box-shadow: var(--dc-shadow);
}
.delinte-category-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: contain;
  object-position: center;
}
.delinte-banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(15,23,42,.82) 0%, rgba(15,23,42,.28) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.delinte-banner-title-wrap h2 {
  margin: 0 0 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.delinte-banner-title-wrap p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.delinte-banner-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.delinte-banner-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ── Filter panel ───────────────────────────────────────────────────────────── */
.delinte-filter-panel {
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.delinte-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.delinte-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 130px;
}
.delinte-filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--dc-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.delinte-filter-group select,
.delinte-filter-group input[type="text"] {
  padding: 8px 10px;
  border: 1px solid var(--dc-border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--dc-text);
  background: var(--dc-bg);
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.delinte-filter-group select:focus,
.delinte-filter-group input[type="text"]:focus {
  border-color: var(--dc-accent);
  background: #fff;
}
.delinte-filter-clear-btn {
  padding: 8px 18px;
  border: 1px solid var(--dc-border);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--dc-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.delinte-filter-clear-btn:hover {
  background: #fee2e2;
  color: var(--dc-accent);
  border-color: var(--dc-accent);
}

/* ── Results count ──────────────────────────────────────────────────────────── */
.delinte-results-bar {
  font-size: 13px;
  color: var(--dc-muted);
  margin-bottom: 16px;
  min-height: 20px;
}
.delinte-results-bar strong {
  color: var(--dc-navy);
  font-weight: 700;
}

/* ── Product grid ───────────────────────────────────────────────────────────── */
.delinte-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* ── Product card ───────────────────────────────────────────────────────────── */
.delinte-product-card {
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--dc-shadow);
  transition: box-shadow .2s, transform .18s;
  cursor: pointer;
}
.delinte-product-card:hover {
  box-shadow: 0 8px 28px -6px rgba(0,0,0,.16);
  transform: translateY(-2px);
}

/* ── Product image ──────────────────────────────────────────────────────────── */
.delinte-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.delinte-product-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .22s;
}
.delinte-product-card:hover .delinte-product-image img {
  transform: scale(1.04);
}
.delinte-product-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f0f4f8;
  color: var(--dc-muted);
  font-size: 12px;
  font-style: italic;
}

/* ── Card body ──────────────────────────────────────────────────────────────── */
.delinte-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.delinte-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--dc-navy);
  line-height: 1.25;
  margin: 0;
}
.delinte-card-category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.delinte-card-category-badge.passenger  { background: #dbeafe; color: #1e40af; }
.delinte-card-category-badge.light-truck { background: #dcfce7; color: #166534; }
.delinte-card-category-badge.last-mile-delivery { background: #fef9c3; color: #854d0e; }

.delinte-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.delinte-card-meta-item {
  font-size: 12px;
  color: var(--dc-muted);
  background: #f8fafc;
  border: 1px solid var(--dc-border);
  border-radius: 5px;
  padding: 3px 8px;
}
.delinte-card-meta-item span {
  color: var(--dc-text);
  font-weight: 600;
}

.delinte-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.delinte-card-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--dc-muted);
  font-weight: 500;
}

/* ── Card actions ───────────────────────────────────────────────────────────── */
.delinte-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.delinte-btn-details {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--dc-border);
  border-radius: 7px;
  background: var(--dc-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .16s;
}
.delinte-btn-details:hover { background: var(--dc-blue); }

.delinte-btn-wa {
  padding: 9px 12px;
  border: none;
  border-radius: 7px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: background .16s;
  white-space: nowrap;
}
.delinte-btn-wa:hover { background: #15803d; }
.delinte-btn-wa svg { flex-shrink: 0; }

/* ── Empty state ────────────────────────────────────────────────────────────── */
.delinte-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--dc-muted);
  background: var(--dc-card);
  border: 1px dashed var(--dc-border);
  border-radius: var(--dc-radius);
  font-size: 15px;
}
.delinte-empty-state h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: var(--dc-navy);
  margin: 0 0 8px;
}

/* ── Drawer overlay ─────────────────────────────────────────────────────────── */
.delinte-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
  overscroll-behavior: contain;
}
.delinte-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Drawer panel ───────────────────────────────────────────────────────────── */
.delinte-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(90vw, 880px);
  background: #fff;
  z-index: 9001;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}
.delinte-drawer-overlay.open .delinte-drawer {
  transform: translateX(0);
}

/* ── Drawer header ──────────────────────────────────────────────────────────── */
.delinte-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--dc-border);
  background: var(--dc-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.delinte-drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.delinte-drawer-close {
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: background .15s;
}
.delinte-drawer-close:hover { background: rgba(255,255,255,.28); }

/* ── Drawer body ────────────────────────────────────────────────────────────── */
.delinte-drawer-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Drawer gallery ─────────────────────────────────────────────────────────── */
.delinte-drawer-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}
.delinte-drawer-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.delinte-drawer-main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  border-radius: var(--dc-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delinte-drawer-main-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.delinte-drawer-thumbs {
  display: flex;
  gap: 8px;
}
.delinte-drawer-thumb {
  flex: 1;
  aspect-ratio: 1;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.delinte-drawer-thumb:hover { border-color: var(--dc-accent); }
.delinte-drawer-thumb.active { border-color: var(--dc-navy); }
.delinte-drawer-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.delinte-drawer-thumb-label {
  font-size: 10px;
  text-align: center;
  color: var(--dc-muted);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── Drawer product info ─────────────────────────────────────────────────────── */
.delinte-drawer-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dc-navy);
  margin: 0 0 10px;
}
.delinte-drawer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.delinte-drawer-meta-item {
  background: #f8fafc;
  border: 1px solid var(--dc-border);
  border-radius: 7px;
  padding: 8px 12px;
}
.delinte-drawer-meta-item label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dc-muted);
  margin-bottom: 2px;
}
.delinte-drawer-meta-item span {
  font-size: 13px;
  color: var(--dc-text);
  font-weight: 600;
}

/* ── Drawer description ─────────────────────────────────────────────────────── */
.delinte-drawer-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dc-muted);
}

/* ── Drawer features ────────────────────────────────────────────────────────── */
.delinte-drawer-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--dc-navy);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--dc-accent);
  display: inline-block;
}
.delinte-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.delinte-feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--dc-text);
}
.delinte-feature-bullet {
  width: 6px;
  height: 6px;
  background: var(--dc-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── Drawer inquiry ─────────────────────────────────────────────────────────── */
.delinte-drawer-inquiry {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--dc-accent);
  border-radius: var(--dc-radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.delinte-drawer-inquiry p {
  margin: 0;
  font-size: 13px;
  color: #92400e;
}
.delinte-drawer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 7px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  align-self: flex-start;
}
.delinte-drawer-wa-btn:hover { background: #15803d; color: #fff; }

/* ── Size table section ─────────────────────────────────────────────────────── */
.delinte-table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.delinte-table-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--dc-border);
  border-radius: 7px;
  font-size: 13px;
  outline: none;
}
.delinte-table-search:focus { border-color: var(--dc-accent); }
.delinte-table-count {
  font-size: 13px;
  color: var(--dc-muted);
  white-space: nowrap;
}

/* ── Size table wrapper ─────────────────────────────────────────────────────── */
.delinte-size-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
}
.delinte-size-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.delinte-size-table th {
  background: var(--dc-navy);
  color: #fff;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.delinte-size-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--dc-border);
  color: var(--dc-text);
  white-space: nowrap;
}
.delinte-size-table tr:last-child td { border-bottom: none; }
.delinte-size-table tbody tr:hover { background: #f8fafc; }
.delinte-size-table tbody tr.selected {
  background: #fef3c7;
  outline: 2px solid var(--dc-accent);
  outline-offset: -1px;
}
.delinte-size-table tbody tr { cursor: pointer; }
.delinte-size-null { color: var(--dc-muted); font-style: italic; }
.delinte-top-size-badge {
  background: #fef3c7;
  color: #92400e;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Unavailable fallback ───────────────────────────────────────────────────── */
.delinte-unavailable {
  padding: 56px 24px;
  text-align: center;
  color: var(--dc-muted);
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
}
.delinte-unavailable h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--dc-navy);
  margin: 0 0 10px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .delinte-drawer-intro {
    grid-template-columns: 1fr;
  }
  .delinte-banner-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .delinte-banner-pills {
    justify-content: flex-start;
  }
  .delinte-drawer-meta-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .delinte-product-grid {
    grid-template-columns: 1fr;
  }
  .delinte-card-actions {
    flex-direction: column;
  }
  .delinte-btn-details,
  .delinte-btn-wa {
    justify-content: center;
  }
  .delinte-drawer {
    width: 100%;
  }
  .delinte-stats-bar .delinte-stat-card {
    min-width: 100px;
  }
  .delinte-category-banner {
    aspect-ratio: 16 / 5;
  }
  .delinte-banner-title-wrap h2 {
    font-size: 17px;
  }
}
