/* ============================================================
   Presenterie — Additional CSS
   Covers: animations, hover effects, custom grid, button
   styles, header scroll, and anything beyond theme.json scope.
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

img { display: block; max-width: 100%; }

a { transition: opacity 180ms ease; }
a:hover { opacity: 0.7; }

/* ── CSS custom properties (mirror theme.json custom tokens) ─ */
html {
  padding-bottom: 0 !important;
}
:root {
  --pres-line:        rgba(43, 38, 34, 0.12);
  --pres-ink-50:      rgba(43, 38, 34, 0.50);
  --pres-ink-78:      rgba(43, 38, 34, 0.78);
  --pres-cream:       #f8f3ea;
  --pres-ink:         #2b2622;
  --pres-accent:      #b86a52;
  --pres-cream-2:     #f1e9d9;
  --pres-transition:  220ms ease;
}

/* ── Announcement bar marquee ──────────────────────────────── */

.pres-announce {
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pres-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.pres-marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: pres-marquee 38s linear infinite;
  will-change: transform;
}

.pres-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  flex-shrink: 0;
}

.pres-marquee-dot {
  opacity: 0.4;
}

@keyframes pres-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .pres-marquee-track { animation: none; }
}
.wc-block-mini-cart.wp-block-woocommerce-mini-cart {
    padding-left: 20px;
}
/* ── Sticky header scroll effect ──────────────────────────── */

.pres-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background var(--pres-transition), border-color var(--pres-transition), backdrop-filter var(--pres-transition);
  border-bottom: 1px solid transparent;
}

.pres-header.is-scrolled {
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--pres-line);
}

html , body {
  overflow-x: hidden;
}
/* ── Navigation ───────────────────────────────────────────── */

.pres-main-nav .wp-block-navigation-item__content {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--pres-ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.pres-main-nav .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pres-ink);
  transition: width 200ms ease;
}

.pres-main-nav .wp-block-navigation-item__content:hover::after {
  width: 100%;
}

/* Footer nav */
.pres-footer-nav .wp-block-navigation-item__content,
.pres-footer-nav a {
  color: rgba(248, 243, 234, 0.75) !important;
  font-size: 14px;
  text-decoration: none;
}

.pres-footer-nav .wp-block-navigation-item__content:hover,
.pres-footer-nav a:hover {
  color: #f8f3ea;
  opacity: 1;
}

.pres-footer-legal-nav .wp-block-navigation-item__content,
.pres-footer-legal-nav a {
  color: rgba(248, 243, 234, 0.6) !important;
  font-size: 12px;
  text-decoration: none;
}

/* ── WooCommerce mini-cart button in header ───────────────── */

.pres-header .wc-block-mini-cart__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pres-ink);
  color: var(--pres-cream);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  transition: background var(--pres-transition);
}

.pres-header .wc-block-mini-cart__button:hover {
  background: var(--pres-accent);
}

/* ── Button styles ─────────────────────────────────────────── */

.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent !important;
  color: var(--pres-ink) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  padding: 16px 22px;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  opacity: 0.7;
}

.wp-block-button.is-style-accent .wp-block-button__link {
  background: var(--pres-accent) !important;
  color: var(--pres-cream) !important;
}

/* ── Hero section ─────────────────────────────────────────── */

.pres-hero-grid img,
.pres-hero-main-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.pres-eyebrow-row .wp-block-separator {
  width: 32px;
  height: 1px;
  margin: 0;
  flex-shrink: 0;
}

.pres-hero-media { position: relative; }

/* ── Category grid ─────────────────────────────────────────── */

.pres-cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.pres-cat-tile {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 320ms ease;
}

.pres-cat-tile:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.pres-cat-span-4  { grid-column: span 4; }
.pres-cat-span-6  { grid-column: span 6; }
.pres-cat-span-12 { grid-column: span 12; }

.pres-cat-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--pres-cream-2);
}

/* Aspect ratios */
.pres-cat-ratio-16-11 { aspect-ratio: 16 / 11; }
.pres-cat-ratio-4-5   { aspect-ratio: 4 / 5; }
.pres-cat-ratio-16-5  { aspect-ratio: 16 / 5; }

