/*
Theme Name: Jewel Laboratory
Author: Jewellery Lab
Description: Тема для сайта ювелирной мастерской Jewellery Lab.
Version: 2.0
*/

:root {
  --bg: #131110;
  --panel: #1A1815;
  --panel-2: #201D19;
  --paper: #F3EFEA;
  --ink: #1E1B17;
  --text: #F4EFE6;
  --muted: #A79C8B;
  --muted-ink: #6E6759;
  --gold: #D8BE99;
  --gold-soft: #E8D6B8;
  --line: rgba(244,239,230,0.12);
  --line-light: #E4DCC8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin: 0;
  font-weight: 500;
}

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

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

.wrap { max-width: 1440px; margin: 0 auto; }

.cap { letter-spacing: 0.12em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 13.5px; border-radius: 3px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #1a1611; }
.btn-gold:hover { background: var(--gold-soft); color: #1a1611; }
.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { border-color: var(--muted-ink); color: var(--muted-ink); }
.btn-underline { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }

/* ===== header ===== */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 56px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { height: 34px; width: auto; filter: brightness(0) invert(1); }
.brand-text-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--text); line-height: 1.1; }
.brand-text-tag { font-size: 10px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; line-height: 1.4; margin-top: 2px; }

.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav a { font-size: 14px; color: var(--text); opacity: 0.85; }
.primary-nav a.active, .primary-nav a:hover { color: var(--gold); opacity: 1; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

.header-tag { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.5; letter-spacing: 0.02em; }
.header-tag .rule { display: inline-block; width: 24px; height: 1px; background: var(--line); margin-right: 8px; vertical-align: middle; }

.header-side { display: flex; align-items: center; gap: 22px; }
.cart-icon { position: relative; display: flex; }

/* ===== breadcrumb ===== */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }

/* ===== hero (home) ===== */
.hero { position: relative; padding: 64px 56px 0; overflow: hidden; }
.hero-inner { position: relative; display: flex; align-items: center; min-height: 520px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(19,17,16,0.35) 65%, rgba(19,17,16,0.1) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 560px; padding: 40px 0; }
.hero-eyebrow { font-size: 11.5px; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 18px; }
.hero-content h1 { font-size: 50px; line-height: 1.14; color: var(--text); margin-bottom: 20px; }
.hero-content p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 440px; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-side-tag { position: absolute; top: 0; right: 56px; font-size: 11px; color: var(--muted); text-align: right; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== light band (category strip) ===== */
.light-band { background: var(--paper); color: var(--ink); padding: 64px 56px; }
.light-band .section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.light-band h2 { font-size: 34px; color: var(--ink); }
.quick-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.quick-links .rule { display: inline-block; width: 24px; height: 1px; background: var(--line-light); }
.quick-links a { color: var(--ink); opacity: 0.6; }
.quick-links a:hover { opacity: 1; color: var(--gold); }
.quick-links a:first-of-type { color: var(--gold); opacity: 1; }

.cat-strip { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; }
.cat-strip a.tile-link { display: block; }
.cat-strip .tile-photo { aspect-ratio: 1/1; overflow: hidden; margin-bottom: 12px; background: #e5ddc9; }
.cat-strip .tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-strip a.tile-link:hover .tile-photo img { transform: scale(1.05); }
.cat-strip .tile-name { font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.cat-strip .tile-arrow { font-size: 13px; color: var(--gold); }

/* ===== dark photo teaser band ===== */
.teaser-band { position: relative; padding: 90px 56px; overflow: hidden; }
.teaser-media { position: absolute; inset: 0; z-index: 0; }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.teaser-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(19,17,16,0.55) 42%, rgba(19,17,16,0.15) 100%); }
.teaser-content { position: relative; z-index: 1; max-width: 480px; }
.teaser-content .hero-eyebrow { color: var(--muted); }
.teaser-content h2 { font-size: 32px; color: var(--text); margin-bottom: 14px; }
.teaser-content p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 26px; max-width: 420px; }

/* ===== generic dark section ===== */
.section { padding: 80px 56px; }
.section-eyebrow { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; margin-bottom: 12px; }
.section h2 { font-size: 34px; color: var(--text); }

