/**
 * Screwmart Hardware Shop - Master Stylesheet
 * Version: 1.0.0
 * PrestaShop 8.2 Hardware Theme
 * Brand Colors: Primary #E85D04 | Secondary #1A1A2E | Accent #F5A623 | Background #F7F7F7
 */

/* ==========================================================================
   1. CSS ROOT VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Palette - High-Trust Industrial Conversion Theme */
  --hw-primary: #EA580C;            /* Focused Action CTA */
  --hw-primary-hover: #C2410C;      /* Hover Depth */
  --hw-primary-light: #FFF7ED;      /* Soft Highlight Pill */
  --hw-primary-subtle: rgba(234, 88, 12, 0.12);
  --hw-secondary: #0F172A;          /* Deep Trust Navy */
  --hw-secondary-hover: #1E293B;    /* Lighter Navy */
  --hw-secondary-light: #1E293B;
  --hw-accent: #F59E0B;             /* Rating / Badge Amber */
  --hw-accent-hover: #D97706;
  --hw-accent-light: #FEF3C7;
  
  /* Neutral Palette */
  --hw-bg-page: #F8FAFC;            /* Clean Slate Gray */
  --hw-bg-card: #FFFFFF;
  --hw-bg-muted: #F1F5F9;
  --hw-border-subtle: #E2E8F0;
  --hw-border-strong: #CBD5E1;
  
  /* Text Colors */
  --hw-text-dark: #0F172A;
  --hw-text-muted: #64748B;
  --hw-text-light: #FFFFFF;
  --hw-text-orange: #EA580C;
  
  /* Status Colors & Conversion Trust Tokens */
  --hw-success: #16A34A;
  --hw-success-bg: #F0FDF4;
  --hw-trust-green: #16A34A;
  --hw-trust-green-bg: #F0FDF4;
  --hw-warning: #D97706;
  --hw-warning-bg: #FEF3C7;
  --hw-danger: #DC2626;
  --hw-danger-bg: #FEE2E2;
  --hw-info: #0284C7;
  --hw-info-bg: #E0F2FE;

  /* Typography */
  --hw-font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hw-font-mono: 'Consolas', 'Roboto Mono', 'SF Mono', monospace;

  /* Elevation Shadows */
  --hw-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --hw-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --hw-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --hw-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --hw-shadow-orange: 0 4px 14px rgba(234, 88, 12, 0.35);

  /* Border Radii */
  --hw-radius-xs: 3px;
  --hw-radius-sm: 6px;
  --hw-radius-md: 10px;
  --hw-radius-lg: 14px;
  --hw-radius-full: 9999px;

  /* Transitions */
  --hw-trans-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --hw-trans-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. GLOBAL RESETS & FOUNDATION
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--hw-font-primary);
  background-color: var(--hw-bg-page);
  color: var(--hw-text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hw-font-primary);
  font-weight: 700;
  color: var(--hw-secondary);
  letter-spacing: -0.015em;
  margin-top: 0;
}

a {
  color: var(--hw-primary);
  text-decoration: none;
  transition: color var(--hw-trans-fast);
}

a:hover, a:focus {
  color: var(--hw-primary-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

#wrapper {
  background-color: var(--hw-bg-page);
  padding: 24px 0 48px;
}

/* ==========================================================================
   3. TOP UTILITY BAR & BANNER
   ========================================================================== */
.header-banner {
  background: var(--hw-primary) !important;
  color: #FFFFFF !important;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.screwmart-utility-bar {
  background: var(--hw-primary);
  color: #FFFFFF;
  font-size: 13px;
  padding: 7px 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.screwmart-utility-bar a {
  color: #FFFFFF;
  text-decoration: none;
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.screwmart-utility-bar a:hover {
  color: var(--hw-accent);
}

.screwmart-utility-bar .promo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.screwmart-utility-bar .promo-pill {
  background: rgba(0, 0, 0, 0.22);
  padding: 2px 8px;
  border-radius: var(--hw-radius-xs);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.screwmart-utility-bar .utility-right {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
}

/* ==========================================================================
   4. MAIN HEADER & BRAND AREA
   ========================================================================== */
#header .header-nav,
.header-nav {
  background-color: var(--hw-secondary) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 6px 0 !important;
  font-size: 13px !important;
  color: #E2E4E8 !important;
}

#header .header-nav a,
.header-nav a {
  color: #E2E8F0 !important;
  text-decoration: none !important;
  transition: color var(--hw-trans-fast) !important;
}

#header .header-nav a:hover,
.header-nav a:hover {
  color: var(--hw-accent) !important;
}

/* Call us phone link - High contrast amber badge for clear visibility */
#header .header-nav #contact-link,
#header .header-nav .contact-link {
  color: #CBD5E0 !important;
  font-size: 13px !important;
}

#header .header-nav #contact-link a,
#header .header-nav .contact-link a,
#_desktop_contact_link #contact-link a,
#_mobile_contact_link #contact-link a {
  color: #F5A623 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  background: rgba(245, 166, 35, 0.15) !important;
  border: 1px solid rgba(245, 166, 35, 0.35) !important;
  display: inline-block !important;
  transition: all var(--hw-trans-fast) !important;
}

#header .header-nav #contact-link a:hover,
#header .header-nav .contact-link a:hover {
  color: #FFFFFF !important;
  background: var(--hw-primary) !important;
  border-color: var(--hw-primary) !important;
}

/* Ensure the master header acts as the positioning anchor */
#header {
  position: relative;
  z-index: 1000;
}

