/*
Theme Name: Viralsy Storefront
Theme URI: https://viralsy.shop
Author: Viralsy
Version: 2.1.0
Description: Exact 1:1 Shopify Dawn clone of viralsy.shop (Assistant font, 80px top-center logo, 22px buttons, 8px grid, exact #121212 footer).
Text Domain: viralsy
*/

:root {
  --v-bg: #ffffff;
  --v-bg-muted: #f3f3f3;
  --v-ink: #121212;
  --v-ink-75: rgba(18, 18, 18, 0.75);
  --v-ink-55: rgba(18, 18, 18, 0.55);
  --v-ink-10: rgba(18, 18, 18, 0.08);
  --v-white: #ffffff;
  --v-white-75: rgba(255, 255, 255, 0.75);
  --v-page-width: 1200px;
  --v-btn-radius: 22px;
  --v-input-radius: 18px;
  --v-grid-gap: 8px;
  --v-font: 'Assistant', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--v-bg);
  color: var(--v-ink-75);
  font-family: var(--v-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--v-font);
  font-weight: 400;
  color: var(--v-ink);
  line-height: 1.3;
  letter-spacing: 0.04rem;
  margin: 0 0 16px;
}
strong, b { font-weight: 700; color: var(--v-ink); }

.page-width {
  max-width: var(--v-page-width);
  margin: 0 auto;
  padding: 0 50px;
}
@media (max-width: 749px) {
  .page-width { padding: 0 15px; }
}

/* 1. Exact Announcement Bar (color-scheme-4: #121212) */
.vsy-announcement {
  background: #121212;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06rem;
  line-height: 1.4;
}
.vsy-announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.vsy-ann-arrow {
  background: none; border: 0; color: rgba(255,255,255,0.75);
  cursor: pointer; padding: 2px 6px; font-size: 14px; line-height: 1;
}
.vsy-ann-arrow:hover { color: #fff; }

/* 2. Exact Dawn Header: header--top-center, 80x80 Logo */
.vsy-header-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--v-ink-10);
  position: sticky;
  top: 0;
  z-index: 900;
}
.vsy-header {
  padding-top: 20px;
  padding-bottom: 16px;
}
.vsy-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.vsy-header__left { display: flex; align-items: center; gap: 8px; justify-self: start; }
.vsy-header__center { justify-self: center; text-align: center; }
.vsy-header__logo { display: inline-block; line-height: 0; }
.vsy-header__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
}
.vsy-header__right { display: flex; align-items: center; gap: 4px; justify-self: end; }

.vsy-icon-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--v-ink);
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease;
}
.vsy-icon-link:hover { transform: scale(1.06); }
.vsy-icon-link svg { width: 20px; height: 20px; }
.vsy-cart-count {
  position: absolute;
  bottom: 6px;
  right: 5px;
  background: #121212;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.vsy-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 12px;
}
.vsy-header__nav a {
  font-size: 14px;
  color: var(--v-ink-75);
  padding: 6px 4px;
  letter-spacing: 0.04rem;
  text-underline-offset: 4px;
}
.vsy-header__nav a:hover,
.vsy-header__nav a.is-active {
  color: var(--v-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.vsy-mobile-toggle { display: none; }

/* Search Overlay Drawer */
.vsy-search-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--v-ink-10);
  padding: 18px 0;
}
.vsy-search-drawer.is-open { display: block; }
.vsy-search-box {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--v-ink-55);
  border-radius: var(--v-input-radius);
  padding: 2px 6px 2px 18px;
  height: 46px;
}
.vsy-search-box input {
  flex: 1; border: 0; outline: none; font-family: var(--v-font); font-size: 15px; background: transparent; color: var(--v-ink);
}
.vsy-search-box button {
  width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* 3. Exact Viralsy Dawn Buttons (22px radius + shadow) */
.vsy-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 0 30px !important;
  border-radius: var(--v-btn-radius) !important;
  font-family: var(--v-font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0.06rem;
  line-height: 1.2 !important;
  cursor: pointer;
  border: 1px solid #121212 !important;
  background: #121212 !important;
  color: #ffffff !important;
  box-shadow: 0px 4px 5px rgba(18, 18, 18, 0.25);
  text-decoration: none !important;
  transition: box-shadow .15s ease, transform .15s ease, border-width .1s ease !important;
}
.vsy-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  box-shadow: 0px 6px 10px rgba(18, 18, 18, 0.32) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}
.vsy-btn--secondary {
  background: #ffffff !important;
  color: #121212 !important;
  border: 1px solid #121212 !important;
  box-shadow: 0px 4px 5px rgba(18, 18, 18, 0.12) !important;
}
.vsy-btn--secondary:hover {
  background: #ffffff !important;
  color: #121212 !important;
  box-shadow: 0px 0px 0px 1px #121212, 0px 4px 5px rgba(18, 18, 18, 0.18) !important;
}
.vsy-btn--white-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
}
.vsy-btn--white-outline:hover {
  box-shadow: 0 0 0 1px #ffffff !important;
}

