/* =========================================================
   Nelkos Theme — main stylesheet
   Palette is driven by CSS variables (set via the Customizer)
   ========================================================= */
:root {
  --nelkos-primary: #d9650a;
  --nelkos-accent: #f5b81c;
  --nelkos-dark: #7a3410;
  --nelkos-bg: #fbf9f4;
  --nelkos-footer: #2b1808;
  --nelkos-border: #eee2d2;
  --nelkos-soft: #fdf2e3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--nelkos-bg);
  color: #2b1d12;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--nelkos-primary); text-decoration: none; }
a:hover { color: var(--nelkos-dark); }

.nelkos-container {
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------- Buttons ---------- */
.nelkos-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-block;
  background: var(--nelkos-primary);
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
  line-height: 1.2;
}
.nelkos-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--nelkos-dark);
  color: #fff !important;
}
.nelkos-btn--accent {
  background: var(--nelkos-accent);
  color: var(--nelkos-dark) !important;
}
.nelkos-btn--accent:hover { background: #e2a50f; color: var(--nelkos-dark) !important; }

.nelkos-notice {
  background: var(--nelkos-soft);
  border: 1px solid var(--nelkos-border);
  color: var(--nelkos-dark);
  padding: 14px 18px;
  border-radius: 12px;
  margin: 16px 0;
  font-weight: 500;
}

/* ---------- Top bar ---------- */
.nelkos-topbar {
  background: var(--nelkos-dark);
  color: rgba(255,255,255,.85);
  font-size: 12px;
}
.nelkos-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.nelkos-topbar__left strong { color: #fff; }
.nelkos-topbar__left .sep { margin: 0 8px; opacity: .4; }
.nelkos-topbar__right { display: flex; gap: 20px; }
.nelkos-topbar__right a { color: rgba(255,255,255,.85); }
.nelkos-topbar__right a:hover { color: #fff; }
@media (max-width: 782px) { .nelkos-topbar { display: none; } }

/* ---------- Header ---------- */
.nelkos-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nelkos-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.nelkos-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nelkos-header__brand { flex-shrink: 0; }
.nelkos-header__brand img { max-height: 52px; width: auto; }
.nelkos-brand { display: inline-flex; }
.nelkos-logo { display: inline-flex; align-items: center; gap: 8px; }
.nelkos-logo__text { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }

.nelkos-header__search { flex: 1; max-width: 760px; }
.nelkos-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--nelkos-accent);
  border-radius: 999px;
  overflow: hidden;
  height: 44px;
}
.nelkos-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 14px;
  color: #333;
  background: transparent;
}
.nelkos-search button {
  height: 100%;
  border: none;
  background: var(--nelkos-dark);
  color: #fff;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease;
}
.nelkos-search button:hover { background: #5e260b; }

.nelkos-header__actions { display: flex; align-items: center; gap: 6px; }
.nelkos-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  transition: color .18s ease;
}
.nelkos-action:hover { color: #ffe6b0; }
.nelkos-action span:last-child { margin-top: 3px; }
.nelkos-cart-icon { position: relative; }
.nelkos-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--nelkos-accent);
  color: var(--nelkos-dark);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
@media (max-width: 600px) {
  .nelkos-action span:last-child { display: none; }
  .nelkos-logo__text { display: none; }
}

/* ---------- Category nav ---------- */
.nelkos-catnav {
  background: #fff;
  border-bottom: 1px solid var(--nelkos-border);
  position: sticky;
  top: 68px;
  z-index: 30;
}
.nelkos-catnav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nelkos-catnav__inner::-webkit-scrollbar { display: none; }
.nelkos-catnav__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--nelkos-dark);
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.nelkos-catnav__all:hover { background: var(--nelkos-soft); }
.nelkos-catnav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nelkos-catnav__menu li a {
  display: inline-block;
  color: #4b3a2b;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nelkos-catnav__menu li a:hover { background: var(--nelkos-soft); color: var(--nelkos-primary); }

/* ---------- Hero ---------- */
.nelkos-hero-wrap { padding-top: 16px; }
.nelkos-hero-grid { display: flex; gap: 16px; }
.nelkos-hero-rail {
  width: 224px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--nelkos-border);
  border-radius: 12px;
  padding: 8px 0;
}
.nelkos-hero-rail a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #4b3a2b;
  transition: all .15s ease;
}
.nelkos-hero-rail a:hover { background: var(--nelkos-soft); color: var(--nelkos-primary); padding-left: 20px; }