.header-top {
  background-color: var(--hw-secondary) !important;
  padding: 16px 0 14px !important;
  border-bottom: 3px solid var(--hw-primary);
  box-shadow: var(--hw-shadow-md);
  position: relative;
  z-index: 100;
  transition: all var(--hw-trans-normal);
}

/* Fix sticky header layering & prevent content jump */
#header.is-sticky {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

#header.is-sticky .header-top {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1051 !important;
  padding: 8px 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

#header.is-sticky .screwmart-utility-bar,
#header.is-sticky .header-banner,
#header.is-sticky .header-nav {
  display: none !important;
}

#header.is-sticky .screwmart-nav-wrapper {
  display: none !important;
}

/* Prevent body elements from showing through */
#wrapper,
#content-wrapper,
.screwmart-hero,
.featured-products {
  position: relative;
  z-index: 1;
}

/* Desktop Header Flex Container */
.desktop-header-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 20px !important;
}

.header-logo-area {
  flex: 0 0 auto !important;
  min-width: 330px !important;
  max-width: 420px !important;
}

.header-logo-area .screwmart-logo {
  font-size: 24px !important;
  white-space: nowrap !important;
}

.header-right-area {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
}

.header-right-area .header-top-right {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* Sticky Desktop Hamburger Menu */
.sticky-desktop-hamburger {
  display: none;
  position: relative;
  flex: 0 0 auto !important;
}

#header.is-sticky .sticky-desktop-hamburger {
  display: inline-block !important;
}

.btn-sticky-categories {
  display: inline-flex;
  align-items: center;
  background: #E85D04;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(232, 93, 4, 0.35);
}

.btn-sticky-categories:hover {
  background: #D04F00;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-sticky-categories .hamburger-symbol {
  font-size: 16px;
  margin-right: 7px;
  line-height: 1;
}

.sticky-categories-popup {
  display: none;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: 280px !important;
  background: #FFFFFF !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22) !important;
  border: 1px solid #E2E8F0 !important;
  z-index: 1100 !important;
  overflow: hidden !important;
  animation: fadeInPopup 0.2s ease-out;
}

.sticky-categories-popup.is-open {
  display: block !important;
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sticky-categories-popup .popup-header {
  padding: 10px 14px;
  background: #1A1A2E;
  color: #FFFFFF;
  font-size: 13px;
  display: flex;
  flex-direction: column;
}

.sticky-categories-popup .company-badge {
  font-size: 10px;
  color: #F5A623;
  margin-top: 2px;
}

.sticky-categories-popup .popup-cat-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.sticky-categories-popup .popup-cat-list li a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #1E293B;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sticky-categories-popup .popup-cat-list li a:hover {
  background: #FFF0E6;
  color: #E85D04;
}

.sticky-categories-popup .popup-cat-list li a span {
  margin-right: 10px;
  font-size: 16px;
  width: 22px;
  text-align: center;
}

/* Sticky Mobile Bar */
.sticky-mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  #header.is-sticky .sticky-mobile-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
  }

  .sticky-mobile-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #E85D04;
    color: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
  }

  .sticky-mobile-menu-trigger i {
    font-size: 24px;
    color: #FFFFFF;
  }

  .sticky-mobile-logo-wrap .screwmart-logo {
    font-size: 18px;
  }

  .sticky-mobile-cart-wrap .sticky-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #FFFFFF;
    text-decoration: none;
  }

  .sticky-mobile-cart-wrap .sticky-cart-link i {
    font-size: 20px;
  }
}


/* Text Logo Styling */
.screwmart-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  font-family: var(--hw-font-primary);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1;
}

.screwmart-logo .logo-icon {
  margin-right: 8px;
  font-size: 26px;
  line-height: 1;
  display: inline-block;
  transform: rotate(-10deg);
  transition: transform var(--hw-trans-fast);
}

.screwmart-logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

.screwmart-logo .brand-screw {
  color: #FFFFFF;
}

.screwmart-logo .brand-mart {
  color: var(--hw-primary);
}

.screwmart-tagline {
  display: block;
  font-size: 10px;
  color: var(--hw-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-top: 3px;
}

/* Header Search Form */
.screwmart-search-widget,
#search_widget {
  position: relative;
  width: 100%;
}

.screwmart-search-widget form,
#search_widget form {
  display: flex !important;
  position: relative !important;
  align-items: center !important;
  width: 100% !important;
}

#search_widget form i.search,
.screwmart-search-widget form i.search {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #8C9BAE !important;
  font-size: 20px !important;
  pointer-events: none !important;
  z-index: 2 !important;
  line-height: 1 !important;
}