/* 4. Homepage Section 1: Exact Dawn Image Banner (medium height, bottom-center, 30% overlay) */
.vsy-banner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #121212;
}
.vsy-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vsy-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.30);
}
.vsy-banner__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 50px 20px;
  color: #ffffff;
}
.vsy-banner__content h2 {
  color: #ffffff;
  font-size: clamp(30px, 4.0vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 20px;
}

/* 5. Homepage Section 2: Exact Dawn Featured Product Spotlight */
.vsy-featured-prod { padding: 48px 0 36px; }
.vsy-fp-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}
.vsy-fp-media {
  background: #ffffff;
  border: 1px solid rgba(18, 18, 18, 0.05);
}
.vsy-fp-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.vsy-fp-vendor {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13rem;
  color: var(--v-ink-75);
  margin-bottom: 6px;
}
.vsy-fp-title {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.vsy-fp-price {
  font-size: 19px;
  color: var(--v-ink);
  letter-spacing: 0.06rem;
  margin-bottom: 4px;
}
.vsy-fp-tax {
  font-size: 12.5px;
  color: var(--v-ink-75);
  margin-bottom: 20px;
}
.vsy-fp-tax a { text-decoration: underline; text-underline-offset: 3px; }
.vsy-qty-label { display: block; font-size: 13px; color: var(--v-ink-75); margin-bottom: 6px; }
.vsy-qty-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--v-ink-55);
  border-radius: var(--v-input-radius);
  height: 47px;
  width: 142px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
}
.vsy-qty-pill button {
  width: 45px; height: 100%; border: 0; background: transparent;
  font-size: 18px; color: var(--v-ink); cursor: pointer;
}
.vsy-qty-pill input {
  width: 52px; height: 100%; border: 0; text-align: center;
  font-family: var(--v-font); font-size: 15px; color: var(--v-ink);
  outline: none; -moz-appearance: textfield;
}
.vsy-fp-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}
.vsy-fp-buttons .vsy-btn { width: 100%; }
.vsy-fp-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--v-ink);
}
.vsy-fp-share:hover { text-decoration: underline; }

/* 6. Homepage Section 3 & Shop: Exact Dawn Product Grid (8px spacing, 0px radius, left aligned) */
.vsy-collection { padding: 36px 0 56px; }
.vsy-collection__title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 24px;
}
.vsy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--v-grid-gap);
  row-gap: 24px;
}
.vsy-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
}
.vsy-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.04);
}
.vsy-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  transition: transform .35s ease;
}
.vsy-card:hover .vsy-card__img img { transform: scale(1.03); }
.vsy-badge-draft {
  position: absolute;
  bottom: 8px; left: 8px;
  background: #121212; color: #fff;
  font-size: 11px; letter-spacing: 0.05rem;
  padding: 3px 10px; border-radius: 40px;
}
.vsy-card__body { padding: 12px 2px 4px; }
.vsy-card__title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--v-ink);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vsy-card:hover .vsy-card__title a { text-decoration: underline; text-underline-offset: 3px; }
.vsy-card__price {
  font-size: 16px;
  color: var(--v-ink);
  letter-spacing: 0.04rem;
}

