/* Product filter bar refinement */
.product-filter {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-xs);
}

.product-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  align-items: flex-end;
}

.product-filter .filter-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--ink-secondary);
}

.product-filter .filter-title .show-filter-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  color: var(--ink-tertiary);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.product-filter .filter-title .show-filter-item:hover {
  background: var(--surface-muted);
  color: var(--ink-secondary);
}

.product-filter .filter-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 220px;
}

.product-filter label {
  font-size: 13px;
  color: var(--ink-tertiary);
  font-weight: 600;
  margin-right: 12px;
}

.product-filter .select-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

.product-filter .select-box i.bi-chevron-down {
  position: absolute;
  right: 12px;
  color: var(--ink-tertiary);
  pointer-events: none;
}

.product-filter select,
.product-filter select[data-no-select2="true"] {
  appearance: none;
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 14px;
  color: var(--ink-primary);
  padding-right: 28px;
}

.product-filter .filter-box {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #fff;
  padding: var(--space-md);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

.product-filter .filter-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-filter .filter-input {
  width: 120px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink-primary);
  background: #fff;
}

.product-filter .price-strip {
  color: var(--ink-tertiary);
  font-weight: 600;
}

.product-filter .button.invert.filterPrice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  color: var(--ink-primary);
  box-shadow: var(--shadow-xs);
}

.product-filter .slider.ui-slider,
.product-filter .slider {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .product-filter ul {
    flex-direction: column;
    align-items: stretch;
  }

  .product-filter .filter-item,
  .product-filter .filter-title,
  .product-filter .select-box,
  .product-filter .filter-box,
  .product-filter .filter-price {
    width: 100%;
  }

  .product-filter .filter-title {
    justify-content: space-between;
  }
}

/**
 * Visual Hierarchy Refinement for Perkakasku.com
 * 
 * Purpose: Modernize B2B industrial e-commerce UI with:
 * - Clear visual hierarchy (not all sections equal weight)
 * - App-like, professional aesthetic
 * - Subtle interactions and elevation
 * - Conservative, trustworthy design language
 * 
 * Design Principles:
 * - Soft neutral surfaces (#ffffff, #f8fafc, #fafbfc)
 * - Dark ink text (#101828, #344054, #667085)
 * - Accent color used sparingly (price, CTA highlight only)
 * - One unified product card system
 * - Structured content over equal-weight blocks
 * 
 * @author UI/UX Lead
 * @version 2.0
 */

/**
 * Account Page Refinements
 * Align account views with modern visual hierarchy
 */
.account-wrapper .box-wrapper {
  background: var(--surface-base) !important;
  border: 1px solid var(--border-base) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-lg) !important;
  box-shadow: var(--shadow-xs) !important;
}

.account-wrapper .box-wrapper.no-border {
  border: none !important;
  box-shadow: none !important;
}

.account-wrapper .box-title {
  margin-bottom: var(--space-md) !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.account-wrapper .box-title h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--ink-primary) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.account-wrapper table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.account-wrapper table th {
  background: var(--surface-subtle) !important;
  color: var(--ink-primary) !important;
  font-weight: 700 !important;
  padding: var(--space-md) !important;
  border-bottom: 2px solid var(--border-base) !important;
}

.account-wrapper table td {
  color: var(--ink-secondary) !important;
  padding: var(--space-md) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.account-wrapper table tr:hover {
  background: var(--surface-subtle) !important;
}

.account-wrapper .link-blue {
  color: var(--accent-primary) !important;
  text-decoration: none !important;
}

.account-wrapper .link-blue:hover {
  color: var(--accent-hover) !important;
  text-decoration: underline !important;
}

.account-wrapper .input-item,
.account-wrapper input[type="text"],
.account-wrapper textarea,
.account-wrapper select {
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  color: var(--ink-primary) !important;
  background: var(--surface-base) !important;
}

.account-wrapper .input-item:focus,
.account-wrapper input[type="text"]:focus,
.account-wrapper textarea:focus,
.account-wrapper select:focus {
  outline: none !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 159, 55, 0.25) !important;
}

.account-wrapper .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-base) !important;
  background: var(--surface-muted) !important;
  color: var(--ink-primary) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 160ms ease !important;
}