.screwmart-search-widget input[type="text"],
#search_widget input[type="text"] {
  width: 100% !important;
  height: 44px !important;
  background-color: #FFFFFF !important;
  border: 2px solid transparent !important;
  border-radius: var(--hw-radius-sm) !important;
  padding: 0 54px 0 44px !important; /* 44px left padding guarantees icon never overlaps placeholder */
  font-size: 14px !important;
  color: var(--hw-text-dark) !important;
  font-family: var(--hw-font-primary) !important;
  transition: all var(--hw-trans-fast) !important;
}

.screwmart-search-widget input[type="text"]:focus,
#search_widget input[type="text"]:focus {
  outline: none !important;
  border-color: var(--hw-primary) !important;
  box-shadow: 0 0 0 3px var(--hw-primary-subtle) !important;
}

.screwmart-search-widget button[type="submit"],
#search_widget button[type="submit"],
#search_widget .search-submit-btn {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 50px !important;
  height: 44px !important;
  background: var(--hw-primary) !important;
  border: none !important;
  border-radius: 0 var(--hw-radius-sm) var(--hw-radius-sm) 0 !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background var(--hw-trans-fast) !important;
  z-index: 3 !important;
}

.screwmart-search-widget button[type="submit"]:hover,
#search_widget button[type="submit"]:hover,
#search_widget .search-submit-btn:hover {
  background: var(--hw-primary-hover) !important;
}

#search_widget button[type="submit"] i.material-icons,
#search_widget .search-submit-btn i.material-icons {
  font-size: 22px !important;
  color: #FFFFFF !important;
}

/* User Account & Cart */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.screwmart-user-info a,
#_desktop_user_info a {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--hw-radius-sm);
  transition: background var(--hw-trans-fast);
}

.screwmart-user-info a:hover,
#_desktop_user_info a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hw-accent);
}

.screwmart-cart-widget,
#_desktop_cart {
  position: relative;
}

.screwmart-cart-btn,
#_desktop_cart .blockcart {
  background: var(--hw-primary);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--hw-radius-sm);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--hw-shadow-orange);
  transition: all var(--hw-trans-fast);
}

.screwmart-cart-btn:hover,
#_desktop_cart .blockcart:hover {
  background: var(--hw-primary-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.screwmart-cart-count,
#_desktop_cart .cart-products-count {
  background: #FFFFFF;
  color: var(--hw-primary);
  padding: 2px 7px;
  border-radius: var(--hw-radius-full);
  font-size: 12px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

/* ==========================================================================
   5. NAVIGATION & MEGA MENU
   ========================================================================== */
#_desktop_top_menu {
  display: none !important;
}

#header .screwmart-nav-wrapper {
  background-color: #1A1A2E !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 3px solid #E85D04 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

#header .screwmart-main-menu {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

#header .screwmart-main-menu > li {
  position: relative !important;
}

#header .screwmart-main-menu > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 14px 11px !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease !important;
  border-bottom: 3px solid transparent !important;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

#header .screwmart-main-menu > li > a span {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

#header .screwmart-main-menu > li > a span:first-child {
  color: #F5A623 !important;
  font-size: 14px !important;
}

#header .screwmart-main-menu > li:hover > a,
#header .screwmart-main-menu > li.active > a {
  color: #F5A623 !important;
  background: rgba(232, 93, 4, 0.25) !important;
  border-bottom-color: #E85D04 !important;
}

#header .screwmart-main-menu > li:hover > a span {
  color: #F5A623 !important;
}

#header .screwmart-cat-toggle {
  background: #E85D04 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  padding: 14px 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: 4px 4px 0 0 !important;
  text-decoration: none !important;
}

#header .screwmart-cat-toggle span {
  color: #FFFFFF !important;
}

#header .screwmart-cat-toggle:hover {
  background: #C94C00 !important;
  color: #FFFFFF !important;
}

/* Dropdown Submenu */
.screwmart-main-menu .dropdown-menu,
#_desktop_top_menu .popover {
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-top: 3px solid var(--hw-primary);
  border-radius: 0 0 var(--hw-radius-sm) var(--hw-radius-sm);
  box-shadow: var(--hw-shadow-lg);
  padding: 16px;
  min-width: 240px;
  z-index: 1000;
}

.screwmart-main-menu .dropdown-menu a,
#_desktop_top_menu .popover a {
  color: var(--hw-text-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--hw-radius-xs);
  transition: all var(--hw-trans-fast);
}

.screwmart-main-menu .dropdown-menu a:hover,
#_desktop_top_menu .popover a:hover {
  background-color: var(--hw-primary-light);
  color: var(--hw-primary);
  padding-left: 16px;
}

