/* Ziroli Store — matched to original site colors */

/* Color palette:
   --dark:    #2d2d2d  (top bar, nav bg)
   --red:     #c53030  (accent, buttons, active states)
   --red-hover: #a12020
   --price:   #c00
   --text:    #333
*/

body {
  font-family: 'Ubuntu', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  background-image: url('/ziroli/images/assets/ziroli-bg.jpg');
  background-attachment: fixed;
  background-repeat: repeat-x;
  background-position: center top;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Ubuntu', Arial, sans-serif; font-weight: 700; }
a { color: #c53030; }
a:hover { color: #a12020; text-decoration: none; }

/* ===== SITE HEADER ===== */
/* ===== HEADER — UTILITY BAR ===== */
#header-utility { background: #2d2d2d; padding: 6px 0; font-size: 12px; }
.utility-inner { display:flex; align-items:center; justify-content:space-between; }
.utility-phone { color: #aaa; }
.utility-phone i { color:#c53030; margin-right:4px; }
.utility-account { display:flex; align-items:center; gap:6px; }
.utility-account a { color:#ccc; text-decoration:none; font-size:12px; }
.utility-account a:hover { color:#fff; }
.utility-account .hdr-sep { color:#555; }

/* ===== HEADER — MAIN ROW ===== */
#site-header { background:#fff; border-bottom:2px solid #e0e0e0; }
#header-main { padding:14px 0; }
.header-main-inner { display:flex; align-items:center; gap:16px; }
.header-logo { flex-shrink:0; }
.header-logo img { max-height: 72px; width: auto; }

/* Trust badges */
/* Search — grows to fill center */
.header-search-form { flex:1; display:flex; height:46px; border:2px solid #c53030; border-radius:4px; overflow:hidden; }
.header-search-input { flex:1; border:none; outline:none; padding:0 18px; font-size:15px; font-family:'Ubuntu',sans-serif; color:#333; background:#fff; }
.header-search-input::placeholder { color:#aaa; }
.header-search-btn { background:#c53030; color:#fff; border:none; padding:0 20px; font-size:14px; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:7px; white-space:nowrap; flex-shrink:0; transition:background .15s; }
.header-search-btn:hover { background:#a12020; }

/* Cart button — big and obvious */
.header-cart-btn { display:flex; align-items:center; gap:10px; background:#c53030; color:#fff !important; text-decoration:none !important; padding:9px 16px; border-radius:4px; flex-shrink:0; transition:background .15s; min-width:120px; }
.header-cart-btn:hover { background:#a12020; }
.cart-btn-icon { position:relative; font-size:22px; line-height:1; }
.cart-btn-badge { position:absolute; top:-8px; right:-10px; background:#fff; color:#c53030; font-size:10px; font-weight:800; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid #c53030; }
.cart-btn-text { line-height:1.2; }
.cart-btn-label { font-size:11px; font-weight:400; opacity:.85; text-transform:uppercase; letter-spacing:.5px; }
.cart-btn-count { font-size:14px; font-weight:700; }

/* Search + account */
.hdr-sep { margin:0 6px; color:#555; }
/* legacy - safe to keep */
.cart-badge { background:#c53030; color:#fff; font-size:10px; font-weight:700; padding:1px 5px; border-radius:10px; margin-left:3px; }

/* ===== MEGA MENU NAV ===== */
#main-nav { background: #2d2d2d; position: relative; z-index: 500; }
#nav-menu { display: flex; align-items: stretch; flex-wrap: nowrap; }

.nav-item-wrap { position: static; }
.nav-link-item {
  display: flex; align-items: center;
  padding: 16px 11px;
  font-size: 11.5px; font-weight: 600; color: #ccc;
  text-decoration: none; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .4px;
  transition: color .15s, background .15s;
  height: 100%;
}
.nav-link-item:hover,
.nav-item-wrap:hover .nav-link-item { color: #fff; background: #3d3d3d; text-decoration: none; }
.nav-link-highlight { color: #f5c842 !important; }
.nav-link-highlight:hover { color: #fff !important; }
.nav-divider { width: 1px; background: #3a3a3a; margin: 6px 0; flex-shrink: 0; }

/* Standard dropdown */
.nav-item-wrap.has-drop { position: relative; }
.nav-item-wrap.has-drop:hover .nav-dropdown { display: block; }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #ddd; border-top: 3px solid #c53030;
  min-width: 230px; z-index: 1000;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.nav-dropdown a {
  display: block; padding: 9px 16px;
  font-size: 13px; color: #333; text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
}
.nav-drop-all { font-weight: 700; background: #f9f9f9; }
.nav-dropdown a:hover { background: #c53030; color: #fff; }

/* MEGA PANEL */
.nav-item-wrap.has-mega { position: static; }
.nav-item-wrap.has-mega:hover .mega-panel { display: block; }
.mega-panel {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 3px solid #c53030;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 1000;
}
.mega-inner { padding: 24px 28px; }
.mega-header {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #999; margin-bottom: 16px;
  border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.mega-tiles {
  display: flex; gap: 16px; flex-wrap: nowrap;
}
.mega-tile {
  flex: 1; text-decoration: none; color: #333;
  border: 1px solid #e8e8e8; border-radius: 6px;
  padding: 16px 12px; text-align: center;
  transition: all .15s; display: flex; flex-direction: column; align-items: center;
}
.mega-tile:hover {
  border-color: #c53030; background: #fff8f8;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(197,48,48,.12);
  text-decoration: none; color: #c53030;
}
.mega-tile-img {
  width: 80px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; overflow: hidden;
}
.mega-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.mega-tile-img i { font-size: 36px; color: #ddd; }
.mega-tile:hover .mega-tile-img i { color: #c53030; }
.mega-tile-name { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.mega-tile-count { font-size: 11px; color: #999; margin-bottom: 8px; }
.mega-tile-cta { font-size: 11px; font-weight: 700; color: #c53030; text-transform: uppercase; letter-spacing: .5px; }
.mega-tile:hover .mega-tile-cta { color: #a12020; }

/* Mobile nav */
.nav-mobile-toggle {
  display: none; color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 0; cursor: pointer; align-items: center; gap: 8px;
}
#nav-menu { }

/* ===== ANNOUNCEMENT BAR ===== */
#announce-bar {
  background: #c53030; text-align: center; padding: 8px;
}
#announce-bar a {
  color: #fff; font-size: 13px; text-decoration: none;
  letter-spacing: .3px;
}
#announce-bar a:hover { text-decoration: underline; color: #fff; }

/* ===== MAIN CONTENT WRAPPER ===== */
#main-content {
  background: #fff;
  box-shadow: 0 0 24px rgba(0,0,0,.14);
  min-height: 400px;
  padding-top: 0;
  overflow: hidden; /* prevent margin collapse from first child leaking out */
}

/* ===== BREADCRUMB ===== */
.breadcrumb { background: #f5f5f5; border: 1px solid #e0e0e0; font-size: 12px; padding: 6px 12px; border-radius: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: ">"; }

/* ===== SIDEBAR ===== */
.sidebar-categories { border: 1px solid #ddd; }
.sidebar-categories .sidebar-title { background: #2d2d2d; color: #fff; padding: 8px 12px; font-size: 14px; font-weight: bold; margin: 0; }
.sidebar-categories .list-group-item { border-radius: 0 !important; font-size: 13px; padding: 7px 12px; border-left: none; border-right: none; white-space: normal; line-height: 1.3; }
.sidebar-categories .list-group-item.active { background: #c53030; border-color: #c53030; color: #fff; }
.sidebar-categories .list-group-item:hover:not(.active) { background: #f5f5f5; }
.sidebar-categories .sub-item { padding-left: 22px; font-size: 12px; color: #555; }

/* ===== PRODUCT GRID ===== */
/* Equal-height product cards */
.category-grid {
  display: flex;
  flex-wrap: wrap;
}
.category-grid > [class*="col-"] {
  display: flex;
}
.category-grid .product-card {
  border: 1px solid #ddd; background: #fff;
  margin-bottom: 20px;
  display: flex; flex-direction: column;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.category-grid .product-card:hover { border-color: #aaa; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* Fixed-height image — works with existing <img class="product-img"> */
.product-card .product-img,
.product-card-img-wrap {
  width: 100%; height: 180px;
  object-fit: contain; padding: 8px;
  background: #fafafa; display: block;
}
.product-card a > .product-img { display: block; }
.product-img-placeholder {
  height: 180px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #f5f5f5; color: #ccc; font-size: 36px;
}
.product-price-row { margin-bottom: 8px; }
/* Card body flex area */
.product-card > div:last-child,
.product-card .p-2,
.product-body {
  display: flex; flex-direction: column; flex: 1; padding: 10px;
}
/* 2-line clamped title */
.product-card .product-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: 5px;
}
/* Button always at bottom */
.product-card form,
.product-card .btn-learn-more {
  margin-top: auto;
}

/* Card body stretches to fill remaining height */
.product-card .product-body {
  padding: 10px;
  display: flex; flex-direction: column;
  flex: 1;
}
/* Fixed 2-line title height so all cards align below title */
.product-card .product-name {
  font-size: 12px; font-weight: 700; color: #333; line-height: 1.4;
  height: 2.8em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.product-card .product-price { font-size: 14px; color: #c00; font-weight: bold; margin-bottom: 8px; }
/* Push button to bottom of card */
.product-card .product-card-footer { margin-top: auto; }
.product-card .btn-add-cart { background: #c53030; border: none; color: #fff; font-size: 12px; width: 100%; }
.product-card .btn-add-cart:hover { background: #a12020; }
.product-card .btn-learn-more { background: #2d2d2d; border: none; color: #fff; font-size: 12px; }
.product-card .btn-learn-more:hover { background: #c53030; color: #fff; }

/* ===== PRODUCT DETAIL ===== */
.product-detail .main-image { border: 1px solid #ddd; padding: 10px; max-width: 100%; }
.product-detail .product-title { font-size: 20px; font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.product-detail .product-price-lg { font-size: 24px; color: #c00; font-weight: bold; }
.product-detail .add-to-cart-btn { background: #c53030; border-color: #c53030; font-size: 16px; padding: 10px 30px; }
.product-detail .add-to-cart-btn:hover { background: #a12020; border-color: #a12020; }

/* ===== CART ===== */
.cart-table th { background: #f0f0f0; font-size: 13px; }
.cart-qty-input { width: 60px; text-align: center; }

/* ===== CHECKOUT ===== */
.checkout-steps { border-bottom: 2px solid #ddd; margin-bottom: 20px; }
.checkout-steps .step { font-size: 13px; color: #999; padding: 8px 16px; }
.checkout-steps .step.active { color: #c53030; border-bottom: 2px solid #c53030; font-weight: bold; margin-bottom: -2px; }

/* ===== ORDER SUMMARY ===== */
.order-summary { background: #f9f9f9; border: 1px solid #ddd; padding: 15px; font-size: 13px; }
.order-summary .total-row { font-weight: bold; font-size: 15px; border-top: 1px solid #ddd; padding-top: 8px; margin-top: 8px; }

/* ===== BUTTONS (global) ===== */
.btn-primary { background-color: #c53030; border-color: #c53030; }
.btn-primary:hover, .btn-primary:focus { background-color: #a12020; border-color: #a12020; }

/* ===== PAGINATION ===== */
.pagination .page-link { font-size: 13px; color: #666; }
.pagination .page-item.active .page-link { background: #c53030; border-color: #c53030; }

/* ===== HERO SLIDER ===== */
/* ===== HERO SLIDER ===== */
.hero-slider {
  margin-left: -15px; margin-right: -15px;
  overflow: hidden;
  background: #111;
  line-height: 0;
}
.hero-slider .carousel-inner { overflow: hidden; }
/* Fade transition — all items stack, opacity crossfades */
.hero-slider.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .8s ease-in-out;
  position: absolute; top: 0; left: 0; width: 100%;
}
.hero-slider.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
}
.hero-slider .carousel-item { position: relative; }
.hero-slider .carousel-item img {
  height: 420px;
  object-fit: cover;
  object-position: center center;
  width: 100%;
  display: block;
}
/* Dark gradient left side — caption sits over this */
.hero-slider .carousel-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 50%, transparent 100%);
  pointer-events: none;
}
.hero-slider .carousel-caption {
  position: absolute;
  top: 50%; left: 6%;
  transform: translateY(-50%);
  right: auto; bottom: auto;
  text-align: left;
  padding: 0;
  background: none;
  max-width: 380px;
  z-index: 10;
}
.slide-heading {
  font-size: 28px; font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.slide-sub {
  font-size: 15px; font-weight: 600; color: #f5c842;
  margin-bottom: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.btn-slide {
  display: inline-block;
  background: #c53030; color: #fff !important;
  font-size: 13px; font-weight: 700;
  padding: 10px 24px; border-radius: 3px;
  text-decoration: none; letter-spacing: .3px;
  transition: background .15s;
}
.btn-slide:hover { background: #a12020; color: #fff !important; text-decoration: none; }

@media (max-width: 767px) {
  .hero-slider .carousel-item img { height: 220px; }
  .hero-slider .carousel-caption { left: 4%; max-width: 65%; }
  .slide-heading { font-size: 16px; }
  .slide-sub { font-size: 12px; margin-bottom: 10px; }
  .btn-slide { font-size: 11px; padding: 7px 14px; }
}

/* ===== MISC ===== */
.section-title { font-size: 16px; font-weight: bold; border-bottom: 2px solid #c53030; padding-bottom: 6px; margin-bottom: 15px; }

/* ===== MOBILE NAV ===== */
@media (max-width: 991px) {
  #main-nav .navbar-collapse { background: #222; padding: 0; }
  #main-nav .navbar-nav { flex-direction: column; }
  #main-nav .nav-link { border-bottom: 1px solid #3a3a3a; padding: 10px 16px !important; font-size: 13px; }
  #main-nav .dropdown-menu { background: #333; border: none; border-radius: 0; padding: 0; }
  #main-nav .dropdown-item { color: #ccc; border-bottom: 1px solid #3a3a3a; font-size: 12px; padding: 8px 28px; }
  #main-nav .dropdown-item:hover { background: #c53030; color: #fff; }
  #main-nav .navbar-brand { font-family: 'Ubuntu', Arial, sans-serif; }
}

/* ===== SECTION HEADERS ===== */
.section-title {
  font-family: 'Ubuntu', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #2d2d2d;
  border-bottom: 3px solid #c53030;
  padding-bottom: 8px;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

/* ===== HEADER POLISH ===== */
#header { padding: 14px 0; }
#header .form-control { font-family: 'Ubuntu', Arial, sans-serif; font-size: 13px; border-radius: 0; }
#header .input-group-append .btn { border-radius: 0; }

/* ===== PRODUCT CARD POLISH ===== */
.product-card .product-name { font-family: 'Ubuntu', Arial, sans-serif; }
.product-card .product-price { font-family: 'Ubuntu', Arial, sans-serif; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-family: 'Ubuntu', Arial, sans-serif; }

/* ===== PRODUCT DESCRIPTION (rendered HTML from Magento) ===== */
.short-desc h1, .short-desc h2, .short-desc h3 { font-size: 15px; font-weight: bold; margin-bottom: 6px; }
.short-desc p { margin-bottom: 6px; font-size: 13px; }
.product-description { font-size: 13px; line-height: 1.6; color: #444; }
.product-description h1 { font-size: 18px; }
.product-description h2 { font-size: 16px; border-bottom: 1px solid #eee; padding-bottom: 4px; margin: 12px 0 8px; }
.product-description h3 { font-size: 14px; margin: 10px 0 6px; }
.product-description table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.product-description table td, .product-description table th { border: 1px solid #ddd; padding: 5px 8px; }
.product-description ul, .product-description ol { padding-left: 20px; margin-bottom: 8px; }
.product-description li { margin-bottom: 3px; }
.product-description img { max-width: 100%; height: auto; }
.product-description p { margin-bottom: 8px; }
.product-description strong { color: #222; }
/* Strip inline font overrides that look bad */
.product-description [style*="font-size: xx-large"],
.product-description [style*="font-size:xx-large"] { font-size: 18px !important; }
.product-description [style*="font-size: x-large"],
.product-description [style*="font-size:x-large"] { font-size: 16px !important; }

/* ===== CATEGORY PAGE ===== */
.cat-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.cat-page-title { font-size: 20px; font-weight: 700; margin: 0; }
.cat-page-count { font-size: 12px; color: #999; }
.cat-sort { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 12px; color: #666; white-space: nowrap; margin: 0; }
.sort-select { font-size: 12px; width: auto; cursor: pointer; }

/* ===== SUBCATEGORY TILES ===== */
.subcat-section { margin-bottom: 20px; }
.subcat-heading {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #666; border-bottom: 1px solid #e8e8e8;
  padding-bottom: 6px; margin-bottom: 12px;
}
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.subcat-tile {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #c53030;
  border-radius: 4px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  transition: all .15s;
}
.subcat-tile:hover {
  border-color: #c53030;
  background: #fff5f5;
  color: #c53030;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(197,48,48,.12);
  transform: translateY(-1px);
}
.subcat-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.subcat-count { font-size: 11px; color: #999; }
.subcat-tile:hover .subcat-count { color: #c53030; }

/* ===== PRODUCT CARD IMPROVEMENTS ===== */
.product-card { position: relative; }
.sale-badge {
  position: absolute; top: 6px; right: 6px;
  background: #c53030; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .3px;
}
.product-card .no-img {
  width: 100%; height: 160px; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  color: #ddd; font-size: 32px;
}
.original-price {
  font-size: 11px; color: #aaa;
  text-decoration: line-through;
  margin-left: 4px;
}

@media (max-width: 575px) {
  .subcat-grid { grid-template-columns: 1fr 1fr; }
  .cat-page-header { flex-direction: column; align-items: flex-start; }
}

/* ===== SORTABLE TABLES ===== */
table thead th[style*="cursor: pointer"]:hover {
  background: #eef0f3 !important;
  color: #c53030;
}

/* ===== PRODUCT DETAIL GALLERY ===== */
.pdp-main-wrap {
  position: relative;
  width: 100%;
  padding-top: 85%; /* taller — more image */
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.pdp-main-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* Thumbnails strip */
.pdp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pdp-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
  transition: border-color .15s, transform .1s;
  flex-shrink: 0;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.pdp-thumb:hover { border-color: #c53030; transform: translateY(-1px); }
.pdp-thumb.active { border-color: #c53030; border-width: 2px; }

@media (max-width: 576px) {
  .pdp-thumb { width: 58px; height: 58px; }
}

/* ===== HOMEPAGE ===== */
.home-section { }

/* Category carousel */
.cat-carousel-wrap {
  display: flex; align-items: center; gap: 6px; position: relative;
}
.cat-carousel-track-wrap {
  overflow: hidden; flex: 1;
}
.cat-carousel-track {
  display: flex; gap: 10px;
  transition: transform .35s ease;
  will-change: transform;
}
.home-cat-tile {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: #333;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 6px;
  padding: 12px 8px 10px; text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  flex: 0 0 130px; width: 130px;
}
.home-cat-tile:hover {
  border-color: #c53030; color: #c53030;
  box-shadow: 0 2px 10px rgba(197,48,48,.1);
  text-decoration: none; transform: translateY(-2px);
}
.home-cat-img {
  width: 70px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; overflow: hidden;
}
.home-cat-img img { width: 100%; height: 100%; object-fit: contain; }
.home-cat-img i { font-size: 28px; color: #ccc; }
.home-cat-tile:hover .home-cat-img i { color: #c53030; }
.home-cat-name { font-size: 12px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.home-cat-count { font-size: 11px; color: #999; }
.home-cat-tile:hover .home-cat-count { color: #c53030; }

.cat-carousel-btn {
  background: #2d2d2d; color: #fff; border: none;
  border-radius: 50%; width: 32px; height: 32px;
  font-size: 20px; line-height: 1; cursor: pointer;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cat-carousel-btn:hover { background: #c53030; }

.new-badge {
  position: absolute; top: 6px; left: 6px;
  background: #28a745; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
  text-transform: uppercase;
}

@media (max-width: 575px) {
  .home-cat-tile { flex: 0 0 110px; width: 110px; }
  .home-cat-img { width: 50px; height: 44px; }
}

/* ===== MOBILE HEADER / NAV ===== */
@media (max-width: 991px) {
  .header-main-inner { flex-wrap: wrap; gap: 10px; }
  .header-logo img { max-height: 54px; }
  .header-search-form { order: 3; flex: 1 1 100%; }
  .header-cart-btn { min-width: auto; }
  .utility-phone { display: none; }

  .nav-mobile-toggle { display: flex; }
  #nav-menu { display: none; flex-direction: column; width: 100%; }
  #nav-menu.open { display: flex; }
  .nav-item-wrap { width: 100%; }
  .nav-link-item { width: 100%; border-bottom: 1px solid #3a3a3a; padding: 10px 16px; }
  .nav-divider { display: none; }

  /* Mobile mega — show inline */
  .mega-panel { position: static; box-shadow: none; border: none; display: none; }
  .nav-item-wrap.has-mega:hover .mega-panel { display: block; }
  .mega-tiles { flex-wrap: wrap; }
  .mega-tile { flex: 0 0 calc(50% - 8px); }
  .mega-inner { padding: 12px 16px; }

  /* Mobile standard dropdown */
  .nav-dropdown { position: static; box-shadow: none; border: none; background: #333; min-width: 100%; }
  .nav-dropdown a { color: #ccc; padding: 8px 28px; border-color: #3a3a3a; }
  .nav-dropdown a:hover { background: #c53030; color: #fff; }
  .nav-item-wrap.has-drop .nav-dropdown,
  .nav-item-wrap.has-mega .mega-panel { display: none; }
  .nav-item-wrap.has-drop.mobile-open .nav-dropdown,
  .nav-item-wrap.has-mega.mobile-open .mega-panel { display: block; }
}

/* ===== FOOTER ===== */
#site-footer { margin-top: 0; }

.footer-tagline {
  background: #f0f0f0;
  border-top: 3px solid #c53030;
  padding: 20px 0;
}
.footer-tagline-text {
  font-size: 13px; color: #555; text-align: center;
  max-width: 860px; margin: 0 auto; line-height: 1.7;
}

.footer-main {
  background: #1e1e1e;
  padding: 44px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { max-height: 80px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 10px; }
.footer-brand-tagline { font-size: 12px; color: #888; margin-bottom: 18px; line-height: 1.5; }

/* Payment icons */
.footer-payments-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-bottom: 8px; }
.footer-payment-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-icon {
  background: #fff; color: #333; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 3px; letter-spacing: .5px;
}
.pay-paypal { background: #003087; color: #fff; }
.pay-visa { background: #1a1f71; color: #fff; }
.pay-mc { background: #eb001b; color: #fff; }
.pay-amex { background: #007bc1; color: #fff; }
.pay-disc { background: #f76f20; color: #fff; }

.footer-heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #fff;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid #c53030;
  display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13px; color: #aaa; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 11px; align-items: flex-start; }
.footer-contact i { color: #c53030; font-size: 13px; margin-top: 2px; flex-shrink: 0; width: 14px; }
.footer-contact span { font-size: 13px; color: #aaa; line-height: 1.5; }
.footer-contact a { color: #aaa; text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  background: #111; padding: 14px 0;
  font-size: 12px; color: #666;
}
.footer-bottom a { color: #888; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col-brand { grid-column: span 2; }
}
@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col-brand { grid-column: span 1; }
}

/* ===== PRODUCT DETAIL PAGE ===== */
.pdp-title { font-size: 22px; font-weight: 700; color: #222; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 8px; }
.pdp-sku { font-size: 12px; color: #999; margin-bottom: 12px; }
.pdp-price { font-size: 32px; font-weight: 700; color: #c00; margin-bottom: 16px; line-height: 1; }
.pdp-price-orig { font-size: 18px; color: #999; text-decoration: line-through; margin-left: 10px; font-weight: 400; }
.pdp-short-desc { margin-bottom: 16px; font-size: 13px; line-height: 1.8; }
.pdp-short-desc ul { padding-left: 18px; margin-bottom: 0; }
.pdp-short-desc li { margin-bottom: 3px; white-space: normal; }
/* Suppress rogue <br> tags inside list items that cause word-per-line wrapping */
.pdp-short-desc li br { display: none; }
.pdp-short-desc li p { display: inline; margin: 0; }
.pdp-short-desc strong, .pdp-short-desc b { margin-right: 3px; }
.pdp-stock { color: #28a745; font-size: 13px; margin-bottom: 12px; }
.pdp-cart-form { margin-top: 4px; }
.pdp-qty { width: 70px !important; display: inline-block; border-radius: 0; }
.pdp-add-btn { background: #c53030; color: #fff; font-size: 15px; font-weight: 600; padding: 10px 28px; border: none; border-radius: 0; white-space: nowrap; }
.pdp-add-btn:hover { background: #a12020; color: #fff; }
.pdp-desc-section, .pdp-related-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.pdp-section-title { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #333; margin-bottom: 14px; }
.pdp-description { font-size: 13px; line-height: 1.8; }
.pdp-description ul, .pdp-description ol { padding-left: 22px; }
.pdp-description li { margin-bottom: 4px; }
.gap-2 { gap: 10px; }

/* ===== PRODUCT IMAGE LIGHTBOX ===== */
.pdp-main-wrap { cursor: zoom-in; }
.pdp-zoom-icon {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.5); color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  z-index: 5;
}
.pdp-main-wrap:hover .pdp-zoom-icon { opacity: 1; }

#pdp-lightbox {
  display: none; position: fixed;
  inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
#pdp-lightbox.active { display: flex; }
#pdp-lb-img {
  width: 96vw;
  height: 94vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.pdp-lb-close {
  position: absolute; top: 16px; right: 22px;
  color: #fff; font-size: 36px; font-weight: 300;
  cursor: pointer; line-height: 1;
  opacity: .8; transition: opacity .15s;
}
.pdp-lb-close:hover { opacity: 1; }

/* Cart free shipping nudge */
.cart-free-ship-msg {
  background: #fff8e1; border: 1px solid #ffe082;
  border-radius: 4px; padding: 6px 10px;
  font-size: 12px; color: #555;
}
.cart-free-ship-msg .fas { color: #c53030; margin-right: 4px; }

/* ===== CHECKOUT ===== */
.checkout-progress { display:flex; align-items:center; justify-content:center; margin-bottom:24px; }
.cp-step { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:#bbb; }
.cp-step span { width:28px; height:28px; border-radius:50%; background:#eee; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#999; }
.cp-step.active { color:#333; }
.cp-step.active span { background:#c53030; color:#fff; }
.cp-step.done { color:#28a745; }
.cp-step.done span { background:#28a745; color:#fff; font-size:11px; }
.cp-line { flex:1; height:2px; background:#eee; margin:0 8px; max-width:60px; }
.cp-line-done { background:#28a745; }

.checkout-card { border:none; border-radius:8px; overflow:hidden; box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.checkout-card-header { background:#f8f8f8; border-bottom:none; padding:14px 20px; font-weight:700; font-size:14px; color:#333; display:flex; align-items:center; }
.checkout-card-body { padding:24px 20px; }

.co-label { font-size:12px; font-weight:600; color:#555; margin-bottom:4px; display:block; }
.co-input { border-radius:4px; border:1px solid #d0d0d0; font-size:14px; height:42px; transition:border-color .15s; }
.co-input:focus { border-color:#c53030; box-shadow:0 0 0 2px rgba(197,48,48,.12); }
.co-section-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#999; margin-bottom:10px; }

.co-btn-primary { background:#c53030; border:none; color:#fff !important; font-weight:700; font-size:16px; letter-spacing:.3px; border-radius:4px; transition:background .15s; }
.co-btn-primary:hover, .co-btn-primary:focus, .co-btn-primary:active { background:#a12020; color:#fff !important; }
.co-btn-primary:disabled { background:#999; color:#fff !important; }

.co-secure-note { font-size:12px; color:#777; background:#f9f9f9; border:1px solid #eee; border-radius:4px; padding:10px 14px; margin-top:12px; }
.co-secure-note .fas { color:#28a745; margin-right:5px; }

.co-card-input-wrap { position:relative; }
.co-card-number { padding-right:70px; }
.co-card-brand { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-size:11px; font-weight:600; color:#555; }

.co-trust-bar { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:12px 0; border-top:1px solid #eee; }
.co-trust-bar span { font-size:11px; color:#888; }
.co-trust-bar .fas { color:#28a745; margin-right:4px; }

.co-summary { border:1px solid #e0e0e0; border-radius:6px; overflow:hidden; }
.co-summary-header { background:#2d2d2d; color:#fff; padding:12px 16px; font-weight:700; font-size:13px; }
.co-summary-body { padding:16px; }
.co-summary-item { display:flex; justify-content:space-between; font-size:13px; margin-bottom:8px; }
.co-summary-item-name { color:#555; flex:1; padding-right:8px; }
.co-summary-item-price { font-weight:600; white-space:nowrap; }
.co-summary-divider { border-top:1px solid #eee; margin:10px 0; }
.co-summary-row { display:flex; justify-content:space-between; font-size:13px; color:#666; margin-bottom:5px; }
.co-summary-total { display:flex; justify-content:space-between; font-size:16px; font-weight:700; color:#222; border-top:2px solid #eee; padding-top:10px; margin-top:8px; }

.co-guarantee { display:flex; align-items:flex-start; gap:12px; background:#f0f7f0; border:1px solid #c3e6c3; border-radius:6px; padding:14px; font-size:12px; color:#555; line-height:1.6; }
.co-guarantee-icon { font-size:28px; color:#28a745; flex-shrink:0; }

.co-recap { background:#f7f7f7; border:1px solid #eee; border-radius:4px; padding:10px 14px; font-size:13px; }
.co-recap-edit { color:#c53030; font-weight:600; }

.co-cvv-tip { cursor:help; }
.co-card-icons { margin-left:auto; display:flex; gap:6px; align-items:center; }

/* ===== ACCESSIBILITY: LARGER BASE FONT (older users) ===== */
/* Override small font-size declarations site-wide */
.sidebar-categories .list-group-item { font-size: 15px !important; padding: 9px 12px !important; }
.sidebar-categories .sidebar-title { font-size: 15px !important; }
.product-name { font-size: 15px !important; }
.product-price { font-size: 16px !important; }
.nav-link-item { font-size: 15px !important; }
.breadcrumb { font-size: 14px !important; }

/* Checkout form fields — bigger for older users */
.co-label { font-size: 14px !important; }
.co-input { font-size: 16px !important; height: 46px !important; }
.co-input option { font-size: 16px; }
.co-section-label { font-size: 13px !important; }
.co-secure-note { font-size: 14px !important; }
.co-summary-item { font-size: 15px !important; }
.co-summary-row { font-size: 15px !important; }
.co-summary-total { font-size: 18px !important; }
.co-guarantee { font-size: 14px !important; }
.co-btn-primary { font-size: 18px !important; }
.co-recap { font-size: 14px !important; }

/* Cart table */
.cart-table td, .cart-table th { font-size: 15px !important; }
.order-summary { font-size: 15px !important; }

/* Product detail */
.pdp-title { font-size: 24px !important; }
.pdp-price { font-size: 34px !important; }
.pdp-short-desc { font-size: 15px !important; }
.pdp-sku { font-size: 14px !important; }
.pdp-stock { font-size: 15px !important; }
.pdp-add-btn { font-size: 17px !important; padding: 12px 32px !important; }

/* ===== GALLERY ===== */
.gallery-album-card { display:block; text-decoration:none; color:#333; }
.gallery-album-card:hover { text-decoration:none; color:#c53030; }
.gallery-album-thumb { position:relative; width:100%; padding-top:75%; background:#f0f0f0; border-radius:6px; overflow:hidden; margin-bottom:8px; }
.gallery-album-thumb img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.gallery-album-card:hover .gallery-album-thumb img { transform:scale(1.05); }
.gallery-album-placeholder { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:40px; color:#ccc; }
.gallery-album-count { position:absolute; bottom:8px; right:8px; background:rgba(0,0,0,.6); color:#fff; font-size:11px; padding:3px 8px; border-radius:10px; }
.gallery-album-title { font-weight:700; font-size:15px; margin-bottom:2px; }
.gallery-album-desc { font-size:12px; color:#999; line-height:1.4; }

/* Gallery photo grid */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:8px; }
.gallery-thumb { position:relative; aspect-ratio:1; overflow:hidden; border-radius:4px; cursor:zoom-in; background:#f0f0f0; }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .2s; }
.gallery-thumb:hover img { transform:scale(1.08); }
.gallery-thumb-caption { position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,.6); color:#fff; font-size:10px; padding:4px 6px; opacity:0; transition:opacity .2s; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gallery-thumb:hover .gallery-thumb-caption { opacity:1; }

/* Gallery lightbox */
#galleryLightbox { display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.94); align-items:center; justify-content:center; flex-direction:column; }
#galleryLightbox.active { display:flex; }
#glb-img { max-width:90vw; max-height:85vh; object-fit:contain; border-radius:3px; }
#glb-caption { color:#aaa; font-size:13px; margin-top:10px; text-align:center; }
.glb-close { position:absolute; top:16px; right:22px; color:#fff; font-size:36px; cursor:pointer; opacity:.8; line-height:1; }
.glb-close:hover { opacity:1; }
.glb-prev, .glb-next { position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:60px; cursor:pointer; padding:0 20px; opacity:.7; user-select:none; line-height:1; }
.glb-prev:hover, .glb-next:hover { opacity:1; }
.glb-prev { left:0; }
.glb-next { right:0; }

/* ===== COMPLETE YOUR BUILD ===== */
.cyb-section { background:#fff; border:1px solid #e5e5e5; border-radius:8px; overflow:hidden; margin:28px 0; }
.cyb-header { padding:18px 20px 12px; border-bottom:1px solid #f0f0f0; }
.cyb-title { font-size:17px; font-weight:700; margin:0 0 4px; color:#1a1a1a; }
.cyb-subtitle { font-size:13px; color:#888; margin:0; }

.cyb-cat-btn { display:flex; align-items:center; gap:14px; width:100%; padding:14px 20px; background:#fafafa; border:none; border-bottom:1px solid #eee; cursor:pointer; text-align:left; transition:background .15s; }
.cyb-cat-btn:hover, .cyb-cat-btn.active { background:#fff5f5; }
.cyb-cat-name { font-weight:600; font-size:14px; flex:1; color:#222; }
.cyb-cat-count { font-size:12px; color:#999; min-width:70px; text-align:right; }
.cyb-chevron { font-size:12px; color:#aaa; transition:transform .2s; }

.cyb-panel { display:none; padding:16px 20px; background:#fff; border-bottom:1px solid #eee; }
.cyb-panel.open { display:block; }

/* Grid: no scroll — shows all items, consistent card heights via align-items:stretch */
.cyb-items-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:10px; }

/* Card: flex column so buttons always pin to the bottom */
.cyb-item { display:flex; flex-direction:column; gap:0; padding:12px; border:2px solid #e5e5e5; border-radius:6px; background:#fff; transition:border-color .15s, background .15s; }
.cyb-item.selected { border-color:#c53030; background:#fff5f5; }
.cyb-item input[type=checkbox] { display:none; }

/* Top row: image + name/price side by side */
.cyb-item-top { display:flex; align-items:flex-start; gap:10px; flex:1; }
.cyb-item-img { width:56px; height:56px; flex-shrink:0; border-radius:4px; overflow:hidden; background:#f5f5f5; display:flex; align-items:center; justify-content:center; }
.cyb-item-img img { width:100%; height:100%; object-fit:cover; }
.cyb-item-noimg { color:#ccc; font-size:20px; }
.cyb-item-text { flex:1; min-width:0; }
.cyb-item-name { font-size:12px; font-weight:600; color:#333; line-height:1.35; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.cyb-item-price { font-size:13px; color:#c53030; font-weight:700; margin-top:4px; }

/* Buttons always at the bottom, full width */
.cyb-item-btns { display:flex; gap:6px; margin-top:10px; }
.cyb-add-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:6px 8px; border-radius:4px; font-size:12px; font-weight:700; cursor:pointer; border:2px solid #c53030; color:#c53030; background:#fff; transition:all .15s; white-space:nowrap; }
.cyb-add-btn:hover { background:#c53030; color:#fff; }
.cyb-add-btn.added { background:#c53030; color:#fff; border-color:#c53030; }
.cyb-details-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; padding:6px 8px; border-radius:4px; font-size:12px; font-weight:600; cursor:pointer; border:2px solid #ddd; color:#555; background:#f8f8f8; transition:all .15s; white-space:nowrap; }
.cyb-details-btn:hover { border-color:#999; color:#333; background:#eee; }

.cyb-footer { padding:16px 20px; background:#f8f8f8; border-top:2px solid #e5e5e5; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.cyb-total-wrap { font-size:14px; color:#555; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.cyb-plan-price { font-weight:700; color:#333; }
.cyb-grand-total { font-size:18px; font-weight:800; color:#c53030; }
.cyb-total-label { color:#999; }
.pdp-qty-row { display:flex; align-items:center; gap:10px; }

/* CYB qty stepper */
.cyb-item-qty { display:none; align-items:center; justify-content:center; gap:0; margin-top:8px; border:1px solid #ddd; border-radius:4px; overflow:hidden; }
.cyb-item-qty.visible { display:flex; }
.cyb-item.selected .cyb-item-qty { display:flex; }
.cyb-qty-btn { background:#f5f5f5; border:none; width:28px; height:28px; font-size:16px; font-weight:700; cursor:pointer; color:#555; display:flex; align-items:center; justify-content:center; line-height:1; transition:background .15s; flex-shrink:0; }
.cyb-qty-btn:hover { background:#e0e0e0; color:#c53030; }
.cyb-qty-input { width:36px; height:28px; border:none; border-left:1px solid #ddd; border-right:1px solid #ddd; text-align:center; font-size:13px; font-weight:700; color:#333; -moz-appearance:textfield; }
.cyb-qty-input::-webkit-outer-spin-button, .cyb-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; }

/* ===== LIVE SEARCH DROPDOWN ===== */
.header-search-wrap { flex:1; position:relative; }
.search-dropdown { position:absolute; top:calc(100% + 4px); left:0; right:0; background:#fff; border-radius:6px; box-shadow:0 8px 32px rgba(0,0,0,.18); z-index:9000; overflow:hidden; border:1px solid #e5e5e5; }
.search-result-item { display:flex; align-items:center; gap:12px; padding:10px 14px; cursor:pointer; border-bottom:1px solid #f2f2f2; transition:background .1s; }
.search-result-item:last-child { border-bottom:none; }
.search-result-item:hover, .search-result-item.active { background:#fff5f5; }
.sri-img { width:56px; height:56px; flex-shrink:0; border-radius:4px; overflow:hidden; background:#f5f5f5; display:flex; align-items:center; justify-content:center; }
.sri-img img { width:100%; height:100%; object-fit:cover; }
.sri-noimg { color:#ccc; font-size:18px; }
.sri-info { flex:1; min-width:0; }
.sri-cat { font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:#aaa; margin-bottom:2px; }
.sri-name { font-size:14px; font-weight:600; color:#222; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sri-name mark { background:#fff3cd; color:#c53030; font-weight:700; padding:0 1px; border-radius:2px; }
.sri-price { margin-top:3px; }
.sri-price-now { font-size:14px; font-weight:800; color:#c53030; }
.sri-price-orig { font-size:12px; color:#aaa; text-decoration:line-through; margin-left:6px; }
.sri-arrow { color:#ccc; font-size:12px; flex-shrink:0; }
.search-result-item:hover .sri-arrow, .search-result-item.active .sri-arrow { color:#c53030; }
.search-no-results { padding:20px 16px; color:#999; font-size:14px; display:flex; align-items:center; gap:10px; }
.search-no-results i { font-size:20px; color:#ddd; }
.search-see-all { display:block; padding:11px 16px; background:#f8f8f8; color:#c53030 !important; font-size:13px; font-weight:600; text-decoration:none !important; border-top:1px solid #eee; transition:background .15s; }
.search-see-all:hover { background:#fff5f5; }