.vsy-admin-note {
  background: #f3f3f3;
  border-left: 3px solid #121212;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #121212;
}

/* 7. Homepage Section 4: Exact Dawn Newsletter ("Abonniere unsere E-Mails", scheme-1 white) */
.vsy-newsletter {
  background: #ffffff;
  border-top: 1px solid var(--v-ink-10);
  padding: 44px 20px 52px;
  text-align: center;
}

/* Exact Viralsy PDP 4-Item Trust Bar (custom_liquid_TkpHcF) */
.vsy-tb {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  font-family: Arial, sans-serif;
  margin: 16px 0 36px;
}
.vsy-ti { display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.vsy-ti + .vsy-ti { border-left: 1px solid #eee; }
.vsy-ti svg { flex-shrink: 0; }
.vsy-ti-t { font-size: 12px; font-weight: 600; color: #111; margin: 0 0 2px; line-height: 1.3; }
.vsy-ti-s { font-size: 11px; color: #888; margin: 0; line-height: 1.3; }
@media (max-width: 600px) {
  .vsy-tb { grid-template-columns: repeat(2, 1fr); gap: 0; padding: 10px 0; }
  .vsy-ti { padding: 8px 10px; }
  .vsy-ti + .vsy-ti { border-left: none; }
  .vsy-ti:nth-child(2n) { border-left: 1px solid #eee; }
  .vsy-ti:nth-child(3), .vsy-ti:nth-child(4) { border-top: 1px solid #eee; padding-top: 10px; }
}
.vsy-newsletter h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 10px; }
.vsy-newsletter p { font-size: 15.5px; color: var(--v-ink-75); margin: 0 auto 24px; max-width: 520px; }
.vsy-nl-field {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--v-ink-55);
  border-radius: var(--v-input-radius);
  background: transparent;
  height: 47px;
  padding: 0 6px 0 18px;
}
.vsy-nl-field input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--v-font); font-size: 15px; color: var(--v-ink);
}
.vsy-nl-field button {
  width: 38px; height: 38px; border: 0; background: transparent;
  color: var(--v-ink); font-size: 18px; cursor: pointer;
}

/* 8. Single Product Page (Dawn PDP) */
.vsy-pdp { padding: 36px 0 64px; }
.vsy-pdp__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}
.vsy-pdp__gallery {
  position: sticky;
  top: 110px;
  border: 1px solid rgba(18, 18, 18, 0.06);
  background: #ffffff;
}
.vsy-pdp__gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.vsy-pdp__desc {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--v-ink-10);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--v-ink-75);
}
.vsy-pdp__desc ul { padding-left: 20px; }

/* 9. Legal & Policy Pages (Dawn Narrow Policy Width) */
.vsy-policy-page {
  max-width: 726px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}
.vsy-policy-page h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  text-align: center;
  margin-bottom: 32px;
}
.vsy-prose { font-size: 15.5px; line-height: 1.8; color: var(--v-ink-75); }
.vsy-prose h2, .vsy-prose h3 { margin-top: 28px; }
.vsy-prose a { color: var(--v-ink); text-decoration: underline; text-underline-offset: 3px; }

.vsy-contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
.vsy-contact-card { border: 1px solid var(--v-ink-10); padding: 24px; background: #fff; }
.vsy-contact-form { display: flex; flex-direction: column; gap: 12px; }
.vsy-contact-form label { font-size: 13.5px; color: var(--v-ink); }
.vsy-contact-form input, .vsy-contact-form textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--v-ink-55);
  border-radius: var(--v-input-radius);
  font-family: var(--v-font); font-size: 15px;
}
.vsy-faq-list details { border-bottom: 1px solid var(--v-ink-10); padding: 16px 0; }
.vsy-faq-list summary { cursor: pointer; font-weight: 600; color: var(--v-ink); }