/* ===== process steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin: 48px 0 40px; position: relative; }
.step { padding-right: 24px; }
.step-num {
  width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: var(--gold); margin-bottom: 18px;
}
.step h3 { font-size: 19px; color: var(--text); margin-bottom: 10px; font-weight: 500; }
.step p { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0; }

.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-bottom: 56px; }
.info-card { border: 1px solid var(--line); padding: 30px; display: flex; align-items: flex-start; gap: 20px; }
.info-card .icon-circle {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.info-card h3 { font-size: 19px; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); padding: 18px 22px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--text); cursor: pointer; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 12px; }

/* ===== forms ===== */
.jl-form { display: flex; flex-direction: column; gap: 14px; }
.jl-form input, .jl-form textarea {
  width: 100%; padding: 15px 16px; background: transparent; border: 1px solid var(--line);
  color: var(--text); font-family: 'Manrope', sans-serif; font-size: 14px; border-radius: 2px;
}
.jl-form input::placeholder, .jl-form textarea::placeholder { color: var(--muted); }
.jl-form textarea { min-height: 120px; resize: vertical; }
.jl-form .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); }
.jl-form .consent input { width: auto; margin-top: 3px; }
.jl-form .consent a { color: var(--muted); text-decoration: underline; }
.jl-panel { border: 1px solid var(--line); padding: 36px; }
.jl-panel h2 { font-size: 24px; color: var(--text); margin-bottom: 8px; }
.jl-panel > p { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.form-success { border: 1px solid var(--gold); padding: 18px 22px; color: var(--gold-soft); font-size: 14px; margin-bottom: 20px; }

/* ===== about page ===== */
.about-hero { display: flex; align-items: stretch; min-height: 460px; }
.about-hero-text { flex: 0 0 45%; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 60px 56px; }
.about-hero-text h1 { font-size: 42px; color: var(--text); line-height: 1.2; }
.about-hero-text p { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 420px; margin: 0; }
.about-hero-media { flex: 1; }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; }

.about-process { display: flex; gap: 56px; padding: 80px 56px; align-items: flex-start; flex-wrap: wrap; }
.about-process-text { flex: 1 1 360px; }
.about-process-text h2 { font-size: 30px; margin-bottom: 16px; }
.about-process-text p { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 420px; }
.about-process-media { flex: 1 1 460px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-process-media figure { margin: 0; }
.about-process-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 12px; }
.about-process-media figcaption strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.about-process-media figcaption span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.sketch-band { position: relative; padding: 70px 56px; text-align: center; overflow: hidden; }
.sketch-media { position: absolute; inset: 0; z-index: 0; }
.sketch-media img { width: 100%; height: 100%; object-fit: cover; }
.sketch-media::after { content: ""; position: absolute; inset: 0; background: rgba(19,17,16,0.72); }
.sketch-content { position: relative; z-index: 1; }
.sketch-content h2 { font-size: 30px; color: var(--text); margin-bottom: 12px; }
.sketch-content p { color: var(--muted); font-size: 15px; margin: 0 0 26px; }

