/*
 * 1op1.store overrides. styles.css stays the untouched template stylesheet;
 * put project-specific CSS here (loaded after styles.css).
 */

/* Fashion header on pages without a hero image: same layout, light background. */
.op-header.header-light {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.op-header.header-light .btn-open-search {
  color: var(--text);
  border-bottom-color: var(--line);
}

/* Company registration line in the footer (KvK / btw). */
.footer-legal {
  font-size: 12px;
}

/* ---------------------------------------------------------------- Next.js storefront
   One header markup (header-s7 header-light) for all pages. A page that starts with a hero renders
   an element with .has-overlay-header; the rules below then turn the header into the template's
   transparent home header (header-abs-3 / hds7-type-2 / style-white-2 / logo-white). */
.op-header .logo-white { display: none; }
body:has(.has-overlay-header) .op-header {
  background: transparent;
  border-bottom: 0;
  margin-bottom: -124px;
}
@media (max-width: 1199px) {
  body:has(.has-overlay-header) .op-header { margin-bottom: -60px; }
}
body:has(.has-overlay-header) .op-header.header-sticky {
  background: rgba(114, 114, 114, 0.6);
  backdrop-filter: blur(12px);
}
body:has(.has-overlay-header) .op-header .logo-white { display: inline-block; }
body:has(.has-overlay-header) .op-header .logo-dark { display: none; }
body:has(.has-overlay-header) .op-header .box-navigation .item-link,
body:has(.has-overlay-header) .op-header .btn-open-menu,
body:has(.has-overlay-header) .op-header .btn-open-search {
  color: var(--white);
}
/* The icons carry Bootstrap's .link-dark (color !important); the template adds .text-white (also
   !important, later in bootstrap.css). Same result without changing the markup per page: */
body:has(.has-overlay-header) .op-header .nav-icon-item {
  color: var(--white) !important;
}
body:has(.has-overlay-header) .op-header .btn-open-search { border-bottom-color: var(--white); }
body:has(.has-overlay-header) .op-header .box-navigation .item-link .cus-text::after { background: var(--text); }
body:has(.has-overlay-header) .op-header .box-navigation .menu-item:hover .item-link { color: var(--text); }
.op-header .item-link[role="button"] { cursor: pointer; }

/* Native language select (template used bootstrap-select). */
.site-lang-select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0 4px;
}
.site-lang-select.is-light { color: var(--white); }
.site-lang-select.is-light option { color: var(--text); }
.op-topbar .op-list.list-currenci { gap: 20px; align-items: center; }

