/* Premium showroom stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;600&family=Noto+Serif+Armenian:wght@300;400;500;600;700&family=Noto+Sans+Armenian:wght@300;400;500;600;700&display=swap');
*{box-sizing:border-box}
:root{
  --bg:#FAF7F2; /* warm beige */
  --panel:#FFFFFF;
  --muted:#8b7761; /* soft brown */
  --accent:#22222a; /* graphite */
  --wood:#7a5a3a; /* muted brown */
  --soft:#EDE6DA;
  --shadow: 0 12px 30px rgba(34,34,34,0.08);
  --font-armenian: 'Noto Serif Armenian', 'Noto Sans Armenian', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Noto Sans Armenian', system-ui, sans-serif;
}
html,body{height:100%}
body{
  font-family: var(--font-sans);
  /* background:var(--bg); */
  color:var(--accent);
  margin:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.7;
}
/* Armenian text styling for proper rendering: only when html[lang="am"] */
html[lang="am"] {
  font-family: var(--font-armenian);
  letter-spacing: 0.01em;
}
/* Armenian-specific adjustments for product page */
html[lang="am"] .product-intro__name,
html[lang="am"] .product-details__name,
html[lang="am"] .product-carousel__caption-name {
  font-family: 'Noto Serif Armenian', var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.3;
}
html[lang="am"] .product-intro__meta,
html[lang="am"] .product-details__description,
html[lang="am"] .product-details__attributes,
html[lang="am"] .product-carousel__caption-sub {
  font-family: 'Noto Sans Armenian', var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
html[lang="am"] .product-order-popup__brand,
html[lang="am"] .product-order-popup__tagline {
  font-family: 'Noto Serif Armenian', var(--font-serif);
}
/* prevent accidental horizontal page scroll from minor overflows */
/* html,body{overflow-x:hidden} */

/* Typography */
h1,h2,h3{font-family: 'Playfair Display', Georgia, serif; color:var(--accent); margin:0 0 .6rem}
h1{font-size:2.6rem; letter-spacing:0.02em; line-height:1.02}
h2{font-size:1.4rem; font-weight:600}
h3{font-size:1.05rem; color:var(--muted)}
p{line-height:1.8; margin:0 0 1rem}
small{color:var(--muted)}

/* .container{max-width:1200px;margin:36px auto;padding:0 20px} */
/* .container{padding:70px 20px} */

/* Desktop container with consistent padding */
@media (min-width: 1024px) {
  .container {
    padding: 110px 60px;
    max-width: 1400px;
    margin: 0 auto;
  }
}
/* Header - transparent by default on homepage hero, appears on scroll */
.site-header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10%;
  padding:18px 20px;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  /* Default: transparent with white text for hero overlay */
  background:transparent;
  border-bottom:1px solid transparent;
  /* Smooth bidirectional transitions (300ms for snappy response) */
  transition:background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
/* Scrolled state: solid background */
.site-header.header--scrolled{
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(34,34,34,0.08);
  box-shadow:0 4px 24px rgba(0,0,0,0.06);
}
/* Header text colors: white by default (over hero), black when scrolled */
.site-header .brand__title,
.site-header .brand__subtitle,
.site-header .top-nav a,
.site-header .hamburger,
.site-header .lang-btn{
  color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,0.35);
  /* Same transition timing for cohesive animation */
  transition:color .35s ease, text-shadow .35s ease;
}
.site-header.header--scrolled .brand__title,
.site-header.header--scrolled .brand__subtitle,
.site-header.header--scrolled .top-nav a,
.site-header.header--scrolled .hamburger,
.site-header.header--scrolled .lang-btn{
  color:var(--accent);
  text-shadow:none;
}
.site-header.header--scrolled .brand__subtitle{
  color:var(--muted);
}
/* Non-homepage pages: always show solid header */
body:not(.has-hero) .site-header{
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(34,34,34,0.06);
}
body:not(.has-hero) .site-header .brand__title,
body:not(.has-hero) .site-header .brand__subtitle,
body:not(.has-hero) .site-header .top-nav a,
body:not(.has-hero) .site-header .hamburger,
body:not(.has-hero) .site-header .lang-btn{
  color:var(--accent);
  text-shadow:none;
}
body:not(.has-hero) .site-header .brand__subtitle{
  color:var(--muted);
}
.site-header .logo a{font-family: var(--font-serif); font-size:1.2rem; letter-spacing:0.12em; text-decoration:none;color:inherit}
.top-nav{display:none;gap:22px;align-items:center;justify-content:center}
.top-nav a{text-decoration:none;color:inherit;font-weight:500;padding:8px 6px;white-space:nowrap}
.top-nav a:hover{opacity:0.8}
.header-controls{display:flex;align-items:center;gap:12px;padding-right:72px}
.lang-switch{position:absolute;top:50%;right:20px;transform:translateY(-50%);z-index:1100;display:flex;align-items:center}
.lang-btn{background:transparent;border:0;font-size:18px;cursor:pointer;padding:6px;border-radius:6px}
.lang-btn{margin-right:6px}
.lang-dropdown{position:absolute;right:0;top:100%;background:var(--panel);box-shadow:var(--shadow);border-radius:8px;padding:6px;display:flex;gap:8px;opacity:0;transform:translateY(-6px);visibility:hidden;transition:opacity .18s ease,transform .18s ease}
.lang-dropdown button{display:inline-block;padding:6px 8px;font-size:18px;background:transparent;border:0;border-radius:6px;cursor:pointer}
.lang-dropdown button:hover{background:var(--soft)}
.lang-switch.open .lang-dropdown{opacity:1;transform:translateY(0);visibility:visible}
.hamburger{display:inline-block;background:transparent;border:0;font-size:20px;cursor:pointer;padding:8px}

