/*
Theme Name: Semifreddo
Theme URI: https://semifreddo.pl
Description: Custom theme for Semifreddo Bakery
Version: 1.0
Author: Semifreddo
*/
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --black: #050505;
    --black2: #111111;
    --black3: #171717;
    --gold: #C9A46A;
    --gold-light: #D9B880;
    --text: #F5F5F5;
    --text-muted: #B8B8B8;
    --border: rgba(255,255,255,0.08);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Manrope', sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--black);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    overflow-x: hidden;
  }

  /* ── NAVBAR ──
     Uwaga: zaznaczone celowo przez #navbar (nie przez sam tag "nav") —
     WooCommerce renderuje breadcrumb i paginację jako własne <nav>
     (.woocommerce-breadcrumb, .woocommerce-pagination), więc goły
     selektor "nav" robił z nich drugi fixed pasek nachodzący na header. */
  #navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s, backdrop-filter 0.4s;
  }
  nav.scrolled {
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.02em;
    text-decoration: none;
    /* Replace with actual logo img if available */
  }
  .nav-logo img {
    height: 36px;
    width: auto;
    filter: brightness(1);
  }
  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }
  .nav-links a {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 100%;
    height: 1px;
    background: var(--gold);
    transition: right 0.3s ease;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { right: 0; }

  /* ── NAV ACTIONS (koszyk + CTA + burger) ── */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
  }
  .nav-cart-link:hover {
    color: var(--gold);
    background: rgba(201,164,106,0.08);
  }
  .nav-cart-link svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
  }
  .nav-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }
  .nav-cart-count[data-count="0"] { display: none; }

  .nav-cta {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 500;
  }
  .nav-cta:hover { background: var(--gold-light); }

  /* ── CART DRAWER ── */
  .cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .cart-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--black2);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .cart-drawer.is-open { transform: translateX(0); }

  .cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .cart-drawer-header h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
  }
  .cart-drawer-header-count {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 0.25rem;
    font-family: var(--sans);
    text-transform: none;
    letter-spacing: normal;
  }
  .cart-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.25rem;
  }
  .cart-drawer-close:hover { color: var(--gold); }

  .cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
  }

  .cart-drawer-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .cart-drawer-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .cart-drawer-item:last-child { border-bottom: none; padding-bottom: 0; }
  .cart-drawer-item-img img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }
  .cart-drawer-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
  }
  .cart-drawer-item-name {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cart-drawer-item-name:hover { color: var(--gold); }
  .cart-drawer-item-qty {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .cart-drawer-item-price {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
  }
  .cart-drawer-item .remove {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s;
  }
  .cart-drawer-item .remove:hover {
    color: #C96A6A;
    border-color: #C96A6A;
  }

  .cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 3rem 1rem;
  }
  .cart-drawer-empty svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
  }
  .cart-drawer-empty p {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .cart-drawer-total-amount {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
  }

  .cart-drawer-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
  }
  .cart-drawer-btn { width: 100%; text-align: center; }

  body.cart-drawer-open { overflow: hidden; }

  /* ── KARTY KATALOGOWE (klikalne, otwierają popup) ── */
  .product-card--info {
    cursor: pointer;
    border: none;
    background: var(--black3);
    padding: 0;
    text-align: left;
    font-family: inherit;
    width: 100%;
    transition: transform 0.3s, border-color 0.3s;
  }
  .product-card--info:hover {
    transform: translateY(-6px);
  }
  .product-card--info:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  .product-card--info .product-card-body {
    padding: 1.25rem 1.5rem;
  }
  .product-card-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .product-card--info .product-card-name {
    margin-bottom: 0;
  }
  .product-card-info-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
  }
  .product-card-info-btn svg {
    width: 14px;
    height: 14px;
  }
  .product-card--info:hover .product-card-info-btn,
  .product-card--info:focus-visible .product-card-info-btn {
    border-color: var(--gold);
    color: var(--gold);
  }

  /* ── PRODUCT INFO MODAL (popup: opis + cena) ── */
  .product-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 299;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .product-info-overlay.is-open { opacity: 1; visibility: visible; }

  .product-info-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -48%);
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--black2);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  }
  .product-info-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
  }
  .product-info-close {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(5,5,5,0.55);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
  }
  .product-info-close:hover { color: var(--gold); border-color: var(--gold); }
  .product-info-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
  }
  .product-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .product-info-body {
    padding: 2rem 2.25rem 2.25rem;
  }
  .product-info-body h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 1rem;
  }
  .product-info-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
  }
  .product-info-price {
    margin-top: 1.25rem !important;
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--gold) !important;
    font-weight: 600;
  }
  .product-info-price:empty { display: none; }
  @media (max-width: 560px) {
    .product-info-body { padding: 1.5rem 1.5rem 1.75rem; }
    .product-info-body h3 { font-size: 1.4rem; }
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0rem 4rem 6rem 4rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(
      90deg,
      rgba(5,5,5,1) 0%,
      rgba(5,5,5,0.97) 60%,
      rgba(5,5,5,0.5) 90%,
      transparent 100%
    );
  }

  .hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--gold);
  }

  .hero-title {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--text);
  }
  .hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
    display: block;
  }

  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-muted);
    max-width: 380px;
    margin-bottom: 3rem;
    font-weight: 300;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-primary {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

  .btn-secondary {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--gold);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    font-weight: 400;
    display: inline-block;
  }
  .btn-secondary:hover { background: rgba(201,164,106,0.1); transform: translateY(-1px); }

  .hero-right {
    position: relative;
    overflow: hidden;
  }
  .hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
  }
  .hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(5,5,5,0.4) 0%,
      transparent 50%
    );
  }

  .hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0.5;
  }
  .hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
  }
  .hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

  /* ── SECTION SHARED ── */
  section { padding: 7rem 4rem; }

  .section-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--gold);
  }

  .section-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--text);
    text-transform: uppercase;
  }
  .section-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
  }

  .gold-divider {
    width: 3rem;
    height: 1px;
    background: var(--gold);
    margin: 2rem 0;
  }

  /* ── SPECJALNOŚCI ── */
  .specialties { background: var(--black2); }
  .specialties-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
  }
  .specialties-header-left { max-width: 500px; }
  .specialties-header-right {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
    max-width: 320px;
    text-align: right;
  }

  .spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
  }

  .spec-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--black3);
    cursor: pointer;
  }
  .spec-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
  }
  .spec-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
  }
  /* Placeholder food backgrounds using CSS gradients */
  .spec-card-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .bg-croissant { background: radial-gradient(ellipse at 60% 40%, #8B5E3C 0%, #3A200A 50%, #0D0705 100%); }
  .bg-kanapki { background: radial-gradient(ellipse at 60% 40%, #5C7A3E 0%, #2A3E1C 50%, #080C05 100%); }
  .bg-ciasta { background: radial-gradient(ellipse at 50% 30%, #7B4A2A 0%, #3D1F0E 60%, #0A0504 100%); }
  .bg-monodesery { background: radial-gradient(ellipse at 50% 50%, #6B3D6B 0%, #2E1530 60%, #070307 100%); }
  .bg-torty { background: radial-gradient(ellipse at 50% 40%, #855A3A 0%, #3A2010 55%, #090503 100%); }
  .bg-ciasteczka { background: radial-gradient(ellipse at 55% 45%, #8C6E45 0%, #3E2D12 55%, #0A0703 100%); }

  .spec-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(5,5,5,0.95) 0%,
      rgba(5,5,5,0.4) 40%,
      transparent 70%
    );
    transition: opacity 0.4s;
  }
  .spec-card:hover .spec-card-bg,
  .spec-card:hover .spec-card-img { transform: scale(1.07); }

  .spec-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1.75rem;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s;
  }
  .spec-card:hover .spec-card-content { transform: translateY(-6px); }

  .spec-card-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }
  .spec-card-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.75rem;
  }
  .spec-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 240px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.05s, transform 0.4s 0.05s;
  }
  .spec-card:hover .spec-card-desc { opacity: 1; transform: translateY(0); }

  /* ── ABOUT ── */
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    background: var(--black);
    min-height: 70vh;
  }
  .about-img {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    background: radial-gradient(ellipse at 55% 45%, #6B4A25 0%, #2A1A08 50%, #050300 100%);
  }
  .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 50%, rgba(5,5,5,0.3) 100%);
  }

  .about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 5rem;
    background: var(--black3);
  }

  .about-content p {
    font-size: 0.9rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 440px;
  }

  .about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
  }
  .about-pill {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201,164,106,0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 400;
  }

  .about-stat-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  .about-stat-num {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.25rem;
  }
  .about-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* ── BESTSELLERS ── */
  .bestsellers {
    background: var(--black2);
    overflow: hidden;
  }
  .bestsellers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
  }

  .carousel-track-wrap { overflow: hidden; }
  .carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .product-card {
    flex: 0 0 calc(25% - 1.1rem);
    min-width: 260px;
    background: var(--black3);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
  }
  .product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,164,106,0.3);
  }

  .product-card-img {
    height: 400px;
    overflow: hidden;
    position: relative;
  }
  .product-card-img .card-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
  }
  .product-card:hover .card-bg { transform: scale(1.05); }

  .product-card-body {
    padding: 1.5rem;
  }
  .product-card-cat {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }
  .product-card-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }
  .product-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
  }

  .carousel-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 3rem;
  }
  .carousel-btn {
    width: 48px; height: 48px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.3s, color 0.3s;
  }
  .carousel-btn:hover { border-color: var(--gold); color: var(--gold); }

  /* ── PEŁNA KARTA CIAST (identyczna stylistyka jak Bestsellers) ── */
  .cakes-menu {
    background: var(--black2);
    overflow: hidden;
  }
  .cakes-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
  }

  /* ── GALERIA ── */
  .gallery {
    background: var(--black);
    padding: 7rem 4rem;
  }
  .gallery-header { margin-bottom: 3rem; }
  .masonry {
    columns: 4;
    column-gap: 1.5px;
  }
  .masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  .masonry-item .m-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }
  .masonry-item.is-hidden { display: none; }

  /* ── FILTR GALERII (eleganckie zakładki z podkreśleniem) ── */
  .gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
  }
  .gallery-filter-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
  }
  .gallery-filter-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0 0 0.7rem;
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
  }
  .gallery-filter-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .gallery-filter-btn:hover { color: var(--text); }
  .gallery-filter-btn.is-active { color: var(--gold); }
  .gallery-filter-btn.is-active::after,
  .gallery-filter-btn:hover::after {
    left: 0;
    right: 0;
  }
  @media (max-width: 560px) {
    .gallery-filters { gap: 1.5rem; }
    .gallery-filter-btn { font-size: 0.66rem; letter-spacing: 0.18em; }
  }
  .masonry-item:hover .m-bg { transform: scale(1.04); }
  .masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5,5,5,0);
    transition: background 0.3s;
  }
  .masonry-item:hover::after { background: rgba(5,5,5,0.2); }

  /* Gallery item placeholders */
  .g1 { height: 320px; background: radial-gradient(ellipse at 60% 40%, #8B5E3C 0%, #2A1508 80%, #050200 100%); }
  .g2 { height: 240px; background: radial-gradient(ellipse at 40% 60%, #7B4A6B 0%, #2A1025 80%, #050105 100%); }
  .g3 { height: 380px; background: radial-gradient(ellipse at 50% 30%, #8C6E45 0%, #2F200A 80%, #060400 100%); }
  .g4 { height: 280px; background: radial-gradient(ellipse at 55% 50%, #5C7A3E 0%, #1A2810 80%, #030502 100%); }
  .g5 { height: 360px; background: radial-gradient(ellipse at 45% 55%, #A06020 0%, #3A1A05 80%, #080300 100%); }
  .g6 { height: 220px; background: radial-gradient(ellipse at 60% 35%, #6B3D6B 0%, #250D25 80%, #060006 100%); }
  .g7 { height: 300px; background: radial-gradient(ellipse at 50% 45%, #9C7040 0%, #381A05 80%, #090400 100%); }
  .g8 { height: 260px; background: radial-gradient(ellipse at 50% 40%, #7A4530 0%, #2D1008 80%, #070200 100%); }

  /* ── LOKALIZACJE ── */
  .locations {
    background: var(--black3);
    padding: 7rem 4rem;
  }
  .locations-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
  }
  .loc-carousel-wrap { overflow: hidden; }
  .loc-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .loc-card {
    flex: 0 0 calc(33.333% - 1.4rem);
    min-width: 300px;
    padding: 3rem 2.5rem;
    background: var(--black2);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
  }
  .loc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .loc-card:hover { border-color: rgba(201,164,106,0.3); transform: translateY(-4px); }
  .loc-card:hover::before { opacity: 1; }
  .loc-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2.5rem;
  }
  .loc-dot {
    width: 24px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.3s, width 0.3s;
    cursor: pointer;
  }
  .loc-dot.active { background: var(--gold); width: 40px; }
  .loc-num {
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(201,164,106,0.15);
    line-height: 1;
    margin-bottom: 1.5rem;
  }
  .loc-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 0.5rem;
  }
  .loc-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  .loc-hours {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
  }
  .loc-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
  }
  .loc-hours-row span:last-child { color: var(--text); }

  /* ── FOOTER ── */
  footer {
    background: #020202;
    border-top: 1px solid var(--border);
    padding: 5rem 4rem 3rem;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
  .footer-logo {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 1rem;
    display: block;
  }
  .footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 240px;
  }
  .footer-col-title {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
  }
  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--text); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .footer-legal-links { display: flex; gap: 1.5rem; }
  .footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-legal-links a:hover { color: var(--gold); }

  /* ── ANIMACJE WEJŚCIA ── */
  .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-up-delay-1 { transition-delay: 0.1s; }
  .fade-up-delay-2 { transition-delay: 0.2s; }
  .fade-up-delay-3 { transition-delay: 0.3s; }
  .fade-up-delay-4 { transition-delay: 0.4s; }

  /* ── MOBILE BURGER ── */
  .nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    #navbar { padding: 1.25rem 1.5rem; }
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav-actions { gap: 1rem; }

    .hero {
      grid-template-columns: 1fr;
      min-height: 100vh;
    }
    .hero-right {
      position: absolute;
      inset: 0;
      z-index: 0;
    }
    .hero-left {
      position: relative;
      z-index: 2;
      padding: 8rem 1.5rem 5rem;
      background: linear-gradient(
        to bottom,
        rgba(5,5,5,0.9) 0%,
        rgba(5,5,5,0.7) 100%
      );
    }
    .hero-title { font-size: 3rem; }

    section { padding: 5rem 1.5rem; }
    .specialties-header { flex-direction: column; gap: 1rem; }
    .specialties-header-right { text-align: left; }
    .spec-grid { grid-template-columns: 1fr 1fr; }
    .about { grid-template-columns: 1fr; }
    .about-img { min-height: 360px; }
    .about-content { padding: 3rem 1.5rem; }
    .loc-card { flex: 0 0 calc(100% - 0rem); min-width: 280px; }
    .masonry { columns: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .bestsellers-header { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .product-card { flex: 0 0 280px; }
    .cakes-menu-header { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  }

  @media (max-width: 900px) {
    .cart-drawer { width: 100vw; }
  }

  @media (max-width: 520px) {
    .spec-grid { grid-template-columns: 1fr; }
    .masonry { columns: 1; }
  }
/* ── MOBILE MENU PANEL ── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--black2);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--gold); }

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.mobile-menu-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu-links a:hover { color: var(--gold); }

.mobile-menu-cta { width: 100%; text-align: center; }

body.mobile-menu-open { overflow: hidden; }

/* Animacja burgera w "X" po otwarciu */
.nav-burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-active span:nth-child(2) { opacity: 0; }
.nav-burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ── TREŚĆ STRON (Regulamin, Polityka prywatności itp.) ── */
  .legal-content {
    max-width: 820px;
    margin: 0 auto;
  }
  .legal-content .page-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 2.5rem;
    line-height: 1.1;
  }
  .legal-content > p:first-child {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3rem;
  }
  .legal-content h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    text-transform: uppercase;
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .legal-content h2:first-of-type { margin-top: 0; }
  .legal-content p {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
  }
  .legal-content strong { color: var(--text); font-weight: 600; }
  .legal-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
  }
  .legal-content a:hover { color: var(--gold-light); }
  .legal-content ul,
  .legal-content ol {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.9;
    margin: 0 0 1.5rem 1.25rem;
  }
  .legal-content li { margin-bottom: 0.5rem; }
  .legal-content mark {
    background: rgba(201,164,106,0.15);
    color: var(--gold);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-style: italic;
  }
  .legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.85rem;
  }
  .legal-content table th,
  .legal-content table td {
    border: 1px solid var(--border);
    padding: 0.85rem 1rem;
    text-align: left;
    color: var(--text-muted);
  }
  .legal-content table th { color: var(--gold); font-weight: 600; }
  @media (max-width: 700px) {
    .legal-content h2 { font-size: 1.25rem; }
  }