/*
Theme Name: Vivino Sunopen
Theme URI: https://vivino.sunopen.cloud
Author: Sunopen
Description: A modern WooCommerce theme for a premium wine store.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: vivino-sunopen
*/

:root {
  --bg: #070606;
  --panel: #121111;
  --panel-2: #1b1918;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8f0ea;
  --muted: #b9aaa2;
  --soft: #7b7470;
  --red: #b51431;
  --red-2: #e12745;
  --red-dark: #4a0713;
  --gold: #d8b36a;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(181, 20, 49, 0.18), transparent 30%),
    linear-gradient(180deg, #070606 0%, #0d0c0b 60%, #070606 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 7, 7, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  display: grid;
  grid-template-columns: 210px minmax(280px, 640px) auto;
  align-items: center;
  gap: 24px;
  width: min(1440px, calc(100% - 64px));
  min-height: 70px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 156px;
  min-height: 50px;
}

.brand img {
  width: 138px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.header-search {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.header-search input::placeholder {
  color: #918883;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.language {
  color: #ffd36d;
}

.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.cart-pill span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--red-2);
  color: var(--white);
  font-size: 11px;
}

.nav-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.nav-shell {
  width: min(1440px, calc(100% - 64px));
  min-height: 50px;
  margin: 0 auto;
  overflow-x: auto;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #f4ede8;
  font-size: 14px;
  font-weight: 800;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
}

.button,
button,
input[type="submit"],
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d31a3b, #9d0f28);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button.secondary {
  border: 1px solid rgba(181, 20, 49, 0.45);
  background: transparent;
  color: #ff5d77;
}

.hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 6, 6, 0.96) 0%, rgba(7, 6, 6, 0.76) 38%, rgba(7, 6, 6, 0.2) 68%, rgba(7, 6, 6, 0.86) 100%),
    url("https://images.unsplash.com/photo-1510812431401-41d2bd2722f3?auto=format&fit=crop&w=1900&q=82") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 300px 285px;
  gap: 28px;
  align-items: center;
  min-height: 470px;
  padding: 54px 0 72px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  color: #f3d8bc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.hero h1 {
  max-width: 560px;
  margin: 8px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5.2vw, 86px);
  font-weight: 500;
  line-height: 1.02;
}

.hero p {
  max-width: 560px;
  margin: 0 0 30px;
  color: #efe5de;
  font-size: 20px;
}

.hero-service-card,
.promo-card,
.club-card,
.review-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 17, 17, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-service-card {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.service-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
}

.service-row span {
  grid-row: span 2;
  color: var(--gold);
}

.service-row strong {
  font-size: 15px;
}

.service-row small {
  color: var(--muted);
}

.promo-card {
  min-height: 330px;
  padding: 28px;
  background:
    linear-gradient(155deg, rgba(99, 5, 20, 0.92), rgba(181, 20, 49, 0.5)),
    url("https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?auto=format&fit=crop&w=720&q=80") center bottom/cover;
}

.promo-card span {
  color: #f4c6ce;
  font-weight: 900;
}

.promo-card h2 {
  margin: 6px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.05;
}

.promo-card p {
  margin: 0 0 30px;
  color: #fff0f3;
}