.account-wrapper .button:hover {
  background: var(--surface-base) !important;
  box-shadow: var(--shadow-sm) !important;
}

.account-wrapper .button.blue {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

.account-wrapper .button.blue:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.account-wrapper .button.orange {
  background: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  color: #ffffff !important;
}

.account-wrapper .button.orange:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
}

.account-wrapper .profile-nav {
  display: flex !important;
  gap: var(--space-sm) !important;
  border-bottom: 1px solid var(--border-base) !important;
  padding-bottom: var(--space-sm) !important;
  margin-bottom: var(--space-md) !important;
}

.account-wrapper .profile-nav li a {
  display: inline-block !important;
  padding: 8px 12px !important;
  border-radius: var(--radius-sm) !important;
  color: var(--ink-secondary) !important;
  text-decoration: none !important;
}

.account-wrapper .profile-nav li a.active {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
}

.account-wrapper .confirm-item {
  background: var(--surface-muted) !important;
  border: 1px dashed var(--border-base) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-md) !important;
}

.account-wrapper .address-wrapper {
  background: var(--surface-base) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-md) !important;
}

.account-wrapper .select-box select {
  padding: 10px 12px !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface-base) !important;
  color: var(--ink-primary) !important;
}

.account-wrapper .button-row {
  display: flex !important;
  gap: var(--space-sm) !important;
}

.account-wrapper .button-row .blue,
.account-wrapper .button-row .orange,
.account-wrapper .button-row .button {
  width: auto !important;
}

/* ========================================================================
   COLOR SYSTEM: Industrial Trust Palette
   ======================================================================== */
:root {
  /* Surfaces: soft neutrals for modern depth */
  --surface-base: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-muted: #fafbfc;
  --surface-elevated: #ffffff;

  /* Ink: professional text hierarchy */
  --ink-primary: #101828;
  /* Headings, primary content */
  --ink-secondary: #344054;
  /* Body text, secondary content */
  --ink-tertiary: #667085;
  /* Muted text, captions */
  --ink-disabled: #98a2b3;
  /* Disabled states */

  /* Borders: subtle separation */
  --border-subtle: #eef0f2;
  /* Lightest dividers */
  --border-base: #e5e7eb;
  /* Standard borders */
  --border-strong: #d0d5dd;
  /* Emphasis borders */

  /* Accent: brand energy (use sparingly) */
  --accent-primary: #ff9f37;
  /* CTAs, prices, key actions */
  --accent-hover: #ff8a1f;
  /* Hover states */
  --accent-subtle: #fff4e6;
  /* Accent backgrounds */

  /* Semantic colors */
  --success: #039855;
  --warning: #dc6803;
  --info: #0077ac;
  --promo: #ff9f37;

  /* Shadows: app-like elevation */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 8px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 8px 16px rgba(16, 24, 40, 0.1);
  --shadow-xl: 0 12px 24px rgba(16, 24, 40, 0.12);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ========================================================================
   SECTION 1: VISUAL HIERARCHY — Priority Levels
   ======================================================================== */

/**
 * Entry Paths Section (Tier 1: Navigation Gateway)
 * - Feels like navigation, not catalog
 * - Minimal visual weight
 * - Clear, spacious, inviting
 */
.home-entry-paths {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
  padding: var(--space-2xl) 0 var(--space-xl) 0 !important;
  margin-bottom: var(--space-2xl);
}

.home-entry-paths h2 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 var(--space-sm) 0 !important;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.home-entry-paths .section-subtitle {
  font-size: 14px;
  color: var(--ink-tertiary);
  margin: 0 0 var(--space-xl) 0;
  font-weight: 400;
  line-height: 1.5;
}

/**
 * Entry Path Cards
 * - Neutral card surface with subtle separation
 * - App-like hover lift (2px) with refined shadow
 * - Clear text hierarchy: strong title → secondary description → accent CTA
 * - Smooth, calm interactions (ease-out 200ms)
 */
.entry-paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.entry-path-card {
  display: block;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  transition: all 140ms cubic-bezier(0.4, 0, 0.2, 1);
  /* ease-out, professional speed */
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  /* minimal surface definition */
  position: relative;
  cursor: pointer;
}

.entry-path-card:hover {
  background: #fafbfc;
  /* neutral gray shift, non-brand */
  border-color: var(--border-base);
  /* quieter edge emphasis */
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  /* soft professional depth */
  transform: translateY(-2px);
  /* restrained 2px lift */
}

.entry-path-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .entry-path-card {
    transition: none;
  }
}

