/*
Theme Name: Heritage Bags Boutique
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: A polished WooCommerce theme for an authorized luxury handbag boutique.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heritage-bags
*/

:root {
  --hb-ink: #171514;
  --hb-muted: #69635d;
  --hb-line: #e6dfd5;
  --hb-paper: #fbfaf7;
  --hb-cream: #f3eee6;
  --hb-burgundy: #7f1d2d;
  --hb-gold: #b78b43;
  --hb-charcoal: #282523;
  --hb-white: #ffffff;
  --hb-shadow: 0 18px 45px rgba(23, 21, 20, 0.12);
  --hb-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--hb-ink);
  background: var(--hb-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #ececec;
  background: #f5f5f6;
}

.announcement {
  background: #111827;
  color: var(--hb-white);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 8px 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
}

.brand {
  display: grid;
  gap: 1px;
  min-width: max-content;
}

.brand-name {
  display: inline-block;
  border: 2px solid var(--hb-ink);
  background: var(--hb-white);
  min-width: 170px;
  padding: 5px 10px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 0.98;
  text-align: center;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-note {
  color: var(--hb-muted);
  font-size: 12px;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(180px, 320px) 48px;
  flex: 1;
  max-width: 440px;
}

.header-search input[type="search"] {
  min-height: 48px;
  width: 100%;
  border: 1px solid #e2e2e2;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 18px;
  background: var(--hb-white);
  font-size: 15px;
}

.header-search button {
  min-height: 48px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: #050505;
  color: var(--hb-white);
  font-size: 24px;
  font-weight: 900;
}

.nav-row {
  min-height: 112px;
  padding-bottom: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hb-white);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-flex;
  padding: 3px 5px;
  background: #14213d;
  color: var(--hb-white);
  line-height: 1.05;
}

.reference-preview .main-nav {
  flex-direction: column;
  align-items: stretch;
  width: 218px !important;
  max-width: 218px !important;
  gap: 5px;
}

.reference-preview .main-nav a {
  width: 218px !important;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 0;
  border-left: 4px solid #c8d2e4;
  font-size: 16px;
  line-height: 1.1;
}

.reference-preview .nav-row {
  min-height: 264px;
}

.reference-preview .header-inner {
  flex-wrap: nowrap;
  align-items: flex-start;
  min-height: 74px;
  padding-top: 8px;
}

.reference-preview .header-search {
  order: initial;
  grid-template-columns: minmax(190px, 300px) 42px;
  width: min(342px, 100%);
  flex: 0 1 342px;
  flex-basis: 342px;
  max-width: 342px;
  margin-top: 26px;
}

.reference-preview .header-search input[type="search"],
.reference-preview .header-search button {
  min-height: 42px;
}

.reference-preview .header-actions {
  margin-top: 8px;
}

.mall-preview {
  background: #f5f1ea;
}

.mall-preview .site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(46, 33, 24, 0.08);
}

.mall-preview .announcement {
  background: #111827;
}

.mall-preview .header-inner {
  min-height: 82px;
  align-items: center;
  padding-top: 0;
}

.mall-preview .brand-name {
  min-width: 184px;
  border-color: #111827;
  font-size: 19px;
}

.mall-preview .header-search {
  margin-top: 0;
  grid-template-columns: minmax(220px, 1fr) 52px;
  max-width: 520px;
  flex: 1 1 520px;
}

.mall-preview .header-search input[type="search"],
.mall-preview .header-search button {
  min-height: 48px;
}

.mall-preview .header-actions {
  margin-top: 0;
}

.mall-preview .nav-row {
  display: flex;
  justify-content: stretch;
  min-height: auto;
  padding-bottom: 14px;
}

.mall-preview .main-nav,
.site-header .mall-preview .main-nav {
  flex-direction: row;
  flex-wrap: wrap;
  width: 100% !important;
  max-width: none !important;
  gap: 8px;
  justify-content: space-between;
}