/* All Categories Pill Button */
.screwmart-cat-toggle {
  background: var(--hw-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 13px 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.screwmart-cat-toggle:hover {
  background: var(--hw-primary-hover) !important;
}

/* ==========================================================================
   6. HOMEPAGE HERO SECTION
   ========================================================================== */
.screwmart-hero {
  position: relative;
  background: linear-gradient(135deg, #1A1A2E 0%, #292947 60%, #3B2A20 100%);
  border-radius: var(--hw-radius-md);
  padding: 48px 40px;
  color: #FFFFFF;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--hw-shadow-md);
}

.screwmart-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.screwmart-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid var(--hw-primary);
  color: var(--hw-accent);
  padding: 4px 14px;
  border-radius: var(--hw-radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.screwmart-hero h1 {
  color: #FFFFFF;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.screwmart-hero h1 .highlight {
  color: var(--hw-primary);
}

.screwmart-hero p.subtitle {
  color: #D1D5DB;
  font-size: 16px;
  max-width: 580px;
  margin-bottom: 26px;
}

.screwmart-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-screwmart-primary {
  background: var(--hw-primary);
  color: #FFFFFF;
  border: 2px solid var(--hw-primary);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--hw-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--hw-shadow-orange);
  transition: all var(--hw-trans-fast);
}

.btn-screwmart-primary:hover {
  background: var(--hw-primary-hover);
  border-color: var(--hw-primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-screwmart-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--hw-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--hw-trans-fast);
}

.btn-screwmart-secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ==========================================================================
   7. REASSURANCE TRUST BAR
   ========================================================================== */
.screwmart-reassurance {
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-md);
  padding: 24px 20px;
  box-shadow: var(--hw-shadow-sm);
  margin-bottom: 36px;
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.reassurance-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-right: 1px solid var(--hw-border-subtle);
  transition: transform var(--hw-trans-fast);
}

.reassurance-card:last-child {
  border-right: none;
}

.reassurance-card:hover {
  transform: translateY(-2px);
}

.reassurance-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--hw-radius-sm);
  background: var(--hw-primary-light);
  color: var(--hw-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.reassurance-body h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--hw-secondary);
}

.reassurance-body p {
  font-size: 12px;
  color: var(--hw-text-muted);
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   8. CATEGORY CARDS GRID
   ========================================================================== */
.hw-categories-section {
  margin-bottom: 44px;
}

.hw-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--hw-border-subtle);
  padding-bottom: 10px;
}

.hw-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--hw-secondary);
  position: relative;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hw-section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 54px;
  height: 3px;
  background: var(--hw-primary);
  border-radius: var(--hw-radius-full);
}

.hw-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--hw-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hw-view-all:hover {
  color: var(--hw-primary-hover);
  text-decoration: underline;
}

.tool-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card {
  background: var(--hw-bg-card);
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--hw-trans-fast);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--hw-trans-fast);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--hw-primary);
  box-shadow: var(--hw-shadow-md);
}

.tool-card:hover::before {
  background: var(--hw-primary);
}

.tool-card-icon {
  width: 56px;
  height: 56px;
  background: var(--hw-bg-muted);
  border-radius: var(--hw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  transition: all var(--hw-trans-fast);
}

.tool-card:hover .tool-card-icon {
  background: var(--hw-primary);
  color: #FFFFFF;
}

.tool-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hw-secondary);
  margin-bottom: 6px;
}

.tool-card-desc {
  font-size: 12px;
  color: var(--hw-text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.tool-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--hw-primary);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   9. HARDWARE BRAND SHOWCASE
   ========================================================================== */
.hw-brands-strip {
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.hw-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hw-brand-pill {
  padding: 10px 20px;
  background: var(--hw-bg-muted);
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-sm);
  font-weight: 800;
  font-size: 14px;
  color: var(--hw-secondary);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--hw-trans-fast);
}

.hw-brand-pill:hover {
  background: var(--hw-secondary);
  color: #FFFFFF;
  border-color: var(--hw-secondary);
  transform: translateY(-2px);
}

.hw-brand-pill .pill-tag {
  background: var(--hw-primary);
  color: #FFFFFF;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--hw-radius-xs);
  font-weight: 700;
}

/* ==========================================================================
   10. CONTRACTOR & BULK PROMO BANNER
   ========================================================================== */
.hw-promo-banner {
  background: linear-gradient(90deg, #1A1A2E 0%, #2A2440 60%, #E85D04 100%);
  border-radius: var(--hw-radius-md);
  padding: 32px 36px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
  box-shadow: var(--hw-shadow-md);
}

.hw-promo-text h3 {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hw-promo-text p {
  color: #E2E4E8;
  font-size: 14px;
  margin: 0;
}

.hw-promo-action .btn-promo {
  background: #FFFFFF;
  color: var(--hw-secondary);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--hw-radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--hw-trans-fast);
}

.hw-promo-action .btn-promo:hover {
  background: var(--hw-accent);
  color: var(--hw-secondary);
  transform: translateY(-2px);
}

/* ==========================================================================
   11. PRODUCT CARDS & MINIATURES
   ========================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Modern Elevated Product Card */
.product-miniature,
.hw-product-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 16px !important;
  position: relative !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Hover: Elegant Lift with Deepening Shadow (No Harsh Colored Border) */
.product-miniature:hover,
.hw-product-card:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05) !important;
  transform: translateY(-4px) !important;
}