/* Brand centering and header alignment helpers */
/* Keep brand visually centered using absolute centering so left/right anchors
  do not affect visual center. Subtitle forced to single line. */
.brand{justify-self:center;text-align:center;display:inline-block;z-index:1050}
.brand__link{display:inline-block;text-decoration:none;color:inherit}
.brand__title{font-family: var(--font-serif); font-size:1.3rem; letter-spacing:0.15em;display:block;color:inherit;transition:color .4s ease-out}
.brand__subtitle{font-size:0.68rem;margin-top:2px;display:block;white-space:nowrap;letter-spacing:0.02em;color:inherit;opacity:0.8;transition:color .4s ease-out}
/* Place the left/right nav groups into the left/right zones and bring them closer to center */
.top-nav--left{grid-column:1;justify-self:end;max-width:420px}
.top-nav--right{grid-column:3;justify-self:start;max-width:420px}

/* Make header-controls' children participate in header grid (no DOM change) */
.header-controls{display:contents}
/* Controls default to right zone on desktop */
.lang-switch{grid-column:3;justify-self:end;align-self:center}
.hamburger{grid-column:3;justify-self:end;align-self:center}

/* Make nav items sit closer to the brand on wider screens */
.top-nav{gap:50%}
.top-nav a{padding:6px 8px}

