/* Base Reset */
/* Avoid global resets that interfere with Universal Theme. */
:root{
  --primary:#00698e;
  --secondary:#f58220;
  --dark:#212529;
  --topbar:#00698e;
  --footer:#07556e;
  --card-radius:16px;
  --sticky-top:82px;
  --light-bg:#FFFFFF;
  --light-gray:#F8F9FA;
  --border-color:#DEE2E6;
  --text:#212529;
  --text-muted:#6C757D;
  --accent:#16763e;
  --purple:#6b2c91;
  --gradient:linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
body{font-family:'Poppins',sans-serif;background:var(--light-gray);color:var(--text);overflow-x:clip}
.top-bar .container{max-width:1600px;margin:0 auto;padding:0 20px}

/* Top Bar */
.top-bar{background:var(--topbar);padding:8px 0;font-size:.8rem;border-bottom:1px solid var(--border-color)}
.top-bar .container{display:flex;justify-content:space-between;align-items:center}
.top-bar-left span{margin-right:18px;color:#fff}
.top-bar-left i{color:var(--secondary);margin-right:6px}
.top-bar-right a{color:#fff;text-decoration:none;margin-left:16px;transition:color .3s}
.top-bar-right a:hover{color:var(--secondary)}

/* ULTRA-COMPACT HEADER */
header:has(> .header-main){background:var(--light-bg);padding:8px 0;position:sticky;top:0;z-index:1000;border-bottom:1px solid var(--border-color)}
.header-main{height: 40px;max-width:1600px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.logo{font-family:'Orbitron',sans-serif;font-size:1.4rem;font-weight:900;color:var(--primary);letter-spacing:1px}
.search-bar{flex:1;max-width:520px;position:relative}
.search-bar input{width:100%;padding:8px 36px 8px 12px;border:1px solid var(--border-color);border-radius:20px;background:var(--light-gray);color:var(--text);font-size:.85rem;transition:all .2s}
.search-bar input:focus{outline:none;border-color:var(--primary);background:var(--light-bg)}
.search-bar button{position:absolute;right:4px;top:50%;transform:translateY(-50%);background:var(--primary);border:none;width:28px;height:28px;border-radius:50%;color:#fff;cursor:pointer;transition:all .2s;font-size:.8rem}
.search-bar button:hover{transform:translateY(-50%) scale(1.05);background:var(--accent)}
.header-actions{display:flex;gap:12px;align-items:center}
.header-icon{position:relative;color:var(--text);font-size:1.05rem;transition:all .2s;cursor:pointer}
.header-icon:hover{color:var(--primary);transform:translateY(-2px)}
.header-icon .badge{position:absolute;top:-6px;right:-8px;background:var(--accent);color:#fff;border-radius:50%;width:16px;height:16px;font-size:.65rem;display:flex;align-items:center;justify-content:center;font-weight:600}

/* ULTRA-COMPACT NAV */
nav:has(> .nav-container){background:var(--light-bg);border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color)}
.nav-container{max-width:1600px;margin:0 auto;padding:0 20px;display:flex;gap:6px;overflow-x:auto}
.nav-item{padding:8px 12px;color:var(--text);text-decoration:none;white-space:nowrap;transition:all .2s;position:relative;font-weight:500;font-size:.85rem;border-radius:6px}
.nav-item:hover{color:var(--primary);background:#fff}
.nav-item::after{content:'';position:absolute;bottom:-1px;left:50%;width:0;height:2px;background:var(--primary);transition:all .2s;transform:translateX(-50%)}
.nav-item:hover::after{width:70%}

/* Breadcrumb */
.breadcrumb-section{background:var(--light-bg);padding:8px 0;border-bottom:1px solid var(--border-color)}
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:.85rem}
.breadcrumb a{color:var(--text-muted);text-decoration:none;transition:color .2s}
.breadcrumb a:hover{color:var(--primary)}
.breadcrumb i{font-size:.7rem;color:var(--text-muted)}
.breadcrumb span{color:var(--text);font-weight:500}

/* Main Content */
.main-content{padding:18px 0}
.main-content .container{display:grid;grid-template-columns:260px 1fr;gap:20px}

/* Sidebar */
.sidebar{background:var(--light-bg);border-radius:8px;padding:12px;height:fit-content;position:sticky;top:74px;box-shadow:0 1px 6px rgba(0,0,0,.05)}
.filter-section{padding:10px 0;border-bottom:1px solid var(--border-color)}
.filter-section:last-child{border-bottom:none}
.filter-section h3{font-size:.95rem;font-weight:600;margin-bottom:10px;color:var(--text);display:flex;justify-content:space-between;align-items:center}
.filter-section h3 i{font-size:.8rem;color:var(--text-muted);cursor:pointer}
.price-slider-container{padding:4px 0}
.price-slider{position:relative;height:5px;margin:14px 0 10px}
.price-track{position:absolute;height:5px;background:var(--border-color);width:100%;border-radius:5px}
.price-slider input[type="range"]{position:absolute;width:100%;height:5px;background:transparent;pointer-events:none;-webkit-appearance:none}
.price-slider input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--primary);cursor:pointer;pointer-events:auto;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.price-slider input[type="range"]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--primary);cursor:pointer;pointer-events:auto;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.price-inputs{display:flex;gap:8px;justify-content:space-between}
.price-input{flex:1}
.price-input input{width:100%;padding:8px;border:1px solid var(--border-color);border-radius:5px;text-align:center;font-size:.85rem;background:var(--light-gray)}
.filter-options{display:flex;flex-direction:column;gap:10px}
.checkbox-label{display:flex;align-items:center;cursor:pointer;font-size:.85rem;color:var(--text);transition:color .2s}
.checkbox-label:hover{color:var(--primary)}
.checkbox-label input[type="checkbox"]{width:16px;height:16px;margin-right:8px;cursor:pointer;accent-color:var(--accent)}

/* Products Section */
.products-section{display:flex;flex-direction:column;gap:14px}
.products-header:has(> .header-main){background:var(--light-bg);padding:10px 12px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 6px rgba(0,0,0,.05)}
.products-header h2{font-size:1.05rem;font-weight:600;color:var(--text)}
.sort-select{padding:8px 10px;border:1px solid var(--border-color);border-radius:5px;background:var(--light-bg);color:var(--text);font-size:.85rem;cursor:pointer;transition:all .2s}
.sort-select:focus{outline:none;border-color:var(--primary)}

/* 3-COLUMN GRID ON DESKTOP */
.products-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

/* Product Card */
.product-card-large{background:var(--light-bg);border-radius:8px;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,.05);transition:all .2s;position:relative;display:flex;flex-direction:column}
.product-card-large:hover{transform:translateY(-3px);box-shadow:0 4px 14px rgba(0,0,0,.08)}
.save-badge{position:absolute;top:10px;left:10px;background:var(--purple);color:#fff;padding:4px 10px;border-radius:5px;font-size:.8rem;font-weight:600;z-index:10}
.product-image-large{width:100%;height:200px;display:flex;align-items:center;justify-content:center;background:var(--light-gray);padding:10px}
.product-image-large img{max-width:100%;max-height:100%;object-fit:contain}
.product-details{padding:12px;flex:1;display:flex;flex-direction:column}
.product-title{font-size:.95rem;font-weight:600;color:var(--text);margin-bottom:8px;line-height:1.35}
.product-specs{list-style:none;margin-bottom:12px;flex:1}
.product-specs li{padding:5px 0;font-size:.8rem;color:var(--text-muted);position:relative;padding-left:12px}
.product-specs li::before{content:'•';position:absolute;left:0;color:var(--primary);font-weight:bold}
.product-price-large{display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid var(--border-color)}
.current-price{font-size:1.05rem;font-weight:700;color:var(--primary)}
.old-price{font-size:.85rem;color:var(--text-muted);text-decoration:line-through}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:8px;padding:14px 0}
.page-btn{padding:7px 10px;border:1px solid var(--border-color);background:var(--light-bg);color:var(--text);border-radius:5px;cursor:pointer;transition:all .2s;font-size:.85rem}
.page-btn:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
.page-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}

/* Footer */
footer:has(> .footer-content){background:var(--footer);color:#fff;padding:26px 0;margin-top:26px}
.footer-content{max-width:1600px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:10px}
.footer-section h3{color:#fff;margin-bottom:10px;font-size:1rem}
.footer-section p{line-height:1.5;font-size:.85rem}
.footer-section ul{list-style:none}
.footer-section ul li{margin-bottom:8px;font-size:.85rem}
.footer-section ul li a{color:#CCC;text-decoration:none;transition:color .2s}
.footer-section ul li a:hover{color:var(--secondary)}
.social-links{display:flex;gap:10px;margin-top:10px}
.social-links a{width:32px;height:32px;background:rgba(255,255,255,.1);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s}
.social-links a:hover{background:var(--secondary);transform:translateY(-2px)}
.footer-bottom{text-align:center;padding-top:10px;border-top:1px solid rgba(255,255,255,.1);color:#CCC;font-size:.85rem}

/* Responsive */
@media (max-width:1200px){
  .products-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .main-content .container{grid-template-columns:1fr}
  .sidebar{position:relative;top:0}
}
@media (max-width:600px){
  .products-grid{grid-template-columns:1fr}
  .products-header{flex-direction:column;gap:10px;align-items:flex-start}
}

/* Existing dropdown and ticker styles, consolidated. */

/* Dropdown Container */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--light-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--text);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--accent);
}

/* Show the dropdown on hover */
.nav-item-dropdown:hover .dropdown-content,
.nav-item-dropdown:focus-within .dropdown-content {
    display: block;
}

/* Icon rotation on hover */
.nav-item-dropdown:hover i {
    transform: rotate(180deg);
}

/* Reset & base */
.my-hmenu,
.my-hmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Horizontal top level */
.my-hmenu {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Top-level items anchor */
.my-hmenu > li {
  position: relative; /* anchor for dropdown */
}
.my-hmenu > li > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--ut-body-text, #1f2d3d);
}
.my-hmenu > li > .nav-link:hover,
.my-hmenu > li:hover > .nav-link {
  background: var(--ut-component-bg-hover, #eef2f7);
}

/* Dropdown */
.my-hmenu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: none;  /* hidden by default */
  z-index: 1000;
}

/* Show on hover only if has-dropdown */
.my-hmenu > li.has-dropdown:hover > .dropdown,
.my-hmenu > li.has-dropdown:focus-within > .dropdown {
  display: block;
}

/* Dropdown items */
.my-hmenu .dropdown > li > a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--ut-body-text, #1f2d3d);
  text-decoration: none;
  white-space: nowrap;
}
.my-hmenu .dropdown > li > a:hover {
  background: var(--ut-component-bg-hover, #eef2f7);
}
/* ==================================*/
/* Container that hides the text when it goes out of bounds */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: transparent; 
  white-space: nowrap;
}

/* The actual moving animation */
.ticker-move {
  display: inline-block;
  padding-left: 100%; /* Start from the far right */
  animation: ticker-animation 15s linear infinite;
  font-weight: bold;
  color: var(--accent); /* Matching your green theme */
}

/* Keyframes to move text from right to left */
@keyframes ticker-animation {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* Optional: Pause on hover so users can read it */
.ticker-wrap:hover .ticker-move {
  animation-play-state: paused;
  cursor: pointer;
}

/* ===== Storefront shell ===== */
.top-bar .container {gap: 12px; flex-wrap: wrap;}
.top-bar-left, .top-bar-right {display:flex; flex-wrap:wrap; align-items:center; gap:8px;}
.top-bar-left span, .top-bar-right a {margin:0 10px 0 0;}
.top-bar-left i, .top-bar-right a i {color:inherit;}
.header-main {height:auto; min-height:64px;}
.header-main > img {max-width:150px; height:56px !important; object-fit:contain;}
.header-main .logo {font-family:inherit; font-size:clamp(1rem,1.5vw,1.4rem); letter-spacing:.4px;}
.header-main .search-bar {min-width:0;}
.header-icon .badge {background:var(--primary);}
.footer-content {gap:28px;}
.footer-section p, .footer-section ul, .footer-section ul li a, .footer-bottom {color:#fff !important;}
.footer-section ul {padding:0; margin:0;}
.footer-section a:hover {text-decoration:underline; color:#fff !important;}
.footer-section li i {color:inherit !important;}
.footer-bottom p {margin:0;}
/* ===== Package-rendered hero ===== */
.home-hero {display:grid; grid-template-columns:minmax(0,2.6fr) minmax(0,1fr); gap:16px; margin:0 0 22px; --hero-height:clamp(250px,29vw,420px);}
.home-hero:not(:has(.home-promo)) {grid-template-columns:minmax(0,1fr);}
.home-hero:not(:has(.home-promo)) .home-promos {display:none;}
.home-carousel {position:relative; min-width:0; height:var(--hero-height); overflow:hidden; border:1px solid var(--border-color); border-radius:var(--card-radius); background:#fff; box-shadow:0 4px 16px #16243a0d;}
.home-carousel:not(:has(.home-slide)) {display:none;}
.home-slide {height:100%; width:100%;}
.home-slide:not(:first-child) {display:none;}
.home-carousel.is-ready .home-slide {display:block;}
.home-carousel .home-slide[hidden] {display:none !important;}
.home-slide img {display:block; width:100%; height:100%; object-fit:contain;}
.home-promos {height:var(--hero-height); display:grid; grid-auto-rows:minmax(0,1fr); gap:12px; min-width:0;}
.home-promo {min-height:0; background:#fff; border:1px solid var(--border-color); border-radius:var(--card-radius); overflow:hidden;}
.home-promo img {display:block; width:100%; height:100%; object-fit:contain;}
.home-carousel-btn {position:absolute; top:50%; transform:translateY(-50%); z-index:2; display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:50%; background:var(--primary); color:#fff; cursor:pointer; font-size:24px; line-height:1; box-shadow:0 2px 8px #0002;}
.home-carousel-prev {left:12px;} .home-carousel-next {right:12px;}
.home-carousel-controls {position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:8px; border-radius:30px; padding:6px 10px; background:#fff; box-shadow:0 2px 8px #0002;}
.home-carousel-dot {width:10px; height:10px; padding:0; border:1px solid var(--primary); border-radius:50%; background:#fff; cursor:pointer;}
.home-carousel-dot[aria-current="true"] {background:var(--primary);}
.home-carousel-pause {border:0; background:transparent; color:var(--primary); cursor:pointer; padding:2px 6px; font-size:12px;}
/* ===== APEX Faceted Search ===== */
#product_layout {overflow:visible;}
#product_layout > .t-Region-bodyWrap, #product_layout > .t-Region-bodyWrap > .t-Region-body {overflow:visible;}
/* JS identifies the actual Universal Theme grid column and shared row. */
.storefront-filter-row {align-items:stretch;}
.storefront-filter-col {overflow:visible; align-self:stretch;}
#product_filters {position:sticky; top:var(--sticky-top); max-height:calc(100vh - var(--sticky-top) - 16px); max-height:calc(100dvh - var(--sticky-top) - 16px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--primary) transparent; z-index:10; background:#fff; border:1px solid var(--border-color); border-radius:12px; box-shadow:0 3px 14px #16243a0a;}
#product_filters .t-Region-header {background:var(--light-gray); border-bottom:1px solid var(--border-color);}
#product_filters .t-Region-title {font-weight:700; color:var(--primary);}
#product_filters input {accent-color:var(--primary);}
#product_filters input:focus-visible {outline:2px solid var(--primary); outline-offset:2px;}
#product_filters .a-FS-header {font-weight:600;}
/* ===== Native APEX Cards ===== */
#product_cards {min-width:0;}
#product_cards .a-CardView-items {gap:16px;}
#product_cards .a-CardView {height:100%; background:#fff; border:1px solid var(--border-color); border-radius:var(--card-radius); overflow:hidden; box-shadow:0 3px 14px #16243a0d; transition:transform .2s,box-shadow .2s,border-color .2s;}
#product_cards .a-CardView:hover, #product_cards .a-CardView:focus-within {transform:translateY(-3px); border-color:var(--primary); box-shadow:0 10px 24px #16243a15;}
#product_cards .a-CardView-media {background:#f8fafc;}
#product_cards .a-CardView-media img {display:block; width:100%; height:210px; object-fit:contain; padding:12px; transition:transform .25s;}
#product_cards .a-CardView:hover .a-CardView-media img {transform:scale(1.025);}
#product_cards .a-CardView-header {padding:14px 16px 8px;}
#product_cards .a-CardView-title {color:var(--text); font-size:15px; font-weight:650; line-height:1.4; overflow-wrap:anywhere;}
#product_cards .a-CardView-subTitle {color:var(--text-muted); font-size:12px;}
#product_cards .a-CardView-body {padding:8px 16px 16px;}
#product_cards .a-CardView-mainContent {color:var(--primary); font-size:16px; font-weight:700;}
#product_cards .a-CardView-subContent {color:var(--text-muted); font-size:12px;}
#product_cards .product-price {color:var(--primary); font-size:18px; font-weight:700;}
#product_cards .a-CardView-iconWrap {border-radius:10px;}
#product_cards .a-CardView-icon {background:var(--primary); color:#fff;}
.home-carousel button:focus-visible, .top-bar a:focus-visible, .footer-section a:focus-visible {outline:2px solid currentColor; outline-offset:3px;}
@media(max-width:900px) {
 .home-hero {grid-template-columns:minmax(0,1fr); --hero-height:clamp(220px,48vw,340px);}
 .home-promos {height:auto; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:auto;}
 .home-promo {aspect-ratio:5/3;}
 #product_filters {position:relative; top:auto; max-height:none; overflow:visible;}
 .header-main {flex-wrap:wrap; padding:8px 12px;}
 .header-main .search-bar {order:4; flex-basis:100%; max-width:none;}
 .footer-content {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px) {
 .header-main > img {max-width:100px; height:44px !important;}
 .header-main .logo {flex:1; font-size:.95rem;}
 .top-bar .container {padding:0 12px; font-size:12px;}
 .home-hero {gap:10px; margin-bottom:14px;}
 .footer-content {grid-template-columns:minmax(0,1fr);}
 #product_cards .a-CardView-media img {height:175px;}
}
@media(prefers-reduced-motion:reduce) {
 .ticker-move {animation:none; padding-left:0;}
 #product_cards .a-CardView, #product_cards .a-CardView-media img {transition:none; transform:none !important;}
}
