/* =========================================
   BELVUI Genel stil
   ========================================= */

:root {
  --background: #f5f1eb;
  --surface: #fbf9f6;
  --text: #27231f;
  --text-light: #756e66;
  --border: #ddd5cc;
  --accent: #8b6751;
  --brand-bar: rgb(111, 78, 55);
  --max-width: 1180px;
}

/* =========================================
   RESET
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.lang-popup-open {
  overflow: hidden;
}

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

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

/* =========================================
   HEADER
   ========================================= */
.header {
  width: 100%;
  padding: 16px 0 0;
}

.header-container {
  width: min(var(--max-width), calc(100% - 48px));
  height: 90px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: var(--brand-bar);
  color: var(--background);
  border-radius: 2px;
}

/* Logo */
.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  letter-spacing: 0.08em;
  font-weight: 500;
  flex-shrink: 0;
  color: var(--background);
}

/* Navigation */
.navigation {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
}

.navigation a {
  color: var(--background);
  transition: opacity 0.2s ease;
}

.navigation a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 14px;
  opacity: 0.55;
  pointer-events: none;
}

.navigation a:hover {
  opacity: 0.7;
}

/* Language switcher / dropdown */
.lang-switcher {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  position: relative;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--background) 35%, transparent);
  background: color-mix(in srgb, var(--background) 10%, transparent);
  color: var(--background);
  padding: 6px 10px;
  font: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-dropdown-toggle::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.75;
}

.lang-dropdown-toggle:hover,
.lang-dropdown.is-open .lang-dropdown-toggle {
  background: color-mix(in srgb, var(--background) 16%, transparent);
  border-color: color-mix(in srgb, var(--background) 55%, transparent);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--brand-bar);
  border: 1px solid color-mix(in srgb, var(--background) 28%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  z-index: 40;
}

.lang-dropdown.is-open .lang-dropdown-menu {
  display: flex;
}

.lang-link {
  padding: 8px 10px;
  border: 1px solid transparent;
  color: color-mix(in srgb, var(--background) 82%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.lang-link:hover {
  color: var(--background);
  background: color-mix(in srgb, var(--background) 12%, transparent);
}

.lang-link.is-active {
  color: var(--background);
  border-color: color-mix(in srgb, var(--background) 45%, transparent);
  background: color-mix(in srgb, var(--background) 12%, transparent);
}

html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .lang-link {
  text-align: right;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 30px auto 120px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}

.hero-content {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin-bottom: 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 1.05;
  font-weight: 500;
}

.hero-description {
  max-width: 470px;
  margin-bottom: 32px;
  color: var(--text-light);
  font-size: 16px;
}

/* Hero media (gif-like looping video, no controls) */
.hero-image {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #ebe4da;
}

.hero-image img,
.hero-image .hero-video {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  display: block;
  border: 0;
  pointer-events: none;
}

.hero-image .hero-video {
  position: absolute;
  inset: 0;
}

/* =========================================
   BUTTONS
   ========================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-dark {
  background: var(--text);
  color: white;
}

.button-dark:hover {
  transform: translateY(-2px);
}

.button-outline {
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
}

.button-outline:hover {
  background: var(--text);
  color: white;
}

/* =========================================
   PRODUCTS
   ========================================= */

/* ---------- Site announcement (between .hero and .products-section) ---------- */
.site-announcement {
  /* hero & products-section ile aynı genişlik */
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 120px;
  box-sizing: border-box;
  background: var(--brand-bar);
  color: var(--surface);
}

.site-announcement-inner {
  padding: 28px 32px;
  text-align: center;
}

.site-announcement-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--surface);
  letter-spacing: 0.08em;
}

.site-announcement-body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--surface);
  white-space: pre-line;
}

.site-announcement-pct {
  color: #ef5350;
  font-weight: inherit;
}

.site-announcement[hidden] {
  display: none !important;
}

