/* Design tokens: edit these values to update the store palette globally. */
:root {
  --c950: #160d08;
  --c900: #24150e;
  --c800: #3c2417;
  --c700: #5b3824;
  --c600: #795035;
  --gold: #c9995c;
  --cream: #fffaf4;
  --line: #eadfd4;
  --text: #2a211c;
  --muted: #7e7169;
  --shadow: 0 14px 40px rgba(43, 25, 14, 0.1);
}
* {
  box-sizing: border-box;
}
/* Base typography and shared element defaults */
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.01em;
  background: #fffdf9;
  color: var(--text);
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container-xxl {
  max-width: 1440px;
}
/* Header and primary navigation */
.topbar {
  background: var(--c950);
  color: #f5eadf;
  font-size: 0.82rem;
  padding: 0.5rem 0;
}
.site-header {
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(72, 42, 24, 0.08);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
}
.brand-title {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.brand-sub {
  font-size: 0.78rem;
  color: #85766c;
}
.nav-link {
  font-weight: 700;
  color: #4b3b31;
}
.nav-link:hover {
  color: var(--c600);
}
.coffee-main-nav {
  margin-right: 2rem;
  margin-left: auto;
}
.header-actions {
  flex-shrink: 0;
}
.panel-entry {
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--c800);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
.panel-entry:hover {
  background: var(--c600);
  color: #fff;
}
.action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}
@media (max-width: 991.98px) {
  .coffee-main-nav {
    margin: 1rem 0 0;
  }
  .header-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
}
/* Home page hero slider */
.hero {
  margin-top: 1.2rem;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(33, 17, 9, 0.18);
  aspect-ratio: 16/9;
  background: var(--c950);
}
.hero .swiper-slide {
  display: block;
  width: 100%;
  height: 100%;
}
.hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .swiper-button-next,
.hero .swiper-button-prev {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--c800);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}
.hero .swiper-button-next:after,
.hero .swiper-button-prev:after {
  font-size: 1.15rem;
  font-weight: 900;
}
.hero .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #fff;
  opacity: 0.55;
}
.hero .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 8px;
  background: var(--gold);
  opacity: 1;
}
.btn-main {
  background: linear-gradient(135deg, #d8b486, #bc8855);
  border: none;
  color: #24150e;
  font-weight: 900;
  border-radius: 15px;
  padding: 0.9rem 1.3rem;
}
/* Shared section headings and content cards */
.section {
  padding-top: 4.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.045em;
}
.section-kicker {
  color: var(--c600);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.category-card,
.product-card,
.filter-box,
.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(64, 40, 24, 0.05);
}
.category-card {
  position: relative;
  min-height: 290px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.category-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.category-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24, 13, 8, 0.82), transparent 65%);
}
.category-copy {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: 0;
  left: 0;
  color: white;
  padding: 1rem;
}
.category-copy h3 {
  font-size: 1.05rem;
  font-weight: 900;
}
/* Image-led category rebuild: product shortcuts and campaign banners */
.quick-shop-section {
  position: relative;
}
.quick-shop-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.8rem;
}
.quick-shop-item {
  min-width: 0;
  padding: 0.8rem 0.5rem 0.9rem;
  text-align: center;
  color: var(--c900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(64, 40, 24, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.quick-shop-item:hover {
  color: var(--c900);
  border-color: #caa170;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(64, 40, 24, 0.1);
}
.quick-shop-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.quick-shop-item span {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  font-size: 0.83rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.department-banners {
  display: grid;
  gap: 1rem;
}
.department-banners a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(188, 136, 85, 0.25);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(49, 28, 17, 0.08);
}
.department-banners img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}
.department-banners a:hover img {
  transform: scale(1.015);
}
/* Product cards and horizontal product sliders */
.product-card {
  height: 100%;
  transition: 0.25s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.product-img {
  height: 230px;
  background: #f7f2ec;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-soft {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e56a46;
  color: white;
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
}
.product-body {
  padding: 1rem;
}
.product-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: -0.025em;
  min-height: 3.5rem;
}
.muted {
  color: var(--muted);
}
.price {
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--c800);
}
.old {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.8rem;
}
.add-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: none;
  background: var(--c800);
  color: #fff;
}
.product-section {
  position: relative;
}
.product-section .section-head {
  padding: 0 0.3rem;
}
.section-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.slider-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.view-all {
  font-weight: 800;
  color: var(--c700);
  margin-left: 0.35rem;
}
.product-prev,
.product-next {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--c800);
  transition: 0.2s;
  box-shadow: 0 5px 15px rgba(48, 28, 16, 0.07);
}
.product-prev:hover,
.product-next:hover {
  background: var(--c800);
  color: #fff;
  transform: translateY(-2px);
}
.product-prev.swiper-button-disabled,
.product-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.product-slider-shell {
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(201, 153, 92, 0.2);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(249, 242, 234, 0.8)
  );
  box-shadow: 0 14px 45px rgba(58, 34, 20, 0.07);
  overflow: hidden;
}
.product-slider-shell:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(201, 153, 92, 0.11);
  top: -110px;
  left: -70px;
}
.product-swiper {
  overflow: visible;
}
.product-swiper .swiper-slide {
  height: auto;
}
.product-swiper .product-card {
  border-color: rgba(91, 56, 36, 0.11);
  box-shadow: 0 7px 24px rgba(54, 31, 17, 0.07);
}
.product-swiper .product-img {
  overflow: hidden;
}
.product-swiper .product-img img {
  transition: transform 0.5s;
}
.product-swiper .product-card:hover .product-img img {
  transform: scale(1.045);
}
.product-swiper .add-btn {
  transition: 0.2s;
  box-shadow: 0 6px 14px rgba(60, 36, 23, 0.2);
}
.product-swiper .add-btn:hover {
  background: var(--gold);
  color: var(--c950);
  transform: rotate(-8deg);
}
.latest-section .product-slider-shell {
  background: linear-gradient(145deg, #fff, #f7f2ec);
}
.bestseller-section .product-slider-shell {
  background: linear-gradient(145deg, #fffaf4, #f4eadc);
}
.sale-section .product-slider-shell {
  background: linear-gradient(145deg, #fff9f6, #f8ebe4);
}
.sale-section .badge-soft {
  background: #c94f3d;
}
.promo {
  border-radius: 28px;
  padding: 2.2rem;
  background: linear-gradient(135deg, #3b2317, #1b0f0a);
  color: white;
}

/* Blog archive */
.blog-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: end;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(201, 153, 92, 0.25),
      transparent 32%
    ),
    linear-gradient(135deg, var(--c800), var(--c950));
  box-shadow: var(--shadow);
}
.blog-hero h1 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
}
.blog-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.blog-hero .section-kicker {
  color: var(--gold);
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.blog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}
.blog-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.blog-categories {
  display: flex;
  gap: 0.65rem;
  margin: 1.4rem 0 2.5rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
}
.blog-categories button {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--c700);
  background: #fff;
}
.blog-categories button.active,
.blog-categories button:hover {
  border-color: var(--c800);
  color: #fff;
  background: var(--c800);
}
.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 45px rgba(58, 34, 20, 0.08);
}
.featured-post-image {
  min-height: 430px;
  overflow: hidden;
}
.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.featured-post:hover .featured-post-image img {
  transform: scale(1.035);
}
.featured-post-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.featured-post-copy h2 {
  margin: 0.8rem 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.045em;
}
.featured-post-copy p {
  color: var(--muted);
}
.post-category {
  display: inline-flex;
  color: var(--c600);
  font-size: 0.8rem;
  font-weight: 800;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.post-meta i {
  margin-left: 0.3rem;
}
.post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  color: var(--c700);
  font-weight: 800;
}
.post-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(64, 40, 24, 0.05);
  transition: 0.25s;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.post-image {
  display: block;
  height: 220px;
  overflow: hidden;
  background: #f7f2ec;
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.post-card:hover .post-image img {
  transform: scale(1.05);
}
.post-body {
  padding: 1.25rem;
}
.post-body h3 {
  margin: 0.55rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.7;
}
.post-body p {
  color: var(--muted);
  font-size: 0.9rem;
}
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.blog-pagination a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.blog-pagination a.active,
.blog-pagination a:hover {
  border-color: var(--c800);
  color: #fff;
  background: var(--c800);
}

/* Long-form article */
.article-page {
  max-width: 1180px;
  margin: 2rem auto 0;
}
.article-header {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.article-header h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.055em;
}
.article-lead {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.article-cover {
  width: 100%;
  max-height: 620px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3rem;
}
.article-toc {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.article-toc strong {
  margin-bottom: 0.35rem;
}
.article-toc a {
  color: var(--muted);
  font-size: 0.88rem;
}
.article-toc a:hover {
  color: var(--c600);
}
.article-content {
  min-width: 0;
  color: #44372f;
  font-size: 1.02rem;
  line-height: 2.15;
}
.article-content h2 {
  margin: 2.8rem 0 0.9rem;
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 900;
  scroll-margin-top: 120px;
}
.article-content figure {
  margin: 2rem 0;
}
.article-content figure img {
  width: 100%;
  max-height: 460px;
  border-radius: 22px;
  object-fit: cover;
}
.article-content figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.article-content li {
  margin-bottom: 0.55rem;
}
.article-callout {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem;
  border-right: 4px solid var(--gold);
  border-radius: 16px;
  background: #f8f0e6;
}
.article-callout > i {
  color: var(--c600);
  font-size: 1.5rem;
}
.article-callout p {
  margin: 0.3rem 0 0;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.article-tags a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--c700);
  background: #f4ece3;
}

/* Footer */
.footer {
  margin-top: 5rem;
  background: var(--c950);
  color: #e8ddd4;
  padding: 4rem 0 1.5rem;
}
.footer a {
  color: #cdbfb4;
}
/* Category page: breadcrumbs, filters, and sorting */
.breadcrumb {
  font-size: 0.9rem;
}
.filter-box {
  padding: 1.2rem;
  position: sticky;
  top: 95px;
}
.filter-title {
  font-weight: 900;
  margin-bottom: 1rem;
}
.form-check {
  margin-bottom: 0.65rem;
}
.sort-bar {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  background: #fff;
}
/* Product detail page: gallery, options, and specifications */
.gallery-main {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8f3ed;
}
.gallery-main img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.thumbs {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.thumbs img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
}
.thumbs img.active {
  border-color: var(--gold);
}
.detail-card {
  padding: 1.5rem;
}
.rating {
  color: #d89437;
}
.option-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 0.65rem 1rem;
}
.option-btn.active {
  background: var(--c800);
  color: #fff;
}
.qty {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  width: max-content;
}
.qty button,
.qty span {
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
}
.spec-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.tabs-wrap {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 1.2rem;
}
.nav-pills .nav-link.active {
  background: var(--c800);
}
/* Mobile bottom navigation is enabled in the small-screen breakpoint. */
.mobile-nav {
  display: none;
}
/* Tablet adjustments */
@media (max-width: 991.98px) {
  .quick-shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .blog-hero,
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post-image {
    min-height: 340px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
  }
  .gallery-main img {
    height: 420px;
  }
  .filter-box {
    position: static;
  }
}
/* Mobile layout */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 68px;
  }
  .topbar {
    display: none;
  }
  .hero {
    border-radius: 22px;
  }
  .blog-hero,
  .featured-post,
  .article-cover {
    border-radius: 22px;
  }
  .blog-hero {
    align-items: stretch;
  }
  .featured-post-image {
    min-height: 250px;
  }
  .post-image {
    height: 190px;
  }
  .hero .swiper-button-next,
  .hero .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  .hero .swiper-button-next:after,
  .hero .swiper-button-prev:after {
    font-size: 0.9rem;
  }
  .section {
    padding-top: 3.3rem;
  }
  .category-card,
  .category-card img {
    min-height: 250px;
    height: 250px;
  }
  .quick-shop-grid {
    display: flex;
    gap: 0.75rem;
    margin-inline: -0.75rem;
    padding: 0 0.75rem 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .quick-shop-grid::-webkit-scrollbar {
    display: none;
  }
  .quick-shop-item {
    flex: 0 0 112px;
    scroll-snap-align: start;
  }
  .department-banners {
    gap: 0.75rem;
  }
  .department-banners a {
    border-radius: 16px;
  }
  .department-banners img {
    width: auto;
    max-width: none;
    height: 112px;
    object-fit: cover;
    object-position: center;
  }
  .product-img {
    height: 190px;
  }
  .product-section .section-head {
    align-items: flex-end;
  }
  .section-note {
    display: none;
  }
  .view-all {
    display: none;
  }
  .product-prev,
  .product-next {
    width: 38px;
    height: 38px;
  }
  .product-slider-shell {
    padding: 1rem;
    border-radius: 22px;
  }
  .gallery-main img {
    height: 330px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 0.65rem;
  }
  .mobile-nav a {
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mobile-nav i {
    font-size: 1.2rem;
  }
}

/* Shared public-page shell and compatibility for the existing Razor forms. */
.coffee-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, var(--cream));
}
.coffee-search, .category-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.coffee-search input, .category-tools select, .form-control, input[type="text"],
input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea, select {
  min-height: 48px;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}
