/* ==========================================================================
   Delmart UI — site-wide custom theme layer
   --------------------------------------------------------------------------
   Additive, presentation-only restyle of the stock PrestaShop "classic" theme
   for the Delmart B2C grocery store. Loaded AFTER theme.css (see head.tpl).

   Principles:
     • No markup, hook, module, route, or Smarty logic is changed.
     • Every rule targets existing classes/ids that the theme already renders.
     • Page-specific chrome is scoped by body id so unrelated pages are safe.
     • Brand: orange (#F16422) primary + fresh-green accent + warm neutrals.

   Index:
     1.  Design tokens
     2.  Global base (fonts, helpers)
     3.  Header (utility bar, main row, search, account, cart, menu)
     4.  Product card (global — home, listing, search)
     5.  Home: image slider
     6.  Home: product sections (featured / specials / bestsellers)
     7.  Home: banner & custom text
     8.  Newsletter
     9.  Footer
     10. Listing pages: shell, breadcrumb, sidebar, header, toolbar, pagination
     11. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --dl-brand: #F16422;
  --dl-brand-dark: #D8531A;
  --dl-brand-soft: #FFF1E9;
  --dl-green: #1F9D55;
  --dl-green-dark: #178045;
  --dl-green-soft: #E7F6EC;

  --dl-ink: #1F2430;
  --dl-muted: #6B7280;
  --dl-line: #ECE7E3;
  --dl-bg: #F6F7F9;
  --dl-card: #FFFFFF;
  --dl-charcoal: #2B2A28;

  --dl-radius: 14px;
  --dl-radius-sm: 10px;
  --dl-radius-lg: 20px;
  --dl-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .07);
  --dl-shadow-hover: 0 12px 30px rgba(17, 24, 39, .13);

  --dl-container: 1240px;
  --dl-font-head: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --dl-font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* 2. Global base --------------------------------------------------------- */
body {
  font-family: var(--dl-font-body);
  color: var(--dl-ink);
  background: var(--dl-bg);
}

/* Branded headings use Rubik (scoped to avoid disturbing module internals) */
.products-section-title,
.page-header h1,
#js-product-list-header .h1,
.block-category h1,
.slider-caption h2,
.carousel .caption h2,
#block-newsletter-label,
.footer-container .h3,
.footer-container h3 {
  font-family: var(--dl-font-head);
  letter-spacing: -.01em;
}

a {
  transition: color .15s ease;
}

/* 3. Header -------------------------------------------------------------- */
/* Top utility bar — light, readable (contact / account / cart) */
.header-nav {
  background: #fff;
  border-bottom: 1px solid var(--dl-line);
  font-size: 13.5px;
}

.header-nav .container {
  padding-top: 7px;
  padding-bottom: 7px;
}

/* The two utility-bar columns sit in a plain .hidden-sm-down wrapper (not a
   flex .row), so the left "Contact us" top-aligns while the taller cart pill
   on the right doesn't. Make the wrapper a centred flex row so everything
   shares one vertical baseline. */
.header-nav .row > .hidden-sm-down {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-nav .row > .hidden-sm-down > [class*="col-"] {
  display: flex;
  align-items: center;
}

/* theme.css pushes these down with `margin-top: .9375rem` at ID specificity,
   which knocks Contact us / Sign in out of line with the cart. Cancel it
   (selectors match theme's specificity so this wins, loaded later). */
#header .header-nav #_desktop_contact_link #contact-link,
#header .header-nav .language-selector,
#header .header-nav .currency-selector,
#header .header-nav .user-info {
  margin-top: 0;
}

.header-nav a,
.header-nav #contact-link a,
.header-nav .user-info a,
.header-nav .expand-more {
  color: var(--dl-muted);
  font-weight: 600;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav .user-info a:hover {
  color: var(--dl-brand);
}

.header-nav .material-icons {
  font-size: 18px;
  vertical-align: middle;
}

.header-nav .right-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* Sign-in / account link — icon + label vertically centred */
.header-nav #_desktop_user_info,
.header-nav #_desktop_cart {
  display: flex;
  align-items: center;
}

