/*
Theme Name: Boncuklu Namli
Theme URI: https://boncuklunamli.com/
Author: Boncuklu Namli
Description: Boncuklu Namli Lahmacun, Pide ve Izgara icin ozel WordPress tema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: boncuklu-namli
*/

:root {
  --red: #b51018;
  --red-dark: #8e0f14;
  --green: #1f8e35;
  --ink: #2a170f;
  --muted: #5f5148;
  --cream: #fbf3e6;
  --cream-2: #fff9ef;
  --line: rgba(89, 61, 43, 0.18);
  --gold: #f4a30a;
  --shadow: 0 14px 34px rgba(66, 37, 19, 0.16);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(180deg, #fffaf2 0%, var(--cream) 100%);
  color: var(--ink);
}

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 138px;
  padding: 18px clamp(28px, 4vw, 64px);
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  width: fit-content;
  color: var(--red);
  line-height: 0.86;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  font-style: italic;
  letter-spacing: -3px;
}

.brand small {
  display: block;
  margin-left: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.brand-badge {
  position: absolute;
  top: 7px;
  left: 70px;
  border-radius: 5px;
  padding: 2px 5px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.brand.has-custom-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.custom-logo-img {
  width: auto;
  max-width: 250px;
  max-height: 96px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3.2vw, 46px);
  color: #21140f;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background: rgba(181, 16, 24, 0.09);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(181, 16, 24, 0.16);
}

.call-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  min-height: 54px;
  padding: 0 22px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 9px 18px rgba(120, 26, 20, 0.14);
}

.call-button {
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
}

.call-button svg,
.button svg,
.location li svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.button.red {
  background: var(--red);
  color: #fff;
}

.button.green {
  background: var(--green);
  color: #fff;
}

.button.light {
  background: #f7efe4;
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: block;
  min-height: 560px;
  overflow: hidden;
  background: #1f1712;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 83, 44, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 83, 44, 0.026) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(660px, 48vw);
  min-height: 560px;
  padding: 56px clamp(28px, 4vw, 64px) 86px;
}

.script {
  margin: 0 0 4px;
  color: #de9a22;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4.2vw, 46px);
  font-style: italic;
}

.hero h1 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(52px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-brand-line {
  margin: 8px 0 18px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4.8vw, 52px);
  font-style: italic;
  line-height: 1;
}

.hero-text {
  max-width: 515px;
  margin: 0;
  color: #261914;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.hero-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 560px;
  overflow: hidden;
}

.hero-image::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.76) 0%, rgba(255, 249, 239, 0.66) 31%, rgba(255, 249, 239, 0.26) 46%, rgba(255, 249, 239, 0) 62%),
    radial-gradient(circle at 28% 54%, rgba(255, 249, 239, 0.52), transparent 38%);
  pointer-events: none;
}

.hero-media-stack,
.hero-image video,
.hero-image img {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-media-stack img,
.hero-image video,
.hero-image img {
  object-fit: cover;
  object-position: center center;
}

.hero-media-stack img {
  opacity: 0;
  animation: heroFade var(--slide-total-duration, calc(var(--slide-count) * 5s)) infinite;
  animation-delay: calc(var(--slide-index) * var(--slide-duration, 5s));
}

.hero-media-stack.is-single img {
  opacity: 1;
  animation: none;
}

@keyframes heroFade {
  0%,
  28% {
    opacity: 1;
  }

  36%,
  100% {
    opacity: 0;
  }
}

.slider-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 10px;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(42, 23, 15, 0.4);
}

.slider-dots .active {
  background: var(--red);
}

.features {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(1204px, calc(100% - 76px));
  margin: -22px auto 0;
  padding: 30px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.97);
  box-shadow: var(--shadow);
}

.features article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 0 26px;
  border-right: 1px solid var(--line);
}

.features article:first-child {
  padding-left: 0;
}

.features article:last-child {
  border-right: 0;
  padding-right: 0;
}

.features svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.features h3 {
  margin: 0 0 8px;
  font-size: 17px;
  text-transform: uppercase;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.products,
.reviews,
.about {
  padding: 34px clamp(28px, 4vw, 64px) 32px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.products h2,
.location h2,
.about h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.06;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 190px));
  justify-content: center;
  gap: 16px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.product-card {
  overflow: hidden;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf2;
  text-align: left;
  box-shadow: 0 8px 18px rgba(66, 37, 19, 0.1);
}

.product-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
}

.product-card p,
.product-title {
  padding: 0 14px;
}

.product-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.product-title h3 {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
}

.product-title strong {
  color: var(--red);
  font-size: 15px;
}

.product-card p {
  min-height: 56px;
  margin: 14px 0 18px;
  color: #3f312a;
  font-size: 13px;
  line-height: 1.55;
}