/* Mobile nav overlay styles: keep overlay in DOM and animate panel (slide + fade) */
.mobile-nav-overlay{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:flex-end;background:rgba(0,0,0,0);z-index:1500;pointer-events:none;opacity:0;transition:opacity .28s ease}
.mobile-nav-overlay.open{background:rgba(0,0,0,0.36);pointer-events:auto;opacity:1}
.mobile-nav-panel{background:var(--panel);width:320px;max-width:88%;height:100%;box-shadow:0 40px 80px rgba(8,8,8,0.18);padding:20px;overflow:auto;transform:translateX(12%);transition:transform .36s cubic-bezier(.2,.9,.2,1),opacity .28s ease;opacity:0}
.mobile-nav-overlay.open .mobile-nav-panel{transform:translateX(0);opacity:1}
.mobile-close{background:transparent;border:0;font-size:22px;padding:8px;cursor:pointer;display:block;margin-left:auto}
.mobile-nav{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.mobile-nav a{display:block;padding:14px 12px;border-radius:8px;text-decoration:none;color:var(--accent);font-family:'Inter',system-ui,sans-serif}
.mobile-nav a:hover{background:var(--soft)}
/* Primary categories (space-based) - slightly bolder */
.mobile-nav a.mobile-nav--primary{font-weight:700;font-size:1.02rem}
/* Secondary categories (product groups) */
.mobile-nav a.mobile-nav--secondary{font-weight:500;font-size:0.98rem;color:#444}
/* About Us link - subtle, at bottom */
.mobile-nav a.mobile-nav--about{
  font-weight:500;
  font-size:0.95rem;
  color:var(--muted);
  margin-top:4px;
}
.mobile-nav a.mobile-nav--about:hover{
  color:var(--accent);
}
.mobile-nav-separator{height:16px;background:transparent;margin:4px 0;border:none}

/* language dropdown: animate with fade + slide, keep absolutely positioned so no layout shift */
/* (rules consolidated above) */

/* Hero */
.hero-carousel{margin-bottom:44px}
.carousel{display:flex;gap:20px;padding-bottom:6px;overflow:auto;scroll-behavior:smooth}
.carousel-item{min-width:420px;border-radius:14px;overflow:hidden;background:var(--panel);box-shadow:var(--shadow);transition:transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .36s ease}
.carousel-item:hover{transform:translateY(-8px);box-shadow:0 24px 60px rgba(34,34,34,0.12)}
.carousel-item img{width:100%;height:320px;object-fit:cover;display:block}
.carousel-item .caption{padding:18px 20px;font-family:'Playfair Display',serif;color:var(--accent)}

/* Sections */
/* section{margin-bottom:40px} */
section h2{margin-bottom:18px;padding-left:0px}

/* Categories */
.category-grid{display:flex;gap:20px;flex-wrap:wrap}
.cat{display:flex;align-items:center;justify-content:center;text-align:center;padding:42px 28px;background:linear-gradient(180deg,var(--panel),#fbf7f2);border-radius:14px;text-decoration:none;color:var(--accent);box-shadow:var(--shadow);transition:transform .26s ease}
.cat:hover{transform:translateY(-6px)}
.cat{min-width:200px}

/* Category title styling */
.category-title {
  text-align: center;
  margin: 40px 0;
}
.category-title h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* Category header minimal styling */
.category-header {
  text-align: center;
  margin: 80px 0 10px 20px;
}
.category-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0;
}

/* Cards */
.product-grid,.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.card{background:var(--panel);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);transition:transform .26s cubic-bezier(.2,.9,.2,1), box-shadow .26s ease;border:1px solid rgba(15,15,15,0.03)}
.card:hover{transform:translateY(-8px);box-shadow:0 22px 60px rgba(34,34,34,0.12)}
.card img{width:100%;height:240px;object-fit:cover;display:block;transition:transform .36s ease}
.card.is-hover img{transform:scale(1.04)}
.card .title{padding:14px 16px;font-weight:600}
.card .price{padding:0 14px 18px;color:var(--muted)}

.collection-card img{height:200px;object-fit:cover}

/* Product page: single container vertical flow (mobile-first) */
.product-layout{display:flex;flex-direction:column;gap:20px}

.product-gallery{width:100%}
.main-image{width:100%;overflow:hidden;display:block;max-width:100%}
.main-image .gallery-track{display:flex;transition:transform .46s cubic-bezier(.22,.9,.28,1);will-change:transform}
.gallery-slide{flex:0 0 100%;box-sizing:border-box;min-width:100%}
.gallery-slide img{width:100%;height:100%;display:block;object-fit:cover;object-position:center center}

/* Disable gallery track transitions when applied (used for instant jump on open/close) */
.carousel-no-anim .gallery-track {
  transition: none !important;
}

.thumbnails-row{display:flex;gap:10px;margin-top:12px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;touch-action:pan-x;flex-wrap:nowrap}
.thumbnails-row::-webkit-scrollbar{height:8px}
.thumbnails-row .thumb{background:transparent;border:0;padding:0;opacity:.6;border-radius:6px;flex:0 0 auto;transition:opacity .18s ease, transform .18s ease}
.thumbnails-row .thumb img{height:56px;width:auto;display:block;border-radius:6px;object-fit:cover}
.thumbnails-row .thumb.is-active{opacity:1;transform:scale(1.02);box-shadow:0 8px 20px rgba(34,34,34,0.08);border:1px solid rgba(34,34,34,0.06)}

/* hide scrollbars but keep scrolling functional */
.thumbnails-row{scrollbar-width:none;-ms-overflow-style:none}
.thumbnails-row::-webkit-scrollbar{display:none;height:0}

/* Product info block (name, price, order, desc) */
.product-info{background:var(--panel);padding:18px;box-shadow:var(--shadow)}
.product-info h1{font-family:'Playfair Display',serif;font-size:1.4rem;margin:0 0 8px}
.product-info .hero-actions{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.product-info .price{font-weight:700;color:var(--accent);font-size:1.05rem}
.product-info .order-btn{padding:10px 14px}

/* Fullscreen overlay gallery */
.fs-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(8,8,8,0.95);z-index:2000;opacity:0;pointer-events:none;transition:opacity .28s ease; width:100vw; height:100vh; overflow:hidden}
.fs-overlay.show{opacity:1;pointer-events:auto}
.fs-stage{width:100%;height:100%;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.fs-track{display:flex;height:100%;transition:transform .46s cubic-bezier(.22,.9,.28,1);will-change:transform}
.fs-slide{flex:0 0 100%;display:flex;align-items:center;justify-content:center}
.fs-slide img{max-width:100%;max-height:100%;object-fit:contain}
.fs-close{position:absolute;top:18px;right:18px;background:rgba(255,255,255,0.06);border:0;color:#fff;padding:10px;border-radius:8px;backdrop-filter:blur(6px);cursor:pointer}
.fs-arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,0.04);border:0;color:#fff;padding:12px;border-radius:8px;cursor:pointer}
.fs-arrow.left{left:18px}
.fs-arrow.right{right:18px}

.info{background:var(--panel);padding:18px;border-radius:12px;box-shadow:var(--shadow)}
.info h1{font-size:1.4rem;margin-bottom:8px}
.meta{list-style:none;padding:0;margin:12px 0 0;color:var(--muted)}
.price{font-weight:700;color:var(--accent);font-size:1rem}
.order-btn{display:inline-block;padding:10px 14px;background:var(--accent);color:#fff;text-decoration:none;border-radius:8px}

/* Collapsed description */
.desc{color:#444}
.desc.collapsed{max-height:84px;overflow:hidden;position:relative}
.desc.collapsed:after{content:'';position:absolute;left:0;right:0;bottom:0;height:36px;background:linear-gradient(180deg, rgba(250,247,242,0), var(--panel));pointer-events:none}
.desc-toggle{background:transparent;border:0;color:var(--accent);display:inline-block;margin-top:8px;font-weight:600}

/* Recommendations */
.recommendations .rec-grid{display:flex;gap:12px;overflow:auto;padding:10px 0}
.rec-item{min-width:160px;background:var(--panel);border-radius:8px;overflow:hidden;box-shadow:var(--shadow);text-decoration:none;color:inherit}
.rec-item img{width:100%;height:100px;object-fit:cover}
.rec-item div{padding:8px}

/* Collections page */
.collection-hero img{width:100%;height:340px;object-fit:cover;border-radius:10px}
.col-desc{margin-top:12px;color:#555}
.col-price .old{text-decoration:line-through;color:var(--muted);margin-right:8px}
.col-price .new{font-weight:700;color:var(--accent)}

/* Footer */
/* .site-footer{margin-top:48px} */
.site-footer{
  background: #0f0d0b;
  color: #efe9e1;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 44px 20px 56px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.footer-block{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.footer-block__title{
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: #d8c4a2;
  font-weight: 300;
  line-height: 1.2;
}

.footer-link{
  color: #efe9e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.footer-link:hover,
.footer-link:active{
  color: #f5efe7;
}

.footer-links{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-divider{
  height: 1px;
  background: rgba(216,196,162,0.18);
  width: 100%;
}

.footer-products__toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.footer-chevron{
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #d8c4a2;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.footer-products.is-open .footer-chevron{
  transform: rotate(180deg);
}

.footer-products__list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.35s ease,
              transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.footer-products__list.is-open{
  opacity: 1;
  transform: translateY(0);
}

.footer-products.is-open .footer-block__title,
.footer-products.is-open .footer-chevron{
  color: #e3cfac;
}

/* Splash */
.splash{position:fixed;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg, rgba(10,10,10,0.56), rgba(10,10,10,0.5));z-index:9999;opacity:0;pointer-events:none;transition:opacity .45s ease, transform .45s ease}
.splash.show{opacity:1;pointer-events:auto}
.splash.hide{opacity:0;transform:scale(.98);pointer-events:none}
.splash-inner{background:linear-gradient(180deg,#fff, #fbf7f2);padding:36px;border-radius:12px;text-align:center;box-shadow:0 40px 80px rgba(8,8,8,0.18);max-width:680px}
.splash .logo{font-family:'Playfair Display',serif;font-size:1.6rem;color:var(--accent);margin-bottom:12px}
.splash h1{margin:0 0 8px;font-size:1.8rem}
.splash .desc{color:var(--muted);margin-bottom:16px}
.splash button{background:transparent;color:var(--accent);border:1px solid rgba(34,34,34,0.12);padding:10px 18px;border-radius:8px;cursor:pointer;transition:transform .16s ease, background .18s ease}
.splash button:hover{background:var(--accent);color:#fff}
.splash button:active{transform:scale(.98)}

/* Responsive */
/* Tablet: 768px - 1023px (compressed desktop) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet: only adjust thumbnail sizes */
  .thumbnails-row .thumb img{width:64px;height:48px}
  /* Keep images responsive */
}

/* Mobile: <= 767px - stacking and mobile-specific rules */
@media (max-width: 767px) {
  /* Mobile: keep single column flow (gallery -> info -> recommendations) */
  .product-layout{flex-direction:column}
  
  .thumbnails-row .thumb img{width:56px;height:44px}
}

/* Compact header breakpoint: <=900px show hamburger and keep language visible */
@media (max-width: 900px) {
  /* hide desktop navs, keep brand centered in middle column */
  .top-nav{display:none}
  .hamburger{display:inline-block}
  .site-header{grid-template-columns:1fr auto 1fr}

  /* Mobile: language switcher moves to left zone, hamburger to right zone.
     Using grid placement keeps the three logical zones separate and
     prevents either control from affecting the centered brand. */
  .lang-switch{grid-column:1;justify-self:start;left:auto;right:auto}
  .hamburger{grid-column:3;justify-self:end}

  /* Ensure dropdown always opens within viewport when switcher is on left */
  .lang-switch .lang-dropdown{left:0;right:auto}
}

/* Mobile: pin language to left, hamburger to right, brand remains centered */
@media (max-width: 900px) {
  .brand{position:absolute;left:50%;transform:translateX(-50%)}
  .lang-switch{right:auto;left:18px;top:50%;transform:translateY(-50%)}
  .hamburger{left:auto;right:18px;top:50%}
  /* ensure header controls don't push the grid; keep brand visually centered */
  .header-controls{position:relative;padding-right:0}
}

/* Full header for wider screens: ensure nav visible */
@media (min-width: 901px) {
  .top-nav{display:flex}
  .hamburger{display:none}
}
@media(max-width:600px){
  .site-header{padding:12px}
  /* .container{padding:70px 14px} */
  .carousel{gap:12px}
  .carousel-item img{height:170px}
  .card img{height:150px}
  .hero-carousel{margin-bottom:22px}
  
  /* Tighten product hero for small screens */
  .product-hero{padding:6px 0}
  .product-hero h1{font-size:1rem}
  .gallery-thumbs .thumb img{width:56px;height:44px}
}

/* Mobile header adjustments: keep header simple and stacked */
@media (max-width: 600px){
  .site-header{padding:12px}
  .site-header .logo{font-size:1rem}
  .lang-switch{opacity:0.85;font-size:13px}
}

/* Breakpoints (mobile-first) */
@media (min-width: 768px) {
  /* keep single-column vertical flow on tablet */
}
@media (min-width: 1024px) {
  /* Desktop: two-column layout (gallery left, info right) */
  .product-layout{flex-direction:row;align-items:flex-start;gap:28px;max-width:1200px;margin-left:auto;margin-right:auto}
  .product-gallery{flex:1 1 auto;min-width:0}
  .product-info{flex:0 0 420px}
  .main-image{aspect-ratio:16/10}
}

/* === FINAL FIX: MAIN PRODUCT IMAGE CROPPING === */
.product-main-image {
  width:100%;
  overflow:hidden;
  position:relative;
}

.group-card__label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 14px 18px 10px 16px;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 2;
  line-height: 1.18;
  pointer-events: none;
  user-select: none;

  object-position: center center;
  margin-bottom: -50%;

}
/* Fullscreen override: disable the negative bottom margin while fullscreen is active */
.fullscreen-active .product-main-image {
  margin-bottom: 0;
}