.header-nav .user-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.header-nav .user-info .material-icons {
  font-size: 18px;
}

/* Cart container — neutralise theme's `#header .header-nav .blockcart`
   (height:3rem; background:#f6f6f6; margin-left) using matching ID specificity */
#header .header-nav .blockcart {
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Cart pill — compact orange primary action so the utility bar stays slim */
.header-nav .blockcart .header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dl-brand);
  color: #fff;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  transition: background .15s ease;
}

.header-nav .blockcart .header .material-icons {
  font-size: 17px;
}

.header-nav .blockcart .header:hover {
  background: var(--dl-brand-dark);
}

/* Cart icon + label white — beat the theme's dark icon colour with ID
   specificity (the orange pill needs a white cart glyph). */
#header .header-nav .blockcart .header,
#header .header-nav .blockcart .header a,
#header .header-nav .blockcart .header span,
#header .header-nav .blockcart .header .material-icons {
  color: #fff !important;
}

/* Main header row */
.header-top {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--dl-line);
}

.header-top .menu,
.header-top #_desktop_top_menu {
  margin-top: 6px;
}

/* Search widget (ps_searchbar) — real markup is [i.search] [input] [i.clear] */
#search_widget {
  width: 100%;
}

#search_widget > form,
#search_widget form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--dl-line);
  background: var(--dl-bg);
  padding: 0 16px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#search_widget form:focus-within {
  border-color: var(--dl-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(241, 100, 34, .12);
}

/* Reset theme.css `#search_widget form i { position:absolute; padding:.5rem }`
   (ID-level, 1,0,0,2) — same selector so this wins (loaded later). Without
   this the icons are pulled out of the flex flow and mis-aligned. */
#search_widget form i {
  position: static;
  padding: 0;
  line-height: 1;
}

/* Input first (left); magnifier sits on the right of the pill (per design). */
#search_widget input[type="text"],
#search_widget input[name="s"] {
  order: -1;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--dl-font-body);
  font-size: 15px;
  line-height: normal;
  color: var(--dl-ink);
  outline: none;
  box-shadow: none;
}

#search_widget input[name="s"]::placeholder {
  color: var(--dl-muted);
}

#search_widget .material-icons.search {
  order: 2;
  color: var(--dl-brand);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

#search_widget .material-icons.clear {
  order: 1;
  color: var(--dl-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

/* Main navigation menu (ps_mainmenu) */
#_desktop_top_menu .top-menu,
.header-top .top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

#_desktop_top_menu .top-menu > li > a,
.header-top .top-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--dl-ink);
  font-weight: 600;
  font-size: 15px;
  text-transform: none;
  text-decoration: none;
}

#_desktop_top_menu .top-menu > li > a:hover,
.header-top .top-menu > li.active > a,
.header-top .top-menu > li > a:hover {
  background: var(--dl-brand-soft);
  color: var(--dl-brand-dark);
}

/* 4. Product card (global) ---------------------------------------------- */
.products {
  margin-left: -10px;
  margin-right: -10px;
}

.products > .product,
.products > .js-product {
  padding: 10px;
}

.product-miniature {
  margin: 0;
}

.product-miniature .thumbnail-container {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  background: var(--dl-card);
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-miniature .thumbnail-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow-hover);
  border-color: #e7ddd5;
}

.product-miniature .thumbnail-top {
  position: relative;
  margin: 0;
}

/* Image area — these selectors MATCH theme.css exactly (.thumbnail-container
   .product-thumbnail = 0,0,3,0 / ...img = 0,0,4,0) so, loaded after theme.css,
   they override its height:calc(100% - 70px) and img{height:auto;margin:auto}. */
.product-miniature .thumbnail-container .product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: #fff;
}

.product-miniature .thumbnail-container .product-thumbnail picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-miniature .thumbnail-container .product-thumbnail img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s ease;
}

.product-miniature .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.05);
}

.product-miniature .product-description {
  position: static;
  width: 100%;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--dl-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  text-align: left;
}

.product-miniature .product-title {
  margin: 0;
  min-height: 2.6em;
  text-align: left;
  width: 100%;
}