.menu-link {
  margin-top: 18px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.seo-content {
  padding: 58px clamp(18px, 4vw, 64px) 18px;
}

.seo-content-head {
  width: min(900px, 100%);
  margin: 0 auto 22px;
  text-align: center;
}

.seo-content-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.seo-content-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.92);
  box-shadow: 0 10px 24px rgba(66, 37, 19, 0.08);
}

.seo-content-grid article:last-child {
  grid-column: 1 / -1;
}

.seo-content-grid h2 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.16;
}

.seo-content-grid p {
  margin: 0;
  color: #382820;
  font-size: 17px;
  line-height: 1.78;
}

.location {
  display: grid;
  grid-template-columns: 108px minmax(280px, 340px) minmax(560px, 1fr);
  align-items: stretch;
  width: 100%;
  margin-top: 0;
  border-top: 1px solid rgba(89, 61, 43, 0.1);
  border-bottom: 1px solid rgba(89, 61, 43, 0.1);
  background: #fff8ec;
}

.location-food {
  min-height: 414px;
  background: url("assets/contact-food.png") center / cover no-repeat;
}

.location-card {
  padding: 42px 38px;
  background: rgba(255, 249, 239, 0.98);
  box-shadow: var(--shadow);
}

.location-card .section-kicker {
  text-align: left;
}

.location h2 {
  margin-bottom: 20px;
}

.location ul {
  display: grid;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.location li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  color: #32221a;
  line-height: 1.45;
}

.location li svg {
  color: var(--red);
}

.location li:nth-child(3) svg {
  color: var(--green);
}

.map-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.map-card iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.map-popover {
  position: absolute;
  top: 28px;
  left: 24px;
  display: grid;
  gap: 7px;
  max-width: 260px;
  padding: 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(66, 37, 19, 0.18);
  font-size: 14px;
}

.map-popover span:last-child {
  color: #d89100;
}

.about {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 54px;
  padding-bottom: 10px;
}

.about h2 {
  text-transform: none;
}

.about p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.reviews {
  padding-bottom: 38px;
}

.review-grid {
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr);
  gap: 14px;
  width: min(1100px, 100%);
  margin: 16px auto 0;
}

.google-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.88);
  box-shadow: 0 7px 15px rgba(66, 37, 19, 0.08);
  text-align: left;
}

.google-card {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.google-card strong {
  font-size: 32px;
}

.google-card span,
.review-card span {
  color: var(--gold);
}

.review-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 22px;
}

.avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #ead2b8;
  color: var(--red);
  font-weight: 900;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(280px, 1.4fr);
  align-items: center;
  gap: 20px;
  padding: 24px clamp(28px, 4vw, 64px);
  background: #25140e;
  color: #fff2e3;
}

.site-footer strong,
.site-footer span,
.site-footer address,
.site-footer nav {
  display: block;
}

.site-footer strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 18px;
}

.site-footer address {
  margin: 0;
  color: #f6dfc8;
  font-style: normal;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-credit {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 242, 227, 0.16);
  color: #d9c4ae;
  font-size: 13px;
  text-align: center;
}

.site-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 242, 227, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.site-credit a:hover {
  background: #fff2e3;
  color: #25140e;
}

.mobile-cta-bar {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: #fffaf2;
  box-shadow: 0 -8px 24px rgba(42, 23, 15, 0.18);
}

