﻿:root{--bg:#f8fafc;--text:#0f172a;--muted:#475569;--line:#dbe3ee;--card:#ffffff;--btn:#0f172a;--btnText:#fff}
*{box-sizing:border-box} body{margin:0;font-family:Georgia,"Times New Roman",serif;background:var(--bg);color:var(--text)}
.container{width:min(1120px,92%);margin:0 auto}nav{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:2px solid var(--line)}.logo{font-size:30px;font-style:italic}.nav-links{display:flex;gap:14px;align-items:center}nav a{color:var(--text);text-decoration:none;border-bottom:1px dotted #64748b}.cart-open{border:1px solid #0f172a;background:#fff;color:#0f172a;border-radius:4px;padding:8px 12px}

.products{display:grid;grid-template-columns:1.6fr 1fr;gap:14px}.card:nth-child(n+2){display:grid;grid-template-columns:120px 1fr}.card:nth-child(n+2) img{height:100%}
.card{background:var(--card);border:1px solid var(--line);border-radius:6px;overflow:hidden}.card img{width:100%;height:220px;object-fit:cover}.card-body{padding:12px}.card h3{margin:0 0 6px;font-size:18px}.meta{margin:0 0 8px;color:var(--muted);font-size:14px}.price{margin:0 0 10px;font-weight:700}.buy-btn{width:100%;border:0;border-radius:4px;padding:10px;background:var(--btn);color:var(--btnText)}
footer{margin-top:24px;padding:16px 0 22px;border-top:1px solid var(--line);color:var(--muted)}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;padding:14px;z-index:50}.modal.open{display:flex}.modal-card{width:min(760px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px}.modal-head{display:flex;justify-content:space-between;align-items:center}.close-modal{border:1px solid var(--line);background:#fff;border-radius:6px;padding:6px 10px}
#cart-items{padding-left:18px}.cart-row{display:flex;justify-content:space-between;gap:8px}.qty-controls{display:flex;gap:6px}.qty-controls button{border:1px solid var(--line);background:#fff;border-radius:4px;padding:3px 8px}.order-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.order-form .full{grid-column:1/-1}.order-form input,.order-form textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px}.order-submit{border:0;background:#0f172a;color:#fff;border-radius:6px;padding:10px 14px}
@media (max-width:900px){.products{grid-template-columns:1fr}.card:nth-child(n+2){grid-template-columns:1fr}.card:nth-child(n+2) img{height:220px}} @media (max-width:700px){nav{flex-direction:column;align-items:flex-start}.order-form{grid-template-columns:1fr}}

.hero-editorial{padding:28px 0 20px}.hero-kicker{margin:0;color:#64748b;font-size:13px;letter-spacing:1px}.hero-editorial h1{margin:8px 0 10px;font-size:clamp(30px,5vw,50px)}.hero-editorial p{margin:0;color:var(--muted);max-width:60ch}.hero-editorial-line{height:1px;background:linear-gradient(to right,#0f172a,#cbd5e1);margin:14px 0 10px}

/* about-site2-start */
.about2-frame{padding:28px 0 12px;max-width:68ch;animation:a2Slide .75s ease both}
.about2-kicker{margin:0;color:#64748b;letter-spacing:1px;font-size:12px}
.about2-frame h1{margin:8px 0 10px;font-size:clamp(30px,5vw,50px)}
.about2-frame p{margin:0;color:var(--muted)}
.about2-line{height:2px;width:0;background:#0f172a;margin-top:14px;animation:a2Line .9s ease .2s both}
.about2-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:12px 0}
.about2-item{border:1px solid var(--line);border-radius:8px;padding:14px;background:#fff;animation:a2Slide .7s ease both}
.about2-item:nth-child(2){animation-delay:.1s}.about2-item:nth-child(3){animation-delay:.2s}
.about2-item h3{margin:0 0 8px}
.about2-quote{margin:6px 0 0;padding:14px;border-left:3px solid #0f172a;background:#fff;color:#334155;animation:a2Slide .8s ease .3s both}
@keyframes a2Slide{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:none}}
@keyframes a2Line{from{width:0}to{width:220px}}
@media (max-width:900px){.about2-columns{grid-template-columns:1fr}}
/* about-site2-end */

/* main-anim-start */
section[class^="hero-"] {
  animation: mainHeroIn .82s cubic-bezier(.2,.7,.2,1) both;
}

.products .card {
  opacity: 0;
  transform: translateY(22px) scale(.99);
  animation: mainCardIn .68s ease forwards;
}

.products .card:nth-child(1) { animation-delay: .08s; }
.products .card:nth-child(2) { animation-delay: .16s; }
.products .card:nth-child(3) { animation-delay: .24s; }
.products .card:nth-child(4) { animation-delay: .32s; }
.products .card:nth-child(5) { animation-delay: .40s; }

.products .card {
  transition: transform .24s ease, box-shadow .24s ease;
}

.products .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}

footer {
  animation: mainFooterIn .75s ease .35s both;
}

@keyframes mainHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes mainCardIn {
  from { opacity: 0; transform: translateY(22px) scale(.99); }
  to { opacity: 1; transform: none; }
}

@keyframes mainFooterIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .products .card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  section[class^="hero-"],
  .products .card,
  footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* main-anim-end */

/* ux-patch-start */
html { scroll-behavior: smooth; }

body { line-height: 1.45; }

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

button,
.cart-open,
nav a,
.about-link,
.order-submit,
.buy-btn,
.close-modal,
.secondary-btn {
  min-height: 42px;
}

:focus-visible {
  outline: 2px solid var(--btn);
  outline-offset: 2px;
}

.modal-card {
  scrollbar-gutter: stable;
}

#cart-items {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.form-status {
  margin: 8px 0 0;
  font-size: 14px;
}

.form-status.info { color: var(--muted); }
.form-status.ok { color: #16a34a; }
.form-status.error { color: #dc2626; }

.order-submit[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 95vh;
    border-radius: 14px 14px 0 0;
  }

  .cart-actions button,
  .order-submit {
    width: 100%;
  }
}
/* ux-patch-end */