/* 10. Exact Footer (color-scheme-4: #121212, 3 columns + centered copyright) */
.vsy-footer {
  background: #121212;
  color: var(--v-white-75);
  padding: 48px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vsy-footer__blocks {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}
.vsy-footer__klarna {
  display: flex;
  justify-content: center;
}
.vsy-footer__klarna img {
  max-width: 210px;
  width: 100%;
  height: auto;
}
.vsy-footer__heading {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 16px;
}
.vsy-footer__rte p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--v-white-75);
}
.vsy-footer__rte strong { color: var(--v-white-75); font-weight: 700; }
.vsy-footer__rte a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.vsy-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vsy-footer__menu li { margin-bottom: 10px; }
.vsy-footer__menu a {
  color: var(--v-white-75);
  font-size: 14px;
  line-height: 1.6;
}
.vsy-footer__menu a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.vsy-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  text-align: center;
  font-size: 11.5px;
  color: var(--v-white-75);
  letter-spacing: 0.05rem;
}
.vsy-footer__bottom a:hover { color: #ffffff; text-decoration: underline; }

/* WooCommerce Cart & Checkout Dawn Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  padding: 12px 16px !important;
  border: 1px solid var(--v-ink-55) !important;
  border-radius: var(--v-input-radius) !important;
  font-family: var(--v-font) !important;
  font-size: 15px !important;
}
.woocommerce table.shop_table { border-radius: 0 !important; border: 1px solid var(--v-ink-10) !important; }

/* Shopify-Style Order Confirmation / Thank You Page */
.vsy-ty-wrap { padding: 12px 0 48px; }
.vsy-ty-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
}
.vsy-ty-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.vsy-ty-check {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #121212;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vsy-ty-num { font-size: 13px; color: var(--v-ink-55); }
.vsy-ty-title { margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.vsy-ty-card {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 18px;
  background: #ffffff;
}
.vsy-ty-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.vsy-ty-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; }
.vsy-ty-card p:last-child { margin-bottom: 0; }
.vsy-ty-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.vsy-ty-details-grid strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.vsy-ty-footer-actions {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 14px;
}
.vsy-ty-summary {
  background: #fafafa;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 12px;
  padding: 24px;
}
.vsy-ty-summary h3 { font-size: 17px; font-weight: 600; margin: 0 0 18px; }
.vsy-ty-item {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}
.vsy-ty-item__img {
  position: relative; width: 62px; height: 62px;
  border: 1px solid rgba(18, 18, 18, 0.12); border-radius: 8px;
  background: #fff; flex-shrink: 0; padding: 4px;
}
.vsy-ty-item__img img { width: 100%; height: 100%; object-fit: contain; }
.vsy-ty-item__qty {
  position: absolute; top: -8px; right: -8px;
  background: #666; color: #fff; font-size: 11px; font-weight: 700;
  width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.vsy-ty-item__name { flex: 1; font-size: 14px; color: var(--v-ink); line-height: 1.4; }
.vsy-ty-item__total { font-size: 14.5px; font-weight: 600; color: var(--v-ink); }
.vsy-ty-totals { display: grid; gap: 10px; font-size: 14.5px; }
.vsy-ty-row { display: flex; justify-content: space-between; align-items: baseline; }
.vsy-ty-row--grand {
  padding-top: 14px; margin-top: 6px;
  border-top: 1px solid rgba(18, 18, 18, 0.12);
  font-size: 17px; color: var(--v-ink);
}
@media (max-width: 989px) {
  .vsy-ty-grid, .vsy-ty-details-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 989px) {
  .vsy-fp-grid, .vsy-pdp__grid, .vsy-footer__blocks { grid-template-columns: 1fr; gap: 28px; }
  .vsy-pdp__gallery { position: static; }
  .vsy-grid { grid-template-columns: repeat(2, 1fr); column-gap: 4px; row-gap: 18px; }
  .vsy-header__nav { display: none; flex-direction: column; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--v-ink-10); }
  .vsy-header__nav.is-open { display: flex; }
  .vsy-mobile-toggle { display: inline-flex; }
  .vsy-banner { min-height: 400px; }
}