.product-miniature .product-title a {
  color: var(--dl-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  text-decoration: none;
}

.product-miniature .product-title a:hover {
  color: var(--dl-brand);
}

.product-miniature .product-price-and-shipping {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.product-miniature .price {
  color: var(--dl-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.product-miniature .regular-price {
  color: var(--dl-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
}

.product-miniature .discount-product {
  background: var(--dl-brand-soft);
  color: var(--dl-brand-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Flags — compact stacked tags, top-left, capped so long custom labels
   (e.g. "Current supply. Ordering available") don't cover the product image.
   Every flag type is preserved; only its appearance changes. */
.product-miniature .product-flags {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

/* Higher specificity (+ !important on layout) to beat the theme's own
   .product-flag.on-sale rules that force full width / uppercase / centering. */
.product-miniature .product-flags .product-flag {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: auto !important;
  max-width: 88% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 4px 9px !important;
  border-radius: 7px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  text-align: left !important;
  color: #fff !important;
  background: var(--dl-charcoal);
  box-shadow: 0 2px 6px rgba(17, 24, 39, .2);
  position: static !important;
  float: none !important;
}

.product-miniature .product-flags .product-flag.on-sale { background: var(--dl-brand) !important; }
.product-miniature .product-flags .product-flag.discount { background: var(--dl-green) !important; }
.product-miniature .product-flags .product-flag.out_of_stock,
.product-miniature .product-flags .product-flag.out-of-stock { background: #0E7490 !important; }
.product-miniature .product-flags .product-flag.new { background: #2563EB !important; }
.product-miniature .product-flags .product-flag.pack { background: #7C3AED !important; }

/* Wishlist heart (blockwishlist module) */
.product-miniature .wishlist-button-add,
.product-miniature [data-button-action="add-to-wishlist"] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--dl-line);
  box-shadow: var(--dl-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform .15s ease, color .15s ease;
}

.product-miniature .wishlist-button-add:hover {
  transform: scale(1.08);
  color: var(--dl-brand);
}

/* Hover-reveal quick view / variants */
.product-miniature .highlighted-informations {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--dl-line);
  text-align: center;
  padding: 8px 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 2;
}

.product-miniature .thumbnail-top:hover .highlighted-informations {
  transform: translateY(0);
  opacity: 1;
}

.product-miniature .quick-view {
  color: var(--dl-ink);
  font-weight: 600;
  font-size: 13px;
}

.product-miniature .quick-view:hover {
  color: var(--dl-brand);
}

/* 5. Home: image slider -------------------------------------------------- */
body#index #content.page-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

body#index #wrapper .container {
  max-width: var(--dl-container);
}

.carousel.slide,
#carousel.carousel {
  border-radius: var(--dl-radius-lg);
  overflow: hidden;
  box-shadow: var(--dl-shadow);
  padding-bottom: 0;
  margin-bottom: 24px;
  font-size: 0;
  line-height: 0;
}

/* Fit the carousel to the image exactly. Two causes of the white space below
   the banner: (1) theme's fixed .carousel-inner height (340px) and (2) the
   slide's <a>/<figure> wrappers stay inline, so their line-box adds a descender
   gap *inside* carousel-inner. Kill both: auto height + everything block +
   zero line-height. */
.carousel .carousel-inner,
.carousel .carousel-item {
  height: auto !important;
  min-height: 0 !important;
  margin: 0;          /* carousel-inner is a <ul>; reboot adds margin-bottom:1rem */
  line-height: 0;
  font-size: 0;
}

/* carousel-indicators is an <ol> — also gets reboot margin-bottom:1rem */
.carousel .carousel-indicators {
  margin-bottom: 0;
}

.carousel .carousel-item > a,
.carousel .carousel-item figure {
  display: block;
  margin: 0;
  line-height: 0;
  font-size: 0;
}

.carousel .carousel-item img,
.carousel-inner > .carousel-item > img,
.carousel-inner > .carousel-item > a > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  vertical-align: top;
  object-fit: contain;
}

/* Controls: full-overlay flex so left & right arrows are symmetric and
   vertically centred (theme used .direction{top:50%} + nested absolutes). */
.carousel .direction {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
  z-index: 5;
}

.carousel .direction .carousel-control {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  opacity: 1;
  background: none;
  pointer-events: auto;
}

.carousel .direction .carousel-control .icon-prev,
.carousel .direction .carousel-control .icon-next {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  margin: 0;
  width: auto;
  height: auto;
}

.carousel .direction .carousel-control i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--dl-ink);
  font-size: 26px;
  box-shadow: var(--dl-shadow);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.carousel .direction .carousel-control:hover i {
  background: #fff;
  color: var(--dl-brand);
  transform: scale(1.06);
}

/* Indicators (when a slide set uses them) */
.carousel .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .6);
}

.carousel .carousel-indicators li.active {
  background: var(--dl-brand);
}

/* Caption (only rendered when a slide has a title/description) */
.carousel .carousel-item .caption h2,
.carousel .carousel-item .caption .display-1 {
  font-weight: 800;
  letter-spacing: -.01em;
}

/* 6. Home: product sections --------------------------------------------- */
.featured-products,
.product-accessories,
section.products {
  margin: clamp(28px, 4vw, 44px) 0;
}

.products-section-title {
  position: relative;
  text-align: left;
  text-transform: none;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--dl-ink);
  margin: 0 0 20px;
  padding-bottom: 12px;
}

.products-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--dl-brand);
}