/* Title: Primary hierarchy – strong and clear */
.entry-path-card h3 {
  color: var(--ink-primary);
  font-size: 17px;
  font-weight: 700;
  /* increased weight for prominence */
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* Description: Secondary hierarchy – calm, readable */
.entry-path-card p {
  color: var(--ink-secondary);
  /* slightly darker for readability */
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 var(--space-md) 0;
  flex-grow: 1;
  /* push CTA to bottom */
}

/* CTA: Accent with animation – subtle directional hint */
.entry-path-card span {
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  transition: transform 140ms cubic-bezier(0.4, 0, 0.2, 1);
  /* match card timing */
  display: inline-block;
  margin-top: var(--space-sm);
  /* small gap before CTA */
}

.entry-path-card:hover span {
  transform: translateX(3px);
  /* subtle 3px rightward arrow movement */
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .entry-path-card span {
    transition: none;
  }
}

/**
 * Product Sections (Tier 2: Structured Content)
 * - Contained, organized appearance
 * - Clear hierarchy through borders and backgrounds
 * - More visual weight than Entry Paths
 */
.box-wrapper {
  background: var(--surface-base);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  transition: box-shadow 200ms ease;
}

.box-wrapper:hover {
  box-shadow: var(--shadow-sm);
}

/* Remove old spacing utilities that conflict */
.mt-10 {
  margin-top: 16px !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.mt-30 {
  margin-top: 24px !important;
}

.pt-20 {
  padding-top: 0 !important;
}

/* Reset - spacing handled by grid */

/**
 * Section Titles: Clear, Professional Hierarchy
 * - No tab/chip backgrounds
 * - Tight spacing to subtitle
 * - Clear separation from content
 */
.box-title {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 var(--space-xl) 0 !important;
  position: static !important;
  /* Override legacy absolute positioning */
  height: auto !important;
  /* Override fixed height */
}

.box-title h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--ink-primary) !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.box-title h2 a {
  color: var(--ink-primary) !important;
  text-decoration: none;
  transition: color 200ms ease;
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.box-title h2 a:hover {
  color: var(--accent-primary);
}

.box-title .section-subtitle {
  font-size: 13px;
  color: var(--ink-tertiary);
  margin: 0;
  padding: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* ========================================================================
   SECTION 2: UNIFIED PRODUCT CARD SYSTEM
   ======================================================================== */

/**
 * Product List Container
 * - Consistent grid across all sections
 * - Soft background to separate from page
 * - Generous spacing for breathing room
 */
.product-list {
  list-style: none;
  margin: 0 !important;
  padding: var(--space-lg) !important;
  background: var(--surface-subtle) !important;
  border-radius: var(--radius-lg) !important;
  border: none !important;
  position: relative !important;

  /* CSS Grid: responsive column layout */
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: var(--space-md) !important;
  align-items: stretch !important;
}

/* Clear any conflicting pseudo-elements */
.product-list::before,
.product-list::after {
  content: none !important;
  display: none !important;
}

/**
 * Product Card: App-like, Modern Design
 * - Clean white surface
 * - Subtle shadow for depth
 * - Smooth hover elevation
 * - Consistent internal spacing
 */
.product-list li,
.product-home-item {
  position: relative !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  box-sizing: border-box;
  text-align: center;
  list-style: none;
}

.product-home-item {
  display: block;
}

.product-list li a,
.product-home-item>a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  padding: var(--space-md);
  gap: var(--space-sm);
  text-align: left;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: visible !important;
  box-sizing: border-box;
  color: var(--ink-primary);
  text-decoration: none;
  background: var(--surface-base);
  box-shadow: var(--shadow-xs);
  transition:
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 180ms ease;
  align-items: stretch;
}

.product-list li a:hover,
.product-home-item>a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-base);
  z-index: 10;
}

