/* =========================================
   ARA — style-extra.css
   Lightbox · GDPR · Animations · Responsive
   ========================================= */

/* LIGHTBOX */
.lb-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(250,250,250,0.0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease; }
.lb-overlay.open { opacity: 1; pointer-events: all; background: rgba(250,250,250,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lb-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 90vw; max-height: 90dvh; }
.lb-img { max-width: 80vw; max-height: 80dvh; object-fit: contain; box-shadow: 0 8px 48px rgba(0,0,0,0.18); transform: scale(0.96); transition: transform 0.3s ease; }
.lb-overlay.open .lb-img { transform: scale(1); }
.lb-caption { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); }
.lb-close { position: fixed; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; font-size: 1.2rem; color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); box-shadow: var(--shadow-sm); }
.lb-close:hover { background: var(--bg-secondary); }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.8rem; color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); box-shadow: var(--shadow-sm); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover { background: var(--bg-secondary); }

/* GDPR */
.gdpr-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000; background: var(--bg-card); border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,0.08); padding: 1.25rem 5%; transform: translateY(100%); transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0; }
.gdpr-banner--visible { transform: translateY(0); opacity: 1; }
.gdpr-banner--hiding { transform: translateY(100%); opacity: 0; }
.gdpr-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.gdpr-banner__text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.gdpr-banner__link { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.gdpr-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.gdpr-btn { padding: 0.6rem 1.5rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.gdpr-btn--accept { background: var(--text-primary); color: var(--bg-primary); border: 1px solid var(--text-primary); }
.gdpr-btn--accept:hover { background: var(--accent); border-color: var(--accent); }
.gdpr-btn--reject { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.gdpr-btn--reject:hover { border-color: var(--text-secondary); color: var(--text-secondary); }

/* FADE-IN */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ─── Buy Modal ──────────────────────────────────────────────────────────── */
.bm-overlay { position: fixed; inset: 0; background: rgba(250,250,250,0.0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .3s ease, background .3s ease, backdrop-filter .3s ease; pointer-events: none; }
.bm-overlay.is-visible { opacity: 1; pointer-events: all; background: rgba(250,250,250,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.bm-modal { background: #fff; width: 100%; max-width: 680px; border: 1px solid var(--border); padding: 0; position: relative; transform: scale(0.96); transition: transform .3s ease; max-height: 90dvh; overflow: hidden; box-shadow: 0 8px 48px rgba(0,0,0,0.12); }
.bm-overlay.is-visible .bm-modal { transform: scale(1); }
.bm-close { position: absolute; top: .75rem; right: .75rem; background: rgba(255,255,255,.9); border: 1px solid var(--border); font-size: .85rem; cursor: pointer; color: #888; line-height: 1; padding: .3rem .5rem; z-index: 1; }
.bm-layout { display: grid; grid-template-columns: 1fr 1fr; }
.bm-img-wrap { aspect-ratio: 3/4; background: var(--bg-secondary, #f5f5f5); overflow: hidden; }
.bm-img { width: 100%; height: 100%; object-fit: cover; }
.bm-info { padding: 1.75rem 1.5rem; overflow-y: auto; max-height: 90dvh; display: flex; flex-direction: column; }
.bm-name { font-family: var(--font-display, inherit); font-size: 1.1rem; letter-spacing: .05em; margin-bottom: .2rem; }
.bm-price { font-size: .85rem; color: #888; margin-bottom: 1.25rem; }
.bm-section { margin-bottom: 1.25rem; }
.bm-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: #aaa; margin-bottom: .5rem; }
.bm-selected { font-size: .75rem; color: #888; margin-top: .4rem; }
.bm-swatches { display: flex; gap: .5rem; }
.bm-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: border-color .15s; }
.bm-swatch.is-active { border-color: #0a0a0a; outline: 1px solid #0a0a0a; outline-offset: 2px; }
.bm-swatch--black { background: #0a0a0a; }
.bm-swatch--white { background: #f0f0f0; box-shadow: inset 0 0 0 1px #ddd; }
.bm-swatch--grey  { background: #888; }
.bm-sizes { display: flex; gap: .4rem; flex-wrap: wrap; }
.bm-size { padding: .4rem .75rem; border: 1px solid #e5e5e5; background: #fff; font-size: .75rem; cursor: pointer; transition: all .15s; letter-spacing: .05em; }
.bm-size:hover { border-color: #0a0a0a; }
.bm-size.is-active { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.bm-cta { width: 100%; padding: .85rem; background: var(--col-accent, #0a0a0a); color: var(--col-accent-text, #fff); border: none; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; margin-top: .5rem; transition: opacity .2s; }
.bm-cta:hover { opacity: .82; }
.bm-note { font-size: .7rem; color: #bbb; text-align: center; margin-top: .75rem; }
/* KEYFRAMES */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.9; } }

/* Tablet */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .bm-layout { grid-template-columns: 1fr; }
  .bm-img-wrap { aspect-ratio: 4/3; }
}

/* Mobile — 2 колони ВИНАГИ */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px;
  }

  .product-card__info { padding: 0.75rem 0.75rem 0.875rem; }
  .product-card__name { font-size: 0.75rem; }
  .product-card__desc { font-size: 0.65rem; }
  .product-card__footer { margin-top: 0.5rem; }
  .product-card__badge { font-size: 0.5rem; padding: 0.15rem 0.4rem; }
  .color-dot { width: 8px; height: 8px; }

  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .collection, .about, .statement, .social { padding: 5rem 5%; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .gdpr-banner__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
