/**
 * CATALOG GLOBAL LAYOUT SPECIFICATION
 * Location: css/style.css
 */

/* ==========================================================================
   1. LAYOUT CONTROLS & RESETS
   ========================================================================== */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #333333;
}

.master-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.catalog-viewport {
  display: flex;
  gap: 2rem;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   2. HEADER & MEGA DROPDOWN SYSTEM
   ========================================================================== */
.global-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: -0.03em;
}

.logo-text span {
  color: #334155;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  position: relative;
}

.nav-item-link {
  text-decoration: none;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.active-nav-border {
  color: #0284c7 !important;
  border-bottom: 2px solid #0284c7;
}

/* FLYOUT HOVER ENGINE */
.mega-trigger {
  display: inline-block;
}

.mega-trigger:hover .dropdown-viewport-panel {
  display: block;
}

.dropdown-viewport-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: -300px;
  width: 88vw;
  max-width: 1200px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 2rem;
  z-index: 10000;
  box-sizing: border-box;
}

.dropdown-columns-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.25rem;
}

.dropdown-columns-grid h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e2e8f0;
  min-height: 24px;
}

.dropdown-columns-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-columns-grid ul li {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

.dropdown-columns-grid ul li a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
}

.dropdown-columns-grid ul li a:hover {
  color: #0284c7;
}

/* ==========================================================================
   3. LEFT SIDEBAR FILTER CONTROLS
   ========================================================================== */
#global-store-sidebar,
.sidebar-filter-column {
  width: 260px;
  flex-shrink: 0;
  box-sizing: border-box;
}


.filter-group-block {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
}

.filter-headline {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.category-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-tree-list li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.category-tree-list li a {
  text-decoration: none;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-tree-list li a:hover {
  color: #0284c7;
}

.parent-node {
  font-weight: 700;
  color: #0f172a !important;
  margin-top: 1rem;
}

.volume-counter {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.8rem;
}

.filter-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-badge-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.filter-badge-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

/* ==========================================================================
   4. PRODUCT GRID PRESENTATION MATRIX
   ========================================================================== */
.showcase-grid-column {
  flex-grow: 1;
}

.sort-control-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.sort-select {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
}

.product-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card-unit {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.product-card-unit:hover {
  border-color: #cbd5e1;
}

.image-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.hot-status-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
}

.item-description-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-title-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1e293b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4rem;
}

.item-specs-text {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.item-price-tag {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ef4444;
  margin-top: 0.5rem;
}

/* ==========================================================================
   5. PAGINATION CORE FOOTER CONTROLS
   ========================================================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}

.page-node-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  min-width: 32px;
  height: 32px;
  font-size: 0.85rem;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  padding: 0 6px;
}

.page-node-btn.node-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  font-weight: bold;
}

.page-node-btn:hover:not(.node-active) {
  border-color: #0284c7;
  color: #0284c7;
}

.pagination-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  font-size: 0.85rem;
  color: #475569;
}

.pagination-input-row input {
  width: 35px;
  height: 28px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.pagination-input-row button {
  height: 30px;
  padding: 0 0.75rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ==========================================================================
   6. RESPONSIVE HOOKS & SCREEN SWITCHES
   ========================================================================== */
@media (max-width: 1200px) {
  .product-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar-filter-column {
    display: none;
  }
}

@media (max-width: 600px) {
  .product-matrix {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   7. ADAPTIVE CATEGORY HERO HEADER COMPONENT
   ========================================================================== */
.category-hero-banner {
  width: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 3.5rem 2rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-breadcrumb-track {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.hero-breadcrumb-track a {
  text-decoration: none;
  color: #64748b;
}

.hero-breadcrumb-track a:hover {
  color: #0284c7;
}

.hero-title-headline {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-inventory-tally {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  margin: 0;
}

/* RESPONSIVE CONTROL SWAPS */
@media (max-width: 768px) {
  .category-hero-banner {
    padding: 2.5rem 1rem;
  }
  .hero-title-headline {
    font-size: 1.6rem;
  }
  }
/* ==========================================================================
    8. DYNAMIC HTML OVERLAY HERO SLIDER PANEL COMPONENT
   ========================================================================== */
.marketing-hero-slider-stage {
  position: relative;
  width: 100%;
  height: 480px;
  background: #0f172a;
  overflow: hidden;
  margin-bottom: 2rem;
  font-family: -apple-system, sans-serif;
}

.slider-viewport-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide-frame.active-slide,
.thumb-node.active-thumb {
    opacity: 1;
    visibility: visible;
    border: 2px solid #0284c7 !important;
}


.hero-slide-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* SMART TRANSPARENT MARKETING CARD TEXT OVERLAY Layer */
.hero-text-overlay-card {
  position: relative;
  z-index: 2;
  margin-left: 10%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 460px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  animation: slideTextIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideTextIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-sale-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.hero-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.hero-sub-caption {
  font-size: 0.95rem;
  color: #475569;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.hero-action-btn {
  display: inline-block;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.hero-action-btn:hover { background: #0284c7; }

/* NAVIGATION INTERACTION TRIGGERS */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(15, 23, 42, 0.6);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-arrow-btn:hover { background: rgba(2, 132, 199, 0.9); }
.prev-trigger { left: 1.5rem; }
.next-trigger { right: 1.5rem; }

.slider-dot-indicators {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.dot-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s;
}
.dot-node.active-dot { background: #fff; width: 24px; border-radius: 6px; }

/* RESPONSIVE LAYOUT SCALING WIDTHS */
@media (max-width: 768px) {
  .marketing-hero-slider-stage { height: 380px; }
  .hero-text-overlay-card { margin-left: 5%; margin-right: 5%; padding: 1.5rem; max-width: 100%; }
  .hero-main-title { font-size: 1.4rem; }
  .slider-arrow-btn { display: none; }
}