.product-miniature .thumbnail-container {
  position: relative;
  text-align: center;
  margin-bottom: 12px;
  background: #F8FAFC !important;
  border-radius: 8px !important;
  padding: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-miniature .thumbnail-container img {
  max-height: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.25s ease !important;
}

.product-miniature:hover .thumbnail-container img {
  transform: scale(1.05) !important;
}

.product-miniature .product-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--hw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-miniature .product-title,
.product-miniature h3.h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.product-miniature .product-title a,
.product-miniature h3.h3 a {
  color: var(--hw-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}

.product-miniature .product-title a:hover,
.product-miniature h3.h3 a:hover {
  color: var(--hw-primary);
}

/* Hardware Spec Badges in miniature */
.hw-mini-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.hw-spec-tag {
  background: var(--hw-bg-muted);
  color: var(--hw-text-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--hw-radius-xs);
}

/* Pricing Section: Clear Visual Dominance */
.product-price-and-shipping {
  margin-top: auto !important;
  padding-top: 12px !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.product-price-and-shipping .price {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
}

.product-price-and-shipping .regular-price {
  font-size: 13px !important;
  color: #94A3B8 !important;
  text-decoration: line-through !important;
}

.product-price-and-shipping .discount-percentage {
  background: var(--hw-success-bg);
  color: var(--hw-success);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--hw-radius-xs);
}

/* High-Converting Full-Width Card Button */
.product-miniature .hw-add-to-cart-btn,
.product-miniature .btn-primary {
  width: 100% !important;
  background: #FFF7ED !important;
  border: 1.5px solid var(--hw-primary) !important;
  color: var(--hw-primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  margin-top: 12px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.product-miniature:hover .hw-add-to-cart-btn,
.product-miniature:hover .btn-primary,
.product-miniature .hw-add-to-cart-btn:hover,
.product-miniature .btn-primary:hover {
  background: var(--hw-primary) !important;
  border-color: var(--hw-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3) !important;
}

/* ==========================================================================
   12. HARDWARE BADGE SYSTEM
   ========================================================================== */
.screwmart-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--hw-radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-stock-in {
  background: var(--hw-success-bg);
  color: var(--hw-success);
  border: 1px solid rgba(27, 135, 56, 0.2);
}

.badge-stock-low {
  background: var(--hw-warning-bg);
  color: var(--hw-warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-heavy-duty {
  background: #1A1A2E;
  color: var(--hw-accent);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.badge-isi-certified {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid rgba(3, 105, 161, 0.2);
}

.badge-bulk-discount {
  background: var(--hw-primary-light);
  color: var(--hw-primary);
  border: 1px solid rgba(232, 93, 4, 0.25);
}

/* Badges: Clean, High-Trust Labels */
.product-flags {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  z-index: 5 !important;
}

.product-flags li.product-flag {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15) !important;
}

.product-flags li.product-flag.new {
  background: #0F172A !important;
  color: #FFFFFF !important;
}

.product-flags li.product-flag.discount,
.product-flags li.product-flag.on-sale {
  background: #DC2626 !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   13. PRODUCT DETAIL PAGE (PDP)
   ========================================================================== */
#product {
  background: var(--hw-bg-page);
}

#product .page-content {
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-md);
  padding: 28px;
  box-shadow: var(--hw-shadow-sm);
  margin-bottom: 30px;
}

#product h1.h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--hw-secondary);
  line-height: 1.25;
  margin-bottom: 12px;
}

#product .current-price span.current-price-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--hw-primary);
  letter-spacing: -0.02em;
}

#product .product-reference {
  font-family: var(--hw-font-mono);
  font-size: 12px;
  color: var(--hw-text-muted);
}

/* Quantity input control */
.product-quantity {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-quantity .qty-control-wrapper {
  display: inline-flex;
  border: 2px solid var(--hw-border-strong);
  border-radius: var(--hw-radius-sm);
  overflow: hidden;
}

.product-quantity .qty-btn {
  background: var(--hw-bg-muted);
  border: none;
  width: 38px;
  height: 42px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hw-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--hw-trans-fast);
}

.product-quantity .qty-btn:hover {
  background: var(--hw-primary);
  color: #FFFFFF;
}

.product-quantity input#quantity_wanted {
  width: 50px;
  height: 42px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--hw-secondary);
}

.product-quantity input#quantity_wanted:focus {
  outline: none;
}

/* Primary Add to Cart */
.add-to-cart .btn-primary {
  background: var(--hw-primary) !important;
  border-color: var(--hw-primary) !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 12px 36px !important;
  border-radius: var(--hw-radius-sm) !important;
  box-shadow: var(--hw-shadow-orange) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--hw-trans-fast) !important;
}

.add-to-cart .btn-primary:hover {
  background: var(--hw-primary-hover) !important;
  border-color: var(--hw-primary-hover) !important;
  transform: translateY(-2px);
}

/* Hardware Specification Table */
.hw-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-sm);
  overflow: hidden;
}

.hw-spec-table th,
.hw-spec-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hw-border-subtle);
}

.hw-spec-table th {
  width: 35%;
  background: #F8F9FA;
  font-weight: 700;
  color: var(--hw-secondary);
  text-align: left;
}

.hw-spec-table td {
  color: var(--hw-text-dark);
}

.hw-spec-table tr:last-child th,
.hw-spec-table tr:last-child td {
  border-bottom: none;
}

/* Bulk Pricing Table */
.bulk-price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-sm);
  overflow: hidden;
}

.bulk-price-table thead {
  background: var(--hw-secondary);
  color: #FFFFFF;
}

.bulk-price-table th {
  padding: 10px 14px;
  font-weight: 700;
  text-align: left;
}

