/* ═══════════════════════════════════════════════════════════
   ONE PRODUCT – GLOBAL PREMIUM STYLES
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --color-primary: #2D5016;
  --color-secondary: #C4A962;
  --color-accent: #E8DCC8;
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-muted: #888;
  --color-border: rgba(0, 0, 0, 0.07);
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --radius: 0;
  --max-content: 1200px;
  --max-narrow: 720px;
  --space-section: clamp(5rem, 10vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-editorial);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

/* ═══════════════════════════════════════════════════════════
   HEADER – Minimal luxury
   ═══════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.4s, background 0.4s;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.site-branding .site-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Nav */
.primary-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.primary-nav .nav-menu a {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s;
}
.primary-nav .nav-menu a:hover { color: var(--color-text); }

/* Cart icon */
.cart-link {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.cart-link:hover { opacity: 1; }
.cart-link svg { width: 20px; height: 20px; stroke-width: 1.5; }
.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 600;
  width: 15px; height: 15px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER – Luxury minimal
   ═══════════════════════════════════════════════════════════ */

.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-section);
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-footer > .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 250px;
}

.footer-columns {
  display: flex;
  gap: 4rem;
}

.footer-col__title {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  font-size: 0.8rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.footer-bottom p {
  font-size: 0.7rem;
  font-weight: 300;
}
.footer-payment {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-payment__logo {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-payment__logo:hover {
  opacity: 1;
}

.footer-legal {
  font-size: 0.65rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
  max-width: 68ch;
}

/* ═══════════════════════════════════════════════════════════
   OMNIBUS — "najniższa cena z 30 dni"
   ═══════════════════════════════════════════════════════════ */
.op-omnibus {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--color-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT — split consent checkboxes
   ═══════════════════════════════════════════════════════════ */
.op-checkout-consent {
  margin: 0 0 0.5rem;
}

.op-checkout-consent .woocommerce-form__label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text);
}

.op-checkout-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--color-text);
}

.op-checkout-consent--marketing .woocommerce-form__label {
  color: var(--color-muted);
}

.op-checkout-consent a {
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT — order summary fix (product name wrapping)
   ═══════════════════════════════════════════════════════════ */
.wc-block-components-order-summary-item__description {
  word-break: normal;
  overflow-wrap: anywhere;
}

.wc-block-components-order-summary-item__header {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.wc-block-components-order-summary-item__header .wc-block-components-product-name {
  white-space: normal;
  word-break: normal;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */

.site-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 60vh;
}

/* Page headers */
.page-header {
  text-align: center;
  padding: var(--space-section) 0 clamp(3rem, 5vw, 5rem);
}
.page-header__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}
.page-header__title {
  margin-bottom: 1rem;
}
.page-header__desc {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: var(--max-narrow);
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn--primary {
  padding: 1rem 2.5rem;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.btn--primary:hover {
  background: #111;
  border-color: #111;
}

.btn--outline {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-text);
}

.btn--small {
  padding: 0.7rem 1.5rem;
  font-size: 0.6rem;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT GRID – Used on category/shop pages
   ═══════════════════════════════════════════════════════════ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-section);
}

.product-card {
  overflow: hidden;
  background: var(--color-surface);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover { transform: translateY(-4px); }

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f3f0;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card__image { transform: scale(1.04); }

.product-card__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.35rem 0.9rem;
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.product-card__info { padding: 1.25rem 0.25rem; }

.product-card__name {
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
}
.product-card__price-old {
  text-decoration: line-through;
  color: #bbb;
  font-size: 0.8rem;
  font-weight: 300;
}
.product-card__price-current {
  font-weight: 400;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
   ═══════════════════════════════════════════════════════════ */

.product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  padding: clamp(3rem, 5vw, 5rem) 0;
  align-items: start;
}

.product-single__gallery {
  position: sticky;
  top: 5rem;
}

.product-single__gallery-main {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f3f0;
  margin-bottom: 1rem;
}
.product-single__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-single__gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}
.product-single__gallery-thumbs img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.product-single__gallery-thumbs img:hover,
.product-single__gallery-thumbs img.is-active { opacity: 1; }

.product-single__info {
  padding-top: 1rem;
}

.product-single__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.product-single__title {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.product-single__price {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.product-single__price del {
  font-weight: 300;
  color: var(--color-muted);
  margin-right: 0.75rem;
}

.product-single__desc {
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.product-single__add-to-cart {
  margin-bottom: 3rem;
}
.product-single__add-to-cart .btn {
  width: 100%;
  justify-content: center;
  padding: 1.2rem;
}

.product-single__meta {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.product-single__meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}
.product-single__meta-label {
  color: var(--color-muted);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════
   CROSS-SELL
   ═══════════════════════════════════════════════════════════ */

.op-cross-sell {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-border);
}

.op-cross-sell__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.op-cross-sell__title {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .op-cross-sell .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   BLOG / POSTS
   ═══════════════════════════════════════════════════════════ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: var(--space-section);
}

.post-card {
  transition: transform 0.4s;
}
.post-card:hover { transform: translateY(-3px); }

.post-card__link {
  text-decoration: none;
  color: inherit;
}

.post-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0ede8;
  margin-bottom: 1.25rem;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.post-card:hover .post-card__image img { transform: scale(1.03); }

.post-card__date {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* Single post */
.post-single {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.post-single__header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-single__date {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.post-single__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.post-single__content {
  font-weight: 300;
  line-height: 1.9;
}
.post-single__content p { margin-bottom: 1.5rem; }
.post-single__content h2 { margin: 3rem 0 1rem; }
.post-single__content h3 { margin: 2rem 0 0.75rem; }
.post-single__content img { margin: 2rem 0; }
.post-single__content blockquote {
  border-left: 2px solid var(--color-secondary);
  padding: 1rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════ */

.contact-form {
  max-width: 600px;
  margin: 0 auto var(--space-section);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-text);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ═══════════════════════════════════════════════════════════
   MY ACCOUNT / WOOCOMMERCE
   ═══════════════════════════════════════════════════════════ */

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  border-right: 1px solid var(--color-border);
  padding-right: 2rem;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.3s;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  color: var(--color-text);
}

/* WooCommerce overrides */
.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
}
.woocommerce table.shop_table th {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  font-weight: 300;
}

.woocommerce .button,
.woocommerce button.button {
  font-family: var(--font-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 1rem 2rem !important;
  border-radius: 0 !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border: 1px solid var(--color-primary) !important;
  transition: all 0.3s !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: #111 !important;
  border-color: #111 !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 0.9rem 1.25rem; }
  .primary-nav .nav-menu { gap: 1.5rem; }
  .primary-nav .nav-menu a { font-size: 0.65rem; }

  .site-main { padding: 0 1.25rem; }

  .product-single {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-single__gallery { position: static; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .posts-grid { grid-template-columns: 1fr; }

  .primary-nav { display: none; }

  .site-footer > .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-bottom .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
