/* =====================================================================
   wap.catalog — distinct, mobile-first storefront skin
   A clean Amazon-inspired (but simpler) overlay on top of the
   default.catalog framework. Re-tints framework CSS variables and adds
   a custom header / category strip / footer. Markup, classes and add-on
   compatibility stay identical to default.catalog (views/pages fall back).
   ===================================================================== */

/* ---- Palette & framework re-tint ------------------------------------ */
.vshop-theme {
  --vshop-header-bg: #0f1b2d;
  --vshop-subnav-bg: #1c2b40;
  --vshop-accent: #f59e0b;
  --vshop-accent-dark: #d97e06;
  --vshop-link: #0a6ebd;
  --vshop-page-bg: #eef1f4;
  --vshop-surface: #ffffff;
  --vshop-ink: #1b2733;
  --vshop-ink-soft: #5a6b7b;
  --vshop-line: #e2e6ec;
  --vshop-radius: 10px;
  --vshop-shadow: 0 1px 3px rgba(15, 27, 45, 0.08), 0 6px 18px rgba(15, 27, 45, 0.06);

  /* Map onto default.catalog variables for inherited components */
  --site-background-color: var(--vshop-page-bg);
  --whitespace-color: var(--vshop-surface);
  --default-text-color: var(--vshop-ink);
  --default-border-color: var(--vshop-line);
  --link-text-color: var(--vshop-ink);
  --shadow-color: rgba(15, 27, 45, 0.18);
  --card-background-color: var(--vshop-surface);
  --card-border-color: var(--vshop-line);
  --card-footer-background-color: #f7f8fa;
  --input-background-color: #fff;
  --input-text-color: var(--vshop-ink);
  --primary-button-background-color: var(--vshop-accent);
  --primary-button-background-color-hover: var(--vshop-accent-dark);
  --primary-button-background-color-active: var(--vshop-accent-dark);
  --primary-button-text-color: #1b2733;
  --breadcrumbs-background-color: transparent;
  --breadcrumbs-text-color: var(--vshop-ink-soft);

  background-color: var(--vshop-page-bg);
  color: var(--vshop-ink);
  -webkit-text-size-adjust: 100%;
}

/* ---- Global link reset inside wap theme ----------------------------- */
.vshop-theme a:link,
.vshop-theme a:visited { color: inherit; text-decoration: none; }
.vshop-theme a:hover,
.vshop-theme a:active  { color: inherit; text-decoration: none; }
/* Opt-in underline only for inline prose links */
.vshop-main p a,
.vshop-main .description a,
.vshop-main .content a:not([class]) { color: var(--vshop-link); text-decoration: underline; }

/* ---- Layout shell --------------------------------------------------- */
.vshop-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.vshop-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.vshop-main {
  flex: 1 0 auto;
  padding: 14px 0 32px;
}

/* ---- Top notice bar ------------------------------------------------- */
.vshop-notice-bar {
  background: var(--vshop-accent);
  color: #1b2733;
  font-size: 0.9rem;
  padding: 8px 0;
  text-align: center;
}

/* =====================================================================
   Header
   ===================================================================== */
.vshop-header {
  background: var(--vshop-header-bg);
  color: #fff;
}
.vshop-sticky-header .vshop-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Primary top bar */
.vshop-topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 12px;
}

.vshop-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  order: 2;
}
.vshop-brand img {
  height: 34px;
  width: auto;
  display: block;
}

/* Hamburger (mobile) */
.vshop-burger {
  order: 1;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 6px;
}
.vshop-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}
.vshop-burger:hover { background: rgba(255, 255, 255, 0.1); }

/* Search */
.vshop-search {
  order: 4;
  flex: 1 1 100%;
  display: flex;
  align-items: stretch;
  margin: 0;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.vshop-search .input-group {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0;
}
.vshop-search .input-group-icon { display: none; }
.vshop-search input,
.vshop-search [type="search"] {
  flex: 1 1 auto;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 42px;
  padding: 0 16px !important;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--vshop-ink) !important;
  border-radius: 999px 0 0 999px !important;
  min-width: 0;
  width: 100%;
}
.vshop-search input:focus { outline: none; }
.vshop-search__btn {
  flex: 0 0 auto;
  width: 52px;
  border: 0;
  background: var(--vshop-accent);
  color: #1b2733;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.vshop-search__btn:hover { background: var(--vshop-accent-dark); }

/* Right action cluster */
.vshop-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.vshop-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  line-height: 1.15;
  white-space: nowrap;
}
.vshop-action:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.vshop-action__icon { font-size: 1.25rem; }
.vshop-action__label { display: flex; flex-direction: column; font-size: 0.85rem; }
.vshop-action__label small { font-size: 0.7rem; opacity: 0.8; }
.vshop-action__label strong { font-weight: 700; }

