﻿/* site.css */
:root {
  --bg: #fbf4ee;
  --surface: #ffffff;
  --text: #3c2f2f;
  --muted: #7b6a68;
  --primary: #c27d52;
  --primary-soft: #f3dccf;
  --accent: #8a5f48;
  --shadow: 0 16px 40px rgba(60, 47, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff6f0 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(140, 111, 95, 0.12);
}

.nav-bar {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-size: 1.9rem;
}

.nav-brand h1 {
  margin: 0;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 0.35rem;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.form-message {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--primary);
}

.hero {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #fff9f4 0%, #f7e4d9 100%);
}

.hero-content {
  max-width: 760px;
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(194, 125, 82, 0.22);
}

.button.secondary {
  background: #6772e5;
}

.button.secondary:hover {
  box-shadow: 0 14px 28px rgba(103, 114, 229, 0.22);
}

.checkout-hero {
  background: linear-gradient(135deg, #fff3ea 0%, #f7e5d9 100%);
  text-align: center;
  padding: 4rem 1.5rem;
}

.checkout-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.checkout-hero p {
  margin: 1rem auto 0;
  max-width: 720px;
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

.checkout-form,
.checkout-summary {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.checkout-form h2,
.checkout-summary h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.checkout-block {
  margin-bottom: 2rem;
}

.checkout-intro {
  margin: 0.75rem 0 1.5rem;
  color: var(--muted);
  max-width: 720px;
}

.checkout-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-field-grid input,
.checkout-field-grid select {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(140, 111, 95, 0.2);
  background: #faf6f2;
  border-radius: 16px;
  font: inherit;
}

.checkout-form select {
  margin-top: 0.5rem;
}

.checkout-shipping-block select {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(140, 111, 95, 0.2);
  background: #faf6f2;
  border-radius: 16px;
}

.checkout-form .button {
  margin-top: 1.5rem;
}

.summary-header p {
  margin: 0.75rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-summary-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(140, 111, 95, 0.12);
  border-radius: 20px;
  background: #fbf4ee;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(140, 111, 95, 0.12);
}

.summary-item:last-child {
  border-bottom: none;
}

.item-title {
  margin: 0;
  font-weight: 700;
}

.item-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(140, 111, 95, 0.18);
}

.checkout-help {
  margin-top: 1.5rem;
  color: var(--muted);
  line-height: 1.75;
}

.checkout-help a {
  color: var(--primary);
}

.checkout-policy {
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.98rem;
  line-height: 1.7;
}

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

  .checkout-field-grid {
    grid-template-columns: 1fr;
  }
}

section {
  padding: 4rem 1.5rem;
}

section h2 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  text-align: center;
}

.products,
.about,
.custom,
.contact {
  background: #fff;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  margin: 1rem;
  font-size: 1.25rem;
}

.price {
  margin: 0 1rem 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

.about p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.custom-form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.custom-form input,
.custom-form select,
.custom-form textarea {
  width: 100%;
  border: 1px solid rgba(140, 111, 95, 0.22);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  font: inherit;
  background: #faf6f2;
}

.custom-form textarea {
  min-height: 140px;
  resize: vertical;
}

.color-pickers {
  display: grid;
  gap: 1rem;
}

.color-select-group {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.color-select-group span {
  font-weight: 600;
  color: var(--text);
}

.color-note {
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.measurement-section {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
}

.measurement-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.measurement-grid {
  display: grid;
  gap: 0.75rem;
}

.measurement-grid label {
  display: grid;
  gap: 0.35rem;
}

.measurement-grid input,
.measurement-grid select {
  width: 100%;
  border: 1px solid rgba(140, 111, 95, 0.22);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  font: inherit;
  background: #faf6f2;
}

.order-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.order-actions button {
  min-width: 160px;
}

.cart-status {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.order-cart-list,
.checkout-item-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cart-list-item,
.checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #faf6f2;
  border: 1px solid rgba(140, 111, 95, 0.18);
  border-radius: 18px;
}

.checkout-item-row .item-title,
.cart-list-item strong {
  margin: 0 0 0.25rem;
}

.cart-list-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.delete-order-item {
  border: 1px solid rgba(140, 111, 95, 0.25);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.delete-order-item:hover {
  background: rgba(194, 125, 82, 0.08);
  border-color: rgba(140, 111, 95, 0.45);
}

.checkout-item-row .item-meta,
.cart-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.all-one-color-control label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.all-one-color-control input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.custom-form button {
  width: max-content;
  padding: 0.95rem 1.8rem;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-form button:hover {
  background: #6f4b34;
}

.contact p {
  max-width: 620px;
  margin: 0 auto 0.75rem;
  color: var(--muted);
  text-align: center;
}

.contact a {
  color: var(--primary);
}

footer {
  text-align: center;
  padding: 1.5rem 1.5rem 2rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    border-radius: 20px;
    padding: 1rem;
    display: none;
    box-shadow: 0 20px 40px rgba(60, 47, 47, 0.12);
    z-index: 20;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.5rem;
    width: 100%;
    border-radius: 12px;
  }

  .custom-form {
    padding: 0 0.5rem;
  }
}
/* Product Carousel */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  z-index: 5;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.features {
  background: #fff;
  padding: 2rem 1rem;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.features-grid div {
  background: var(--primary-soft);
  padding: 1rem;
  border-radius: 16px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-note {
  margin: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Policies Section */

.policies {
    background: #fff;
}

.policy-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.policy-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.policy-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.policy-card p {
    margin-bottom: 0;
    color: var(--muted);
}