/* Lightweight skin matching wallbedsbywilding.com production styles
   Source CSS values pulled from live site via Chrome devtools:
   - Body:   "Open Sans", 16px, line-height 32px, color #4C4A47
   - H1:     Baskerville, serif, 46px, weight 400
   - Nav:    Open Sans 13px regular, color #4C4A47, no uppercase
   - Top bar: #333434 background, white text 13px
   - Accent gold: #CEA445 (phone number, price highlights)
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --c-text: #4C4A47;
  --c-text-light: #777573;
  --c-utility-bg: #333434;
  --c-gold: #CEA445;
  --c-gold-hover: #b58e2f;
  --c-border: #e4e0d8;
  --c-bg-soft: #f7f5f1;
  --c-white: #ffffff;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font-serif: Baskerville, "Libre Baskerville", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 32px;
  color: var(--c-text);
  background: var(--c-white);
}

.container { max-width: 1360px; margin: 0 auto; padding: 0 20px; }

a { color: var(--c-text); text-decoration: none; }
a:hover { color: var(--c-gold); }

/* === Top utility bar === */
.utility-bar {
  background: var(--c-utility-bg);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  line-height: 14px;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.utility-bar a { color: #fff; }
.utility-bar a:hover { color: var(--c-gold); }
.utility-bar strong { color: var(--c-gold); font-weight: 700; }

/* === Site header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
}
.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo img {
  display: block;
  height: 44px;
  width: auto;
}

.main-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}
.main-nav a:hover { color: var(--c-gold); }

/* === Hero / product title === */
.product-hero {
  padding: 36px 0 12px;
}
.product-hero h1 {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-text);
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}
.rating {
  color: var(--c-gold);
  font-size: 14px;
  margin-bottom: 8px;
}
.rating a { color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.price-from {
  font-size: 16px;
  color: var(--c-text-light);
  margin: 0;
}
.price-from strong {
  color: var(--c-text);
  font-size: 22px;
  font-weight: 700;
}

.cta-button {
  display: inline-block;
  margin-top: 18px;
  background: var(--c-gold);
  color: #fff !important;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background-color .15s;
}
.cta-button:hover {
  background: var(--c-gold-hover);
  color: #fff !important;
}

/* === Product gallery === */
.gallery {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 16px;
  margin: 18px 0 28px;
  align-items: start;
}
.gallery-main {
  background: var(--c-bg-soft);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 660px;
  overflow-y: auto;
  padding-right: 4px;
}
.gallery-thumbs .thumb {
  border: 2px solid var(--c-border);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  aspect-ratio: 1;
  transition: border-color .15s;
}
.gallery-thumbs .thumb:hover { border-color: var(--c-gold); }
.gallery-thumbs .thumb.is-active { border-color: var(--c-text); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
  }
  .gallery-thumbs .thumb { flex: 0 0 80px; }
}

/* === Local demo banner === */
.local-banner {
  background: #fff7ee;
  border: 1px solid #f0c98b;
  color: #5e3d10;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 24px;
}
.local-banner strong { color: var(--c-gold-hover); }

/* === Sections === */
.configurator-section {
  margin: 12px 0 48px;
  /* Прорив поза .container на повну ширину viewport (з невеликими полями) */
  width: calc(100vw - 40px);
  max-width: 1180px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.configurator-section h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--c-text);
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 8px;
  margin: 0 0 20px 0;
  display: inline-block;
  line-height: 1.2;
}

.page-section { margin: 48px 0; }
.page-section h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-text);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-gold);
  display: inline-block;
}
.page-section h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-text);
  margin: 0 0 8px 0;
}
.muted { color: var(--c-text-light); font-size: 13px; }

/* === Dimensions tables === */
.dim-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; }
.dim-tables table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.dim-tables th, .dim-tables td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: center; }
.dim-tables th { background: var(--c-bg-soft); font-weight: 600; }
.dim-tables td:first-child { text-align: left; }

/* === Options grid === */
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.opt-card {
  background: var(--c-bg-soft);
  border-radius: 4px;
  padding: 20px;
  border: 1px solid var(--c-border);
}
.opt-card h3 {
  font-family: var(--font-serif);
  color: var(--c-text);
  font-size: 20px;
  margin: 0 0 6px;
}
.opt-card strong { color: var(--c-gold-hover); font-size: 18px; font-weight: 700; }

/* === Cabinet pricing table === */
.cab-prices { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.cab-prices th, .cab-prices td { border: 1px solid var(--c-border); padding: 11px 14px; text-align: center; }
.cab-prices th { background: var(--c-utility-bg); color: #fff; font-weight: 600; }
.cab-prices td:first-child { text-align: left; font-weight: 600; }

/* === Footer === */
.site-footer {
  margin: 64px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-light);
  text-align: center;
  line-height: 1.6;
}
.site-footer a { color: var(--c-text); border-bottom: 1px dotted var(--c-border); }
.site-footer a:hover { color: var(--c-gold); }

@media (max-width: 760px) {
  .main-nav { gap: 14px; }
  .header-grid { flex-direction: column; align-items: flex-start; }
  .utility-bar .container { flex-direction: column; gap: 4px; }
  .product-hero h1 { font-size: 32px; }
  .configurator-section h2, .page-section h2 { font-size: 26px; }
}
