:root {
  --accent: #10b981;
  --dark: #333333;
  --bg: #FFFFFF;
  --section-bg: #F6F7FB;
  --border: #e5e7eb;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--dark);
}

/* Topbar: subtle Eshop style */
.topbar { border-bottom: 1px solid #eee; }

/* Accent button (Eshop orange) */
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  border: none;
}
.btn-accent:hover { filter: brightness(0.95); }

.btn-outline-secondary {
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline-secondary:hover {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Accent badge */
.bg-accent { background-color: var(--accent) !important; }

.nav-link { color: var(--dark); }
.nav-link:hover, .nav-link.active { color: var(--accent); }

/* Sticky header shadow */
#site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
#site-header .container { padding-top: 1rem; padding-bottom: 1rem; }
.navbar { padding-top: .25rem; padding-bottom: .25rem; }

/* Hero carousel: full-width background image + overlay content */
.hero .carousel-item {
  height: 60vh;
  min-height: 420px;
  position: relative;
}
.hero .hero-banner { height: 60vh; min-height: 420px; position: relative; }
.hero .hero-banner img.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero .carousel-item img.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 1.25rem; }
.hero .hero-copy { padding: 1rem 1.25rem; max-width: 760px; background: none; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.hero .hero-copy .btn { margin-top: .75rem; }


/* Section background (Eshop light grey) */
.section-muted { background-color: var(--section-bg); }

.trust-badges .badge-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.text-accent { color: var(--accent); }

/* Product Card: Eshop hover zoom + action slide-up */
.product-card {
  border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff;
  transition: box-shadow .2s ease;
  display: flex; flex-direction: column; height: 100%;
  position: relative;
  cursor: pointer;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.product-media {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 1 / 1;
}
.product-media img { transition: transform .25s ease; width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .product-media img { transform: scale(1.05); }

.product-actions {
  position: absolute; left: 0; right: 0; bottom: -56px; display: flex; gap: .5rem; justify-content: center;
  padding: .5rem; transition: bottom .25s ease;
  z-index: 2;
}
.product-card:hover .product-actions { bottom: .5rem; }

.product-card.active .product-actions { bottom: .5rem; }

.product-title { color: var(--dark); font-weight: 500; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title a { color: var(--dark); text-decoration: none; }
.product-price .current { color: var(--accent); font-weight: 600; }
.product-price .old { color: #999; text-decoration: line-through; margin-left: .5rem; }

.breadcrumb .breadcrumb-item a { color: var(--accent); text-decoration: none; }
.breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }

.product-card .card-body { padding: .75rem; flex: 1; }
.product-price { display: flex; align-items: center; gap: .25rem; }

.summary-panel { background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.badge-chip { background: #f6f7fb; color: var(--dark); border: 1px solid var(--border); border-radius: 999px; padding: .25rem .5rem; font-size: .85rem; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border); z-index: 1040; display: none; }
@media (max-width: 768px) { .sticky-cta { display: block; } }


/* Mini-cart panel: slide in from right */
.mini-cart {
  position: fixed; top: 0; right: 0; width: 340px; height: 100vh; background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,0.08);
  transform: translateX(100%); transition: transform .25s ease; z-index: 1050;
}
.mini-cart.open { transform: translateX(0%); }

/* Footer accent heading */
.footer .text-accent { color: var(--accent); }

.navbar .dropdown-menu.mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  border: none;
  border-top: 2px solid var(--accent);
}
.navbar .nav-item.mega { position: static; }
.navbar .dropdown-item { padding: .25rem 0; white-space: nowrap; }
.object-fit-cover { object-fit: cover; }
.object-fit-contain { object-fit: contain; }

/* Navigation fit: reduce gaps and allow horizontal scroll on smaller screens */
.navbar-nav { gap: .5rem; }
@media (max-width: 992px) {
  .navbar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navbar-nav .nav-link { white-space: nowrap; padding-left: .4rem; padding-right: .4rem; font-size: .85rem; }
}

.product-carousel .carousel-item { height: 100%; }
.product-carousel .carousel-item img { height: 100%; }
.product-carousel { min-height: 420px; }
.media-with-thumbs { gap: .5rem; }
.thumbs-vertical { width: 80px; display: flex; flex-direction: column; gap: .5rem; }
.thumb-vert { border: 1px solid var(--border); background: #f8f8f8; border-radius: 8px; padding: 2px; width: 80px; height: 80px; display: grid; place-items: center; opacity: 0.85; }
.thumb-vert.selected { border-color: var(--accent); opacity: 1; }
.thumb-vert img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 576px) { .thumbs-vertical { width: 64px; } .thumb-vert { width: 64px; height: 64px; } }

/* Mobile compatibility: full-width carousel, hide side thumbnails */
@media (max-width: 768px) {
  .thumbs-vertical { display: none; }
  .media-with-thumbs { gap: 0; }
  .product-carousel { min-height: 300px; }
}

/* Desktop: show navbar dropdown on hover */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
  .navbar .dropdown:hover > .nav-link {
    color: var(--accent);
  }
  .navbar .dropdown .dropdown-menu {
    margin-top: 0;
    border-top: 2px solid var(--accent);
  }
}

/* Product Detail Gallery */
.product-gallery { position: relative; }
.product-gallery .gallery-main { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.product-gallery .gallery-main img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-gallery .thumb-strip { display: flex; gap: .5rem; padding: .75rem 0; }
.product-gallery .thumb { border: 1px solid var(--border); background: #f8f8f8; border-radius: 6px; padding: 2px; width: 64px; height: 64px; display: inline-grid; place-items: center; opacity: 0.75; }
.product-gallery .thumb.selected { opacity: 1; border-color: var(--accent); }
.product-gallery .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.navbar .nav-link { color: var(--dark); white-space: nowrap; padding: .25rem .5rem; font-size: .9rem; line-height: 1; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--accent); }
.navbar .nav-link i { margin-right: .35rem; font-size: .9em; }

.dropdown-menu.mega-menu .list-unstyled li a:hover { color: var(--accent); }

@media (max-width: 576px) {
  .hero .carousel-item { height: 50vh; min-height: 300px; }
  .hero .hero-banner { height: 40vh; min-height: 280px; }
  .hero .carousel-item img.hero-img, .hero .hero-banner img.hero-img { height: 100%; object-fit: cover; }
  .hero .hero-copy { padding: .75rem 1rem; background: none; }
  .hero .overlay h2 { font-size: 1.5rem; }
  .hero .overlay p { font-size: .95rem; }
  .mini-cart { width: 100vw; }
  .topbar .small a.me-3 { display: none; }
  .navbar-brand { font-size: 1.1rem; }
  .product-actions { bottom: .5rem; }
}
.navbar-brand img, .brand-logo { max-height: 72px; width: auto; display: block; }
.brand-text { font-weight: 700; letter-spacing: .5px; color: var(--dark); text-transform: uppercase; font-size: 1rem; }
@media (max-width: 576px) { .navbar-brand img, .brand-logo { max-height: 48px; } .brand-text { font-size: .95rem; } }
/* Extra small screen tweaks */
@media (max-width: 380px) {
  .product-title { font-size: .9rem; }
  .btn-accent { padding: .4rem .75rem; }
}

/* Modern pill-shaped search bar */
.search-pill {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding: 0 12px;
}
.search-pill:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--dark);
  background: transparent;
  padding: 0 8px;
}
.search-input[type="search"]::-webkit-search-cancel-button,
.search-input[type="search"]::-webkit-search-decoration,
.search-input[type="search"]::-webkit-search-results-button,
.search-input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-input[type="search"]::-ms-clear,
.search-input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}
.search-input::placeholder { color: #6b7280; }
.search-actions { display: flex; align-items: center; gap: 10px; }
.search-clear,
.search-submit {
  background: none;
  border: none;
  color: #444;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.search-clear:hover, .search-submit:hover { color: var(--accent); }
.search-divider { width: 1px; height: 22px; background: var(--border); display: inline-block; }
@media (max-width: 576px) {
  .search-pill { height: 46px; }
  .search-clear, .search-submit { width: 28px; height: 28px; }
}

@media (max-width: 576px) {
  #site-header .container.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  #site-header .row.align-items-center {
    row-gap: 10px;
  }
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mobile-bottom-nav-item {
  color: var(--dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 12px;
  min-height: 48px;
  font-size: 12px;
}

.mobile-bottom-nav-item i {
  font-size: 18px;
  line-height: 1;
}

.mobile-bottom-nav-item:active,
.mobile-bottom-nav-item:focus {
  color: var(--accent);
}

@media (max-width: 991.98px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

html {
  scroll-behavior: auto !important;
}