.all-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--dl-brand-dark);
  box-shadow: inset 0 0 0 1.5px var(--dl-brand);
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.all-product-link:hover {
  background: var(--dl-brand);
  color: #fff;
}

/* 7. Home: banner & custom text ----------------------------------------- */
.banner img,
.custom-text img {
  border-radius: var(--dl-radius-lg);
  display: block;
}

.custom-text {
  background: var(--dl-card);
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  padding: clamp(22px, 4vw, 40px);
  text-align: center;
  margin: clamp(28px, 4vw, 44px) auto;
}

.custom-text h2 {
  font-family: var(--dl-font-head);
  font-weight: 800;
  color: var(--dl-ink);
}

.custom-text p {
  color: var(--dl-muted);
  line-height: 1.7;
}

/* 8. Newsletter ---------------------------------------------------------- */
.block_newsletter {
  background: var(--dl-green-soft);
  border: 1px solid #d6efde;
  border-radius: var(--dl-radius-lg);
  padding: clamp(22px, 4vw, 34px);
  margin: clamp(28px, 4vw, 44px) 0;
}

.block_newsletter p,
.block_newsletter #block-newsletter-label {
  color: var(--dl-ink);
  font-weight: 700;
}

.block_newsletter .form-control,
.block_newsletter input[type="text"],
.block_newsletter input[type="email"] {
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid #cfe9d7;
  padding: 0 18px;
  font-family: var(--dl-font-body);
  background: #fff;
}

.block_newsletter input[type="email"]:focus,
.block_newsletter input[type="text"]:focus {
  border-color: var(--dl-green);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, .12);
  outline: none;
}

.block_newsletter .btn,
.block_newsletter input[type="submit"],
.block_newsletter button[type="submit"] {
  height: 48px;
  border-radius: 999px;
  background: var(--dl-green);
  border-color: var(--dl-green);
  color: #fff;
  font-weight: 700;
  padding: 0 24px;
  transition: background .15s ease;
}

.block_newsletter .btn:hover,
.block_newsletter button[type="submit"]:hover {
  background: var(--dl-green-dark);
  border-color: var(--dl-green-dark);
}

