/* ==========================================================================
   teakop — static site stylesheet
   ========================================================================== */

:root {
  --cream: #faedbc;
  --cream-light: #fdf7e3;
  --ink: #171412;
  --ink-soft: #4a4541;
  --line: #e7e1d3;
  --white: #ffffff;
  --max-width: 1180px;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: inline-block;
}

.logo img {
  height: 42px;
  width: auto;
}

.header-top nav.utility {
  font-size: 13px;
  color: var(--ink-soft);
}

.site-nav {
  background: var(--cream);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
}

.site-nav a {
  font-family: var(--serif);
  font-size: 16px;
}

.site-nav a:hover {
  text-decoration: underline;
}

.mobile-nav-toggle {
  display: none;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding: 18px 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Hero carousel ---------- */

.carousel {
  position: relative;
  overflow: hidden;
  background: #f2ede0;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide picture,
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.carousel-arrow:hover {
  background: var(--white);
}

.carousel-arrow.prev {
  left: 18px;
}

.carousel-arrow.next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active {
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* ---------- Product grid ---------- */

.section-heading {
  text-align: center;
  padding: 56px 24px 8px;
}

.section-heading h2 {
  font-size: 30px;
}

.section-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 32px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  border: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0 auto 20px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-card .view-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  padding: 48px 24px 40px;
  margin-top: 40px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 15px;
}

.footer-links li a:hover {
  text-decoration: underline;
}

.footer-secure {
  text-align: center;
  max-width: 340px;
}

.footer-secure h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-secure p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Generic content page ---------- */

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.page-content h1 {
  font-size: 34px;
  margin-bottom: 24px;
}

.page-content p {
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

.page-content h2 {
  font-size: 22px;
  margin-top: 2em;
}

/* ---------- Product detail page ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px 40px;
  align-items: start;
}

.product-gallery-main {
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
}

.product-gallery-thumbs button {
  border: 1px solid var(--line);
  background: none;
  padding: 0;
  width: 84px;
  height: 84px;
  cursor: pointer;
  overflow: hidden;
}

.product-gallery-thumbs button.active {
  border-color: var(--ink);
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 18px;
}

.format-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.format-options {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.format-options span {
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.product-tabs {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.product-tabs h4 {
  font-family: var(--serif);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.product-tabs p {
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
}

.availability-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.contact-intro h1 {
  font-size: 34px;
  margin-bottom: 24px;
}

.contact-intro p {
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

.contact-card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 32px;
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 18px;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 4px 0 0;
  font-size: 16px;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 28px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button:hover {
  opacity: 0.85;
}

/* ---------- Wholesale ---------- */

.wholesale-hero {
  text-align: center;
  padding: 72px 24px;
  max-width: 620px;
  margin: 0 auto;
}

.wholesale-hero p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-top {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .site-nav ul {
    gap: 10px 20px;
    padding: 12px 24px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-card img {
    height: 140px;
  }
  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}