.mobile-cta-bar a {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.mobile-cta-bar a:nth-child(2) {
  color: var(--green);
}

.mobile-cta-bar a:last-child {
  border-right: 0;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 210px 1fr auto;
  }

  .brand strong {
    font-size: 58px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(178px, 190px));
    justify-content: center;
  }

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

  .features article:nth-child(2) {
    border-right: 0;
  }

  .features article:nth-child(n + 3) {
    padding-top: 22px;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 58px;
  }

  .site-header {
    grid-template-columns: auto auto;
    min-height: 96px;
  }

  .brand strong {
    font-size: 46px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-badge {
    left: 48px;
    font-size: 10px;
  }

  .call-button {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff7ec;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fffaf2;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .site-nav.is-open .site-menu {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: min(780px, calc(100svh - 96px));
    padding-top: 0;
    background: #1f1712;
  }

  .hero::before {
    display: none;
  }

  .hero-image {
    inset: 0;
    height: auto;
    min-height: 100%;
    background: #1f1712;
  }

  .hero-image::before {
    inset: 0;
    width: auto;
    height: auto;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0) 0%, rgba(255, 249, 239, 0.04) 34%, rgba(255, 249, 239, 0.28) 68%, rgba(255, 249, 239, 0.5) 100%),
      linear-gradient(90deg, rgba(255, 249, 239, 0.28), rgba(255, 249, 239, 0.02));
  }

  .hero-copy {
    width: 100%;
    min-height: min(780px, calc(100svh - 96px));
    justify-content: flex-end;
    padding: 290px 22px 92px;
  }

  .hero-media-stack img,
  .hero-image video,
  .hero-image img {
    object-fit: cover;
    object-position: center 64%;
  }

  .script {
    max-width: 340px;
    color: rgba(222, 154, 34, 0.76);
    font-size: clamp(27px, 7.8vw, 34px);
    line-height: 1.05;
  }

  .hero h1 {
    max-width: 380px;
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(35px, 10.8vw, 48px);
    line-height: 1.05;
    color: rgba(42, 42, 42, 0.72);
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .hero-brand-line {
    color: rgba(181, 16, 24, 0.82);
    font-size: clamp(29px, 8vw, 38px);
  }

  .hero-text,
  .hero-actions {
    display: none;
  }

  .slider-dots {
    display: none;
  }

  .features,
  .review-grid,
  .location {
    grid-template-columns: 1fr;
  }

  .seo-content-grid {
    grid-template-columns: 1fr;
  }

  .seo-content-grid article:last-child {
    grid-column: auto;
  }

  .mobile-cta-bar {
    display: grid;
  }

  .features article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .features article:last-child {
    border-bottom: 0;
  }

  .location-food {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card {
    min-height: auto;
  }

  .product-card img {
    height: 210px;
  }

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

  .features {
    width: calc(100% - 28px);
    padding: 12px 22px;
  }

  .reviews,
  .products {
    padding-inline: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: 82px;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}

.content-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.page-hero {
  text-align: center;
  padding: 28px 0 30px;
}

.page-hero h1,
.entry-content h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-hero p:not(.section-kicker) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.entry-content {
  color: #2b1d16;
  background: rgba(255, 249, 239, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 54px);
  font-size: 18px;
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3 {
  margin: 34px 0 12px;
  color: var(--red);
  line-height: 1.18;
}

.entry-content h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.entry-content h3 {
  font-size: 24px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 18px;
}

.entry-content a {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
}

.gallery-page {
  width: min(1240px, calc(100% - 40px));
}

.gallery-hero {
  margin-bottom: 22px;
}

.gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gallery-content .wp-block-gallery,
.gallery-content .gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px !important;
  margin: 0;
  grid-column: 1 / -1;
}

.gallery-content .wp-block-image,
.gallery-content .blocks-gallery-item,
.gallery-content .gallery-item,
.gallery-content .wp-caption,
.gallery-content > figure,
.gallery-content > p:has(img) {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 16px 32px rgba(66, 37, 19, 0.12);
}

.gallery-content img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.gallery-content > p:has(img) {
  line-height: 0;
}

.gallery-content > p:not(:has(img)) {
  grid-column: 1 / -1;
}

.gallery-content figcaption,
.gallery-content .gallery-caption,
.gallery-content .wp-caption-text {
  min-height: 58px;
  margin: 0;
  padding: 14px 16px 16px;
  color: #2f2720;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  background: #fffaf2;
}

@media (max-width: 700px) {
  .gallery-page {
    width: min(100% - 24px, 1240px);
  }

  .gallery-content,
  .gallery-content .wp-block-gallery,
  .gallery-content .gallery {
    grid-template-columns: 1fr;
    gap: 18px !important;
  }

  .gallery-content img {
    aspect-ratio: 4 / 3;
  }
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.products-page .products {
  padding-inline: 0;
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.product-category-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 10px 24px rgba(66, 37, 19, 0.08);
}

.product-category-grid h2 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 25px;
}

.product-category-grid p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.product-category-grid a {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.contact-panel h2 {
  margin-top: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-map {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-extra {
  margin-top: 20px;
}

.seo-product-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}

.seo-product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(66, 37, 19, 0.12);
}

.seo-product-price {
  margin: 16px 0;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.post-card a {
  display: grid;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(45, 24, 12, 0.1);
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card-body {
  padding: 22px;
}

.post-card h2 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.post-meta {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.single-featured {
  width: 100%;
  max-height: 420px;
  margin: 18px 0 28px;
  object-fit: cover;
  border-radius: 8px;
}

.pagination {
  margin-top: 28px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  margin: 3px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.pagination .current {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 620px) {
  .content-shell {
    width: calc(100% - 28px);
    padding: 28px 0 54px;
  }

  .entry-content {
    padding: 22px;
    font-size: 16px;
  }

  .product-category-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 380px;
  }

  .seo-product-layout {
    grid-template-columns: 1fr;
  }
}

.review-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.review-card-link:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(66, 37, 19, 0.12);
}