/* 9. Footer -------------------------------------------------------------- */
.footer-container {
  background: #fff;
  border-top: 1px solid var(--dl-line);
  margin-top: clamp(30px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  box-shadow: none;
}

.footer-container .h3,
.footer-container h3 {
  color: var(--dl-ink);
  font-weight: 700;
  font-size: 16px;
  text-transform: none;
}

.footer-container .links .h3 {
  margin-bottom: 12px;
}

.footer-container li a,
.footer-container .linklist li a,
.footer-container a {
  color: var(--dl-muted);
  font-weight: 500;
  transition: color .15s ease;
}

.footer-container li a:hover,
.footer-container a:hover {
  color: var(--dl-brand-dark);
  text-decoration: none;
}

.footer-container .block-contact,
.footer-container .block_newsletter {
  border-color: var(--dl-line);
}

/* Newsletter inside footer keeps its own treatment above */
.footer-container {
  font-family: var(--dl-font-body);
}

/* Social icons — the glyph SVGs are white, but theme.css gives the <li> a
   light-grey (#f6f6f6) background, so they're invisible. Give them a branded
   circle (same specificity as theme's `.block-social ul li`, loaded later). */
.block-social ul {
  padding-left: 0;
  margin: 0;
}

.block-social ul li {
  width: 40px;
  height: 40px;
  margin: 0 12px 8px 0;
  border-radius: 50%;
  background-color: var(--dl-brand);
  background-position: center;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  list-style: none;
  transition: background-color .15s ease, transform .15s ease;
}

.block-social ul li:hover {
  background-color: var(--dl-brand-dark);
  transform: translateY(-2px);
}

/* 9b. Forms, buttons & account pages ------------------------------------ */
/* Primary buttons — brand orange pill (theme default is cyan #24b9d7). */
.btn-primary {
  background-color: var(--dl-brand);
  border-color: var(--dl-brand);
  color: #fff;
  border-radius: 999px;
  text-transform: none;
  font-weight: 700;
  padding: .6rem 1.6rem;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.focus {
  background-color: var(--dl-brand-dark);
  border-color: var(--dl-brand-dark);
  color: #fff;
}

/* Form inputs — clean white, rounded, brand focus
   (theme default: grey #f6f6f6, square corners, cyan focus outline). */
.form-control {
  color: var(--dl-ink);
  background: #fff;
  border: 1.5px solid var(--dl-line);
  border-radius: 10px;
}

.form-control:focus {
  color: var(--dl-ink);
  background: #fff;
  border-color: var(--dl-brand);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(241, 100, 34, .12);
}

.input-group.focus {
  outline: 0;
}

/* Password field + SHOW toggle (input-group) */
.input-group .form-control {
  border-radius: 10px 0 0 10px;
}

.input-group .input-group-btn > .btn[data-action="show-password"] {
  background: var(--dl-bg);
  color: var(--dl-muted);
  border: 1.5px solid var(--dl-line);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  text-transform: none;
  font-weight: 600;
}

.input-group .input-group-btn > .btn[data-action="show-password"]:hover {
  color: var(--dl-brand-dark);
}

/* Auth / account page form as a modern centered card */
.page-authentication #content,
.page-registration #content,
.page-password #content {
  max-width: 460px;
  margin: 24px auto 40px;
  padding: 32px 32px 28px;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
}

.page-authentication .form-control-label,
.page-registration .form-control-label {
  color: var(--dl-ink);
  font-weight: 600;
}

/* Account-area links in brand colour (theme default is cyan) */
.page-authentication a,
.page-registration a,
.page-customer-account #content a {
  color: var(--dl-brand-dark);
}

.page-authentication a:hover,
.page-registration a:hover,
.page-customer-account #content a:hover {
  color: var(--dl-brand);
}

.page-customer-account #content .forgot-password,
.page-customer-account #content .no-account {
  font-weight: 600;
}

/* 9c. Product detail page ----------------------------------------------- */
/* Price — theme colours it cyan (#24b9d7); make it the bold brand price. */
body#product .product-prices .product-price,
body#product .current-price .product-price,
body#product .product-price {
  color: var(--dl-ink);
  font-family: var(--dl-font-head);
  font-weight: 800;
  font-size: 28px;
}

body#product .has-discount.product-price,
body#product .product-prices .has-discount .product-price {
  color: var(--dl-brand-dark);
}

body#product .has-discount .discount {
  background: var(--dl-green);
  border-radius: 6px;
  text-transform: none;
}

/* Flags on the product image — same compact tags as the listing cards.
   (My earlier flag fix was scoped to .product-miniature; the product page
   uses .product-flags directly, so it kept theme's full-width on-sale bar.) */