/* Duyuru yokken hero ile products arasındaki boşluk bozulmasın:
   hero zaten margin-bottom: 120px kullanıyor. Duyuru varken hero alt boşluğunu kısalt. */
.hero:has(+ .site-announcement:not([hidden])) {
  margin-bottom: 28px;
}

.site-announcement:not([hidden]) + .products-section {
  /* products kendi margin'ini korur */
}

@media (max-width: 720px) {
  .site-announcement-inner {
    padding: 22px 20px;
  }
}
.products-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 120px;
}

.section-heading {
  margin-bottom: 48px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.1;
}

.section-heading p:last-child {
  color: var(--text-light);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: #d5cdc2;
  box-shadow: 0 12px 40px rgba(39, 35, 31, 0.06);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ebe4da;
  border-bottom: 1px solid var(--border);
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* scroll-fix-v4: no opacity fade on src swap (felt like stutter) */
  transition: none;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.product-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.product-price {
  flex-shrink: 0;
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(39, 35, 31, 0.28);
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.is-active {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text);
  border-color: transparent;
}

.color-swatch-empty {
  background:
    linear-gradient(135deg, transparent 46%, rgba(39, 35, 31, 0.45) 46%, rgba(39, 35, 31, 0.45) 54%, transparent 54%),
    var(--surface);
  border-style: dashed;
  cursor: default;
}

.color-swatch-empty:hover {
  transform: none;
}

.color-swatch:not(.color-swatch-empty) {
  cursor: pointer;
}

.product-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 18px;
  border: 1px solid var(--brand-bar);
  border-radius: 999px;
  background: var(--brand-bar);
  color: var(--background);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.product-buy.button,
.product-buy.button-outline {
  border: 1px solid var(--brand-bar);
  background: var(--brand-bar);
  color: var(--background);
}

.product-buy:hover,
.product-buy.button-outline:hover {
  background: var(--brand-bar);
  color: var(--background);
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =========================================
   PRODUCT DETAIL
   ========================================= */
.product-page {
  width: min(100% - 60px, var(--max-width));
  margin: 28px auto 110px;
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.product-back-link:hover {
  color: var(--text);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px 40px;
  align-items: start;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-detail-main {
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ebe4da;
  aspect-ratio: 4 / 5;
}

.product-detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--border);
  background: #ebe4da;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.product-thumb:hover {
  opacity: 1;
}

.product-thumb.is-active {
  opacity: 1;
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}

.product-detail-info .eyebrow {
  margin-bottom: 0;
}

.product-detail-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.product-detail-price {
  color: var(--text-light);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.product-detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-detail-dims {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: normal;
}

.product-detail-description {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.75;
  max-width: 42ch;
}

.product-detail-info .product-colors {
  margin-top: 4px;
}

.product-detail-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 10px;
  padding: 14px 28px;
  border: 1px solid var(--brand-bar);
  border-radius: 999px;
  background: var(--brand-bar);
  color: var(--background);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.product-detail-buy:hover {
  background: var(--brand-bar);
  color: var(--background);
  opacity: 0.9;
}

.product-detail-error {
  padding: 48px 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.product-detail-error h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
}

.product-detail-error p {
  margin-bottom: 24px;
  color: var(--text-light);
}

/* =========================================
   ABOUT
   ========================================= */
.about-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 120px;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-title h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
}

.about-text p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 120px;
  padding: 80px 0;
  text-align: center;
}

.contact-section h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
}

.contact-section > p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

.contact-email,
.contact-whatsapp {
  max-width: 500px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin: auto;
  padding: 25px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 12px;
}

.footer a:hover {
  color: var(--text);
}

/* =========================================
   LANGUAGE POPUP
   ========================================= */
.lang-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(39, 35, 31, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lang-popup-overlay.is-open {
  opacity: 1;
}

.lang-popup {
  position: relative;
  width: min(440px, 100%);
  padding: 40px 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(39, 35, 31, 0.18);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.lang-popup-overlay.is-open .lang-popup {
  transform: translateY(0);
}

.lang-popup .eyebrow {
  margin-bottom: 12px;
}

.lang-popup h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.15;
}

.lang-popup-text {
  margin-bottom: 28px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.55;
}

.lang-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 360px);
  overflow-y: auto;
}