.bulk-price-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--hw-border-subtle);
  color: var(--hw-text-dark);
}

.bulk-price-table tr:hover td {
  background-color: var(--hw-primary-light);
}

.bulk-price-table .discount-badge {
  color: var(--hw-primary);
  font-weight: 800;
}

/* ==========================================================================
   14. CATEGORY PAGE & SIDEBAR FILTERS
   ========================================================================== */
#left-column #search_filters,
#search_filters_wrapper {
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-md);
  padding: 20px;
  box-shadow: var(--hw-shadow-sm);
}

#search_filters .facet .facet-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--hw-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hw-border-subtle);
}

#search_filters .facet .facet-label a {
  color: var(--hw-text-dark);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

#search_filters .facet .facet-label a:hover {
  color: var(--hw-primary);
}

#search_filters .custom-checkbox input[type="checkbox"]:checked + span .checkbox-checked {
  background: var(--hw-primary);
  border-color: var(--hw-primary);
}

/* Active Filter Badges */
#search_filters .js-search-filters-clear-all {
  color: var(--hw-danger);
  font-weight: 700;
  font-size: 12px;
}

/* Category Header Banner */
.block-category {
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--hw-shadow-sm);
  border-left: 5px solid var(--hw-primary);
}

.block-category h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--hw-secondary);
  margin-bottom: 8px;
}

.block-category .category-description {
  color: var(--hw-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   15. BREADCRUMBS
   ========================================================================== */
.breadcrumb {
  background: transparent;
  padding: 12px 0 16px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 6px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--hw-text-muted);
}

.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  font-size: 14px;
  color: var(--hw-text-muted);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb li a {
  color: var(--hw-text-muted);
}

.breadcrumb li a:hover {
  color: var(--hw-primary);
}

.breadcrumb li:last-child span {
  color: var(--hw-secondary);
  font-weight: 700;
}

/* ==========================================================================
   16. CART & CHECKOUT
   ========================================================================== */
.cart-grid-body,
.cart-summary {
  background: #FFFFFF;
  border: 1px solid var(--hw-border-subtle);
  border-radius: var(--hw-radius-md);
  padding: 24px;
  box-shadow: var(--hw-shadow-sm);
}

.cart-summary-line.cart-total .value {
  color: var(--hw-primary);
  font-size: 22px;
  font-weight: 900;
}

.checkout.cart-detailed-actions .btn-primary,
.checkout-button .btn-primary {
  background: var(--hw-primary) !important;
  border-color: var(--hw-primary) !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 14px 20px !important;
  border-radius: var(--hw-radius-sm) !important;
  box-shadow: var(--hw-shadow-orange) !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.checkout.cart-detailed-actions .btn-primary:hover,
.checkout-button .btn-primary:hover {
  background: var(--hw-primary-hover) !important;
  border-color: var(--hw-primary-hover) !important;
}

/* GST & Business Invoice Notice */
.screwmart-gst-notice {
  background: var(--hw-info-bg);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--hw-radius-sm);
  padding: 12px 16px;
  font-size: 12px;
  color: #075985;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* ==========================================================================
   17. SCREWMART 5-COLUMN FOOTER
   ========================================================================== */
#footer,
.footer-container {
  background: var(--hw-secondary) !important;
  color: #D1D5DB !important;
  padding-top: 52px;
  border-top: 4px solid var(--hw-primary);
  position: relative;
}

.screwmart-footer-top {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.screwmart-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  gap: 32px;
}

.footer-col h4,
.footer-col h3 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  position: relative;
}

.footer-col h4::after,
.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--hw-primary);
}

.footer-col p {
  color: #9CA3AF;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links li a {
  color: #D1D5DB;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--hw-trans-fast);
}

.footer-links li a:hover {
  color: var(--hw-accent);
  padding-left: 4px;
}

/* Social Icons in Footer */
.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--hw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  transition: all var(--hw-trans-fast);
}

.footer-social-link:hover {
  background: var(--hw-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Contact Cards in Col 5 */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #D1D5DB;
  margin-bottom: 12px;
}

.footer-contact-item .contact-icon {
  color: var(--hw-primary);
  font-size: 16px;
  margin-top: 2px;
}

/* App Download Badges */
.app-download-badges {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.app-badge-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--hw-radius-sm);
  padding: 6px 12px;
  color: #FFFFFF;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--hw-trans-fast);
}

.app-badge-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: var(--hw-accent);
}

/* Bottom Bar */
.screwmart-footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9CA3AF;
  flex-wrap: wrap;
  gap: 14px;
}

.screwmart-footer-bottom a {
  color: #D1D5DB;
}

.screwmart-footer-bottom a:hover {
  color: var(--hw-primary);
}

.payment-gateways-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-chip {
  background: #FFFFFF;
  color: var(--hw-secondary);
  font-weight: 800;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: var(--hw-radius-xs);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   18. FLOATING UTILITIES (BACK TO TOP & WHATSAPP)
   ========================================================================== */
#screwmart-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--hw-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--hw-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--hw-shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--hw-trans-fast);
  z-index: 999;
}