.mall-preview .main-nav a {
  flex: 1 1 auto;
  width: auto !important;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6ded2;
  border-radius: 999px;
  background: #fbfaf7;
  color: #111827;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.mall-hero {
  padding: 32px 0 16px;
}

.mall-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
}

.mall-carousel {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.mall-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 34px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 420ms ease, transform 650ms ease;
}

.mall-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.mall-hero-copy {
  position: relative;
  z-index: 2;
  min-height: 260px;
  color: #ffffff;
}

.mall-hero-copy span {
  color: #f3d08a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mall-hero-copy h1 {
  max-width: 520px;
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.mall-hero-copy p {
  max-width: 560px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.mall-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mall-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  padding: 0 18px;
  font-weight: 900;
  font-size: 13px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.46);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  left: 34px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.mall-hero-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.mall-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e6ded2;
  border-radius: 8px;
  background: #e6ded2;
}

.mall-trust-strip div {
  display: grid;
  gap: 3px;
  min-height: 76px;
  align-content: center;
  padding: 16px 18px;
  background: #fffaf2;
}

.mall-trust-strip strong {
  color: #111827;
  font-size: 14px;
}

.mall-trust-strip span {
  color: #6b625a;
  font-size: 13px;
}

.mall-hero-panel strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
}

.mall-hero-panel span {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.mall-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 18px;
}

.mall-categories a {
  display: grid;
  gap: 5px;
  min-height: 132px;
  align-content: end;
  padding: 18px;
  border: 1px solid #e6ded2;
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 26%, rgba(127, 29, 45, 0.16), transparent 28%),
    linear-gradient(145deg, #ffffff, #f1e7d8);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mall-categories a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 33, 24, 0.1);
}

.cat-kicker {
  color: #7f1d2d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mall-categories strong {
  color: #111827;
  font-size: 18px;
}

.mall-categories em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.mall-edit-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.mall-edit-strip span {
  color: #f3d08a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mall-edit-strip h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.mall-edit-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mall-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 70px;
}

.mall-sidebar {
  position: sticky;
  top: 188px;
  align-self: start;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #e6ded2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(46, 33, 24, 0.08);
}

.mall-sidebar::-webkit-scrollbar {
  width: 6px;
}

.mall-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d1d5db;
}

.mall-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.mall-filter:last-child {
  margin-bottom: 0;
}

.mall-filter h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 15px;
}

.mall-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #374151;
  font-size: 14px;
}

.mall-filter label:hover {
  color: #111827;
}

.mall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e6ded2;
  border-radius: 8px;
  background: #ffffff;
}

.mall-toolbar div {
  display: grid;
  gap: 2px;
}

.mall-toolbar strong {
  font-size: 18px;
}

.mall-toolbar span {
  color: #6b7280;
  font-size: 13px;
}

.mall-toolbar select {
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 10px;
}

.mall-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mall-products .product-placeholder {
  position: relative;
  padding: 14px;
  border: 1px solid #e6ded2;
  border-radius: 8px;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mall-products .product-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(46, 33, 24, 0.13);
}

.mall-products .product-placeholder-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.86;
  border-radius: 6px;
  background:
    linear-gradient(145deg, #fffaf2, #e3d8ca);
}

.mall-products .product-placeholder-image::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: 44%;
  height: 58%;
  border-radius: 24px 24px 36px 36px;
  background:
    linear-gradient(145deg, rgba(127, 29, 45, 0.82), rgba(54, 40, 35, 0.88));
  box-shadow: 0 24px 38px rgba(54, 40, 35, 0.18);
  transform: translateX(-50%);
}

.mall-products .product-placeholder-image::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 13%;
  width: 24%;
  height: 20%;
  border: 8px solid rgba(54, 40, 35, 0.66);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  transform: translateX(-50%);
}