/* Cart box (inherited markup from box_cart) */
.vshop-action--cart { color: #fff; }
.vshop-action--cart a { color: #fff !important; }
.vshop-action--cart .quantity,
.vshop-action--cart .badge {
  background: var(--vshop-accent) !important;
  color: #1b2733 !important;
}

/* Secondary category strip */
.vshop-subnav {
  background: var(--vshop-subnav-bg);
}
.vshop-subnav__scroll {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vshop-subnav__scroll::-webkit-scrollbar { display: none; }
.vshop-subnav__link {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #dce4ef;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
}
.vshop-subnav__link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.vshop-subnav__all { font-weight: 700; color: #fff; }

/* Hide framework navbar shadow we don't use */
.vshop-header .navbar-sticky { box-shadow: none; }

/* Checkout header bar (unified with the storefront header) */
.vshop-checkout-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px;
}
.vshop-checkout-bar .vshop-brand img { height: 32px; width: auto; display: block; }
.vshop-checkout-bar__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.vshop-checkout-bar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

/* =====================================================================
   Content surfaces & cards
   ===================================================================== */
.vshop-main .card {
  background: var(--vshop-surface);
  border: 1px solid var(--vshop-line);
  border-radius: var(--vshop-radius);
  box-shadow: var(--vshop-shadow);
}
.vshop-rounded-cards .vshop-main .card { border-radius: 16px; }

.vshop-main .card .card-header,
.vshop-main h1 {
  font-weight: 700;
  letter-spacing: 0.1px;
}

/* Product listing cards: subtle lift on hover */
.vshop-main .listing-item,
.vshop-main .product {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vshop-main .listing-item:hover,
.vshop-main .product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.12);
}

/* Buttons */
.vshop-theme .btn { border-radius: 8px; }
.vshop-theme .btn-primary,
.vshop-theme .btn-success { font-weight: 600; }

/* =====================================================================
   Footer — Amazon-style
   ===================================================================== */
.vshop-footer {
  flex-shrink: 0;
  margin-top: 24px;
  background: transparent;
  color: #cfd8e3;
}
.vshop-footer .card,
.vshop-footer .box {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #cfd8e3;
}

/* Columns section */
.vshop-footer-columns {
  background: #232f3e;
  padding: 32px 0 24px;
  border-bottom: 1px solid #3a4a5c;
  border-radius: 14px 14px 0 0;
}
.vshop-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 20px;
}
.vshop-footer-col {
  flex: 1 1 140px;
  min-width: 130px;
}
.vshop-footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 14px;
  padding: 0;
}
.vshop-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vshop-footer-col ul li {
  margin-bottom: 8px;
}
.vshop-footer-col ul li a,
.vshop-footer-col ul li a:link,
.vshop-footer-col ul li a:visited {
  color: #a4b8cc !important;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.4;
}
.vshop-footer-col ul li a:hover,
.vshop-footer-col ul li a:active {
  color: #ffffff !important;
  text-decoration: underline;
}
.vshop-footer-col ul li .fa {
  margin-inline-end: 5px;
  color: #7a97b4;
}