body#product .product-flags {
  top: 12px;
  left: 12px;
  right: 12px;
  width: auto;
  align-items: flex-start;
  gap: 6px;
}

body#product .product-flags li.product-flag {
  order: 0 !important;
  width: auto !important;
  max-width: 90% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 5px 11px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-transform: none !important;
  color: #fff !important;
  background: var(--dl-charcoal);
}

body#product .product-flags li.product-flag.on-sale { background: var(--dl-brand) !important; }
body#product .product-flags li.product-flag.discount,
body#product .product-flags li.product-flag.discount-amount,
body#product .product-flags li.product-flag.discount-percentage { background: var(--dl-green) !important; }
body#product .product-flags li.product-flag.out_of_stock,
body#product .product-flags li.product-flag.out-of-stock { background: #0E7490 !important; }

/* Title + main image card */
body#product .product-information h1,
body#product h1[itemprop="name"] {
  font-family: var(--dl-font-head);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--dl-ink);
}

body#product .product-cover {
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  overflow: hidden;
  background: #fff;
}

body#product .product-variants > .product-variants-item select,
body#product #quantity_wanted {
  border-radius: 10px;
}

/* Wishlist / share buttons keep brand hover */
body#product .product-actions .btn-primary {
  border-radius: 999px;
}

/* 10. Listing pages: shell, sidebar, header, toolbar, pagination -------- */
body#category,
body#manufacturer,
body#supplier,
body#best-sales,
body#new-products,
body#prices-drop,
body#search {
  background: var(--dl-bg);
}

body#category #wrapper,
body#manufacturer #wrapper,
body#supplier #wrapper,
body#best-sales #wrapper,
body#new-products #wrapper,
body#prices-drop #wrapper,
body#search #wrapper {
  background: var(--dl-bg);
  padding-top: 8px;
}

body#category .breadcrumb,
body#manufacturer .breadcrumb,
body#supplier .breadcrumb,
body#search .breadcrumb {
  background: transparent;
  padding: 14px 0 6px;
  margin-bottom: 4px;
}

body#category .breadcrumb ol,
body#manufacturer .breadcrumb ol,
body#supplier .breadcrumb ol,
body#search .breadcrumb ol {
  padding-left: 0;
}

body#category .breadcrumb li a,
body#manufacturer .breadcrumb li a,
body#supplier .breadcrumb li a,
body#search .breadcrumb li a {
  color: var(--dl-muted);
  font-weight: 500;
}

body#category .breadcrumb li a:hover { color: var(--dl-brand); }

body#category .breadcrumb li:last-child span {
  color: var(--dl-ink);
  font-weight: 600;
}

/* Left column blocks */
#left-column .block,
#left-column #search_filters,
#left-column .block-categories,
#left-column .ps-brand-list,
#left-column [id^="category-tree"],
#left-column .block_top_menu,
#left-column .card {
  background: var(--dl-card);
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  padding: 18px 18px 8px;
  margin-bottom: 20px;
}

#left-column .block .title_block,
#left-column .block h1,
#left-column .block .h6,
#left-column #search_filters .h6,
#left-column #search_filters > p,
#left-column .block-categories .category-top-menu > li > a,
#left-column h4,
#left-column .title_block a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dl-ink);
}

#left-column .block-categories ul,
#left-column .category-sub-menu,
#left-column ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#left-column .block-categories a,
#left-column .ps-brand-list a,
#left-column ul li a {
  display: block;
  padding: 9px 10px;
  border-radius: var(--dl-radius-sm);
  color: #374151;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

#left-column .block-categories a:hover,
#left-column .ps-brand-list a:hover,
#left-column ul li a:hover {
  background: var(--dl-brand-soft);
  color: var(--dl-brand-dark);
}

/* Facets */
#search_filters .facet {
  border-top: 1px solid var(--dl-line);
  padding-top: 14px;
  margin-top: 4px;
}

#search_filters .facet:first-of-type { border-top: 0; }

#search_filters .facet .facet-title {
  color: var(--dl-ink);
  font-weight: 700;
}

#search_filters .facet-label a { color: #374151; }

