/* ═══════════════════════════════════════════
   МаринаПро — Global Stylesheet (Light Theme)
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=DM+Mono:wght@400;500&display=swap');

:root {
  --amber:       #C47C1A;
  --amber-light: #E8A030;
  --amber-pale:  #FDF3E3;
  --amber-tint:  #FAE8C4;
  --amber-dim:   #D4922A;

  --bg:          #FDFAF5;
  --bg-warm:     #F7F2E8;
  --bg-card:     #FFFFFF;
  --bg-section:  #F2EDE0;

  --ink:         #1C1A16;
  --ink-2:       #3A3628;
  --ink-3:       #6B6356;
  --ink-4:       #9C9082;
  --ink-5:       #C8BEB0;

  --border:      #E4D9C8;
  --border-dark: #C8B89A;

  --red:         #C0392B;
  --green:       #2D6A4F;

  --shadow-sm:   0 2px 8px rgba(60,40,10,0.07);
  --shadow-md:   0 8px 32px rgba(60,40,10,0.10);
  --shadow-lg:   0 24px 60px rgba(60,40,10,0.14);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--amber-dim); border-radius: 3px; }

img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { font-family: 'DM Sans', sans-serif; }

/* ─── TYPOGRAPHY ─── */
.display {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.display-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--amber);
}
.label-caps {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(253,250,245,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex; align-items: center;
  padding: 0 clamp(16px, 5vw, 72px);
  gap: 32px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800;
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo .logo-dot {
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; flex: 1;
}
.nav-links li a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  padding: 8px 14px; border-radius: 6px;
  transition: all 0.18s;
  display: block; cursor: pointer;
}
.nav-links li a:hover { color: var(--ink); background: var(--bg-warm); }
.nav-links li a.active { color: var(--amber); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-cart {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: #fff;
  border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.btn-cart:hover { background: var(--amber); }
.cart-count {
  background: var(--amber);
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.btn-cart:hover .cart-count { background: #fff; color: var(--amber); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all 0.3s;
}

.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 999; padding: 16px 24px 24px;
  flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; font-weight: 500;
  color: var(--ink-3); padding: 12px 16px;
  border-radius: 8px; transition: all 0.18s; cursor: pointer;
}
.mobile-menu a:hover { color: var(--ink); background: var(--bg-warm); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  background: var(--amber); color: #fff;
  border: none; cursor: pointer;
  padding: 13px 28px; border-radius: 8px;
  transition: all 0.22s; text-decoration: none;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(196,124,26,0.3); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border-dark); cursor: pointer;
  padding: 12px 28px; border-radius: 8px;
  transition: all 0.22s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-pale); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: #fff;
  border: none; cursor: pointer;
  padding: 13px 28px; border-radius: 8px;
  transition: all 0.22s; text-decoration: none;
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

/* ─── PAGE HEADER ─── */
.page-header {
  background: var(--bg-warm);
  padding: 104px clamp(20px, 6vw, 72px) 36px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,124,26,0.08), transparent 70%);
  pointer-events: none;
}
.page-header-inner { max-width: 1280px; margin: 0 auto; position: relative; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-4); cursor: pointer; transition: color 0.18s; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { color: var(--ink-5); }

/* ─── SECTION ─── */
.section { padding: clamp(60px, 9vw, 100px) clamp(20px, 6vw, 72px); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--bg-section); }

.section-tag { margin-bottom: 14px; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1; letter-spacing: -0.5px;
  color: var(--ink); margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: var(--ink-3); max-width: 580px; margin-bottom: 48px;
}