/**
 * Product Labels (Promo, New, etc.)
 * - Absolute position, top-left
 * - Compact, readable
 * - Semantic colors
 */
.product-list li a .label,
.product-home-item>a .label {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-list li a .label span,
.product-home-item>a .label span {
  display: inline-block;
  background: var(--promo);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  box-shadow: var(--shadow-xs);
  margin: 0;
  white-space: nowrap;
}

.product-list li a .label span.new,
.product-home-item>a .label span.new {
  background: var(--accent-primary);
}

.product-list li a .label span.promo,
.product-home-item>a .label span.promo {
  background: #4caf50;
}

/**
 * Product Thumbnail Area
 * - Generous space for product image
 * - Soft background for visual separation
 * - Centered image with object-fit
 */
.product-list li a .thumb,
.product-home-item>a .thumb {
  flex-shrink: 0;
  height: 140px;
  padding: var(--space-sm);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.product-list li a:hover .thumb,
.product-home-item>a:hover .thumb {
  background: #f1f5f9;
}

.product-list li a .thumb img,
.product-home-item>a .thumb img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/**
 * Product Title
 * - Readable, professional typography
 * - Controlled height with overflow
 * - Expands slightly on hover for readability
 */
.product-list li a .title,
.product-home-item>a .title {
  flex-grow: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-secondary);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  hyphens: auto;
  text-align: left;
  transition: color 200ms ease;
  min-height: 39.2px;
}

.product-list li a:hover .title,
.product-home-item>a:hover .title {
  color: var(--ink-primary);
}

/* Optional short description and status chips */
.product-list li a .desc,
.product-home-item>a .desc {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-tertiary);
  margin: 0;
  overflow: hidden;
  max-height: 50px;
}

.product-list li a .status,
.product-home-item>a .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-xs);
  padding: 6px 10px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  width: auto;
}

/**
 * Product Price Area
 * - Accent color for visibility (price is key decision factor)
 * - Strikethrough for list price
 * - Bold promo price for clarity
 */
.product-list li a .price,
.product-home-item>a .price {
  margin-top: auto;
  padding-top: var(--space-sm);
  font-size: 12px;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
}

.product-list li a .price span,
.product-home-item>a .price span {
  display: block;
}