/* Bottom bar */
.vshop-footer-bottom {
  background: #131a22;
  padding: 14px 0;
  border-radius: 0 0 14px 14px;
}
.vshop-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.vshop-footer-store {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
}
.vshop-footer-copy {
  font-size: 0.78rem;
  color: #7a97b4;
}
.vshop-footer-copy a,
.vshop-footer-copy a:link,
.vshop-footer-copy a:visited { color: #9fc3e8 !important; text-decoration: none; }
.vshop-footer-copy a:hover { color: #fff !important; text-decoration: underline; }

@media (max-width: 479px) {
  .vshop-footer-grid { gap: 20px 16px; }
  .vshop-footer-col { flex: 1 1 calc(50% - 16px); min-width: 110px; }
  .vshop-footer-bottom-inner { justify-content: center; text-align: center; }
}

/* Floating scroll-up */
.vshop-theme a#scroll-up.vshop-scroll-up,
.vshop-theme a#scroll-up.vshop-scroll-up:link,
.vshop-theme a#scroll-up.vshop-scroll-up:visited {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #f5a623, #e8940a);
  border: 2px solid #c47c06;
  color: #1b2733 !important;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(15, 27, 45, 0.35);
  font-size: 1.1rem;
  text-decoration: none;
}
.vshop-theme a#scroll-up.vshop-scroll-up:hover,
.vshop-theme a#scroll-up.vshop-scroll-up:active {
  background: linear-gradient(to bottom, #f0980d, #d97e06);
  border-color: #a86404;
  color: #1b2733 !important;
  text-decoration: none;
}

/* =====================================================================
   Homepage sections
   ===================================================================== */
.vshop-hero {
  position: relative;
  margin: 0 0 18px;
  padding: 32px 20px;
  border-radius: var(--vshop-radius);
  background: linear-gradient(120deg, var(--vshop-hero-bg, #0f1b2d) 55%, var(--vshop-hero-bg-2, #1c3a5e));
  color: var(--vshop-hero-text, #ffffff);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 160px;
}
/* Decorative background shapes */
.vshop-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.vshop-hero::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.07);
  pointer-events: none;
}
.vshop-hero__inner { position: relative; z-index: 1; max-width: 560px; }
.vshop-hero__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1b2733;
  background: var(--vshop-hero-accent, #f59e0b);
  border-radius: 4px;
}
.vshop-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  line-height: 1.18;
  font-weight: 800;
  color: inherit;
}
.vshop-hero__copy {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.88;
  max-width: 420px;
}
.vshop-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vshop-hero__btn {
  display: inline-block;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.vshop-hero__btn--primary {
  background: var(--vshop-hero-accent, #f59e0b);
  color: #1b2733;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.vshop-hero__btn--primary:hover { background: #d97e06; color: #1b2733; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.vshop-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.vshop-hero__btn--ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-1px); }

/* Categories listing: 2 columns on small screens, framework auto-fill on larger */
.vshop-theme .listing.categories {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .vshop-theme .listing.categories {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Section heading */
.vshop-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vshop-ink);
}
.vshop-section-title a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* Quick category tiles */
.vshop-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.vshop-quick__tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--vshop-surface);
  border: 1px solid var(--vshop-line);
  border-radius: var(--vshop-radius);
  text-decoration: none;
  color: var(--vshop-ink);
  box-shadow: var(--vshop-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vshop-quick__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.12);
  color: var(--vshop-ink);
}
.vshop-quick__icon {
  font-size: 1.6rem;
  color: var(--vshop-accent-dark);
}
.vshop-quick__name { font-weight: 600; font-size: 0.95rem; }

/* =====================================================================
   Off-canvas — Amazon-style slide-in panel (fixed at ALL screen widths)
   ===================================================================== */
.vshop-offcanvas {
  background: #fff !important;
  color: var(--vshop-ink) !important;
}

/* Header strip */
.vshop-offcanvas__header {
  background: var(--vshop-header-bg);
  color: #fff;
  padding: 14px 16px;
}
.vshop-offcanvas__header .offcanvas-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.vshop-offcanvas__header .btn {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  line-height: 1;
  padding: 6px 10px;
}

/* Body */
.vshop-offcanvas .offcanvas-body { padding: 0; }
.vshop-offcanvas .navbar-nav {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

/* Section divider between the two nav groups */
.vshop-offcanvas .navbar-nav + .navbar-nav {
  border-top: 8px solid #f0f2f5;
  margin-top: 0;
  padding-top: 8px;
}

/* Every nav item: a single bottom separator line */
.vshop-offcanvas .nav-item {
  border-bottom: 1px solid #edf0f3;
}
.vshop-offcanvas .nav-item:last-child { border-bottom: 0; }

/* Nav links */
.vshop-offcanvas .nav-link {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 13px 18px !important;
  color: var(--vshop-ink) !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none !important;
  background: transparent !important;
  transition: background 0.12s;
}
.vshop-offcanvas .nav-link:hover,
.vshop-offcanvas .nav-link:active {
  background: #f4f6f8 !important;
  color: var(--vshop-ink) !important;
  text-decoration: none !important;
}

/* Text label — takes all available space to push arrow to the end */
.vshop-offcanvas .nav-link__text {
  flex: 1;
  min-width: 0;
  padding-inline-start: 8px;
}

/* Arrow indicator for top-level items */
.vshop-offcanvas .nav-item:not(.dropdown) > .nav-link::after {
  content: "\203A";
  font-size: 1.3rem;
  opacity: 0.35;
  line-height: 1;
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.1);
  margin-inline-start: 8px;
}
/* Dropdown toggle: replace framework arrow with styled one */
.vshop-offcanvas .dropdown-toggle::after {
  content: "\203A";
  font-size: 1.3rem;
  opacity: 0.4;
  float: none;
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.1);
  margin-inline-start: 8px;
  transition: transform 0.2s;
}
.vshop-offcanvas .dropdown.open > .nav-link .vshop-offcanvas .dropdown.open > .nav-link::after,
.vshop-offcanvas .dropdown.open > .dropdown-toggle::after {
  transform: rotate(90deg);
  opacity: 0.7;
}

/* Nested dropdown panel */
.vshop-offcanvas .dropdown-menu {
  position: static !important;
  float: none !important;
  display: none;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f7f9fb !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-top: 1px solid #edf0f3 !important;
}
.vshop-offcanvas .dropdown.open > .dropdown-menu { display: block !important; }

.vshop-offcanvas .dropdown-menu li {
  margin: 0 !important;
  border-bottom: 1px solid #edf0f3;
}
.vshop-offcanvas .dropdown-menu li:last-child { border-bottom: 0; }

.vshop-offcanvas .dropdown-menu .nav-link {
  padding: 11px 18px 11px 30px !important;
  font-size: 0.9rem;
  font-weight: 400;
  color: #3d4f61 !important;
  background: transparent !important;
}
.vshop-offcanvas .dropdown-menu .nav-link:hover {
  background: #edf0f4 !important;
  color: var(--vshop-ink) !important;
}
/* Remove the chevron on sub-items */
.vshop-offcanvas .dropdown-menu .nav-link::after { display: none !important; }

/* Force fixed slide-in on ALL widths (override framework desktop inline reset) */
@media (min-width: 992px) {
  .vshop-offcanvas {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px !important;
    height: auto !important;
    z-index: 1100 !important;
    visibility: hidden !important;
    transform: translateX(-100%) !important;
    transition: transform 150ms ease-in-out !important;
    overflow-y: auto !important;
    border-radius: 0 var(--vshop-radius) var(--vshop-radius) 0;
    box-shadow: 0 0 2em rgba(0, 0, 0, 0.25) !important;
  }
  [dir="rtl"] .vshop-offcanvas {
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%) !important;
    border-radius: var(--vshop-radius) 0 0 var(--vshop-radius);
  }
  .vshop-offcanvas.show { transform: translateX(0) !important; visibility: visible !important; }
  .vshop-offcanvas .offcanvas-header { display: flex !important; }
  .vshop-offcanvas .navbar-nav { flex-direction: column !important; }
}

/* =====================================================================
   Responsive — desktop refinements (mobile-first base above)
   ===================================================================== */
@media (min-width: 768px) {
  .vshop-burger { display: none; }
  .vshop-brand { order: 1; }
  .vshop-search {
    order: 2;
    flex: 1 1 auto;
    max-width: 720px;
    margin: 0 14px;
  }
  .vshop-actions { order: 3; gap: 6px; }
  .vshop-quick { grid-template-columns: repeat(4, 1fr); }
  .vshop-hero {
    padding: 44px 40px;
    min-height: 200px;
  }
}

@media (min-width: 1024px) {
  .vshop-quick { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile: hide verbose action labels */
@media (max-width: 767px) {
  .vshop-action--regional .vshop-action__label,
  .vshop-action--account .vshop-action__label { display: none; }
  .vshop-brand img { height: 28px; }
}
