/* ===== Basic reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #2b2b2b;
  background: #ffffff;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  color: #1a1a1a;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-size: 14px;
}
.main-nav a:hover { text-decoration: underline; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
}
.search-form input {
  border: none;
  outline: none;
  padding: 4px 4px;
  font-size: 14px;
  width: 120px;
}
.cart-link {
  position: relative;
  font-size: 14px;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -14px;
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #eee;
  margin-top: 60px;
  padding: 40px 0;
  font-size: 14px;
  color: #555;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h4 {
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.footer-grid li { margin-bottom: 6px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  text-align: center;
  color: #999;
  font-size: 12px;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: #f7f6f3;
}
.hero-image {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 7;
  background: #eeece7 url("../images/placeholder.svg") center/cover;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 14px;
}
.hero p {
  max-width: 460px;
  color: #555;
  margin-bottom: 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 1px solid #1a1a1a;
}
.btn:hover { background: #333; }
.btn-outline {
  background: transparent;
  color: #1a1a1a;
}
.btn-outline:hover { background: #1a1a1a; color: #fff; }
.btn-full { width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== Sections ===== */
.section {
  padding: 60px 0;
}
.section-title {
  font-size: 26px;
  margin-bottom: 30px;
  text-align: center;
}

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}
.product-card { display: block; }
.product-card .img-wrap {
  aspect-ratio: 4 / 5;
  background: #eeece7 url("../images/placeholder.svg") center/cover;
  margin-bottom: 12px;
  overflow: hidden;
}
.product-card h3 {
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 4px;
}
.product-card .price {
  font-size: 14px;
  color: #555;
}
.product-card:hover h3 { text-decoration: underline; }

/* ===== Shop toolbar ===== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  font-size: 14px;
}
.toolbar select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  background: #fff;
}

/* ===== PDP ===== */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px 0;
}
.pdp-gallery-main {
  aspect-ratio: 4/5;
  background: #eeece7 url("../images/placeholder.svg") center/cover;
  margin-bottom: 12px;
}
.pdp-gallery-thumbs {
  display: flex;
  gap: 10px;
}
.pdp-gallery-thumbs .thumb {
  width: 70px;
  height: 88px;
  background: #eeece7 url("../images/placeholder.svg") center/cover;
  cursor: pointer;
  border: 1px solid transparent;
}
.pdp-gallery-thumbs .thumb.active { border-color: #1a1a1a; }
.pdp-info h1 { font-size: 30px; margin-bottom: 8px; }
.pdp-info .price { font-size: 18px; margin-bottom: 20px; color: #333; }
.pdp-info .field-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin: 20px 0 10px;
}
.swatches { display: flex; gap: 10px; }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
}
.swatch.active { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.size-option {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 13px;
}
.size-option.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-row button {
  width: 32px; height: 32px;
  border: 1px solid #ccc;
  background: #fff;
}
.add-to-cart-msg {
  margin-top: 12px;
  font-size: 13px;
  color: #2b6b3f;
  display: none;
}

/* Accordion */
.accordion-item { border-top: 1px solid #eee; }
.accordion-item:last-child { border-bottom: 1px solid #eee; }
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header .icon { font-size: 18px; }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 14px;
  color: #555;
}
.accordion-body-inner { padding: 0 0 16px; }
.accordion-item.open .accordion-body { max-height: 400px; }

/* Related carousel */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.carousel .product-card { min-width: 220px; flex: 0 0 auto; }

/* ===== About page ===== */
.about-hero {
  padding: 60px 0;
  text-align: center;
}
.about-hero .banner {
  aspect-ratio: 21/8;
  background: #eeece7 url("../images/placeholder.svg") center/cover;
  margin-bottom: 30px;
}
.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.about-content p { margin-bottom: 20px; color: #444; }
.about-content h2 { margin: 30px 0 14px; font-size: 22px; }

/* ===== Contact ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px 0;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 14px;
}
.contact-info p { margin-bottom: 10px; }
.social-list { display: flex; gap: 16px; margin-top: 10px; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 700px; margin: 0 auto; padding: 50px 0; }

/* ===== Cart ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { text-align: left; font-size: 13px; text-transform: uppercase; color: #666; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-table td { padding: 16px 0; border-bottom: 1px solid #eee; vertical-align: middle; }
.cart-item-info { display: flex; gap: 14px; align-items: center; }
.cart-item-info .thumb { width: 60px; height: 75px; background: #eeece7 url("../images/placeholder.svg") center/cover; }
.cart-qty-input { width: 50px; padding: 6px; border: 1px solid #ccc; text-align: center; }
.remove-btn { background: none; border: none; color: #999; font-size: 13px; text-decoration: underline; }
.cart-summary { max-width: 320px; margin-left: auto; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-row.total { font-size: 17px; border-top: 1px solid #ddd; padding-top: 12px; margin-top: 12px; }
.empty-cart { text-align: center; padding: 60px 0; color: #666; }

/* ===== Checkout ===== */
.checkout-steps { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; font-size: 13px; color: #999; }
.checkout-steps .step.active { color: #1a1a1a; font-weight: bold; }
.checkout-wrap { max-width: 560px; margin: 0 auto; padding-bottom: 60px; }
.checkout-panel { display: none; }
.checkout-panel.active { display: block; }
.payment-option {
  border: 1px solid #ccc;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.payment-option img.badge { height: 24px; }
.secure-badges { display: flex; gap: 14px; align-items: center; margin-top: 20px; font-size: 12px; color: #777; }
.secure-badges .lock { font-size: 14px; }
.order-summary-mini { background: #f7f6f3; padding: 20px; margin-bottom: 30px; font-size: 14px; }
.order-confirmation { text-align: center; padding: 60px 0; }

/* ===== Legal pages ===== */
.legal-wrap { max-width: 750px; margin: 0 auto; padding: 50px 0; }
.legal-wrap h2 { margin: 30px 0 12px; font-size: 20px; }
.legal-wrap p, .legal-wrap li { color: #444; margin-bottom: 12px; }
.legal-wrap ul { padding-left: 20px; list-style: disc; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .search-form { display: none; }
  .nav-toggle { display: block; }
  .header-inner.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 16px;
  }
  .hero h1 { font-size: 28px; }
}