.mall-products .product-placeholder:nth-child(2n) .product-placeholder-image::before {
  border-radius: 18px 18px 30px 30px;
  background: linear-gradient(145deg, rgba(58, 45, 38, 0.9), rgba(23, 20, 18, 0.9));
}

.mall-products .product-placeholder:nth-child(3n) .product-placeholder-image::before {
  width: 38%;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(127, 29, 45, 0.9), rgba(78, 35, 42, 0.92));
}

.mall-products .product-placeholder:nth-child(4n) .product-placeholder-image::before {
  width: 52%;
  height: 50%;
  top: 26%;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(92, 73, 57, 0.88), rgba(44, 35, 29, 0.92));
}

.mall-products .product-placeholder:nth-child(5n) .product-placeholder-image::before {
  width: 34%;
  height: 54%;
  border-radius: 24px 24px 42px 42px;
  background: linear-gradient(145deg, rgba(232, 219, 201, 0.95), rgba(168, 139, 112, 0.9));
}

.mall-products .product-placeholder:nth-child(5n) .product-placeholder-image::after {
  border-color: rgba(115, 91, 72, 0.72);
}

.wishlist-button {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  cursor: pointer;
}

.sale-badge {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 1;
  border-radius: 999px;
  background: #7f1d2d;
  color: #ffffff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.mall-products .product-placeholder h3 {
  min-height: 44px;
  margin: 12px 0 4px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #111827;
  font-size: 15px !important;
  line-height: 1.25;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #f5f1ea;
  color: #6b625a;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}

.rating {
  color: #b45309;
  font-size: 12px;
}

.rating span {
  color: #6b7280;
}

.mall-products .price {
  display: block;
  margin-top: 6px;
  color: #7f1d2d !important;
  font-size: 17px;
  font-weight: 900;
}

.mall-products .product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.mall-products .product-actions a:first-child {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
}

.mall-products .product-actions a:last-child {
  color: #374151;
  font-size: 13px;
}

.mall-products .product-placeholder-image,
.mall-products .product-placeholder h3 {
  cursor: pointer;
}

.product-detail {
  padding: 34px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: start;
}

.product-gallery,
.product-summary,
.detail-tabs {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.product-gallery {
  padding: 16px;
}

.product-main-image {
  min-height: 560px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 28%, rgba(127, 29, 45, 0.34), transparent 18%),
    linear-gradient(145deg, #f7f2ea, #ddd6cc);
  filter: hue-rotate(var(--detail-hue, 0deg));
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.product-thumbs button {
  min-height: 112px;
  border: 2px solid transparent;
  border-radius: 6px;
  background:
    radial-gradient(circle at 52% 28%, rgba(127, 29, 45, 0.28), transparent 20%),
    linear-gradient(145deg, #f8f8f8, #ded7ce);
  cursor: pointer;
}

.product-thumbs button.is-active {
  border-color: #111827;
}

.product-summary {
  padding: 28px;
}

.detail-badge {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.product-summary h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  color: #111827;
}

.detail-price {
  margin: 12px 0 18px;
  color: #7f1d2d;
  font-size: 28px;
  font-weight: 900;
}

.product-summary p {
  color: #4b5563;
}

.detail-options {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  margin: 24px 0;
}

.detail-options label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.detail-options select,
.detail-options input {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
}

.detail-add {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.detail-trust {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: #374151;
  font-size: 14px;
}

.detail-trust span {
  padding-left: 18px;
  position: relative;
}

.detail-trust span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7f1d2d;
}

.detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
  padding: 26px;
}

.detail-tabs h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.detail-tabs p {
  margin: 0;
  color: #4b5563;
}

.seller-reviews {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.seller-reviews-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.seller-reviews-head span {
  color: #7f1d2d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.seller-reviews-head h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.seller-reviews-head p {
  max-width: 520px;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.seller-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-detail-preview .seller-review-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.seller-review-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.product-detail-preview .seller-review-card {
  min-height: auto;
}

.seller-review-rating {
  color: #b45309;
  font-size: 14px;
  letter-spacing: 0;
}

.seller-review-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.seller-review-card p,
.seller-review-text {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.seller-review-card footer {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.seller-review-card footer span {
  color: #6b7280;
  font-size: 12px;
}

.seller-review-card footer strong {
  color: #111827;
  font-size: 13px;
}

@media (max-width: 900px) {
  .mall-hero .container,
  .mall-layout,
  .product-detail-grid,
  .detail-tabs,
  .seller-review-grid {
    grid-template-columns: 1fr;
  }

  .seller-reviews-head {
    display: grid;
  }

  .mall-categories,
  .mall-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mall-preview .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .mall-preview .header-search {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .mall-preview .main-nav {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .mall-preview .main-nav a {
    flex: 0 0 auto;
  }

  .mall-hero-copy {
    min-height: 300px;
    padding: 26px;
  }

  .mall-carousel {
    min-height: 340px;
  }

  .mall-carousel-slide {
    padding: 26px;
  }

  .carousel-arrow {
    display: none;
  }

  .mall-categories,
  .mall-products {
    grid-template-columns: 1fr;
  }

  .mall-sidebar {
    display: none;
  }
}

.site-header .header-inner {
  flex-wrap: nowrap;
  align-items: flex-start;
  min-height: 74px;
  padding-top: 8px;
}

.site-header .header-search {
  order: initial;
  grid-template-columns: minmax(190px, 300px) 42px;
  width: min(342px, 100%);
  flex: 0 1 342px;
  flex-basis: 342px;
  max-width: 342px;
  margin-top: 26px;
}

.site-header .header-search input[type="search"],
.site-header .header-search button {
  min-height: 42px;
}

.site-header .header-actions {
  margin-top: 8px;
}

.site-header .nav-row {
  min-height: 264px;
}

.site-header .main-nav {
  flex-direction: column;
  align-items: stretch;
  width: 218px !important;
  max-width: 218px !important;
  gap: 5px;
}

.site-header .main-nav a {
  width: 218px !important;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 0;
  border-left: 4px solid #c8d2e4;
  font-size: 16px;
  line-height: 1.1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.shop-action span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.shop-action strong {
  font-size: 13px;
}

.shop-action em {
  position: absolute;
  right: -5px;
  top: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #7f1d2d;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.icon-link,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--hb-white);
  color: var(--hb-ink);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hb-charcoal);
}

.catalog-hero {
  padding: 78px 0 36px;
  background: var(--hb-white);
  text-align: center;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: #777;
  font-size: 13px;
}

.catalog-hero h1 {
  margin: 0 0 24px;
  color: #10213f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.catalog-hero h2 {
  margin: 0 0 22px;
  color: #10213f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
}

.catalog-hero p {
  width: min(820px, 100%);
  margin: 0 auto 14px;
  color: #171717;
  font-size: 17px;
  text-align: left;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0 74px;
}

.catalog-sidebar {
  border-right: 1px solid #e2e2e2;
  padding-right: 22px;
}

.filter-block {
  margin-bottom: 26px;
}

.filter-block h3 {
  margin: 0 0 12px;
  color: #10213f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  text-transform: uppercase;
}

.filter-block a {
  display: block;
  padding: 8px 0;
  color: #333;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}

.catalog-tools {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--hb-muted);
  font-size: 14px;
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 21, 20, 0.82), rgba(23, 21, 20, 0.38) 45%, rgba(23, 21, 20, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 80px 0 120px;
  color: var(--hb-white);
}

.eyebrow {
  color: #ead7b5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 500px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.wp-element-button,
.added_to_cart,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--hb-ink);
  border-radius: 999px;
  background: var(--hb-ink);
  color: var(--hb-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: var(--hb-white);
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: var(--hb-cream);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2,
.content-area h1,
.content-area h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--hb-muted);
}

.category-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: linear-gradient(135deg, #ffffff, #eee7dc);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.category-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -44px;
  top: 35px;
  border: 24px solid rgba(127, 29, 45, 0.13);
  border-radius: 34px 34px 52px 52px;
  transform: rotate(-10deg);
}

.category-card strong {
  position: relative;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.category-card span {
  position: relative;
  color: var(--hb-muted);
}

.product-strip .products,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
  padding: 0;
}

.woocommerce ul.products li.product,
.product-placeholder {
  width: auto !important;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--hb-white);
  box-shadow: none;
}

.product-placeholder-image {
  aspect-ratio: 1 / 1.12;
  border-radius: 0;
  background:
    radial-gradient(circle at 65% 22%, rgba(183, 139, 67, 0.22), transparent 28%),
    linear-gradient(145deg, #f3f3f3, #dcdcdc);
}

.product-placeholder h3,
.woocommerce-loop-product__title {
  margin: 14px 0 4px;
  color: #10213f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px !important;
  line-height: 1.15;
}

.price {
  color: #111 !important;
  font-weight: 500;
}

.woocommerce ul.products li.product .button {
  min-height: auto;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 500;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
}

.product-actions a {
  color: #111;
}

.pagination-demo {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 46px;
}

.pagination-demo span,
.pagination-demo a,
.pagination-demo button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.pagination-demo span,
.pagination-demo button.is-active {
  background: #10213f;
  color: var(--hb-white);
}

.promise {
  padding: 24px;
  border-left: 3px solid var(--hb-gold);
  background: var(--hb-white);
}

.promise h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.promise p {
  margin: 0;
  color: var(--hb-muted);
  font-size: 14px;
}

.editorial {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.editorial-image {
  min-height: 420px;
  border-radius: var(--hb-radius);
  background:
    linear-gradient(rgba(23, 21, 20, 0.08), rgba(23, 21, 20, 0.08)),
    url("assets/images/hero-boutique.png") center / cover;
  box-shadow: var(--hb-shadow);
}

.editorial-copy p {
  color: var(--hb-muted);
}

.site-footer {
  background: var(--hb-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 42px 0;
}

.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.whatsapp-popover {
  position: absolute;
  right: 0;
  bottom: 156px;
  width: min(340px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #d8f4e2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: whatsapp-pop 520ms ease 900ms forwards;
}

.whatsapp-popover::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
}

.whatsapp-popover.is-hidden {
  pointer-events: none;
  opacity: 0 !important;
  transform: translateY(12px) scale(0.96) !important;
  animation: none;
}

.whatsapp-popover-close {
  position: absolute;
  right: 10px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
}

.whatsapp-popover strong {
  display: block;
  padding-right: 24px;
  color: #111827;
  font-size: 18px;
}

.whatsapp-popover p {
  margin: 8px 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.whatsapp-popover a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 900;
}

@keyframes whatsapp-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 68px;
  min-height: 68px;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.24);
  color: #ffffff;
  transition: width 180ms ease, transform 180ms ease;
}

.floating-contact-button:hover,
.floating-contact-button:focus {
  width: 168px;
  transform: translateY(-2px);
}

.floating-contact-button span {
  display: inline-grid;
  flex: 0 0 68px;
  place-items: center;
  width: 68px;
  height: 68px;
  font-size: 25px;
  font-weight: 900;
}

.floating-contact-button strong {
  padding-right: 20px;
  font-size: 15px;
  white-space: nowrap;
}

.floating-contact-button.whatsapp {
  background: #25d366;
}

.floating-contact-button.email {
  background: #111827;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: var(--hb-white);
}

.content-area {
  padding: 64px 0;
}

.content-area article {
  max-width: 840px;
}

.woocommerce div.product {
  padding: 54px 0;
}

.woocommerce span.onsale {
  background: var(--hb-burgundy);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 172px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 30px;
    padding: 1px 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 19px;
  }

  .hero {
    min-height: 560px;
  }

  .section-head,
  .footer-inner {
    display: grid;
  }

  .category-grid,
  .promise-grid,
  .product-strip .products,
  .woocommerce ul.products,
  .catalog-layout,
  .catalog-products,
  .editorial {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand-name {
    min-width: 174px;
    font-size: 20px;
  }

  .brand-note {
    display: none;
  }

  .hero-content {
    padding: 58px 0 92px;
  }

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

  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 104px;
    padding-top: 8px;
    gap: 10px;
  }

  .header-search {
    order: 3;
    grid-template-columns: minmax(0, 1fr) 48px;
    width: calc(100% - 14px);
    max-width: none;
    flex-basis: 100%;
    margin-top: 16px;
  }

  .nav-row {
    min-height: 284px;
    padding-bottom: 22px;
  }

  .main-nav.is-open {
    margin-left: 20px;
  }

  .product-placeholder-image {
    aspect-ratio: 1 / 0.58;
  }

  .button-row {
    display: grid;
  }

  .button,
  .wp-element-button,
  .added_to_cart,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    width: 100%;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
  }

  .floating-contact-button,
  .floating-contact-button:hover,
  .floating-contact-button:focus {
    width: 62px;
    min-height: 62px;
  }

  .floating-contact-button span {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    font-size: 23px;
  }

  .whatsapp-popover {
    bottom: 148px;
    width: min(306px, calc(100vw - 28px));
  }
}

.mall-preview .site-header .header-inner {
  align-items: center;
  min-height: 82px;
}

.mall-preview .site-header .nav-row {
  display: flex;
  justify-content: stretch;
  min-height: auto;
  padding-bottom: 14px;
}

.mall-preview .site-header .main-nav {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  width: 100% !important;
  max-width: none !important;
  gap: 8px;
  justify-content: space-between;
  padding: 0;
}

.mall-preview .site-header .main-nav a {
  flex: 1 1 auto;
  width: auto !important;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #dbe1ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
}

.mall-preview .site-header .icon-link {
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

@media (max-width: 620px) {
  .mall-preview .site-header .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .mall-preview .site-header .brand {
    grid-column: 1 / -1;
  }

  .mall-preview .site-header .brand-name {
    width: 100%;
  }

  .mall-preview .site-header .header-search {
    grid-column: 1 / 2;
    width: 100%;
    margin: 0;
  }

  .mall-preview .site-header .header-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin: 0;
  }

  .mall-preview .shop-action {
    min-height: 40px;
    padding: 0 10px;
  }

  .mall-preview .shop-action strong {
    display: none;
  }

  .mall-preview .site-header .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

.mall-preview .site-header .main-nav a {
    flex: 0 0 auto;
  }
}

.store-page-area {
  padding: 44px 0 68px;
}

.store-info-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
}

.store-page-head {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hb-line);
  padding-bottom: 22px;
}

.store-page-head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--hb-burgundy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-page-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
}

.store-page-content {
  display: grid;
  gap: 18px;
  color: var(--hb-charcoal);
  font-size: 17px;
}

.store-page-content h2,
.store-page-content h3 {
  margin: 16px 0 0;
  color: var(--hb-ink);
  line-height: 1.1;
}

.store-page-content h2 {
  font-size: 28px;
}

.store-page-content h3 {
  font-size: 20px;
}

.store-page-content p,
.store-page-content ul,
.store-page-content ol {
  margin: 0;
}

.store-page-content ul,
.store-page-content ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.store-page-content li::marker {
  color: var(--hb-burgundy);
  font-weight: 900;
}

.site-footer .footer-inner {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer-service,
.footer-trust,
.footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-service ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-service a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-service a:hover {
  color: var(--hb-white);
}

@media (max-width: 760px) {
  .store-page-area {
    padding: 30px 0 48px;
  }

  .store-page-content {
    font-size: 16px;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
  }
}
