:root {
  --ink: #24211f; --muted: #77716b; --paper: #fbf9f6; --cream: #eee7df;
  --sand: #d8c7b6; --gold: #aa8a66; --line: #e8e1da;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #8b623b; outline-offset: 4px; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -5rem; background: white; padding: .7rem 1rem; z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header { background: rgba(251,249,246,.96); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; margin: auto; min-height: 88px; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1.1; letter-spacing: .22em; }
.brand-name { font-family: Georgia, serif; font-size: 1.55rem; font-weight: bold; }
.brand-sub { font-size: .62rem; letter-spacing: .48em; margin-top: 5px; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 25px; }
.main-nav a, .header-actions a { font-size: .88rem; }
.main-nav a:hover, .header-actions a:hover, .header-actions a[aria-current="true"] { color: var(--gold); }
.hero { max-width: 1240px; margin: 34px auto 0; padding: 0 28px; min-height: 510px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 45px; align-items: center; }
.hero-copy { padding: 40px 4vw 40px 0; }
.eyebrow { color: var(--gold); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: bold; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.15; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 5.3rem); max-width: 600px; margin: 18px 0; }
.hero-description { max-width: 440px; color: var(--muted); margin-bottom: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 27px; font-size: .82rem; letter-spacing: .04em; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--gold); }
.hero-art { min-height: 480px; position: relative; overflow: hidden; background: linear-gradient(145deg, #d6c4b3, #eee6dd 52%, #b9a28e); display: flex; align-items: end; justify-content: center; }
.hero-art:before { content: ""; position: absolute; width: 48%; height: 78%; bottom: 0; left: 26%; border-radius: 48% 48% 0 0; background: linear-gradient(110deg, #55473e, #a18b78 48%, #493d35); box-shadow: 40px 10px 55px #78695b55; }
.hero-art:after { content: ""; position: absolute; width: 22%; height: 24%; top: 13%; left: 39%; border-radius: 50% 50% 45% 45%; background: #b78f73; }
.hero-art-label { position: relative; z-index: 2; margin-bottom: 24px; color: white; font-family: Georgia, serif; letter-spacing: .2em; font-size: .85rem; text-align: center; }
.hero-art-label span { display: block; font: .55rem Arial; letter-spacing: .35em; }
.section { max-width: 1240px; margin: 80px auto; padding: 0 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2, .page-heading h1 { font-size: clamp(2rem, 3.5vw, 3.2rem); margin: 8px 0; }
.muted { color: var(--muted); }
.text-link { font-size: .85rem; border-bottom: 1px solid var(--gold); padding-bottom: 5px; }
.category-list { display: flex; flex-wrap: wrap; gap: 12px; }
.category-chip { display: inline-flex; border: 1px solid var(--line); padding: 11px 19px; background: #fffdfa; font-size: .88rem; }
.category-chip:hover { border-color: var(--gold); color: var(--gold); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.product-card { min-width: 0; }
.product-image { display: block; height: 330px; overflow: hidden; background: var(--cream); }
.product-image img, .detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.04); }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #a08c79; letter-spacing: .25em; font-family: Georgia, serif; background: linear-gradient(145deg, #eee6dd, #d8c7b6); }
.product-info { padding: 12px 2px; }
.product-info h2, .product-info h3 { font-size: 1.1rem; margin: 0 0 5px; }
.price { font-size: .9rem; font-weight: bold; }
.page-heading { text-align: center; padding: 70px 20px 25px; background: var(--cream); }
.page-heading h1 { margin-bottom: 0; }
.filter-list { margin-bottom: 30px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.detail-image { height: 600px; background: var(--cream); }
.detail-copy h1 { font-size: clamp(2.3rem, 4vw, 4rem); }
.detail-price { font-size: 1.25rem; color: var(--gold); margin: 22px 0 35px; }
.site-footer { margin-top: 90px; padding: 55px 20px 25px; text-align: center; background: #26221f; color: #f7f2ec; }
.footer-brand { font-family: Georgia, serif; letter-spacing: .22em; font-size: 1.2rem; }
.site-footer p { color: #d0c5ba; }
.copyright { font-size: .75rem; margin-top: 30px; }
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] .hero-copy { padding: 40px 0 40px 4vw; }
[dir="rtl"] .hero-art:before { left: 26%; }
[dir="rtl"] .main-nav { direction: rtl; }
@media (max-width: 850px) {
  .header-inner { flex-wrap: wrap; justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { padding: 30px 0; }
  .hero-art { min-height: 380px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-image { height: 260px; }
  .detail-layout { grid-template-columns: 1fr; gap: 25px; }
  .detail-image { height: 430px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 14px; gap: 15px; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: .8rem; }
  .hero { padding: 0 18px; }
  .section { padding: 0 18px; margin: 55px auto; }
  .product-image { height: 220px; }
  .section-heading { align-items: start; flex-direction: column; }
}


/* BABILIZE STORE official logo */
.brand {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  letter-spacing: 0;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: clamp(118px, 14vw, 156px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  font-size: 0;
  line-height: 0;
}
.footer-brand-logo {
  display: block;
  width: min(230px, 70vw);
  height: auto;
  max-height: 124px;
  object-fit: contain;
  border-radius: 3px;
}
@media (max-width: 850px) {
  .brand-logo { width: 138px; max-height: 74px; }
}
@media (max-width: 480px) {
  .brand-logo { width: 116px; max-height: 62px; }
  .footer-brand-logo { width: min(205px, 72vw); }
}


/* BABILIZE STORE — hierarchical category navigation */
.categories-intro { max-width: 650px; margin-top: 10px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: #c8ad91;
  box-shadow: 0 12px 28px rgba(45, 35, 27, .09);
}
.category-card:focus-visible {
  outline: 3px solid #8b623b;
  outline-offset: 4px;
}
.category-card-visual {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  background: linear-gradient(135deg, #eee5db 0%, #d7c3af 100%);
  color: #77604d;
}
.category-card-visual::before {
  content: "";
  position: absolute;
  width: 175px;
  height: 175px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  inset-inline-end: 12%;
  top: 22px;
}
.category-card-visual::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 145px;
  border-radius: 55% 55% 8px 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(170,138,102,.22));
  inset-inline-end: calc(12% + 35px);
  bottom: -38px;
  transform: rotate(8deg);
}
.category-card-number, .category-card-wordmark { position: relative; z-index: 1; }
.category-card-number { font-size: .76rem; letter-spacing: .12em; }
.category-card-wordmark {
  align-self: flex-end;
  font-family: Georgia, serif;
  font-size: .72rem;
  letter-spacing: .2em;
  color: rgba(65, 48, 36, .75);
}
.category-art-2 { background: linear-gradient(135deg, #e9ddd2, #c9b5a4); }
.category-art-3 { background: linear-gradient(135deg, #e9e5df, #c9c0b5); }
.category-art-4 { background: linear-gradient(135deg, #eee4d5, #d4bda2); }
.category-art-5 { background: linear-gradient(135deg, #eee7df, #d7c9bd); }
.category-art-6 { background: linear-gradient(135deg, #e8dfd8, #c7b3a5); }
.category-art-7 { background: linear-gradient(135deg, #eee8df, #d9c9b7); }
.category-art-8 { background: linear-gradient(135deg, #e8e0d5, #cbb9a6); }
.category-art-9 { background: linear-gradient(135deg, #eae4df, #cfbfb1); }
.category-art-10 { background: linear-gradient(135deg, #eee5dc, #d4c0ad); }
.category-art-11 { background: linear-gradient(135deg, #e9e1d8, #cbb8a7); }
.category-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 20px;
}
.category-card-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; line-height: 1.3; }
.category-card-meta { color: var(--muted); font-size: .78rem; }
.category-card-link { margin-top: 7px; color: #8f704f; font-size: .82rem; font-weight: bold; }
.category-card-link span { display: inline-block; padding-inline-start: 5px; }
.breadcrumbs {
  max-width: 1240px;
  margin: 22px auto 0;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.category-page-heading { margin-top: 24px; }
[dir="rtl"] .category-card-content { align-items: flex-start; }
@media (max-width: 850px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .category-card-visual { min-height: 135px; }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; gap: 15px; }
  .category-card-visual { min-height: 120px; }
  .category-card-content { padding: 15px 17px 17px; }
  .breadcrumbs { padding: 0 18px; gap: 7px; }
}


/* BABILIZE STORE contact page */
.contact-section { max-width: 820px; }
.contact-card { background: #fffdfa; border: 1px solid var(--line); padding: clamp(22px, 4vw, 42px); box-shadow: 0 16px 45px rgba(36, 33, 31, .06); }
.contact-form { display: grid; gap: 20px; }
.contact-field { display: grid; gap: 8px; }
.contact-field label { font-weight: 600; font-size: .92rem; }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid #d9cfc4; background: #fff; color: var(--ink); border-radius: 2px; padding: 13px 14px; font: inherit; }
.contact-field textarea { min-height: 180px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { outline: 3px solid rgba(170, 138, 102, .28); border-color: var(--gold); }
.contact-errors { color: #9b2c2c; font-size: .88rem; margin: 0; }
.contact-feedback { padding: 13px 16px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--paper); }
.contact-feedback.success { border-inline-start: 4px solid #477b55; }
.contact-feedback.error { border-inline-start: 4px solid #a33b35; }
.contact-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 26px; margin: 22px auto; }
.footer-links a { color: #f7f2ec; font-size: .9rem; text-decoration: underline; text-decoration-color: #aa8a66; text-underline-offset: 5px; }
.footer-links a:hover, .footer-links a:focus-visible { color: #d8c7b6; }
@media (max-width: 600px) { .contact-card { padding: 20px 16px; } .footer-links { gap: 14px 18px; } }

/* Real main-category images */
.category-card-visual {
  display: block;
  position: relative;
  min-height: 0;
  height: clamp(190px, 22vw, 290px);
  padding: 0;
  overflow: hidden;
  background: #eee7df;
}
.category-card-visual::before,
.category-card-visual::after {
  content: none;
  display: none;
}
.category-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 850px) {
  .category-card-visual { height: 210px; }
}
@media (max-width: 520px) {
  .category-card-visual { height: 230px; }
}

/* Compact category icon navigation */
.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  flex-direction: row;
  align-items: center;
  min-height: 88px;
  border-radius: 8px;
}
.category-card-visual {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  min-height: 64px;
  margin: 12px;
  padding: 0;
  border-radius: 8px;
}
.category-card-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
}
.category-card-content {
  min-width: 0;
  justify-content: center;
  padding: 10px 8px;
  gap: 0;
}
.category-card-title {
  font-family: Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.4;
}
@media (max-width: 850px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card-visual { min-height: 64px; }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 76px; }
  .category-card-visual {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    min-height: 52px;
    margin: 9px;
  }
  .category-card-content { padding: 8px 5px; }
  .category-card-title { font-size: .85rem; }
}