#screwmart-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#screwmart-back-to-top:hover {
  background: var(--hw-primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--hw-shadow-orange);
}

/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1199px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .tool-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .screwmart-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
  .screwmart-footer-grid .footer-col:nth-child(4) {
    display: none;
  }
}

@media (max-width: 991px) {
  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reassurance-card:nth-child(2) {
    border-right: none;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screwmart-promo-banner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .screwmart-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-actions {
    gap: 10px;
  }
  .screwmart-main-menu {
    display: none;
  }
}

@media (max-width: 767px) {
  .screwmart-utility-bar {
    display: none;
  }
  .screwmart-hero {
    padding: 30px 20px;
  }
  .screwmart-hero h1 {
    font-size: 26px;
  }
  .screwmart-hero p.subtitle {
    font-size: 14px;
  }
  .reassurance-grid {
    grid-template-columns: 1fr;
  }
  .reassurance-card {
    border-right: none;
    border-bottom: 1px solid var(--hw-border-subtle);
    padding-bottom: 12px;
  }
  .reassurance-card:last-child {
    border-bottom: none;
  }
  .products {
    grid-template-columns: 1fr;
  }
  .tool-category-grid {
    grid-template-columns: 1fr;
  }
  .screwmart-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .screwmart-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .header-top {
    padding: 10px 0 !important;
  }
  .screwmart-logo {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .btn-screwmart-primary,
  .btn-screwmart-secondary {
    width: 100%;
    justify-content: center;
  }
}

.block_newsletter, #blockEmailSubscription_ { display: none !important; }


/* ==========================================================================
   20. HARDWARE NAVIGATION BAR & SUBCATEGORIES REFINEMENT
   ========================================================================== */

/* Fix horizontal navigation bar alignment - single clean row with scroll if narrow */
#header .screwmart-nav-wrapper {
  background-color: #1A1A2E !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 3px solid #E85D04 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

#header .screwmart-nav-wrapper .container {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

#header .screwmart-main-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  min-width: max-content !important;
}

#header .screwmart-main-menu > li {
  flex-shrink: 0 !important;
}

#header .screwmart-main-menu > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 12px 10px !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border-bottom: 3px solid transparent !important;
}

#header .screwmart-cat-toggle {
  background: #E85D04 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  padding: 12px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 4px 4px 0 0 !important;
}

/* Category header cover image fix */
.block-category {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-left: 5px solid #E85D04 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.block-category .block-category-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
}

.block-category .category-cover img {
  max-height: 120px !important;
  max-width: 220px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  border: 1px solid #E2E8F0 !important;
  padding: 4px !important;
  background: #FFFFFF !important;
}

/* Subcategories Hardware Cards Grid */
#subcategories.screwmart-subcategories,
#subcategories {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

#subcategories .subcategory-heading {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #1A1A2E !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #F1F5F9 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

#subcategories .subcategories-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#subcategories .subcategories-list li {
  margin: 0 !important;
}

.subcategory-card-link,
#subcategories .subcategories-list li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 14px 10px !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.subcategory-card-link:hover,
#subcategories .subcategories-list li a:hover {
  background: #FFFFFF !important;
  border-color: #E85D04 !important;
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.15) !important;
  transform: translateY(-2px) !important;
}

.subcategory-card-link .subcategory-image,
#subcategories .subcategories-list li .subcategory-image {
  width: 90px !important;
  height: 90px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  border: 1px solid #F1F5F9 !important;
}

.subcategory-card-link .subcategory-image img,
#subcategories .subcategories-list li .subcategory-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.subcategory-placeholder-icon {
  font-size: 36px !important;
  color: #E85D04 !important;
}

.subcategory-card-link .subcategory-name,
#subcategories .subcategories-list li h5,
#subcategories .subcategories-list li .subcategory-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1A1A2E !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  transition: color 0.2s ease !important;
}

.subcategory-card-link:hover .subcategory-name,
#subcategories .subcategories-list li a:hover .subcategory-name {
  color: #E85D04 !important;
}

/* Product Card Hardware Polish */
.product-miniature {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 14px !important;
  transition: all 0.2s ease !important;
}

.product-miniature:hover {
  border-color: #E85D04 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.product-price-and-shipping .price {
  color: #E85D04 !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}

.product-price-and-shipping .regular-price {
  color: #94A3B8 !important;
  text-decoration: line-through !important;
  font-size: 13px !important;
  margin-right: 6px !important;
}

/* Brand list sidebar polish */
#search_filters_brands,
.brands-sort {
  border-radius: 8px !important;
}

#carousel, .carousel, #carousel.carousel, #homeslider { display: none !important; }

/* ==========================================================================
   CART QUANTITY SPINNER & TOUCHSPIN ALIGNMENT FIX
   ========================================================================== */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type=number] {
  -moz-appearance: textfield !important;
}