.lang-popup-actions .button {
  width: 100%;
}

.lang-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-popup-close:hover {
  color: var(--text);
}

.lang-popup-skip {
  margin-top: 16px;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-popup-skip:hover {
  color: var(--text);
}

/* =========================================
   TABLET
   ========================================= */
@media (max-width: 800px) {
  .header {
    padding-top: 12px;
  }

  .header-container {
    height: 75px;
    padding: 0 18px;
  }

  .navigation a + a::before {
    margin: 0 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .hero-content {
    min-height: 500px;
    padding: 55px;
  }

  .hero-image {
    min-height: 450px;
  }

  .hero-image img,
  .hero-image .hero-video {
    min-height: 450px;
  }

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

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 520px) {
  .header-container,
  .hero,
  .site-announcement,
  .products-section,
  .about-section,
  .contact-section,
  .product-page,
  .footer {
    width: calc(100% - 30px);
  }

  .logo {
    font-size: 27px;
  }

  .site-announcement-title {
    font-size: 27px;
  }

  .site-announcement-body {
    font-size: 20px;
    font-weight: 400;
  }

  .navigation {
    font-size: 13px;
  }

  .navigation a + a::before {
    margin: 0 8px;
  }

  .navigation a:nth-child(2),
  .navigation a:nth-child(3) {
    display: none;
  }

  .lang-switcher {
    gap: 2px;
    font-size: 11px;
  }

  .lang-link {
    padding: 5px 6px;
  }

  .hero {
    margin-bottom: 75px;
  }

  .hero:has(+ .site-announcement:not([hidden])) {
    margin-bottom: 20px;
  }

  .site-announcement {
    margin-bottom: 75px;
  }

  .hero-content {
    min-height: 440px;
    padding: 40px 30px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-image,
  .hero-image img,
  .hero-image .hero-video {
    min-height: 400px;
  }

  .products-section,
  .about-section,
  .contact-section,
  .product-page {
    margin-bottom: 75px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-thumb {
    width: 60px;
    height: 60px;
  }

  .product-info {
    padding: 16px 16px 18px;
  }

  .product-name {
    font-size: 18px;
  }

  .about-section {
    padding: 55px 0;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .lang-popup {
    padding: 32px 22px 22px;
  }
}


/* ui-v5: listing hover dots + product detail zoom */
.product-image-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.product-image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(120, 110, 100, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-image-dot.is-active {
  background: rgba(39, 35, 31, 0.9);
  transform: scale(1.15);
}

.product-detail-main {
  position: relative;
  cursor: crosshair;
}

.product-zoom-lens {
  display: none;
  position: absolute;
  width: 120px;
  height: 150px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.product-detail-main.is-zooming .product-zoom-lens {
  display: block;
}

.product-zoom-pane {
  display: none;
  position: fixed;
  z-index: 40;
  width: 420px;
  height: 520px;
  border: 1px solid var(--border, #e4ddd3);
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.product-zoom-pane.is-open {
  display: block;
}

@media (max-width: 900px) {
  .product-detail-main {
    cursor: default;
  }

  .product-zoom-lens,
  .product-zoom-pane,
  .product-zoom-pane.is-open,
  .product-detail-main.is-zooming .product-zoom-lens {
    display: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .product-zoom-lens,
  .product-zoom-pane,
  .product-zoom-pane.is-open {
    display: none !important;
  }

  .product-detail-main {
    cursor: default;
  }
}

/* SEO brand note: visually hidden, kept for crawlers */
.about-text > p.seo-brand-note,
.about-text > p:first-child.seo-brand-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  opacity: 0.9;
  width: 32px;
  height: 32px;
}
.header-instagram:hover { opacity: 1; }