.category-rail-wrap {
  margin-top: -54px;
  position: relative;
  z-index: 4;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(100px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.category-rail a {
  display: grid;
  place-items: center;
  min-height: 104px;
  gap: 8px;
  padding: 12px 8px;
  color: #f2e9e2;
  font-size: 13px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.category-rail span {
  font-size: 26px;
}

.section {
  padding: 64px 0;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head.compact {
  align-items: center;
}

.section-head h2,
.content h1,
.woocommerce-products-header__title,
.related.products h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 500;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tabs span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e8ded7;
  font-size: 13px;
}

.tabs span:first-child {
  border-color: transparent;
  background: var(--red);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  margin: 0;
  float: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: contain;
  margin: 0;
  padding: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #161413, #0d0c0c);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 70px;
  padding: 18px 18px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.woocommerce ul.products li.product .star-rating {
  margin: 10px 18px 0;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 8px 18px 0;
  color: #fff7ef;
  font-size: 18px;
  font-weight: 900;
}

.woocommerce ul.products li.product .button {
  width: calc(100% - 36px);
  margin: 18px;
}

.woocommerce span.onsale {
  min-width: 52px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red-2);
  color: var(--white);
  line-height: 1.5;
}

.home-sidebar {
  display: grid;
  gap: 16px;
}

.club-card,
.review-card,
.support-card {
  padding: 24px;
}

.club-card {
  min-height: 300px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 232, 220, 0.92)),
    url("https://images.unsplash.com/photo-1474722883778-792e7990302f?auto=format&fit=crop&w=720&q=80") right bottom/cover;
  color: #2a1916;
}

.club-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.club-card h3,
.review-card h3,
.support-card h3 {
  margin: 8px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.club-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 18px;
}

.review-line {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.review-line strong {
  color: var(--gold);
}

.review-line p {
  margin: 8px 0;
  color: #e8ded7;
}

.review-line span,
.support-card p {
  color: var(--muted);
}

.styles-head {
  margin-top: 46px;
}

.styles-head a {
  color: #ff5d77;
  font-size: 14px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.style-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1528823872057-9c018a7a7553?auto=format&fit=crop&w=620&q=80") center/cover;
}

.style-card.bold {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)), url("https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?auto=format&fit=crop&w=620&q=80");
}

.style-card.fresh {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)), url("https://images.unsplash.com/photo-1568213816046-0ee1c42bd559?auto=format&fit=crop&w=620&q=80");
}

.style-card.sweet {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)), url("https://images.unsplash.com/photo-1474722883778-792e7990302f?auto=format&fit=crop&w=620&q=80");
}

.style-card.sparkling {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)), url("https://images.unsplash.com/photo-1547595628-c61a29f496f0?auto=format&fit=crop&w=620&q=80");
}

.style-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.style-card span {
  color: #d8ccc5;
}

.bottom-tools {
  background: linear-gradient(90deg, #6c0b1b, #320710);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0;
}

.tool-grid div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 14px;
  align-items: center;
}

.tool-grid span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd7df;
  font-size: 22px;
}

.tool-grid strong {
  font-size: 16px;
}

.tool-grid small {
  color: #e2c4c9;
}

.content {
  width: min(1200px, calc(100% - 64px));
  min-height: 58vh;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.woocommerce .quantity .qty,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151313;
  color: var(--text);
}

.woocommerce table.shop_table,
.woocommerce-checkout #payment,
.woocommerce .woocommerce-customer-details address {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.site-footer {
  padding: 52px 0;
  background: #030303;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 36px;
}

.footer-logo {
  width: 96px;
  margin-bottom: 16px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer p {
  margin: 0 0 12px;
}

.legal-note {
  color: #a89991;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 150px 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .hero-grid,
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .promo-card,
  .hero-service-card {
    max-width: 560px;
  }

  .category-rail {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .topbar,
  .nav-shell,
  .content {
    width: min(100% - 28px, 1440px);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

  .brand {
    width: 112px;
  }

  .brand img {
    width: 104px;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-actions {
    grid-column: auto;
    justify-content: flex-end;
    padding-bottom: 0;
  }

  .header-actions a:not(.cart-pill):not(.language) {
    display: none;
  }

  .primary-menu {
    gap: 22px;
  }

  .hero-grid {
    min-height: 520px;
    padding: 32px 0 80px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-service-card {
    display: none;
  }

  .promo-card {
    min-height: 210px;
  }

  .category-rail {
    display: flex;
    overflow-x: auto;
  }

  .category-rail a {
    min-width: 92px;
  }

  .woocommerce ul.products,
  .style-grid,
  .tool-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