.product-line-actions .qty {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.product-line-actions .bootstrap-touchspin,
.product-line-grid-right .bootstrap-touchspin {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  height: 38px !important;
  width: auto !important;
  max-width: 130px !important;
  background: #FFFFFF !important;
}

.product-line-actions .bootstrap-touchspin input.js-cart-line-product-quantity,
.product-line-grid-right .bootstrap-touchspin input.js-cart-line-product-quantity {
  height: 100% !important;
  width: 48px !important;
  text-align: center !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #1A1A2E !important;
  background: #FFFFFF !important;
}

.product-line-actions .bootstrap-touchspin .input-group-btn-vertical,
.product-line-grid-right .bootstrap-touchspin .input-group-btn-vertical {
  display: flex !important;
  flex-direction: column !important;
  width: 28px !important;
  height: 100% !important;
  border-left: 1px solid #CBD5E1 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}

.product-line-actions .bootstrap-touchspin .btn-touchspin,
.product-line-grid-right .bootstrap-touchspin .btn-touchspin {
  flex: 1 1 50% !important;
  height: 50% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #F8FAFC !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.product-line-actions .bootstrap-touchspin .btn-touchspin:hover,
.product-line-grid-right .bootstrap-touchspin .btn-touchspin:hover {
  background: #E2E8F0 !important;
  color: #E85D04 !important;
}

.product-line-actions .bootstrap-touchspin .btn-touchspin.bootstrap-touchspin-up {
  border-bottom: 1px solid #CBD5E1 !important;
}

.product-line-actions .bootstrap-touchspin .btn-touchspin i {
  font-size: 13px !important;
  line-height: 1 !important;
  color: #475569 !important;
}

/* Reassurance module cards styling in checkout */
#block-reassurance {
  margin-top: 15px !important;
}

#block-reassurance li {
  padding: 12px 14px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
}

#block-reassurance .block-reassurance-item .item-title {
  font-weight: 700 !important;
  color: #1A1A2E !important;
  font-size: 14px !important;
}

#block-reassurance .block-reassurance-item p {
  color: #64748B !important;
  font-size: 12px !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}



/* ==========================================================================
   26. HOMEPAGE PRODUCT SECTIONS & ALL-PRODUCTS BUTTON CENTERING
   ========================================================================== */
section.featured-products {
  margin-top: 40px !important;
  margin-bottom: 45px !important;
  padding-bottom: 25px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  text-align: center !important;
  clear: both !important;
}

section.featured-products .products-section-header,
section.featured-products .products-section-title,
.products-section-title {
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--hw-secondary) !important;
  margin-bottom: 25px !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  text-transform: uppercase !important;
}

section.featured-products .products-section-title::after {
  content: "" !important;
  display: block !important;
  width: 60px !important;
  height: 3px !important;
  background: var(--hw-primary) !important;
  margin: 10px auto 0 !important;
  border-radius: 2px !important;
}

section.featured-products .products.row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important; /* Centered product row when fewer products */
  gap: 20px 0 !important;
  text-align: left !important;
}

/* Centered Button Wrapper */
.all-products-btn-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 32px auto 10px auto !important;
  clear: both !important;
  text-align: center !important;
}

/* Override Classic theme's float-md-right on all-product-link */
.all-product-link,
a.all-product-link,
#content .all-product-link,
section.featured-products .all-product-link,
.float-md-right.all-product-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin: 28px auto 10px auto !important;
  padding: 11px 32px !important;
  background: #FFFFFF !important;
  color: var(--hw-primary) !important;
  border: 2px solid var(--hw-primary) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12) !important;
  transition: all 0.25s ease !important;
  clear: both !important;
}

.all-product-link:hover,
a.all-product-link:hover,
#content .all-product-link:hover,
section.featured-products .all-product-link:hover,
.float-md-right.all-product-link:hover {
  background: var(--hw-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--hw-primary) !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

.all-product-link i.material-icons {
  font-size: 18px !important;
  margin-left: 6px !important;
  transition: transform 0.2s ease !important;
}

.all-product-link:hover i.material-icons {
  transform: translateX(3px) !important;
}

/* ==========================================================================
   27. CMS PAGES STYLING (ABOUT US, DELIVERY, LEGAL, TERMS, PAYMENT)
   ========================================================================== */
#cms .page-content.page-cms {
  background: #FFFFFF;
  padding: 35px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  margin-bottom: 40px;
}

.kuringi-about-wrapper .about-hero-box {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D3748 100%);
  color: #FFFFFF;
  padding: 35px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 6px solid #E85D04;
}

.kuringi-about-wrapper .about-hero-box h2 {
  color: #FFFFFF !important;
  font-size: 28px !important;
  font-weight: 800 !important;
}

.kuringi-cms-content h2,
#cms h1.page-heading,
#cms h2 {
  color: #1A1A2E !important;
  font-weight: 800 !important;
  font-size: 26px !important;
  margin-bottom: 20px !important;
  border-bottom: 2px solid #E85D04 !important;
  padding-bottom: 10px !important;
  display: inline-block !important;
}

.kuringi-cms-content h3,
#cms h3 {
  color: #1A1A2E !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  margin-top: 24px !important;
  margin-bottom: 10px !important;
}

.kuringi-cms-content p,
#cms p {
  color: #4A5568 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 14px !important;
}

.kuringi-cms-content ul,
#cms ul {
  padding-left: 20px !important;
  margin-bottom: 20px !important;
}

.kuringi-cms-content ul li,
#cms ul li {
  color: #4A5568 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 8px !important;
}