.nelkos-hero {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
}
.nelkos-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--nelkos-dark);
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.nelkos-slide.is-active { opacity: 1; pointer-events: auto; }
.nelkos-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(122,52,16,.88), rgba(122,52,16,.4) 55%, transparent);
}
.nelkos-slide__content {
  position: relative;
  max-width: 540px;
  padding: 40px 56px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.nelkos-slide__eyebrow { color: var(--nelkos-accent); font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.nelkos-slide__content h2 { font-size: 44px; line-height: 1.05; margin: 0; font-weight: 800; }
.nelkos-slide__content p { font-size: 18px; margin: 12px 0 0; opacity: .95; }
.nelkos-slide__content .nelkos-btn { margin-top: 22px; align-self: flex-start; }

.nelkos-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--nelkos-dark);
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 3;
}
.nelkos-hero:hover .nelkos-hero__nav { opacity: 1; }
.nelkos-hero__nav--prev { left: 12px; }
.nelkos-hero__nav--next { right: 12px; }
.nelkos-hero__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.nelkos-dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(255,255,255,.7); cursor: pointer; transition: all .2s ease; }
.nelkos-dot.is-active { width: 24px; background: var(--nelkos-accent); }

.nelkos-hero-promos { width: 256px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.nelkos-promo {
  background: var(--nelkos-soft);
  border: 1px solid var(--nelkos-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow .18s ease;
}
.nelkos-promo:hover { box-shadow: 0 6px 18px rgba(122,52,16,.12); }
.nelkos-promo__dot { width: 44px; height: 44px; border-radius: 999px; background: #fff; flex-shrink: 0; box-shadow: inset 0 0 0 3px var(--nelkos-primary); }
.nelkos-promo strong { display: block; font-size: 14px; color: #2b1d12; }
.nelkos-promo span { font-size: 12px; color: #7a6a5b; }

@media (max-width: 1280px) { .nelkos-hero-promos { display: none; } }
@media (max-width: 1024px) { .nelkos-hero-rail { display: none; } }
@media (max-width: 600px) {
  .nelkos-hero { min-height: 220px; }
  .nelkos-slide__content { padding: 24px; }
  .nelkos-slide__content h2 { font-size: 28px; }
  .nelkos-slide__content p { font-size: 14px; }
}

/* ---------- Category tiles ---------- */
.nelkos-tiles-wrap { margin-top: 24px; }
.nelkos-tiles {
  background: #fff;
  border: 1px solid var(--nelkos-border);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.nelkos-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; transition: background .15s ease; }
.nelkos-tile:hover { background: var(--nelkos-soft); }
.nelkos-tile__img { width: 80px; height: 80px; border-radius: 999px; background-size: cover; background-position: center; border: 2px solid rgba(245,184,28,.4); }
.nelkos-tile:hover .nelkos-tile__img { border-color: var(--nelkos-primary); }
.nelkos-tile__name { font-size: 13px; font-weight: 500; color: #4b3a2b; text-align: center; }
@media (max-width: 768px) { .nelkos-tiles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Homepage sections ---------- */
.nelkos-section { margin-top: 32px; }
.nelkos-section__card { background: #fff; border: 1px solid var(--nelkos-border); border-radius: 12px; padding: 16px; }
.nelkos-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nelkos-section__head h2 { font-size: 24px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; color: #1f150c; }
.nelkos-section__head a { font-weight: 700; font-size: 14px; }
.nelkos-flame { color: var(--nelkos-primary); }
.nelkos-divider-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.nelkos-divider-head span { flex: 1; height: 1px; background: #eadfce; }
.nelkos-divider-head h2 { font-size: 24px; font-weight: 800; margin: 0; color: #1f150c; }

/* ---------- WooCommerce product grid / cards ---------- */
.woocommerce ul.products,
ul.products.nelkos-grid {
  display: grid !important;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
ul.products.columns-6 { grid-template-columns: repeat(6, 1fr); }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.woocommerce ul.products li.product,
ul.products.nelkos-grid li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid var(--nelkos-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.woocommerce ul.products li.product:hover,
ul.products.nelkos-grid li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122,52,16,.14);
}
.woocommerce ul.products li.product a img,
ul.products.nelkos-grid li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #f6f1e9;
  display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products.nelkos-grid li.product .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 500;
  color: #2b1d12;
  padding: 12px 12px 0 !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}
.woocommerce ul.products li.product .price,
ul.products.nelkos-grid li.product .price {
  color: var(--nelkos-primary) !important;
  font-weight: 800;
  font-size: 18px;
  padding: 6px 12px 0 !important;
  display: block;
}
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
ul.products.nelkos-grid li.product .price del,
ul.products.nelkos-grid li.product .price del .woocommerce-Price-amount { color: #aaa !important; font-weight: 400 !important; font-size: 13px !important; }
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
ul.products.nelkos-grid li.product .price ins .woocommerce-Price-amount { text-decoration: none; font-weight: 800 !important; }
.woocommerce ul.products li.product .button,
ul.products.nelkos-grid li.product .button {
  margin: 12px !important;
  width: calc(100% - 24px);
  text-align: center;
  padding: 9px 14px !important;
  font-size: 13px;
}
.nelkos-sale-badge {
  position: absolute;
  bottom: auto;
  top: 10px;
  left: 10px;
  background: var(--nelkos-accent);
  color: var(--nelkos-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}
.woocommerce span.onsale { display: none; }

@media (max-width: 1100px) { ul.products.columns-6 { grid-template-columns: repeat(4, 1fr); } .woocommerce ul.products.columns-4 { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 768px) { ul.products.columns-6, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Shop layout ---------- */
.nelkos-shop-wrap { padding-top: 20px; padding-bottom: 20px; }
.nelkos-shop-layout { display: flex; gap: 20px; }
.nelkos-shop-main { flex: 1; min-width: 0; }
.nelkos-shop-sidebar { width: 240px; flex-shrink: 0; }
.nelkos-shop-sidebar .widget {
  background: #fff;
  border: 1px solid var(--nelkos-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.widget-title { font-size: 16px; font-weight: 800; margin: 0 0 12px; color: #1f150c; }
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 16px; }
.woocommerce-ordering select {
  border: 1px solid var(--nelkos-border);
  border-radius: 8px;
  padding: 8px 10px;
}
@media (max-width: 900px) { .nelkos-shop-sidebar { display: none; } }

.page-title, .woocommerce-products-header__title {
  font-size: 28px;
  font-weight: 800;
  color: #1f150c;
}

/* ---------- Single product ---------- */
.single-product div.product { display: grid; grid-template-columns: 460px 1fr; gap: 28px; }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; margin: 0 !important; }
.single-product div.product .product_title { font-size: 26px; font-weight: 800; color: #1f150c; }
.single-product div.product p.price { color: var(--nelkos-primary) !important; font-size: 30px; font-weight: 800; }
.single-product div.product .price del,
.single-product div.product .price del .woocommerce-Price-amount { color: #aaa !important; font-size: 18px; font-weight: 400 !important; }
.single-product div.product .price ins,
.single-product div.product .price ins .woocommerce-Price-amount { text-decoration: none; font-weight: 800 !important; }
.single-product .woocommerce-tabs { grid-column: 1 / -1; }
.single-product .related.products,
.single-product .upsells.products { grid-column: 1 / -1; }
.woocommerce div.product form.cart .quantity input {
  border: 1px solid var(--nelkos-border);
  border-radius: 8px;
  padding: 8px;
  width: 64px;
}
.woocommerce .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--nelkos-primary); }
.woocommerce .woocommerce-tabs ul.tabs li.active a { color: var(--nelkos-primary); }
@media (max-width: 900px) { .single-product div.product { grid-template-columns: 1fr; } }

/* ---------- Cart / checkout accents ---------- */
.woocommerce-cart table.cart,
.woocommerce table.shop_table {
  border-radius: 12px;
  border: 1px solid var(--nelkos-border) !important;
  overflow: hidden;
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details {
  background: #fff;
  border: 1px solid var(--nelkos-border);
  border-radius: 12px;
  padding: 16px;
}
.woocommerce-message,
.woocommerce-info { border-top-color: var(--nelkos-primary); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--nelkos-primary); }

/* ---------- Blog / pages ---------- */
.nelkos-main-wrap { padding-top: 24px; padding-bottom: 24px; }
.nelkos-page-content { padding-top: 24px; padding-bottom: 24px; }
.nelkos-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nelkos-post-card { background: #fff; border: 1px solid var(--nelkos-border); border-radius: 12px; overflow: hidden; padding-bottom: 16px; }
.nelkos-post-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.nelkos-post-title { font-size: 18px; margin: 12px 16px 4px; }
.nelkos-post-meta { font-size: 12px; color: #998877; margin: 0 16px 8px; }
.nelkos-post-excerpt { font-size: 14px; color: #5b4a3b; margin: 0 16px 12px; }
.nelkos-post-card .nelkos-btn { margin: 0 16px; }
@media (max-width: 768px) { .nelkos-posts { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.nelkos-footer { background: var(--nelkos-footer); color: rgba(255,255,255,.7); margin-top: 48px; }
.nelkos-footer__trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.trust-item { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 14px; }
.trust-ico { width: 44px; height: 44px; border-radius: 999px; background: var(--nelkos-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nelkos-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; }
.nelkos-footer__brandcol p { font-size: 14px; line-height: 1.6; margin-top: 16px; }
.footer-widget-title { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-widget a:hover { color: var(--nelkos-accent); }
.nelkos-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; flex-wrap: wrap; }
.nelkos-footer__legal { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nelkos-footer__legal a { color: rgba(255,255,255,.7); }
.nelkos-footer__legal a:hover { color: #fff; }
@media (max-width: 768px) {
  .nelkos-footer__trust { grid-template-columns: repeat(2, 1fr); }
  .nelkos-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
  border-radius: 8px;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--nelkos-primary); color: #fff; }

/* ---------- All Categories mega menu ---------- */
.nelkos-catnav__sep { width: 1px; height: 20px; background: var(--nelkos-border); margin: 0 6px; flex-shrink: 0; }
.nelkos-mega { position: relative; flex-shrink: 0; }
.nelkos-mega__trigger {
  display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent;
  font-weight: 700; color: var(--nelkos-dark); padding: 7px 12px; border-radius: 8px;
  white-space: nowrap; cursor: pointer; font-size: 14px;
}
.nelkos-mega__trigger:hover, .nelkos-mega.is-open .nelkos-mega__trigger { background: var(--nelkos-soft); color: var(--nelkos-primary); }
.nelkos-mega__panel {
  position: absolute; left: 0; top: 100%; margin-top: 8px; z-index: 60;
  display: none; background: #fff; border: 1px solid var(--nelkos-border);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(122,52,16,.22);
  width: min(94vw, 1080px); overflow: hidden;
}
.nelkos-mega.is-open .nelkos-mega__panel, .nelkos-mega:hover .nelkos-mega__panel { display: flex; }
.nelkos-mega__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: transparent; }
.nelkos-mega__rail { width: 252px; flex-shrink: 0; max-height: 560px; overflow-y: auto; border-right: 1px solid #f1e7d8; padding: 8px 0; }
.nelkos-mega__cat { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: #4b3a2b; }
.nelkos-mega__cat:hover, .nelkos-mega__cat.is-active { background: var(--nelkos-soft); color: var(--nelkos-primary); }
.nelkos-mega__cat-ico { display: inline-flex; color: inherit; }
.nelkos-mega__cat-name { font-size: 14px; flex: 1; }
.nelkos-mega__cat-arrow { opacity: 0; font-size: 18px; line-height: 1; }
.nelkos-mega__cat.is-active .nelkos-mega__cat-arrow { opacity: 1; }
.nelkos-mega__content { flex: 1; max-height: 560px; overflow-y: auto; padding: 20px; min-width: 0; }
.nelkos-mega__view { display: none; }
.nelkos-mega__view.is-active { display: block; }
.nelkos-mega__view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nelkos-mega__view-head h3 { font-size: 16px; font-weight: 800; margin: 0; color: #1f150c; }
.nelkos-mega__view-head a { font-size: 12px; font-weight: 700; color: var(--nelkos-primary); }
.nelkos-mega__label { font-size: 14px; font-weight: 800; color: #2b1d12; margin: 14px 0 10px; }
.nelkos-mega__rec { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #f1e7d8; }
.nelkos-mega__rec-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.nelkos-mega__rec-img { width: 100%; aspect-ratio: 1/1; border-radius: 8px; background-size: cover; background-position: center; background-color: #f6f1e9; border: 1px solid var(--nelkos-border); }
.nelkos-mega__rec-item span:last-child { font-size: 11px; color: #6b5a4b; line-height: 1.2; }
.nelkos-mega__rec-item:hover span:last-child { color: var(--nelkos-primary); }
.nelkos-mega__brands { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #f1e7d8; }
.nelkos-mega__brand { aspect-ratio: 1/1; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; text-align: center; padding: 2px; line-height: 1.1; }
.nelkos-mega__brand:hover { opacity: .9; color: #fff; }
.nelkos-mega__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 14px; }
.nelkos-mega__col-title { display: block; font-size: 14px; font-weight: 800; color: #1f150c; margin-bottom: 8px; }
.nelkos-mega__col-title:hover { color: var(--nelkos-primary); }
.nelkos-mega__col ul { list-style: none; margin: 0; padding: 0; }
.nelkos-mega__col li { margin-bottom: 7px; }
.nelkos-mega__col li a { font-size: 13px; color: #6b5a4b; }
.nelkos-mega__col li a:hover { color: var(--nelkos-primary); }
@media (max-width: 900px) { .nelkos-mega__panel { width: 96vw; } .nelkos-mega__rail { width: 180px; } .nelkos-mega__rec { grid-template-columns: repeat(4,1fr); } .nelkos-mega__brands { grid-template-columns: repeat(5,1fr); } .nelkos-mega__cols { grid-template-columns: repeat(2,1fr); } }

/* ---------- Promo strip (above category nav) ---------- */
.nelkos-promostrip { background: linear-gradient(90deg,#fff7e6,#fdeccd,#fff7e6); border-bottom: 1px solid #f0e1c6; overflow: hidden; }
.nelkos-promostrip__inner { max-width: 1500px; margin: 0 auto; height: 36px; display: flex; align-items: center; overflow: hidden; }
.nelkos-promostrip__track { display: flex; white-space: nowrap; animation: nelkosMarquee 28s linear infinite; }
.nelkos-promostrip__row { display: flex; align-items: center; gap: 32px; padding: 0 16px; flex-shrink: 0; }
.nelkos-promo-item { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nelkos-promo-gift { color: #d9211f; font-weight: 800; }
.nelkos-promo-gift .g { animation: giftWiggleWp 1s ease-in-out infinite; display: inline-block; }
@keyframes nelkosMarquee { 0% { transform: translateX(0);} 100% { transform: translateX(-50%);} }
@keyframes giftWiggleWp { 0%,100%{transform:rotate(-8deg);} 50%{transform:rotate(8deg);} }
@keyframes nelkosFlash { 0%,100%{opacity:1;} 50%{opacity:.55;} }
.nelkos-flash { animation: nelkosFlash 1.3s ease-in-out infinite; }

/* ---------- Hero free-gift badge + benefit bar ---------- */
.nelkos-hero { position: relative; }
.nelkos-hero__gift { position: absolute; top: 14px; right: 18px; z-index: 4; background: #d9211f; color: #fff; width: 72px; height: 72px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); font-size: 10px; font-weight: 800; text-align: center; }
.nelkos-slide__content h2 { font-size: 38px; }
.nelkos-hero { min-height: 260px; }
.nelkos-benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 16px; }
.nelkos-benefit { background: #fff; border: 1px solid var(--nelkos-border); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.nelkos-benefit .ico { width: 40px; height: 40px; border-radius: 999px; background: var(--nelkos-soft); color: var(--nelkos-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.nelkos-benefit strong { display: block; font-size: 13px; color: #2b1d12; }
.nelkos-benefit span { font-size: 11px; color: #7a6a5b; }
@media (max-width:768px){ .nelkos-benefits{ grid-template-columns: repeat(2,1fr);} }

/* ---------- Section gradient banner ---------- */
.nelkos-secbanner { position: relative; overflow: hidden; border-radius: 14px 14px 0 0; padding: 12px 20px; display: flex; align-items: center; gap: 10px; }
.nelkos-secbanner.flash { background: linear-gradient(90deg,#ffe9c2,#ffd591,#ffefd2); }
.nelkos-secbanner.best { background: linear-gradient(90deg,#ffe1d2,#ffc6ac,#ffe9de); }
.nelkos-secbanner.love { background: linear-gradient(90deg,#ffe9c2,#f8c9d6,#ffe9c2); }
.nelkos-secbanner h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--nelkos-dark); }
.nelkos-secbanner .gift-deco { position: absolute; right: -6px; bottom: -10px; font-size: 56px; color: rgba(255,255,255,.45); }
.nelkos-section__card.has-banner { border-radius: 0 0 14px 14px; border-top: none; }

/* ---------- Loop product meta ---------- */
.nelkos-loop-meta { padding: 2px 12px 0; display: flex; flex-direction: column; gap: 2px; }
.nelkos-loop-sold { font-size: 11px; color: #8a786a; }
.nelkos-loop-left { font-size: 11px; color: #d9211f; font-weight: 700; }
.nelkos-loop-ship { font-size: 11px; font-weight: 700; }
.nelkos-loop-ship.tone-green { color: #0f8a5f; }
.nelkos-loop-ship.tone-blue { color: #1a73e8; }
.nelkos-loop-ship.tone-muted { color: #8a786a; font-weight: 500; }
.nelkos-loop-bought { font-size: 11px; color: #a0907f; }
.nelkos-ext-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nelkos-buy-now { background: var(--nelkos-primary) !important; color: #fff !important; margin-left: 8px; }
.nelkos-buy-now:hover { background: #bf560a !important; }

/* ---------- Single product delivery box ---------- */
.nelkos-single-delivery { border: 1px solid var(--nelkos-border); border-radius: 12px; margin: 14px 0; }
.nelkos-single-delivery .row { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f3ece1; align-items: flex-start; }
.nelkos-single-delivery .row:last-of-type { border-bottom: none; }
.nelkos-single-delivery .ico { font-size: 18px; }
.nelkos-single-delivery .ico.tone-blue { color: #1a73e8; }
.nelkos-single-delivery .ico.tone-green { color: #0f8a5f; }
.nelkos-single-delivery strong { display: block; font-size: 14px; }
.nelkos-single-delivery strong.tone-green { color: #0f8a5f; }
.nelkos-single-delivery strong.tone-blue { color: #1a73e8; }
.nelkos-single-delivery span { font-size: 12px; color: #7a6a5b; }
.nelkos-bought { padding: 8px 12px; border-top: 1px solid #f3ece1; font-size: 12px; color: #7a6a5b; }

/* ---------- Search by image modal ---------- */
.nelkos-imgmodal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
.nelkos-imgmodal.is-open { display: flex; }
.nelkos-imgmodal__bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.nelkos-imgmodal__box { position: relative; background: #fff; border-radius: 16px; padding: 24px; width: min(92vw,420px); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.nelkos-imgmodal__box h3 { margin: 0 0 4px; font-size: 18px; color: #1f150c; }
.nelkos-imgmodal__drop { border: 2px dashed var(--nelkos-accent); background: #fdf7ec; border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; margin-top: 12px; }
.nelkos-imgmodal__close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 22px; cursor: pointer; color: #999; }
.nelkos-header__cam { background: none; border: none; color: #9aa; cursor: pointer; padding: 0 8px; display: inline-flex; align-items: center; }
.nelkos-header__cam:hover { color: var(--nelkos-primary); }

/* ---------- You may also like (single product) ---------- */
.nelkos-you-may-like { margin: 28px auto; }
.nelkos-yml-title { font-size: 20px; font-weight: 800; color: var(--nelkos-dark); margin: 0 0 14px; }
.nelkos-you-may-like ul.products { margin: 0; }
