@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --cellar: #1a1210;
  --cellar-alt: #241a17;
  --cellar-card: #221815;
  --bordeaux: #5c1a2b;
  --bordeaux-light: #7a2439;
  --gold: #b08d57;
  --gold-soft: rgba(176, 141, 87, 0.35);
  --parchment: #ede6d6;
  --parchment-dim: rgba(237, 230, 214, 0.64);
  --line: rgba(176, 141, 87, 0.22);
  --radius: 3px;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cellar);
  color: var(--parchment);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

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

h1, h2, h3 {
  font-family: 'Spectral', serif;
  color: var(--parchment);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 em, h2 em, h3 em, .accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Topbar: centered logo, two side nav columns ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(26, 18, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  justify-self: center;
  text-align: center;
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--parchment);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.logo em {
  font-style: italic;
  color: var(--gold);
}

.nav-col {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-left { justify-self: start; }
.nav-right { justify-self: end; }

.nav-col a {
  position: relative;
  padding: 4px 0;
  color: var(--parchment-dim);
}

.nav-col a:hover {
  color: var(--gold);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  background: var(--bordeaux);
  color: var(--parchment);
  border-radius: 50%;
  min-width: 19px;
  height: 19px;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Jost', sans-serif;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
}

.burger span {
  width: 24px;
  height: 1px;
  background: var(--parchment);
}

.nav-close {
  display: none;
  position: fixed;
  top: 20px;
  right: calc(min(300px, 80vw) - 44px);
  z-index: 86;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--gold);
  cursor: pointer;
}

.nav-close.open { display: block; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 5, 0.6);
  z-index: 84;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: none;
}