.product-list li a .price .price-origin,
.product-home-item>a .price .price-origin {
  font-size: 10px;
  color: var(--ink-tertiary);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.product-list li a .price .price-promo,
.product-home-item>a .price .price-promo {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Additional payment promo price row */
.product-list li a .price+.price,
.product-home-item>a .price+.price {
  margin-top: var(--space-xs);
  border-top: 0;
  padding-top: 0;
}

/* Meta info (comments, ratings, etc.) */
.product-list li a .info,
.product-home-item>a .info {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--ink-tertiary);
  font-size: 11px;
  font-weight: 600;
}

.product-list li a .info span,
.product-home-item>a .info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.product-list li a .info span i,
.product-home-item>a .info span i {
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* CTA buttons */
.product-list li a .button-action,
.product-home-item>a .button-action {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-list li a .button-action button,
.product-home-item>a .button-action button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-base);
  background: var(--surface-muted);
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 160ms ease;
}

.product-list li a .button-action button:hover,
.product-home-item>a .button-action button:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.product-list li a .button-action button.primary,
.product-home-item>a .button-action button.primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.product-list li a .button-action button.primary:hover,
.product-home-item>a .button-action button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.product-list li a .button-action button:disabled,
.product-home-item>a .button-action button:disabled {
  background: var(--surface-muted);
  border-color: var(--border-subtle);
  color: var(--ink-disabled);
  cursor: not-allowed;
  box-shadow: none;
}

/**
 * Load More Link (in-grid)
 * - Spans full grid width
 * - Subtle, professional styling
 * - Clear affordance for action
 */
.product-list li.load-more {
  display: block;
  grid-column: 1 / -1;
  height: auto;
  min-height: 0;
  margin-top: var(--space-md);
}

.product-list li.load-more a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--surface-base);
  color: var(--ink-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border-base);
  transition: all 200ms ease;
  height: auto;
  width: auto;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.product-list li.load-more a:hover {
  background: var(--surface-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

/* Hide legacy external load-more container */
.load-more-product-list {
  display: none !important;
}

/* ========================================================================
   SECTION 3: PROMO BANNER SYSTEM REFINEMENT
   ======================================================================== */

/**
 * Promo Section Wrapper
 * - Same container treatment as other product sections
 * - Visual consistency across homepage
 */
.product-promo-wrapper {
  /* Inherits from .box-wrapper */
}

/**
 * Promo Header
 * - Move away from "print ad" look
 * - Integrate into UI system
 * - Soft, modern presentation
 */
.head-promo {
  background: transparent !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Promo Poster Image */
.head-promo .poster-promo {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}

.head-promo .poster-promo:hover {
  box-shadow: var(--shadow-md);
}

.head-promo .poster-promo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Promo Campaign Label */
.head-promo .campaign-promo {
  width: 100%;
  padding: var(--space-lg);
  background: linear-gradient(135deg, #0077ac 0%, #005f8a 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.campaign-promo .label {
  background: var(--accent-primary);
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-xs);
}

.campaign-promo .desc {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  padding: var(--space-md) 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

.campaign-promo .desc i {
  color: rgba(255, 255, 255, 0.5);
}

/* Old "product-list-title" - remove or integrate */
.product-list-title {
  display: none;
  /* Redundant with box-title */
}

/* ========================================================================
   SECTION 4: BLOG & DISCUSSION SECTION REFINEMENT
   ======================================================================== */

/**
 * Discussion/Comment & Blog Wrapper
 * - Clean, minimal container
 * - No heavy borders or backgrounds
 * - Feels like lightweight content block
 */
.discussion-wrapper,
.blog-wrapper {
  padding: var(--space-xl);
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-xs);
}

.discussion-wrapper .box-title,
.blog-wrapper .box-title {
  margin-bottom: var(--space-lg) !important;
  position: static !important;
  /* Override legacy absolute positioning */
  height: auto !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.discussion-wrapper .box-title h2,
.blog-wrapper .box-title h2 {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: var(--space-sm);
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--ink-primary) !important;
  margin: 0 0 var(--space-md) 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.discussion-wrapper .box-title h2 i,
.blog-wrapper .box-title h2 i {
  font-size: 18px;
  color: var(--ink-tertiary) !important;
}

.discussion-wrapper .box-title h2 span,
.blog-wrapper .box-title h2 span {
  color: var(--ink-primary) !important;
}

.blog-wrapper .blog-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.blog-wrapper .blog-content a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms ease;
}

.blog-wrapper .blog-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ========================================================================
   SECTION 5: RESPONSIVE REFINEMENTS
   ======================================================================== */

/* Small screens: maintain 2-column grid */
@media (max-width: 449px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm);
    padding: var(--space-sm) !important;
  }

  .product-list li {
    min-height: 180px;
  }

  .product-list li a {
    padding: var(--space-sm);
    min-height: 0;
  }

  .product-list li a .thumb {
    height: 90px;
  }

  .product-list li a .thumb img {
    max-height: 80px;
  }

  .entry-paths-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }
}

/* Landscape phones & small tablets: 3 columns */
@media (min-width: 450px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-md) !important;
  }

  .product-list li {
    min-height: 200px;
  }

  .product-list li a .thumb {
    height: 110px;
  }

  .product-list li a .thumb img {
    max-height: 100px;
  }
}

/* Tablets: enhanced spacing */
@media (min-width: 600px) {
  .box-wrapper {
    padding: var(--space-3xl) var(--space-2xl) var(--space-2xl) var(--space-2xl);
  }

  .head-promo {
    flex-direction: row;
    align-items: center;
  }

  .head-promo .campaign-promo {
    flex: 0 0 40%;
  }

  .head-promo .poster-promo {
    flex: 1;
  }
}

/* Large tablets & desktop: 4 or 5 columns */
@media (min-width: 768px) {
  .product-list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }

  .product-list li {
    min-height: 220px;
  }
}

@media (min-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ========================================================================
   SECTION 6: HERO & SIDEBAR VISUAL ANCHORING
   ======================================================================== */

/**
 * Hero Section
 * - Constrained visual height
 * - Professional image presentation
 * - Clean, minimal container
 */
#home-static {
  max-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
}