/* ─── PRODUCT CARD ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: all 0.28s; cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: block; color: inherit; text-decoration: none;
}
.product-card:hover {
  border-color: var(--amber-dim);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-img-wrap { position: relative; overflow: hidden; }
.product-img-wrap img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.5s;
  filter: brightness(0.96) saturate(1.05);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--amber); color: #fff;
  padding: 4px 10px; border-radius: 4px;
}
.product-badge.new { background: var(--red); }

.product-body { padding: 20px; }
.product-cat {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 8px;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--ink); margin-bottom: 8px; line-height: 1.25;
}
.product-desc {
  font-size: 13px; color: var(--ink-3); line-height: 1.55;
  margin-bottom: 18px;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.product-price {
  font-size: 20px; font-weight: 700; color: var(--ink);
  line-height: 1;
}
.product-price small {
  font-size: 11px; color: var(--ink-4); font-weight: 400;
  display: block; margin-top: 3px;
}
.add-to-cart {
  font-size: 13px; font-weight: 600;
  background: var(--amber-pale); color: var(--amber);
  border: 1.5px solid var(--amber-tint);
  padding: 8px 16px; border-radius: 7px;
  cursor: pointer; transition: all 0.2s;
}
.add-to-cart:hover { background: var(--amber); color: #fff; border-color: var(--amber); }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  font-size: 13px; font-weight: 500;
  background: var(--bg-card); color: var(--ink-3);
  border: 1.5px solid var(--border);
  padding: 8px 18px; border-radius: 20px;
  cursor: pointer; transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--amber-dim); color: var(--amber); }
.filter-btn.active { background: var(--amber); color: #fff; border-color: var(--amber); }

/* ─── FEATURES STRIP ─── */
.features-strip {
  background: var(--ink);
  padding: 0 clamp(20px, 6vw, 72px);
}
.features-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 24px;
}
.feature-item + .feature-item { border-left: 1px solid rgba(255,255,255,0.08); }
.feature-icon { font-size: 24px; }
.feature-text strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.feature-text span { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  box-shadow: var(--shadow-sm);
}
.t-stars { color: var(--amber-light); font-size: 15px; margin-bottom: 14px; }
.t-text {
  font-size: 14px; font-style: italic; font-weight: 300;
  color: var(--ink-3); line-height: 1.75; margin-bottom: 20px;
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber-tint); color: var(--amber);
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.t-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.t-biz { font-size: 12px; color: var(--ink-4); }

/* ─── CART ─── */
.cart-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: 20px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.cart-item img {
  width: 88px; height: 88px; object-fit: cover; border-radius: 8px;
}
.ci-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.ci-cat {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-4);
}
.qty-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg-warm); border: 1.5px solid var(--border);
  color: var(--ink); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s;
}
.qty-btn:hover { border-color: var(--amber); color: var(--amber); }
.qty-val {
  font-size: 17px; font-weight: 700; color: var(--ink);
  min-width: 24px; text-align: center;
}
.ci-price {
  font-size: 20px; font-weight: 700; color: var(--ink); text-align: right;
}
.remove-btn {
  font-size: 11px; color: var(--ink-4); cursor: pointer;
  background: none; border: none; margin-top: 6px;
  letter-spacing: 1px; text-transform: uppercase;
  display: block; text-align: right; transition: color 0.18s;
}
.remove-btn:hover { color: var(--red); }

.cart-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  position: sticky; top: 90px;
  box-shadow: var(--shadow-md);
}
.summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800; color: var(--ink);
  margin-bottom: 24px;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--ink-3);
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.summary-row.total {
  font-size: 18px; font-weight: 700; color: var(--ink);
  border-bottom: none; margin-top: 8px;
}
.checkout-btn {
  width: 100%; margin-top: 20px;
  font-size: 15px; font-weight: 700;
  background: var(--amber); color: #fff;
  border: none; cursor: pointer;
  padding: 15px; border-radius: 8px;
  transition: all 0.22s;
}
.checkout-btn:hover { background: var(--amber-light); transform: translateY(-1px); }

/* ─── CONTACT FORM ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--amber-pale); border: 1px solid var(--amber-tint);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-info-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.contact-info-text span { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 800; color: var(--ink);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg-warm);
  border: 1.5px solid var(--border); border-radius: 8px;
  color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 15px; padding: 12px 16px;
  transition: border-color 0.18s; outline: none;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--amber); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--bg-section); border-top: 1px solid var(--border);
  padding: 72px clamp(20px, 6vw, 72px);
  text-align: center;
}
.cta-strip-inner {
  max-width: 720px; margin: 0 auto;
}

/* ─── EMPTY STATES ─── */
.empty-state {
  text-align: center; padding: 80px 20px;
}
.empty-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.25; }
.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 800; color: var(--ink-3);
  margin-bottom: 10px;
}
.empty-state p { color: var(--ink-4); margin-bottom: 32px; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  padding: 64px clamp(20px, 6vw, 72px) 32px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800;
  color: #fff; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.footer-logo .logo-dot { background: var(--amber); }
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,0.4);
  line-height: 1.7; margin-bottom: 24px;
}
.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,0.6);
  transition: color 0.18s; cursor: pointer;
}
.footer-col ul li a:hover { color: var(--amber-light); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.3);
}

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--ink); color: #fff;
  border-radius: 10px; padding: 14px 22px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  z-index: 9999; transform: translateY(80px);
  opacity: 0; transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg); max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp 0.7s ease both; }
.anim-1 { animation-delay: 0.08s; }
.anim-2 { animation-delay: 0.18s; }
.anim-3 { animation-delay: 0.28s; }
.anim-4 { animation-delay: 0.40s; }
.anim-5 { animation-delay: 0.52s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(3) { border-left: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .ci-price, .remove-btn { grid-column: 1 / -1; text-align: left; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .contact-form-wrap { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-item + .feature-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
}