/* Sold-out badge (template only has new / sale / trend). */
.product-badge_item.out-of-stock { background: var(--text-2, #545454); color: var(--white); }

/* Scrolling text strip under the home banner (template used infinityslide.js). */
.marquee-css { overflow: hidden; white-space: nowrap; }
.marquee-css .marquee-track { display: inline-flex; gap: 60px; padding-right: 60px; animation: marquee-css 30s linear infinite; }
.marquee-css .marquee-track .text { margin: 0; }
@keyframes marquee-css { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-css .marquee-track { animation: none; } }

/* Shop: native sort select styled like the template dropdown button. */
.shop-sort-select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 36px 8px 14px; background: var(--white); font: inherit; cursor: pointer; }
.shop-filter-form .form-check-input { cursor: pointer; }

/* Server-rendered stand-in for a carousel until Swiper loads (components/ui/Carousel.tsx). */
.carousel-static { display: grid; grid-template-columns: repeat(var(--c-base), minmax(0, 1fr)); gap: var(--g-base); overflow: hidden; }
@media (min-width: 575px) { .carousel-static { grid-template-columns: repeat(var(--c-sm), minmax(0, 1fr)); } }
@media (min-width: 768px) { .carousel-static { grid-template-columns: repeat(var(--c-md), minmax(0, 1fr)); gap: var(--g-md); } }
@media (min-width: 1200px) { .carousel-static { grid-template-columns: repeat(var(--c-lg), minmax(0, 1fr)); gap: var(--g-lg); } }

/* Product gallery arrows in the template's text color instead of Swiper's default blue. */
.op-product-media-main { --swiper-navigation-color: var(--text); --swiper-navigation-size: 28px; }

/* Product cards: the template's photos are all 3:4; ours are not, so the image fills the 3:4 card
   (.card-product_wrapper has aspect-ratio 0.75, the link inside had no height). */
.card-product_wrapper .product-img {
  display: block;
  height: 100%;
}

/* Card / quick view buttons are <button>s (the template used <a href="#">). */
.card-product .product-action_list .box-icon,
.card-product .product-action_bot .op-btn {
  cursor: pointer;
}

/* Sticky elements follow the header (template main.js headerSticky): --header-offset is the visible
   sticky header's height, 0 while it is hidden (set by HeaderShell). */
.sticky-top {
  top: calc(var(--header-offset, 0px) + 15px);
  transition: top 0.3s ease;
}
.sticky-top.no-offset {
  top: var(--header-offset, 0px);
}

/* Mini cart: same image size on every line (only max-width in the template; long names shrank it). */
.op-mini-cart-item .op-mini-cart-image {
  width: 100px;
  flex-shrink: 0;
}
.op-mini-cart-item .op-mini-cart-image img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (max-width: 575px) {
  .popup-shopping-cart .op-mini-cart-item .op-mini-cart-image {
    width: 80px;
  }
}

/* Footer social icons: networks without a URL yet (config/site.ts) are <span>s; give them the
   template's round frame too (styles.css only styles .op-social-icon-2 a). */
.op-social-icon-2 li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
@media (min-width: 1200px) {
  .op-social-icon-2 li > span {
    width: 44px;
    height: 44px;
  }
}

/* Mini cart lines never scroll sideways (a long name / price used to show a horizontal scrollbar). */
.popup-shopping-cart .op-mini-cart-sroll {
  overflow-x: hidden;
}
.popup-shopping-cart .op-mini-cart-info {
  min-width: 0;
}

/* Shop layout switch: highlight the layout actually shown (CSS limits the grid to 2 columns up to
   767px and 3 up to 1199px, like the template's shop.js). */
@media (max-width: 767px) {
  .op-control-layout .sw-layout-2 {
    background: var(--text);
    color: var(--white);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .op-control-layout[data-columns="4"] .sw-layout-3 {
    background: var(--text);
    color: var(--white);
  }
  .op-control-layout[data-columns="4"] .sw-layout-4.active {
    background: var(--bg);
    color: inherit;
  }
}

/* Product page breadcrumb on one line on phones (long product names wrapped it); the current page
   is cut off with "…" instead. */
@media (max-width: 767px) {
  .section-page-title-single .breadcrumbs {
    flex-wrap: nowrap;
    min-width: 0;
    white-space: nowrap;
  }
  .section-page-title-single .breadcrumbs [aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}

/* Quick add window. Size buttons are <button>s: no browser grey, but no Bootstrap bg-transparent either
   (its !important hid the template's black "active" background, leaving white text on white). */
.quick-variant-picker.picker_size button.size_btn {
  background: transparent;
}
/* A little smaller than on the product page, and "Buy it now" not glued to the row above. */
.modal-quickadd .op-product-total-quantity .wg-quantity,
.modal-quickadd .op-product-total-quantity .btn-action-price,
.modal-quickadd .op-product-total-quantity .btn-primary {
  height: 44px;
  min-height: 44px;
}
.modal-quickadd .op-product-total-quantity .btn-action-price,
.modal-quickadd .op-product-total-quantity .btn-primary {
  font-size: 14px;
  padding-left: 16px;
  padding-right: 16px;
}
.modal-quickadd .op-product-total-quantity .btn-primary {
  margin-top: 12px;
}
.canvas-quickview .op-product-total-quantity .btn-primary {
  margin-top: 12px;
}