#search_filters .facet-label:hover a,
#search_filters .facet-label.active a { color: var(--dl-brand-dark); }

#search_filters .js-search-filters-clear-all { color: var(--dl-brand); }

/* Category header band */
#js-product-list-header .block-category {
  background: linear-gradient(180deg, #ffffff 0%, var(--dl-brand-soft) 160%);
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  padding: 28px 30px;
  margin-bottom: 22px;
}

#js-product-list-header .block-category h1,
#js-product-list-header .block-category .h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--dl-ink);
  margin: 0 0 6px;
}

#js-product-list-header #category-description {
  color: var(--dl-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}

#js-product-list-header .block-category-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

#js-product-list-header .category-cover img {
  max-width: 130px;
  height: auto;
}

/* Subcategory chips */
#subcategories .subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-left: 0;
}

#subcategories .subcategories-list li {
  list-style: none;
  width: 130px;
  text-align: center;
}

#subcategories .subcategory-image img {
  border-radius: var(--dl-radius);
  border: 1px solid var(--dl-line);
  background: #fff;
}

/* Toolbar (sort / count) */
#products .products-selection,
#js-product-list-top.products-selection {
  background: var(--dl-card);
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  padding: 14px 18px;
  margin: 0 0 20px;
  align-items: center;
}

#products .total-products p {
  margin: 0;
  font-weight: 600;
  color: var(--dl-ink);
}

#products .products-sort-order .select-title {
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius-sm);
  background: #fff;
  padding: 9px 14px;
  color: var(--dl-ink);
  font-weight: 600;
}

#products .products-sort-order .select-title:hover { border-color: var(--dl-brand); }

#products .sort-by {
  color: var(--dl-muted);
  font-weight: 600;
  line-height: 38px;
}

#search_filter_toggler {
  background: var(--dl-brand);
  border-color: var(--dl-brand);
  color: #fff;
  border-radius: var(--dl-radius-sm);
  font-weight: 600;
}

/* Pagination */
#js-product-list .pagination {
  background: var(--dl-card);
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  padding: 14px 18px;
  margin-top: 8px;
  align-items: center;
}

#js-product-list .pagination .page-list {
  margin: 0;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

#js-product-list .pagination .page-list li a,
#js-product-list .pagination .page-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--dl-radius-sm);
  border: 1px solid var(--dl-line);
  color: var(--dl-ink);
  font-weight: 600;
  background: #fff;
}

#js-product-list .pagination .page-list li.current a,
#js-product-list .pagination .page-list li.current span {
  background: var(--dl-brand);
  border-color: var(--dl-brand);
  color: #fff;
}

#js-product-list .pagination .page-list li a:hover {
  border-color: var(--dl-brand);
  color: var(--dl-brand);
}

#js-product-list .pagination .page-list li.disabled a { opacity: .45; }

/* 11. Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
  #js-product-list-header .block-category { padding: 22px; }
  #js-product-list-header .block-category h1,
  #js-product-list-header .block-category .h1 { font-size: 24px; }

  .header-nav { font-size: 13px; }
}

@media (max-width: 767px) {
  .products { margin-left: -6px; margin-right: -6px; }
  .products > .product,
  .products > .js-product { padding: 6px; }

  .product-miniature .product-description { padding: 12px; }
  .product-miniature .product-title a { font-size: 14px; }
  .product-miniature .price { font-size: 17px; }
  .product-miniature .product-flag { font-size: 10px; padding: 4px 8px; }

  /* Touch devices: reveal quick view (no hover) */
  .product-miniature .highlighted-informations {
    position: static;
    transform: none;
    opacity: 1;
    background: transparent;
    border-top: 0;
    padding: 4px 0 0;
  }

  #products .products-selection,
  #js-product-list-top.products-selection { padding: 12px; }

  .products-section-title { font-size: 20px; }
}

@media (max-width: 575px) {
  /* Two-up product grid on phones */
  .products > .product.col-xs-12,
  .products > .js-product.col-xs-12 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .product-miniature .product-thumbnail { padding: 8px; }
  .product-miniature .product-title { min-height: 2.4em; }
}