.pres-cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover overlay */
.pres-cat-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,38,34,0.55), transparent 60%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.pres-cat-tile:hover .pres-cat-image::after {
  opacity: 1;
}

/* "Neu" badge */
.pres-badge-new {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pres-accent);
  color: var(--pres-cream);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  z-index: 1;
}

.pres-cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  gap: 16px;
}

.pres-cat-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--pres-ink);
}

.pres-cat-name.pres-cat-featured {
  font-size: 28px;
}

.pres-cat-count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pres-accent);
  opacity: 0.8;
  white-space: nowrap;
}

.pres-cat-copy {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pres-ink);
  opacity: 0.65;
  font-family: 'Inter', system-ui, sans-serif;
  max-width: 460px;
}

/* Tone backgrounds for empty state */
.pres-cat-dark  { background: #2b2622; }
.pres-cat-sage  { background: #dde2d7; }
.pres-cat-blush { background: #ecd9d0; }
.pres-cat-cream { background: #f3ebdd; }
.pres-cat-warm  { background: #efe6d8; }

/* ── NFC steps layout ─────────────────────────────────────── */

.pres-nfc-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ── Product cards ─────────────────────────────────────────── */

.pres-prod-card {
  transition: transform 280ms ease;
}

.pres-prod-card:hover {
  transform: translateY(-3px);
}

.pres-prod-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

/* Hover: reveal Add-to-cart */
.pres-add-btn {
  position: absolute !important;
  bottom: 12px;
  right: 12px;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  transition: opacity 220ms ease, transform 220ms ease !important;
}

.pres-prod-card:hover .pres-add-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Testimonial / review cards ──────────────────────────────*/

.pres-review {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
}

.pres-review .wp-block-quote {
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}

.pres-review .wp-block-quote cite {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 13px;
  color: rgba(43,38,34,0.7);
  font-style: normal;
}

/* ── Newsletter form ──────────────────────────────────────── */

.pres-newsletter { text-align: center; }

.pres-nl-form {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.pres-nl-inner {
  display: flex;
  gap: 0;
  width: 100%;
  border-bottom: 1px solid var(--pres-ink);
  padding-bottom: 4px;
  align-items: center;
}

.pres-nl-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: var(--pres-ink);
  outline: none;
}

.pres-nl-input::placeholder {
  color: var(--pres-ink);
  opacity: 0.45;
}

.pres-nl-btn {
  background: transparent;
  border: none;
  color: var(--pres-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
  letter-spacing: 0.04em;
  transition: color var(--pres-transition);
  white-space: nowrap;
}

.pres-nl-btn:hover {
  color: var(--pres-accent);
}

/* ── Footer ───────────────────────────────────────────────── */

.pres-footer-cols {
  border-bottom: 1px solid rgba(248, 243, 234, 0.12);
  padding-bottom: 56px;
}

.pres-footer-logo img {
filter: brightness(0) saturate(100%) invert(50%) sepia(45%) saturate(580%) hue-rotate(335deg) brightness(92%) contrast(85%);
}

.pres-footer .wp-block-social-links .wp-social-link {
  background: transparent;
  border: 1px solid rgba(248, 243, 234, 0.25);
  border-radius: 999px;
  padding: 8px;
  transition: border-color var(--pres-transition);
}

.pres-footer .wp-block-social-links .wp-social-link:hover {
  border-color: rgba(248, 243, 234, 0.6);
}

/* ── Product: reassurance tiles ──────────────────────────── */

.pres-reassure {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── WooCommerce overrides ────────────────────────────────── */

/* Price */
.woocommerce-Price-amount,
.price {
  font-family: 'Fraunces', Georgia, serif !important;
}

/* Star rating */
.star-rating span::before,
.star-rating::before {
  color: var(--pres-accent);
}


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .pres-cat-span-4  { grid-column: span 6; }
  .pres-cat-span-12 { grid-column: span 12; }
}

@media (max-width: 768px) {

  .pres-cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pres-cat-span-4,
  .pres-cat-span-6  { grid-column: span 1; }
  .pres-cat-span-12 { grid-column: span 2; }

  .pres-cat-ratio-16-5 { aspect-ratio: 16 / 9; }

  .pres-hero,
  .pres-nfc,
  .pres-bestsellers,
  .pres-about,
  .pres-testimonials,
  .pres-newsletter,
  .pres-categories {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .pres-header-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .pres-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 480px) {

  .pres-cat-grid {
    grid-template-columns: 1fr;
  }

  .pres-cat-span-4,
  .pres-cat-span-6,
  .pres-cat-span-12 { grid-column: span 1; }

  .pres-nfc .wp-block-columns {
    flex-direction: column;
  }

  .pres-nl-inner {
    flex-direction: column;
    border-bottom: none;
  }

  .pres-nl-input {
    border-bottom: 1px solid var(--pres-ink);
    width: 100%;
    padding: 12px 0;
  }

  .pres-nl-btn {
    align-self: flex-end;
  }
}

/* ── Single Product Page ─────────────────────────────────── */

/* Gallery — thumbnail strip left + main image right */
.woocommerce-product-gallery {
    display: grid !important;
    grid-template-columns: 88px 1fr !important;
    gap: 16px !important;
}

.woocommerce-product-gallery .flex-viewport {
    order: 2;
    border-radius: 4px;
    overflow: hidden;
}

.woocommerce-product-gallery .flex-control-thumbs {
    order: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 88px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    border: 1px solid var(--pres-line);
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 200ms ease, border-color 200ms ease;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--pres-ink);
    border-width: 1.5px;
}

/* Product title */
.single-product .summary h1.product_title,
.single-product .wp-block-post-title {
    font-family: var(--wp--preset--font-family--fraunces) !important;
    font-size: 52px !important;
    font-weight: 300 !important;
    letter-spacing: -0.025em !important;
    line-height: 1 !important;
    color: var(--pres-ink) !important;
    margin-bottom: 16px !important;
}

/* Product price */
.woocommerce-Price-amount {
    font-family: var(--wp--preset--font-family--fraunces) !important;
    font-weight: 300 !important;
    letter-spacing: -0.02em !important;
}

/* ── Variation swatches — style <select> as pill buttons ─── */

/* Hide the default select dropdowns */
.variations select {
    display: none !important;
}

/* Hide the default label colon */
.variations .label label::after {
    content: none;
}

/* Variation table layout */
.variations {
    width: 100%;
    border: none !important;
    border-collapse: collapse;
}

.variations tr {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

/* Attribute label — styled like "01 — Motiv" */
.variations .label label {
    font-family: var(--wp--preset--font-family--inter);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
    font-weight: 400;
    display: block;
    margin-bottom: 10px;
}

/* Pill buttons container */
.variations .value {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Each pill button */
.pres-swatch-btn {
    font-family: var(--wp--preset--font-family--inter);
    font-size: 13.5px;
    font-weight: 400;
    color: var(--pres-ink);
    background: transparent;
    border: 1px solid var(--pres-line);
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 200ms ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.pres-swatch-btn:hover {
    border-color: var(--pres-ink);
    opacity: 1;
}

.pres-swatch-btn.active {
    background: var(--pres-ink);
    color: var(--pres-cream);
    border-color: var(--pres-ink);
}

/* ── Single product form ─────────────────────────────────── */

/* Wunschtext custom field — full width row */
.single-product .woocommerce-product-details__short-description,
.single-product form.cart .wc-pimwick-gift-wrap,
.single-product .custom-field-row {
    width: 100%;
}

/* All custom text inputs on product page */
.single-product form.cart input[type="text"],
.single-product form.cart input[type="email"],
.single-product form.cart textarea,
.single-product .woocommerce-checkout input[type="text"] {
    width: 100% !important;
    font-family: var(--wp--preset--font-family--inter) !important;
    font-size: 14px !important;
    color: var(--pres-ink) !important;
    background: transparent !important;
    border: 1px solid var(--pres-line) !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    outline: none !important;
    transition: border-color 200ms ease !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
}

.single-product form.cart input[type="text"]:focus,
.single-product form.cart textarea:focus {
    border-color: var(--pres-ink) !important;
}

/* Custom field labels */
.single-product form.cart p.form-row label,
.single-product form.cart .woocommerce-loop-product__title,
.single-product .wc-pimwick label {
    font-family: var(--wp--preset--font-family--inter) !important;
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--pres-ink) !important;
    opacity: 0.6 !important;
    display: block !important;
    margin-bottom: 8px !important;
}

/* Quantity + button row */
.single-product form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
}

/* Qty + ATC button on same row */
.single-product form.cart .cart-bottom-row {
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-top: 8px !important;
}

/* Quantity input */
.single-product .quantity .qty {
    font-family: var(--wp--preset--font-family--fraunces) !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    border: 1px solid var(--pres-line) !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    width: 80px !important;
    text-align: center !important;
    color: var(--pres-ink) !important;
    background: transparent !important;
    height: 52px !important;
}

/* Add to cart button */
.single-product .single_add_to_cart_button {
    background: var(--pres-ink) !important;
    color: var(--pres-cream) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--wp--preset--font-family--inter) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    padding: 0 32px !important;
    cursor: pointer !important;
    transition: opacity 200ms ease !important;
    flex: 1 !important;
    height: 52px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product .single_add_to_cart_button:hover {
    opacity: 0.85 !important;
}

/* Scoped to main product detail column only — not plugin sections */
.single-product .wp-block-woocommerce-product-price .woocommerce-Price-amount,
.single-product .wp-block-woocommerce-product-price .woocommerce-Price-amount bdi,
.single-product .wp-block-woocommerce-product-price p.price,
.single-product .wp-block-woocommerce-product-price span.price,
.single-product .summary .woocommerce-Price-amount,
.single-product .summary .woocommerce-Price-amount bdi,
.single-product .summary p.price,
.single-product .summary span.price {
    font-family: 'Fraunces', serif !important;
    font-size: 44px !important;
    font-weight: 300 !important;
    color: rgb(43, 38, 34) !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
}

/* ── Single product — accordion tabs ────────────────────── */

/* Hide the default horizontal tab nav */
.single-product .woocommerce-tabs ul.tabs {
    display: none !important;
}

/* Each panel becomes an accordion item */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    display: block !important;
    border-top: 1px solid var(--pres-line) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Accordion header — generated via JS */
.pres-accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 0 !important;
    cursor: pointer !important;
    user-select: none !important;
}

.pres-accordion-header span.pres-accordion-title {
    font-family: var(--wp--preset--font-family--fraunces) !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    letter-spacing: -0.005em !important;
    color: var(--pres-ink) !important;
}

.pres-accordion-header span.pres-accordion-icon {
    font-size: 22px !important;
    font-weight: 300 !important;
    color: var(--pres-ink) !important;
    line-height: 1 !important;
    transition: transform 200ms ease !important;
    font-family: var(--wp--preset--font-family--inter) !important;
}

.pres-accordion-header.open span.pres-accordion-icon {
    transform: rotate(45deg) !important;
}

/* Accordion body */
.pres-accordion-body {
    overflow: hidden !important;
    max-height: 0 !important;
    transition: max-height 320ms ease !important;
}

.pres-accordion-body.open {
    max-height: 600px !important;
}

.pres-accordion-body-inner {
    padding: 4px 0 24px !important;
    font-family: var(--wp--preset--font-family--inter) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--pres-ink) !important;
    opacity: 0.78 !important;
}

/* Last panel gets bottom border */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel:last-child {
    border-bottom: 1px solid var(--pres-line) !important;
}

/* Hero badge */
.pres-hero-main-wrap {
    position: relative !important;
}

.pres-hero-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--pres-accent);
    color: var(--pres-cream);
    border-radius: 50%;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--wp--preset--font-family--fraunces);
    font-style: italic;
    font-size: 13px;
    line-height: 1.1;
    transform: rotate(-8deg);
    box-shadow: rgba(184, 106, 82, 0.25) 0px 8px 24px;
    z-index: 2;
}