/* ---------- Hero: single dramatic image, wino miesiąca ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 18, 16, 0.25) 0%, rgba(26, 18, 16, 0.55) 55%, rgba(26, 18, 16, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 72px;
}

.hero-kicker {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
  margin-bottom: 18px;
}

.hero-content p {
  max-width: 52ch;
  color: var(--parchment-dim);
  font-size: 1.08rem;
  margin-bottom: 26px;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  font-family: 'Spectral', serif;
}

.hero-price .old {
  text-decoration: line-through;
  color: var(--parchment-dim);
  font-size: 1.1rem;
}

.hero-price .new {
  font-size: 1.9rem;
  color: var(--gold);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  background: none;
  font-family: 'Jost', sans-serif;
  color: var(--parchment);
}

.btn-primary {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--parchment);
}

.btn-primary:hover {
  background: var(--bordeaux-light);
  border-color: var(--bordeaux-light);
}

.btn-ghost {
  color: var(--parchment);
  border-color: var(--gold-soft);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cellar);
}

.btn-gold:hover {
  background: #c2a06a;
  border-color: #c2a06a;
}

/* ---------- Sections ---------- */
section {
  padding: 84px 0;
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

.section-head p {
  color: var(--parchment-dim);
  max-width: 50ch;
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-card {
  background: var(--cellar-card);
  padding: 32px 18px;
  text-align: center;
  transition: background 0.2s ease;
}

.cat-card:hover {
  background: var(--cellar-alt);
}

.cat-card .num {
  font-family: 'Spectral', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
}

.cat-card h3 {
  font-size: 0.98rem;
}

/* ---------- Product grid / bottle card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.bottle {
  border: 1px solid var(--line);
  background: var(--cellar-card);
  display: flex;
  flex-direction: column;
  position: relative;
}

.bottle-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.bottle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bottle:hover .bottle-img img {
  transform: scale(1.05);
}

.bottle-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.badge {
  background: rgba(26, 18, 16, 0.82);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
}

.badge-promo {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--parchment);
}

.bottle-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bottle-cat {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.bottle-body h3 {
  font-size: 1.08rem;
}

.bottle-body h3 a:hover {
  color: var(--gold);
}

.bottle-desc {
  font-size: 0.85rem;
  color: var(--parchment-dim);
  flex: 1;
}

.bottle-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.price {
  font-family: 'Spectral', serif;
  font-weight: 600;
  color: var(--parchment);
}

.price .unit {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.74rem;
  color: var(--parchment-dim);
}

.price .old {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  text-decoration: line-through;
  color: var(--parchment-dim);
  margin-right: 6px;
}

.add-btn {
  background: none;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

.add-btn:hover {
  background: var(--gold);
  color: var(--cellar);
}

/* ---------- Shop page: sidebar layout ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  align-items: start;
}

.shop-sidebar h3 {
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.cat-filter {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cat-filter a {
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--parchment-dim);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.cat-filter a:hover {
  color: var(--parchment);
}

.cat-filter a.active {
  color: var(--gold);
  font-weight: 500;
}

.cat-filter a .count {
  color: var(--parchment-dim);
  font-size: 0.78rem;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 56px 0 24px;
}

.product-detail-img {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--cellar-card);
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--parchment-dim);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.product-info .price {
  font-size: 1.7rem;
  display: block;
  margin: 20px 0 22px;
}

.product-info .desc {
  color: var(--parchment-dim);
  margin-bottom: 30px;
  max-width: 52ch;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
}

.stepper button {
  width: 38px;
  height: 42px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--gold);
}

.stepper button:hover {
  background: var(--cellar-alt);
}

.stepper span {
  width: 36px;
  text-align: center;
  font-weight: 500;
}

/* ---------- Koszyk page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.cart-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-row img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.cart-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cart-row-info .name {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 1.02rem;
}

.cart-row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--parchment-dim);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-remove:hover { color: var(--bordeaux-light); }

.cart-empty {
  padding: 50px 0;
  text-align: center;
  color: var(--parchment-dim);
}

.cross-sell {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.cross-sell h3 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
}

.cross-sell-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cross-card {
  background: var(--cellar-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.cross-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 8px;
}

.cross-card .name {
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  min-height: 2.4em;
}

.cross-card button {
  width: 100%;
  background: none;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  padding: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cross-card button:hover {
  background: var(--gold);
  color: var(--cellar);
}

.cart-summary {
  background: var(--cellar-card);
  border: 1px solid var(--line);
  padding: 30px;
  position: sticky;
  top: 110px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 1.2rem;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.order-card h3 {
  font-size: 1rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-form label {
  font-size: 0.78rem;
  color: var(--parchment-dim);
  font-weight: 500;
  margin-bottom: -8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-form input,
.order-form select,
.order-form textarea {
  border: 1px solid var(--line);
  background: var(--cellar);
  color: var(--parchment);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: var(--radius);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.order-form .btn {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

.order-confirm {
  text-align: center;
  padding: 20px 0;
}

.order-confirm h3 {
  color: var(--gold);
  margin-bottom: 12px;
}

.order-confirm p {
  color: var(--parchment-dim);
  margin-bottom: 20px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  background: var(--cellar-card);
  color: var(--parchment);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form label {
  font-size: 0.78rem;
  color: var(--parchment-dim);
  font-weight: 500;
  margin-bottom: -8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-block {
  margin-bottom: 26px;
}

.info-block h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}

.info-block p {
  color: var(--parchment-dim);
  margin-bottom: 4px;
}

.map-placeholder {
  border: 1px solid var(--line);
  background: var(--cellar-card);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--parchment-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- About section (index) ---------- */
.about-section .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.about-section img {
  border: 1px solid var(--line);
}

.about-section p {
  max-width: 52ch;
  color: var(--parchment-dim);
  margin-bottom: 14px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--cellar-alt);
  color: var(--parchment-dim);
  padding: 60px 0 28px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-family: 'Spectral', serif;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-grid p, .footer-grid a {
  font-size: 0.88rem;
  color: var(--parchment-dim);
  display: block;
  margin-bottom: 9px;
}

.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 0.76rem;
  color: rgba(237, 230, 214, 0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gold);
  color: var(--cellar);
  padding: 13px 24px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: 78vh; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-sidebar { margin-bottom: 8px; }
  .cat-filter { flex-direction: row; flex-wrap: wrap; border-top: none; }
  .cat-filter a { border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cross-sell-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-section .wrap { grid-template-columns: 1fr; }
  .about-section img { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-left, .nav-right { display: none; }
  .burger { display: flex; }
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }

  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(300px, 80vw);
    background: var(--cellar-alt);
    flex-direction: column;
    gap: 6px;
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 85;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
    border-left: 1px solid var(--line);
  }

  .mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-nav.open {
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cross-sell-row { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 48px; }
}