/* ===== contacts ===== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 0 56px 80px; align-items: start; }
.contacts-list { display: flex; flex-direction: column; gap: 20px; margin: 24px 0 32px; }
.contact-row { display: flex; align-items: center; gap: 18px; }
.contact-row .icon-circle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .label { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.contact-row .value { font-size: 15px; color: var(--text); }
.contacts-map { border: 1px solid var(--line); height: 200px; overflow: hidden; }
.contacts-map iframe { width: 100%; height: 100%; border: 0; }

.contacts-hero { padding: 64px 56px 40px; }
.contacts-hero h1 { font-size: 42px; margin-bottom: 12px; }
.contacts-hero p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ===== single product ===== */
.product-page { padding: 48px 56px 96px; display: flex; gap: 56px; align-items: flex-start; }
.product-gallery { flex: 0 0 48%; }
.product-gallery-main { border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.product-gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 10px; }
.product-gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.product-summary { flex: 1; }
.product-summary h1 { font-size: 32px; color: var(--text); margin-bottom: 10px; }
.product-summary .sku-line { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.product-summary .price { font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--gold-soft); margin: 20px 0; display: block; }
.product-meta-table { margin-top: 28px; border-top: 1px solid var(--line); }
.product-meta-table .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.product-meta-table .row .k { color: var(--muted); }
.product-meta-table .row .v { color: var(--text); }
.product-description { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-top: 24px; }
.product-description ul { padding-left: 18px; }
.custom-note { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.custom-note h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.custom-note p { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 460px; }

/* ===== catalog / shop ===== */
.shop-page { padding: 48px 56px 96px; }
.shop-page h1 { font-size: 36px; margin-bottom: 10px; }
.shop-page > p.lede { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.shop-layout { display: flex; gap: 48px; align-items: flex-start; }
.shop-sidebar { flex: 0 0 240px; }
.shop-search input {
  width: 100%; padding: 13px 16px; background: transparent; border: 1px solid var(--line);
  color: var(--text); font-family: 'Manrope', sans-serif; font-size: 13.5px; margin-bottom: 24px;
}
.shop-widget-title { color: var(--text); font-size: 15px; font-weight: 600; margin: 0 0 16px; }
.cat-filter-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cat-filter-list a { color: var(--muted); font-size: 14px; }
.cat-filter-list a.active, .cat-filter-list a:hover { color: var(--gold); }
.cat-filter-list span { color: var(--muted); opacity: 0.7; }
.shop-widget { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.shop-widget ul { list-style: none; margin: 0; padding: 0; }
.shop-widget .price_slider_wrapper { margin-top: 10px; }
.shop-widget .price_label { font-size: 13px; color: var(--muted); margin: 12px 0; }
.shop-widget .button { margin-top: 10px; }
.shop-main { flex: 1; min-width: 0; }

.woocommerce-breadcrumb { display: none; }
.woocommerce-result-count { color: var(--muted); font-size: 13.5px; }
.woocommerce-ordering select {
  font-family: 'Manrope', sans-serif; border: 1px solid var(--line); padding: 9px 12px;
  background: var(--panel); color: var(--text);
}
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }

ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
ul.products li.product { background: var(--panel); border: 1px solid var(--line); }
ul.products li.product a { display: block; color: inherit; }
ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px; color: var(--text); margin: 0; padding: 18px 18px 4px; line-height: 1.4; font-weight: 500; }
ul.products li.product .cat-line { display: block; padding: 0 18px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
ul.products li.product .price { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--gold-soft); padding: 0 18px 18px; display: block; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .price del { color: var(--muted); font-size: 15px; margin-right: 8px; }
ul.products li.product .button { margin: 0 18px 20px; }
ul.products li.product .onsale, ul.products li.product .stock,
ul.products li.product .backorder_notification { display: none; }

.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.woocommerce-pagination a, .woocommerce-pagination span.current {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--line); font-size: 13px; color: var(--text);
}
.woocommerce-pagination span.current { background: var(--gold); color: #1a1611; border-color: var(--gold); }

.woocommerce-message, .woocommerce-error, .woocommerce-info {
  list-style: none; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 14px 18px; margin: 0 0 24px; font-size: 14px; color: var(--text);
}

.product form.cart { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.product form.cart .quantity input { width: 64px; height: 48px; text-align: center; border: 1px solid var(--line); background: transparent; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 14px; }

.related.products { margin-top: 80px; padding: 0 56px; }
.related.products > h2 { font-size: 28px; margin-bottom: 24px; color: var(--text); }

/* ===== footer ===== */
.site-footer { background: var(--bg); padding: 48px 56px 30px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 60px; padding-bottom: 36px; flex-wrap: wrap; }
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--text); margin-bottom: 6px; }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-list a, .footer-list span { color: var(--muted); font-size: 13.5px; }
.footer-list a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.footer-bottom span, .footer-bottom a { color: var(--muted); font-size: 12.5px; }
.footer-social { display: flex; gap: 14px; }

@media (max-width: 1100px) {
  .primary-nav, .header-tag { display: none; }
  .hero-inner { flex-direction: column; min-height: auto; }
  .hero-content { max-width: 100%; padding: 32px 0; }
  .cat-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .about-hero { flex-direction: column; }
  .about-hero-text { padding: 40px 24px; }
  .about-process { padding: 48px 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
  .info-cards { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; padding: 0 24px 56px; }
  .shop-layout { flex-direction: column; }
  .shop-sidebar { width: 100%; }
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-page { flex-direction: column; padding: 32px 24px 56px; }
  .product-gallery { flex: none; width: 100%; }
  .site-header { padding: 20px 24px; }
  .hero, .light-band, .section, .teaser-band, .contacts-hero { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 640px) {
  .hero-content h1 { font-size: 34px; }
  .cat-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  ul.products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { gap: 32px; }
}