#home-static img {
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/**
 * Sidebar Visual Anchoring (Desktop)
 * - Sidebar visually capped at hero bottom
 * - Subtle border creates boundary
 */
@media (min-width: 900px) {
  .content.container {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .content.container>nav,
  .content.container>.sidebar,
  .content.container>.navigation,
  .content.container>#sidebar {
    flex: 0 0 260px;
    max-width: 260px;
    /* border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-xl); */
  }

  .content.container>main {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 899px) {
  .content.container {
    display: block;
  }

  #home-static {
    max-height: none;
    border-radius: var(--radius-md);
  }

  #home-static img {
    max-height: none;
  }
}

/* ========================================================================
   SECTION 7: MICRO-INTERACTIONS & POLISH
   ======================================================================== */

/**
 * Focus States (Accessibility)
 * - Visible, accessible focus indicators
 * - Consistent accent color
 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/**
 * Loading States & Placeholders
 * - Subtle shimmer for lazy-loaded content
 */
#comments-placeholder {
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-tertiary);
  font-size: 13px;
}

/**
 * Smooth Scroll Behavior
 * - Modern, app-like page navigation
 */
html {
  scroll-behavior: smooth;
}

/* ========================================================================
   SECTION 8: OVERRIDES FOR LEGACY STYLES
   ======================================================================== */

/* Ensure box-title headings are always visible */
.box-wrapper .box-title h2,
.product-promo-wrapper .box-title h2,
div.box-wrapper .box-title h2,
.box-title>h2 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--ink-primary) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.box-wrapper .box-title h2 a,
.product-promo-wrapper .box-title h2 a,
.box-title>h2>a {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--ink-primary) !important;
  text-decoration: none;
}

/* EXTRA: counter legacy hiding techniques (clip/text-indent/transform) */
.content.container main .box-wrapper .box-title h2,
.content.container main .product-promo-wrapper .box-title h2,
.content.container main .box-title h2,
.content.container main .box-wrapper .box-title h2 a,
.content.container main .box-title>h2>a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--ink-primary) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-indent: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  -webkit-clip-path: none !important;
}

/* ensure anchor inside heading is visible and inherits color */
.content.container main .box-wrapper .box-title h2 a {
  display: inline-block !important;
  color: var(--ink-primary) !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* Remove old box shadows and borders that conflict */
.box-wrapper.mt-20,
.box-wrapper.mt-30 {
  border-color: var(--border-base) !important;
  background: var(--surface-base) !important;
}

/* Ensure main-wrapper doesn't restrict height */
.main-wrapper {
  height: auto !important;
  overflow: visible !important;
  min-height: 0 !important;
}

.entry-paths-section {
  height: auto !important;
  overflow: visible !important;
  clear: both;
  display: block;
}

/* Pattern background (if exists) - make it subtle */
.pattern-1 {
  opacity: 0.3;
  background-color: var(--surface-subtle);
}

/* ========================================================================
   END OF VISUAL HIERARCHY REFINEMENT
   ======================================================================== */

/* ========================================================================
   SECTION 9: CART & CHECKOUT REFINEMENT
   ======================================================================== */

/**
 * Cart Box
 * - Modern table styling with subtle separators
 * - Professional, clean presentation
 * - Consistent with product card system
 */
.cart-box {
  background: var(--surface-base) !important;
  border: 1px solid var(--border-base) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-lg) !important;
  box-shadow: var(--shadow-xs) !important;
  margin: 0 !important;
}

.cart-table {
  background: var(--surface-base) !important;
  border: none !important;
  border-spacing: 0 !important;
  border-collapse: collapse !important;
  width: 100% !important;
}

.cart-table th {
  background: var(--surface-subtle) !important;
  border-top: 1px solid var(--border-base) !important;
  border-bottom: 2px solid var(--border-base) !important;
  border-left: none !important;
  border-right: none !important;
  font-weight: 700 !important;
  color: var(--ink-primary) !important;
  padding: var(--space-md) !important;
  font-size: 13px !important;
  text-align: left !important;
}

.cart-table td {
  border-bottom: 1px solid var(--border-subtle) !important;
  border-left: none !important;
  border-right: none !important;
  padding: var(--space-md) !important;
  color: var(--ink-secondary) !important;
  font-size: 13px !important;
}

