/* Demo-Weingut NHZ – Mosel theme layer for PrestaShop Classic.
 * Derived from the approved SeedProd visual language. No vendor files changed.
 */
:root {
  --knipp-ink: #142536;
  --knipp-mosel: #15a9be;
  --knipp-mosel-dark: #0d6073;
  --knipp-mint: #85e7f2;
  --knipp-cream: #f6f2ec;
  --knipp-line: #d9e2e6;
  --knipp-shadow: 0 14px 42px rgb(20 37 54 / 12%);
}

html { scroll-behavior: smooth; }
body {
  color: var(--knipp-ink);
  background: var(--knipp-cream);
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--knipp-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: .01em;
}
h1, .h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; }
h2, .h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.05; }
a { color: var(--knipp-mosel); }
a:hover, a:focus { color: var(--knipp-mosel-dark); }

/* Header: quiet, fast and readable – no animated slider. */
#header {
  background: #fff;
  border-bottom: 1px solid rgb(28 25 23 / 9%);
  box-shadow: 0 3px 14px rgb(28 25 23 / 5%);
}
#header .header-top { padding-block: .7rem; }
#header .logo { max-height: 68px; width: auto; }
#_desktop_logo {
  align-items: center;
  min-height: 68px;
}
#_desktop_logo .logo { display: block; max-height: 55px; width: auto; }
#_desktop_logo::before {
  content: none;
}
#header .top-menu a,
#header .header-nav a { color: var(--knipp-ink); font-weight: 600; }
#header .top-menu a:hover,
#header .top-menu a[data-depth="0"]:hover { color: var(--knipp-mosel); }

/* A light Mosel signature on category and product overview pages. */
#wrapper {
  background-color: var(--knipp-cream);
  background-image: linear-gradient(to bottom, rgb(246 242 236 / 58%), rgb(246 242 236 / 70%)), url('../img/wine-cellar-v1.png');
  background-repeat: no-repeat;
  background-position: center, center top;
  background-size: cover, max(1280px, 100vw) auto;
  padding-top: clamp(6rem, 11vw, 10rem);
}
/* Replace the stock starter blocks with a concise wine catalogue entry. */
#carousel,
#custom-text,
/* PrestaShop demo promotional banner (e.g. \"20% OFF ON CLOTHES\"). */
a.banner { display: none !important; }
/* Do not repeat the same demo wines in a second generic product carousel. */
main .featured-products.mt-3 { display: none !important; }
#wrapper:has(#carousel) { padding-top: clamp(3.5rem, 7vw, 6rem); }
.page-header,
#products,
.featured-products,
.product-accessories {
  position: relative;
}

/* Controls and checkout actions retain the familiar PrestaShop behaviour. */
.btn-primary,
.btn-secondary,
#_desktop_cart .blockcart,
.product-add-to-cart .add-to-cart {
  border: 0;
  border-radius: 0;
  background: var(--knipp-mosel);
  color: #fff;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .18s ease, transform .18s ease;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.product-add-to-cart .add-to-cart:hover,
.product-add-to-cart .add-to-cart:focus {
  background: var(--knipp-mosel-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Shop cards: stable aspect ratio prevents layout shifts while images load. */
.product-miniature {
  height: 100%;
  border: 1px solid var(--knipp-line);
  background: #fff;
  box-shadow: none;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-miniature:hover {
  box-shadow: var(--knipp-shadow);
  transform: translateY(-3px);
}
.product-miniature .thumbnail-container { height: auto; }
.product-miniature .thumbnail-container .product-thumbnail {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f5f4ef;
}
.product-miniature .thumbnail-container img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-title a { color: var(--knipp-ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; }
.product-price, .current-price .current-price-value { color: var(--knipp-mosel-dark); font-weight: 700; }

/* Product page and forms. */
.product-cover img { max-height: min(70vh, 640px); object-fit: contain; }
.product-information .product-title { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.form-control, .custom-select {
  border: 1px solid var(--knipp-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.form-control:focus, .custom-select:focus {
  border-color: var(--knipp-mosel);
  outline: 3px solid rgb(110 231 183 / 35%);
}

/* Footer with legal links: set the content in the PrestaShop link block. */
#footer {
  background: linear-gradient(120deg, #8b5a35 0%, #6a4229 48%, #43281a 100%);
  color: #fff3e4;
  margin-top: 4rem;
}
#footer a, #footer .block-contact, #footer .block-contact .block-contact-title { color: #fff8ef; }
#footer a:hover { color: #e8bf82; }

/* Performance: respect visitors who reduce animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 767px) {
  #header .logo { max-height: 50px; }
  #wrapper { background-size: 760px auto; padding-top: 5.5rem; }
  .product-miniature:hover { transform: none; }
  .product-miniature .thumbnail-container .product-thumbnail { aspect-ratio: 1 / 1; }
}