.coffee-search input { min-width: min(420px, 70vw); }
.chip-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.filter-chip {
  padding: .6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}
.filter-chip:hover { background: var(--c800); color: #fff; }
.empty-state {
  padding: 4rem 1.5rem;
  text-align: center;
  border: 1px dashed #d8c7b7;
  border-radius: 24px;
  background: var(--cream);
}
.empty-state > i { font-size: 2.5rem; color: var(--gold); }
.post-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.post-card > a > img { width: 100%; height: 240px; object-fit: cover; }
.product-thumb { padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #fff; }
.product-thumb img { width: 86px; height: 86px; object-fit: cover; }
.service-tile { padding: 1rem; border-radius: 16px; background: #f8f4ef; font-weight: 700; }
.content-body img { height: auto; border-radius: 18px; }
.content-body { line-height: 2; }

/* Older checkout and authentication views now inherit the coffee visual system. */
.breadcrumb-area, .page-content-area, .login-form-container, .register-form-container,
.cart-page-content, .checkout-page-content, .blog-page-content {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: .75rem;
}
.breadcrumb-wrapper { padding: 1.25rem 0; }
.breadcrumb-content__page-map { display: flex; gap: .75rem; list-style: none; padding: 0; color: var(--muted); }
.login-form-container, .register-form-container, .comment-form-container,
.cart-table, .checkout-form, .order-summary, .payment-result {
  margin-block: 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(43,25,14,.06);
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 700; }
.btn-custom, .comment-btn, input[type="submit"] {
  padding: .75rem 1.25rem;
  border: 0;
  border-radius: 14px;
  background: var(--c700);
  color: #fff;
  font-weight: 800;
}
.table { --bs-table-bg: transparent; }
.text-danger, .field-validation-error { color: #b42318; font-size: .85rem; }

/* Form and action spacing across the public purchase journey. */
.page-content-area {
  padding-block: 1rem 3rem;
}
.page-content-wrapper,
.login-form,
.cart-summary,
.checkout-delivery-method,
.checkout-payment-method,
.checkout-address-method {
  width: 100%;
}
.login-form,
.cart-summary,
.checkout-delivery-method,
.checkout-payment-method,
.checkout-address-method {
  margin-bottom: 1.25rem;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(43, 25, 14, .05);
}
.page-content-area .btn,
.page-content-area button[type="submit"] {
  min-height: 44px;
  margin: .25rem;
  padding: .65rem 1.1rem;
  border-radius: 12px;
}
.cart-summary-button,
.paymentButton,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 1rem;
}
.cart-summary-button .btn,
.paymentButton .btn,
.form-actions .btn {
  margin: 0;
}
.single-method {
  margin-bottom: .65rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
}
.single-method label {
  margin-inline-start: .45rem;
  font-weight: 700;
}
.single-method p {
  margin: .45rem 1.5rem 0 0;
  color: var(--muted);
}
.cart-table {
  overflow: hidden;
}
.cart-table .table > thead > tr > th {
  padding: .9rem .75rem;
  background: #f8f2ec;
  white-space: nowrap;
}
.cart-table .table > tbody > tr > td {
  padding: .9rem .75rem;
  vertical-align: middle;
}
.input-validation-error {
  border-color: #d92d20 !important;
}
.validation-summary-errors,
.field-validation-error {
  display: block;
  margin-top: .4rem;
}

@media (max-width: 767.98px) {
  .page-hero { align-items: stretch; flex-direction: column; }
  .coffee-search input { min-width: 100%; width: 100%; }
  .category-tools > * { flex: 1 1 100%; }
  .cart-summary-button > *,
  .paymentButton > *,
  .form-actions > * {
    flex: 1 1 145px;
  }
  .cart-summary-button .btn,
  .paymentButton .btn,
  .form-actions .btn {
    width: 100%;
  }
}