.cart-table tr:hover {
  background: var(--surface-subtle) !important;
}

.cart-table .item-product a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 200ms ease;
}

.cart-table .item-product a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.cart-table .item-total input[type="number"] {
  width: 50px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink-primary);
  background: var(--surface-base);
}

.cart-table .item-action button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-base) !important;
  background: var(--surface-muted) !important;
  color: var(--ink-secondary) !important;
  cursor: pointer !important;
  transition: all 160ms ease !important;
  font-size: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cart-table .item-action button:hover {
  background: #fee5cc !important;
  color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
}

.cart-table .cartotal {
  font-weight: 700 !important;
  color: var(--ink-primary) !important;
  background: var(--surface-subtle) !important;
  border-bottom: 2px solid var(--border-base) !important;
}

.cart-table .total-price {
  font-size: 16px !important;
  color: var(--accent-primary) !important;
  font-weight: 700 !important;
}

/**
 * Shipping Box
 * - Sidebar container with cohesive styling
 * - Grouped controls and summary
 */
.shipping-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-top: var(--space-xl) !important;
  position: relative !important;
}

.shipping-box .box-title {
  margin-bottom: var(--space-lg) !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.shipping-box .box-title h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.shipping-box .button-row {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-sm) !important;
  margin-top: var(--space-lg) !important;
}

.shipping-box .button-row button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-base) !important;
  background: var(--surface-muted) !important;
  color: var(--ink-primary) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 160ms ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  width: 100% !important;
  margin: 0 !important;
}

.shipping-box .button-row button:hover {
  border-color: var(--border-strong) !important;
  background: var(--surface-base) !important;
  box-shadow: var(--shadow-sm) !important;
}

.shipping-box .button-row button.orange {
  background: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  color: #ffffff !important;
}

.shipping-box .button-row button.orange:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #ffffff !important;
}

/* Desktop: shipping box positioned right */
@media (min-width: 900px) {
  .cart-box {
    width: calc(100% - 320px) !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .shipping-box {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    margin-top: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ========================================================================
   SECTION 10: PRODUCT DETAIL PURCHASE REFINEMENT
   ======================================================================== */

/* Reset cart-style absolute positioning when shipping box lives inside product detail */
.product-detail-wrapper .shipping-box {
  position: static !important;
  width: 100% !important;
  margin: var(--space-xl) 0 0 0 !important;
}

.product-detail-wrapper .product-purchase-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.product-detail-wrapper .product-purchase-box .box-wrapper {
  background: var(--surface-base) !important;
  border: 1px solid var(--border-base) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: var(--space-xl) !important;
}

.product-detail-wrapper .product-purchase-box .main-purchase {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-detail-wrapper .product-purchase-box .main-purchase .button {
  width: 100% !important;
  justify-content: center !important;
  font-weight: 700 !important;
}

.product-detail-wrapper .product-purchase-box .alt-purchase {
  border: 1px dashed var(--border-base) !important;
}

.product-detail-wrapper .product-purchase-box .alt-purchase .box-title {
  margin-bottom: var(--space-md) !important;
}

@media (min-width: 1024px) {
  .product-detail-wrapper .product-purchase-box {
    max-width: 420px;
    margin-left: auto;
  }

  /* Avoid overlaying content when scrolling; keep purchase card static */
  .product-detail-wrapper .product-purchase-box .box-wrapper {
    position: static !important;
    top: auto !important;
  }
}

/* Mobile: show inline purchase block near image/price, hide sidebar box */
@media (max-width: 900px) {
  .product-detail .purchase-desc {
    display: block !important;
    margin: var(--space-lg) 0 !important;
    padding: var(--space-lg) !important;
    background: var(--surface-base) !important;
    border: 1px solid var(--border-base) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xs) !important;
    position: sticky !important;
    top: var(--space-lg);
    z-index: 6;
  }

  .product-detail .purchase-desc .main-purchase {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .product-detail .purchase-desc .button {
    width: 100% !important;
    justify-content: center !important;
    font-weight: 700 !important;
  }

  .product-detail-wrapper .product-purchase-box {
    display: none !important;
  }
}