/* Base styles */
:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --primary: #1f6feb;
  --accent: #ffcf00;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.logo { font-weight: 700; font-size: 20px; }
.nav a { margin-left: 16px; }
.content { padding: 24px; max-width: 1100px; margin: 0 auto; }
.header-logo { height: 40px; width: auto; display: block; }

/* Single logo page layout */
.single-logo-page { min-height: 100vh; background: #cfcfcf; }
.logo-wrap { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; padding: 24px; }
.logo-wrap .hero-logo { max-width: 640px; width: 70vw; height: auto; box-shadow: 0 0 0 4px rgba(0,0,0,0.06); background: #f6f2f0; display: inline-block; }

/* Hide site chrome when using single-logo-page class on body (keep visible only the logo) */
header.site-header, .site-footer, .content { display: none !important; visibility: hidden !important; }

.hero-title { margin: 28px 0 8px 0; font-size: 48px; letter-spacing: 4px; font-weight: 800; color: #333; }
.contact-line { margin: 0; color: #222222; opacity: 0.98; font-size: 24px; font-weight: 800; }

@media (max-width: 520px) {
  .hero-title { font-size: 32px; }
  .logo-wrap .hero-logo { width: 85vw; }
  .contact-line { font-size: 20px; }
}
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); }
.footer-links a { margin-left: 12px; color: var(--muted); }

/* Hero */
.hero { background: linear-gradient(90deg, #f5f9ff, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 40px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.hero h1 { margin: 0 0 8px 0; font-size: 32px; }
.hero p { color: var(--muted); margin: 0 0 16px 0; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.secondary { background: #fff; color: var(--text); }

/* Hero logo */
.hero-logo { max-width: 220px; width: 100%; height: auto; display: block; margin-top: 12px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card img { width: 100%; height: 260px; object-fit: cover; }
.card .card-body { padding: 12px; }
.card .title { font-weight: 600; margin-bottom: 6px; }
.card .price { color: var(--text); font-weight: 700; }
.card .meta { color: var(--muted); font-size: 14px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.filters input, .filters select { padding: 8px; border: 1px solid var(--border); border-radius: 8px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-detail img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; }
.product-detail h1 { margin: 0; }
.product-detail .price { font-size: 22px; font-weight: 700; }
.option-row { margin: 8px 0; }
.option-row label { display: inline-block; min-width: 80px; color: var(--muted); }

/* Cart */
.cart-items { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 700px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.cart-item img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.summary { border: 1px solid var(--border); border-radius: 12px; padding: 12px; max-width: 360px; margin-top: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { font-weight: 700; }

/* Checkout */
.checkout-form { display: grid; gap: 12px; max-width: 720px; }
.checkout-form fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.checkout-form label { display: grid; grid-template-columns: 160px 1fr; align-items: center; margin: 8px 0; }
.checkout-form input { padding: 8px; border: 1px solid var(--border); border-radius: 8px; }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
}
