/* ============================================================================ */
/* MARAIS — Main page styles                                                    */
/* ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Jost';
  src: url("../fonts/Jost-VariableFont_wght.37ac123ef2f8.woff2") format('woff2'),
    url("../fonts/Jost-VariableFont_wght.0f3fd08fb7d8.ttf") format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url("../fonts/Jost-Italic-VariableFont_wght.12bd2279e74f.woff2") format('woff2'),
    url("../fonts/Jost-Italic-VariableFont_wght.4f0675559bf7.ttf") format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --accent: #640406;
  --text-muted: #6b6b6b;
}

html,
body {
  font-family: var(--font-sans);
  color: #333;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container-m {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* ============================================================================ */
/* HERO                                                                         */
/* ============================================================================ */

.hero-image {
  width: 100%;
  overflow: hidden;
  background: #fff;
  max-height: 450px;
  object-fit: cover;
  animation: heroCurtain 0.8s ease forwards;
  transform-origin: top;
}

.hero-wrapper {
  position: relative;
}

.hero-link {
  display: block;
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

@keyframes heroCurtain {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.hero-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  will-change: opacity, transform;
  transition: opacity 0.9s ease, transform 2.2s ease;
}

.hero-image--current {
  position: relative;
  z-index: 1;
}

.hero-image--next {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
}

.hero-media.is-transitioning .hero-image--next {
  opacity: 1;
  transform: scale(1);
}

.hero-media.is-transitioning .hero-image--current {
  opacity: 0.2;
  transform: scale(1.02);
}

.hero-sheen {
  position: absolute;
  inset: -20% 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 244, 229, 0.28) 38%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 244, 229, 0.28) 62%,
    rgba(255, 255, 255, 0) 80%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  filter: blur(1px);
  transform: translateX(-140%) skewX(-12deg);
  mix-blend-mode: screen;
}

.hero-sheen.is-animating {
  animation: heroSheen 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes heroSheen {
  0% {
    opacity: 0;
    transform: translateX(-140%) skewX(-12deg);
  }
  25% {
    opacity: 0.8;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(140%) skewX(-12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }
  .hero-sheen {
    display: none;
  }
}

/* ============================================================================
   PROMO MODAL
   ========================================================================== */
.promo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1060;
}

.promo-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.promo-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.promo-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) scale(0.96);
  transform-origin: center;
  max-width: 760px;
  width: min(92vw, 760px);
  background: #f7f4ee;
  border: 1px solid #1c1815;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
  z-index: 1065;
}

.promo-modal__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.promo-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.promo-modal__media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: none;
  min-height: 0;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1.1fr);
  align-items: stretch;
}

.promo-modal__media::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 100%;
  background: var(--promo-img) center center / cover no-repeat;
  border-right: 1px solid #1c1815;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.promo-modal__link:hover .promo-modal__media::before,
.promo-modal__link:focus-visible .promo-modal__media::before,
.promo-modal__link:active .promo-modal__media::before {
  transform: scale(1.06);
}

.promo-modal__overlay {
  position: static;
  padding: 20px 22px;
  background: #f7f4ee;
  color: #1f1a16;
  display: flex;
  align-items: self-start;
  border-top: none;
}

.promo-modal__glass {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  align-self: stretch;
}

.promo-modal__eyebrow {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6e665b;
  margin: 0;
  text-shadow: none;
}

.promo-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.25;
  color: #1f1a16;
  text-shadow: none;
}

.promo-modal__text {
  margin: 0;
  color: #514841;
  line-height: 1.5;
  max-width: none;
  text-shadow: none;
}

.promo-modal__hint {
  margin: auto 0 0;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #2a241f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  text-shadow: none;
}

.promo-modal__hint::after {
  content: "↗";
  font-size: 13px;
  line-height: 1;
  opacity: 0.85;
}

.promo-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #1c1815;
  transition: none;
  z-index: 2;
  box-shadow: none;
}

.promo-modal__close:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 768px) {
  .promo-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.96);
    transform-origin: center;
    width: min(92vw, 380px);
    max-width: 380px;
  }
  .promo-modal.is-visible {
    transform: translate(-50%, -50%) scale(1);
  }
  .promo-modal__media {
    display: flex;
    flex-direction: column;
  }
  .promo-modal__media::before {
    padding-top: 100%;
    aspect-ratio: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #1c1815;
  }
  .promo-modal__overlay {
    padding: 18px 16px 20px;
    align-items: stretch;
  }
  .promo-modal__glass {
    gap: 10px;
  }
  .promo-modal__title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .promo-modal {
    width: min(92vw, 360px);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  pointer-events: none;
  text-align: center;
  z-index: 10;
  /* Ensure it floats above image/decor */
}

.hero-overlay h1 {
  color: #fff !important;
  /* Force white color to override any specificity issues */
  font-size: clamp(40px, 8vw, 80px);
  /* Increased size range */
  font-weight: 400;
  /* Slightly bolder for visibility */
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  /* Stronger shadow */
  margin: 0;
  line-height: 1.1;
  font-family: var(--font-sans);
}

.hero-logo {
  max-width: 360px;
  width: 70%;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.16));
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.hero-decor {
  position: absolute;
  width: 300px;
  height: auto;
  pointer-events: none;
  opacity: 0.9;
}

.hero-decor--left {
  left: 40px;
  top: 232px;
}

.hero-decor--right {
  right: 40px;
  bottom: 190px;
}

.mishes-hero {
  padding: 0 0 24px;
}

.mishes-banner {
  position: relative;
  overflow: hidden;
  max-height: 420px;
}

.mishes-image {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.mishes-decor {
  position: absolute;
  width: 321px;
  height: auto;
  pointer-events: none;
}

.mishes-decor--top {
  top: 0px;
  left: 0px;
}

.mishes-decor--bottom {
  bottom: -10px;
  right: -10px;
}

.mishes-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: #fff;
}

.mishes-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
}

.mishes-button {
  padding: 12px 22px;
  background: rgba(126, 86, 57, 0.9);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mishes-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}


/* ============================================================================ */
/* HOME SPLIT SECTIONS                                                          */
/* ============================================================================ */

.split-section {
  padding: 80px 0;
  background: #fff;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.split-media img {
  width: 100%;
  max-width: 560px;


}

.split-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.split-title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 350;
}

.split-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.split-button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.featured-product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 360px;
}

.featured-product img {
  width: 100%;
  background: #fff;
}

.featured-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.home-product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.home-product-price {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.4px;
  width: 100%;
}

.home-product-price span {
  font-weight: 600;
}

.home-product-note {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* ============================================================================ */
/* CART PAGE                                                                    */
/* ============================================================================ */

.cart-page {
  padding: 40px 0 90px;
  background: #fff;
}

.cart-page__title {
  font-size: 20px;
  font-weight: 500;
  color: #5a5a5a;
  margin-bottom: 22px;
}

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

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #efe5dc;
  padding-bottom: 14px;
}

.cart-item__media {
  width: 120px;
  height: 110px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cart-item__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c2c2c;
}

.cart-item__meta {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty {
  display: inline-flex;
  align-items: center;
  background: #8b0d20;
  border-radius: 8px;
  overflow: hidden;
  min-width: 110px;
  height: 36px;
  color: #fff;
}

.qty__btn {
  width: 38px;
  height: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.qty__value {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.cart-item__price {
  font-size: 15px;
  font-weight: 600;
  color: #2b2b2b;
  white-space: nowrap;
}

.cart-item__remove {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #777;
  cursor: pointer;
}

.cart-item__remove:hover {
  color: #a01f34;
}

.cart-actions {
  margin-top: 10px;
}

.cart-pagination {
  margin-top: 14px;
}

.cart-summary {
  background: #fff;
  padding: 18px 18px 16px;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary__title {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 6px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #2b2b2b;
}

.cart-summary__row--total {
  font-weight: 500;
  font-size: 15px;
}

.cart-summary__divider {
  height: 1px;
  background: #dfd7cd;
  margin: 4px 0;
}

.cart-summary__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary__btn {
  width: 100%;
  text-align: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #c6b3a8;
  background: #fff;
  color: #7c141f;
  font-weight: 500;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #a01f34;
  color: #a01f34;
}

.outline-btn {
  min-width: 140px;
  border-color: #c6b3a8;
  color: #7c141f;
  font-weight: 600;
  background: #fff;
}

.outline-btn:hover {
  border-color: #bfa994;
  color: #a01f34;
}

.cart-info {
  border-top: 1px solid #dfd7cd;
  padding-top: 6px;
}

.cart-info summary {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.cart-info summary::-webkit-details-marker {
  display: none;
}

.cart-info summary::after {
  content: "";
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.cart-info[open] summary::after {
  transform: rotate(180deg);
}

.cart-info__body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.cart-info__list {
  margin: 6px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-info__list li {
  position: relative;
  padding-left: 18px;
}

.cart-info__list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #a01f34;
}

.cart-note {
  margin-top: 12px;
  font-size: 13px;
  color: #7c141f;
  line-height: 1.4;
}

/* ============================================================================ */
/* PROFILE PAGE                                                                 */
/* ============================================================================ */

.profile-page {
  padding: 32px 0 80px;
  background: #fff;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e7e0d6;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-user__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-greet {
  margin: 0;
  font-size: 12px;
  color: #676767;
}

.profile-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.profile-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.profile-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-search {
  margin: 14px 0 18px;
}

.profile-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e3ddd4;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.profile-stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e3ddd4;
  border-radius: 10px;
  background: #fff;
}

.profile-stat__icon {
  height: 36px;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.profile-stat__value {
  font-size: 18px;
  font-weight: 500;
}

.profile-stat__label {
  font-size: 12px;
  color: #6f6f6f;
}

.profile-section {
  background: #fff;
  margin-bottom: 16px;
}

.profile-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.profile-section__header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
}

.profile-link {
  font-size: 12px;
  color: #8c182a;
  text-decoration: none;
}

.profile-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #efebe6;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.order-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.order-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-card__title {
  font-size: 14px;
  font-weight: 500;
}

.order-card__date {
  font-size: 12px;
  color: #777;
}

.order-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-card__price {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.order-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #d8e7ff;
  color: #1a6cd0;
  background: #fff;
}

.order-badge--success {
  border-color: #cde7d5;
  color: #0f8c4d;
  background: #fff;
}

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

.pill-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e1d9ce;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.pill-btn:hover {
  border-color: #bfa994;
}

.profile-recos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-sheet__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.profile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  margin: 0 auto;
  max-width: 480px;
  width: calc(100% - 24px);
  background: #fff;
  border-radius: 16px 16px 10px 10px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
  padding: 14px 16px 16px;
  z-index: 910;
  transition: transform 0.25s ease, bottom 0.25s ease;
}

.profile-sheet.is-open {
  bottom: 14px;
}

.profile-sheet__backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

.profile-sheet__handle {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: #dcd4c8;
  margin: 6px auto 12px;
}

.profile-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.profile-sheet__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.profile-sheet__close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.profile-sheet__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.profile-sheet__field input {
  width: 100%;
  border: 1px solid #e3ddd4;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

.profile-sheet__input--readonly {
  color: #8a8a8a;
  background: #fff;
}

.profile-sheet__avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-sheet__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e1d7c9;
  background: #fff;
  flex-shrink: 0;
}

.profile-sheet__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-sheet__upload {
  border: 1px dashed #d5c9bc;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: #7a6653;
  font-size: 13px;
  background: #fff;
}

.profile-sheet__upload input {
  display: none;
}

.profile-sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.profile-sheet__actions .btn-primary,
.profile-sheet__actions .btn-secondary {
  flex: 1 1 auto;
  justify-content: center;
}

.reco-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  border: 1px solid #efe5dc;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.reco-card__media {
  width: 90px;
  height: 90px;
  background: #fff;
  overflow: hidden;
}

.reco-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reco-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #2b2b2b;
}

.reco-card__price {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================================ */
/* AUTH PAGE                                                                    */
/* ============================================================================ */

.auth-page {
  padding: 40px 0 80px;
  background: #fff;
}

.auth-page .container-m {
  max-width: 960px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  border-radius: 14px 0px 0px 14px;
  overflow: hidden;
  background: #fff;
  min-height: 420px;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.auth-visual__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-visual__caption h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 400;
}

.auth-visual__caption p {
  margin: 0;
  font-size: 12px;
}

.auth-card {
  background: #fff;
  border-radius: 0px 14px 14px 0px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #efe8de;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-logo img {
  max-height: 36px;
}

.auth-title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 500;
}

.auth-subtitle {
  margin: 0 0 8px;
  color: #666;
  font-size: 14px;
}

.auth-error {
  background: #fff2f2;
  color: #a52323;
  border: 1px solid #f2c4c4;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #3c3c3c;
}

.auth-input {
  border: 1px solid #e3ddd4;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.auth-input input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.auth-actions-top {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
}

.auth-link {
  color: #8c182a;
  text-decoration: none;
  font-size: 12px;
}

.auth-link.strong {
  font-weight: 500;
}

.auth-submit {
  width: 100%;
  justify-content: center;
}

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: #888;
  position: relative;
  margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #e6e0d6;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-footer {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

section.hero {
  margin-top: 30px;
}

/* ============================================================================ */
/* BRAND & PROJECT PAGES                                                        */
/* ============================================================================ */

.brand-page,
.project-page {
  padding: 50px 0 80px;
  background: #fff;
}

.brand-hero,
.project-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}

.brand-hero__media,
.project-hero__media {
  overflow: hidden;
  background: #fff;
  max-width: 420px;
  justify-self: end;
}

.brand-hero__media img,
.project-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-hero__text h1,
.project-hero__text h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 500;
}

.brand-hero__text p,
.project-hero__text p {
  margin: 0 0 10px;
  color: #4a4a4a;
  line-height: 1.7;
}

.brand-section,
.project-section {
  margin-bottom: 24px;
  background: #fff;
}

.brand-section h2,
.project-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
}

.brand-section p,
.project-section p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.6;
}

.brand-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}



.brand-card h3,
.project-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.brand-card p,
.project-card p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5;
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.brand-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0px;

}

.brand-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-entry__header img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5ddd0;
}

.brand-entry__title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.brand-entry__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-entry__title span {
  font-size: 12px;
  font-weight: 500;
  color: #7a7a7a;
}

.brand-entry p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5;
}

.brand-note {
  margin: 14px 0 0;
  color: #4a4a4a;
  line-height: 1.6;
}

/* ============================================================================ */
/* CATALOG PAGE                                                                 */
/* ============================================================================ */

.catalog-page {
  padding: 50px 0 100px;
  background: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}

.filter-panel {
  background: #fff;
  border: 1px solid #e6e1da;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 90px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #e5dcd2;
  background: #fff;
  color: #5b4b3e;
  cursor: pointer;
}

.filter-close:hover {
  background: #fff;
}

.filter-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 14px;
}

.filter-group {
  border-top: 1px solid #e6e1da;
  padding: 5px 0;
}

.filter-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.filter-group-title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  margin-top: 5px;
}

.filter-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.option-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #c9c1b7;
  background: transparent;
  flex-shrink: 0;
}

.filter-option.active .option-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.filter-option:hover {
  color: #111;
}

.size-options {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.size-btn {
  border: 1px solid #d7d0c7;
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.size-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.size-btn.disabled,
.size-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f5f1eb;
  border-color: #e2dbd2;
}

.size-stock-label {
  display: block;
  font-size: 10px;
  color: #a33;
  margin-top: 2px;
  line-height: 1.2;
}

.catalog-mobile-bar {
  display: none;
  align-items: center;
  margin-bottom: 12px;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  color: #1f1f1f;
}

.filter-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-toggle__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.filter-backdrop {
  display: none;
}

body.no-scroll {
  overflow: hidden;
}

html.no-scroll {
  overflow: hidden;
}

.catalog-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 5px;
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.product-thumb img:hover {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(201, 163, 94, 0.92);
  color: #fdf9f4;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.product-tag-stack {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
}

.product-tag-stack .product-tag {
  position: static;
}

.product-tag--sale {
  background: rgba(167, 25, 48, 0.92);
}

.product-tag--new {
  background: rgba(79, 105, 79, 0.92);
}

.product-tag--sold {
  background: rgb(120 120 120 / 92%);
  right: 10px;
  left: auto;
}

@media (max-width: 768px) {
  .product-tag {
    padding: 2px 8px;
  }
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.product-name {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  /* Reserve space for 2 lines based on line-height/font-size */
  line-height: 1.2;
}

.product-price {
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
}

.product-price-old {
  font-weight: 400;
  font-size: 13px;
  color: #8a8a8a;
  text-decoration: line-through;
  margin-right: 6px;
}

.product-price-new {
  font-weight: 700;
}

.product-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.catalog-actions {
  display: flex;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
  min-width: 180px;
}

.btn-primary:hover {
  background: #981d30;
  transform: translateY(-1px);
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-link,
.page-arrow {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #d8d0c8;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  background: #fff;
  transition: all 0.2s ease;
}

.page-link:hover,
.page-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================================ */
/* PRODUCT DETAIL                                                               */
/* ============================================================================ */

.product-detail {
  padding: 30px 0 40px;
  background: #fff;
  overflow-x: hidden;
}

/* Product Slider */
.product-slider-wrapper {
  position: relative;
  width: 100%;
}

.product-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
  /* Firefox */
}

.product-slider-track::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.product-slider-track .product-card {
  flex: 0 0 calc((100% - 60px) / 4);
  /* 4 items per line accounting for 3 gaps of 20px */
  scroll-snap-align: start;
  min-width: 200px;
}

.slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.slider-arrow:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

.slider-prev {
  left: -10px;
}

.slider-next {
  right: -10px;
}

@media (max-width: 768px) {
  .product-slider-track {
    justify-content: flex-start;
    /* Reset to left align for scroll on mobile */
  }

  .product-slider-track .product-card {
    flex: 0 0 160px;
    /* Smaller cards on mobile */
  }

  .slider-arrow {
    display: none;
    /* Hide arrows on mobile, use swipe */
  }

}



.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d2d2d;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 30px;
}

.back-link:hover {
  color: var(--accent);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  width: 100%;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main {
  background: #fff;
  height: clamp(320px, 60vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* New Gallery Styles */
.gallery-item {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item.active {
  display: block;
}

.gallery-main img {
  /* Legacy override if needed, but gallery-item handles it */
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .gallery-main {
    width: 100%;
    height: auto;
    max-height: 50vh;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .gallery-item {
    display: none;
  }

  .gallery-item.active {
    display: block;
  }

  .gallery-thumbs {
    display: none;
    /* Hide thumbs on mobile as requested (using dots instead) */
  }

  .gallery-dots {
    display: flex;
    margin-top: 12px;
  }
}



.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gallery-thumbs .thumb {
  height: clamp(64px, 18vw, 96px);
  aspect-ratio: 1 / 1;
}

.thumb {
  border: 1px solid #e1d9d0;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.1s ease;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.gallery-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7b0a8;
  display: inline-block;
}

.gallery-dots .dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--accent);
}

/* ============================================================================ */
/* Responsive: product detail (mobile fixes)                                     */
/* ============================================================================ */

@media (max-width: 900px) {
  .container-m {
    padding: 0 18px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-gallery {
    width: 100%;
  }

  /* Gallery logic moved to main styles block with media query override */

  .gallery-thumbs .thumb {
    min-width: 64px;
    width: auto;
    height: 64px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
  }

  .thumb img {
    object-fit: cover;
  }

  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .detail-info {
    padding-top: 4px;
  }
}

@media (max-width: 480px) {
  .gallery-thumbs .thumb {
    min-width: 56px;
    height: 56px;
  }
}

.thumb:hover {
  border-color: var(--accent);
}

.thumb.active {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin: 0;
}

.detail-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #1f1f1f;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.status-pill--sold {
  background: #2f2f2f;
}

.detail-price {
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
}

.detail-specs .spec-row {
  display: flex;
  gap: 6px;
  line-height: 1.4;
  font-size: 15px;
}

.detail-specs .spec-label {
  font-style: italic;
  font-weight: 500;
}

.detail-note {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.detail-subtitle {
  font-size: 14px;
  color: #4a4a4a;
  margin: 0;
}

.detail-meta h4 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px;
}

.swatch-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid #d8d0c8;
  cursor: pointer;
  background: #fff;
  transition: border 0.2s ease, transform 0.1s ease;
  padding: 0;
  overflow: hidden;
}

.swatch:hover {
  border-color: var(--accent);
}

.swatch.active {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.detail-description {
  font-size: 14px;
  color: #3e3e3e;
  line-height: 1.6;
  margin: 0;
}

.detail-link {
  font-size: 13px;
  color: #222;

  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-link:hover {
  color: var(--accent);
}

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

.cart-info {
  margin-top: 20px;
  border-top: 1px solid #e6e1da;
  padding-top: 10px;
}

@media (max-width: 480px) {
  .cart-info {
    margin-top: 10px;
  }
}

.price-btn {
  min-width: 140px;
}

.cart-btn {
  min-width: 160px;
}

.related-section {
  padding: 60px 0 30px;
  background: #fff;
}

.related-title {
  font-size: 24px;
  text-align: center;
  font-weight: 500;
  margin: 0 0 28px;
}

/* Slider Header with Arrows */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.slider-header .related-title {
  margin: 0;
  text-align: left;
}

.slider-nav {
  display: flex;
  gap: 8px;
}

.slider-nav .slider-arrow {
  position: static;
  transform: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .slider-header .related-title {
    text-align: center;
    flex: 1;
  }

  .slider-nav .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ============================================================================ */
/* VIDEO SECTION                                                                */
/* ============================================================================ */

.video-section {
  padding: 80px 0;
  background: #fff;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================================ */
/* CATEGORIES                                                                   */
/* ============================================================================ */

.categories-text {
  text-align: center;
}

.categories-text h2 {
  font-size: 26px;
  font-weight: 350;
  letter-spacing: 0.4px;
}

.categories {
  padding: 50px 0;
  background: #fff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-card p {
  font-size: 15px;
  margin: 0;
  font-weight: 350;
}

.category-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  object-fit: cover;
}

/* Zoom wrapper for main page category cards */
.category-card__image-wrapper {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: 0;
  /* Align with design if needed */
}

.category-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.category-card:hover .category-card__image-wrapper img {
  transform: scale(1.05);
}

/* ============================================================================ */
/* SECTION TITLES                                                               */
/* ============================================================================ */

.section-title {
  font-size: 32px;
  font-weight: 350;
  text-align: center;
  margin-bottom: 70px;
  letter-spacing: 1.8px;
  color: #1a1a1a;
}

/* ============================================================================ */
/* REVIEWS                                                                      */
/* ============================================================================ */

.reviews {
  padding: 120px 0;
  background: #fff;
}

.reviews-lead {
  text-align: center;
  margin: 0;
  font-size: 16px;
  color: #555;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.reviews-nav {
  display: flex;
  gap: 10px;
}

.reviews-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a01f34;
  transition: all 0.2s ease;
}

.reviews-arrow:hover {
  background: #a01f34;
  color: #fff;
  border-color: #a01f34;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.reviews-carousel {
  max-width: 680px;
  margin: 0 auto;
}

.reviews-grid-desktop {
  display: grid;
}

.reviews-carousel-mobile {
  display: none;
}

.reviews-grid-desktop {
  display: grid;
}

.reviews-carousel-mobile {
  display: none;
}

.reviews-carousel .review-card {
  padding: 14px;
}

.review-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.reviews .carousel-control-prev-icon,
.reviews .carousel-control-next-icon {
  filter: invert(27%) sepia(9%) saturate(0%) hue-rotate(163deg) brightness(90%) contrast(89%);
}

.reviews .carousel-control-prev,
.reviews .carousel-control-next {
  width: 7%;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 12px 0;
  gap: 12px;
  height: 100%;
}

.review-card.review-centered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.review-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  width: 100%;
}

.review-card .stars {
  color: #a01f34;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 3px;
}

.review-card .review-text {
  font-size: 14px;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.7;
}

.review-card .review-author {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: 0.2px;
}

.review-avatar {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  margin: 14px auto 0;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: start;
  margin-top: auto;
}

.review-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.review-city {
  font-size: 12px;
  color: #a01f34;
  margin: 0;
}

.reviews-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.reviews-button {
  min-width: 240px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-flouida,
.mobile-full-bleed {
  display: none;
}

.mobile-break {
  display: inline;
}

.mobile-flouida {
  padding: 16px 0 8px;
}

.mobile-full-bleed {
  padding: 8px 0 24px;
}

.mobile-flouida .split-title {
  margin-bottom: 14px;
  text-align: center;
}

.mobile-flouida .split-button {
  justify-content: center;
  width: 100%;
}

.full-bleed-image {
  width: 100%;
  object-fit: cover;
}

.mobile-hidden {
  display: block;
}

/* ============================================================================ */
/* RESPONSIVE                                                                  */
/* ============================================================================ */

@media (max-width: 1200px) {
  .container-m {
    padding: 0 32px;
  }

  .catalog-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }

  .product-grid {
    gap: 26px 20px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 32px;
  }

  .gallery-main {
    min-height: 380px;
  }
}

@media (max-width: 1024px) {
  .container-m {
    padding: 0 28px;
  }

  .brand-hero,
  .project-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brand-grid,
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-page {
    padding: 36px 0 80px;
  }

  .cart-page {
    padding: 30px 0 70px;
  }

  .cart-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .profile-page {
    padding: 24px 0 60px;
  }

  .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-recos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-hero,
  .project-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-hero__media,
  .project-hero__media {
    justify-self: start;
    max-width: 100%;
  }

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

  .auth-visual {
    display: none;
  }

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

  .auth-visual {
    display: none;
  }

  .cart-item {
    grid-template-columns: 100px 1fr auto;
    grid-template-areas:
      "media body remove"
      "media price remove";
    align-items: center;
  }

  .cart-item__media {
    grid-area: media;
    width: 100px;
    height: 90px;
  }

  .cart-item__body {
    grid-area: body;
  }

  .cart-item__price {
    grid-area: price;
  }

  .cart-item__remove {
    grid-area: remove;
    justify-self: end;
  }

  .cart-summary {
    position: relative;
    top: 0;
  }

  .categories {
    padding: 80px 0;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .split-section {
    padding: 70px 0;
  }

  .split-grid {
    gap: 28px;
  }

  .split-title {
    font-size: 28px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-mobile-bar {
    display: flex;
    justify-content: space-between;
  }

  .filter-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    z-index: 1100;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    padding: 22px 18px 24px;
    border-radius: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .filter-panel.is-open {
    display: block;
  }

  .filter-backdrop.is-visible {
    display: block;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1000;
  }

  .filter-group {
    border-top: 1px solid #e6e1da;
    padding: 14px 0;
  }

  .filter-group:first-of-type {
    border-top: 1px solid #e6e1da;
  }

  .filter-close {
    display: inline-flex;
  }

  .filter-title {
    margin-bottom: 10px;
  }

  .filter-group-title {
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  .filter-option {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 16px;
  }

  .product-card {
    gap: 10px;
  }

  .product-thumb {
    box-shadow: none;
    background: #fff;
  }

  .product-name {
    font-size: 16px;
    font-weight: 400;
    min-height: 2.4em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 15px;
    flex-shrink: 0;
  }

  .product-subtitle {
    font-size: 12px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-actions {
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .reviews {
    padding: 80px 0;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .reviews-grid-desktop {
    display: none;
  }

  .reviews-carousel-mobile {
    display: block;
    max-width: 520px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 50px;
  }

  .video-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .container-m {
    padding: 0 18px;
  }

  .catalog-page {
    padding: 30px 0 70px;
  }

  .cart-page {
    padding: 30px 0 70px;
  }

  .cart-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .cart-item {
    grid-template-columns: 100px 1fr auto;
    grid-template-areas:
      "media body remove"
      "media price remove";
    align-items: center;
  }

  .cart-item__media {
    grid-area: media;
    width: 100px;
    height: 90px;
  }

  .cart-item__body {
    grid-area: body;
  }

  .cart-item__price {
    grid-area: price;
  }

  .cart-item__remove {
    grid-area: remove;
    justify-self: end;
  }

  .cart-summary {
    position: relative;
    top: 0;
    width: 100%;
  }

  .profile-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .profile-header__actions {
    align-self: center;
  }

  .profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .profile-stat-card {
    flex: 1 1 calc(50% - 10px);
  }

  .profile-stat-card:nth-child(3) {
    order: -1;
    flex: 1 1 100%;
  }

  .profile-recos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-thumbs {
    display: none;
  }

  .gallery-dots {
    display: flex;
  }

  .hero-decor {
    width: 200px;
  }

  .hero-decor--left {
    left: -12px;
    top: -12px;
  }

  .hero-decor--right {
    right: -12px;
    bottom: -12px;
  }

  .mishes-hero {
    padding: 0 0 18px;
  }

  .mishes-decor {
    width: 120px;
  }

  .mishes-title {
    font-size: 20px;
  }

  .split-media img[src*="flouida.png"] {
    display: none;
  }

  .mobile-flouida,
  .mobile-full-bleed {
    display: none;
  }

  .hero-image {
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .categories {
    padding: 60px 0;
  }

  .categories-text h2 {
    font-size: 22px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .split-grid {
    gap: 20px;
  }

  .category-card p {
    font-size: 22px;
  }

  .split-section {
    padding: 40px 0;
  }

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

  .split-content {
    align-items: center;
    text-align: center;
  }

  .split-button {
    width: 100%;
    justify-content: center;
  }

  .featured-product {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .split-media img {
    max-width: 360px;
  }

  .home-product-price {
    justify-content: space-between;
    width: 100%;
  }

  .home-product-info,
  .featured-meta {
    align-items: flex-start;
    text-align: left;
    gap: 0;
    width: 100%;
  }

  .video-section {
    padding: 40px 0;
  }

  .reviews {
    padding: 50px 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reviews-carousel {
    max-width: 100%;
  }

  .review-card {
    padding: 14px 10px;
  }

  .filter-panel {
    width: 100vw;
    max-width: none;
    padding: 20px 16px 20px;
    top: 0;
    left: 0;
    transform: none;
    height: 100vh;
    border-radius: 0;
  }

  .filter-toggle {
    width: auto;
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 14px;
  }

  .detail-layout {
    gap: 18px;
  }

  .gallery-main {
    min-height: 300px;
  }

  .detail-title {
    font-size: 22px;
  }

  .related-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .reviews {
    padding: 60px 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reviews-carousel {
    max-width: 100%;
  }

  .reviews-grid-desktop {
    display: none;
  }

  .reviews-carousel-mobile {
    display: block;
    max-width: 100%;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-main {
    min-height: 320px;
  }

  .detail-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}


@media (max-width: 480px) {
  .container-m {
    padding: 0 18px;
  }

  .catalog-page {
    padding: 24px 0 60px;
  }

  .cart-page {
    padding: 24px 0 60px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "media body"
      "media price";
    gap: 12px;
  }

  .cart-item__media {
    width: 80px;
    height: 80px;
  }

  .cart-item__controls {
    margin-top: 6px;
  }

  .qty {
    min-width: 100px;
    height: 34px;
  }

  .cart-item__price {
    justify-self: start;
  }

  .cart-summary {
    width: 100%;
    padding: 16px;
  }

  .cart-info__body {
    font-size: 12px;
  }

  .profile-page {
    padding: 20px 0 50px;
  }

  .profile-header {
    gap: 10px;
  }

  .profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .profile-recos {
    grid-template-columns: 1fr;
  }

  .profile-stat-card {
    flex: 1 1 calc(50% - 10px);
  }

  .profile-stat-card:nth-child(3) {
    order: -1;
    flex: 1 1 100%;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-main {
    min-height: 280px;
  }

  .detail-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .gallery-thumbs {
    display: none;
  }

  .gallery-dots {
    display: flex;
  }

  .profile-section {
    padding: 0px;
  }

  .order-card__meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .auth-card {
    padding: 16px;
    border-radius: 14px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .hero-decor {
    width: 200px;
  }

  .hero-decor--left {
    left: 40px;
    top: 160px;
  }

  .hero-decor--right {
    right: -4px;
    top: -6px;
  }

  .hero-decor {
    width: 200px;
  }

  .hero-decor--left {
    top: 233px;
    left: 10px;
  }

  .hero-decor--right {
    bottom: -8px;
    right: -8px;
    top: 5px;
  }

  .mobile-hero-title {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 0;
  }

  .mobile-break {
    display: block;
  }

  .hero-image {
    max-height: none;
    aspect-ratio: 1 / 1;

  }

  .categories {
    padding: 36px 0;
  }

  .categories-text h2 {
    font-size: 25px;
    margin-top: 0px;
    font-weight: 400;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-card p {
    font-size: 12px;
  }

  p.home-product-note {
    font-size: 14px;
  }

  .split-section {
    padding: 0;
  }

  .split-title {
    font-size: 22px;
  }

  .featured-product {
    gap: 10px;
  }

  .home-product-price {
    font-size: 13px;
    font-weight: 500;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .split-button {
    padding: 12px 16px;
  }

  .video-section {
    padding: 28px 0;
  }

  .reviews {
    padding: 32px 0;
  }

  .catalog-layout {
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .product-detail {
    padding: 20px 0 20px;
  }

  .detail-actions {
    flex-direction: column;
    width: 100%;
  }

  .related-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .detail-actions form {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary,
  .outline-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .related-section {
    padding: 40px 0 20px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .reviews {
    padding: 40px 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filter-panel.is-open {
    display: block !important;
  }

  .filter-panel {
    display: none;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    transform: none;
    border-radius: 0;
    padding: 18px 14px 80px;
    /* Added bottom padding for scroll/button visibility */
    overflow-y: auto;
    /* Enable scrolling */
    z-index: 2000;
    /* Ensure it is on top */
    position: fixed;
    /* Ensure fixed positioning on mobile */
  }

  .filter-toggle {
    padding: 0;
  }

  .product-card {
    gap: 8px;
  }

  .product-thumb {
    box-shadow: none;
    background: #fff;

  }

  .product-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
  }

  .product-name {
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    margin-right: auto;
    line-height: 1.2;
    min-height: 2.4em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
  }
}

/* ============================================================================ */
/* REVIEW MODAL                                                                 */
/* ============================================================================ */

.review-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.review-modal.is-visible {
  display: block;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.review-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.review-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.review-modal__close:hover {
  color: #000;
}

.review-modal__title {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 30px 0;
  letter-spacing: 0.5px;
}

.review-form__group {
  margin-bottom: 20px;
}

.review-form__group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.review-form__group input[type="text"],
.review-form__group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.review-form__group input[type="text"]:focus,
.review-form__group textarea:focus {
  outline: none;
  border-color: #640406;
}

.review-form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.review-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
}

.review-stars input[type="radio"] {
  display: none;
}

.review-stars label {
  font-size: 32px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
  margin: 0;
}

.review-stars input[type="radio"]:checked~label,
.review-stars label:hover,
.review-stars label:hover~label {
  color: #ffc107;
}

.review-form button[type="submit"] {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .review-modal__content {
    padding: 24px;
    width: 95%;
  }

  .review-modal__title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .review-stars label {
    font-size: 28px;
  }
}

.product-subtitle {
  font-size: 11px;
  color: #4a4a4a;
}

/* ============================================================================ */
/* IMAGE MODAL (LIGHTBOX)                                                       */
/* ============================================================================ */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.image-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Contact Modal (Header) */
.contact-modal {
  display: none;
  position: absolute;
  top: 60px;
  /* Adjust based on header height */
  right: 120px;
  /* Adjust to align with phone icon */
  background: #fff;
  border: 1px solid #e6e1da;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  z-index: 2000;
  min-width: 250px;
}

.contact-modal.is-visible {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.contact-modal__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.contact-modal__phone {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.contact-modal__email {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.contact-modal__socials {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.contact-modal__socials a {
  display: inline-block;
}

.contact-modal__socials img {
  width: 21px;
  transition: transform 0.2s ease;
}

.contact-modal__socials a:hover img {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .contact-modal {
    right: 20px;
    /* Adjust for mobile */
    top: 70px;
    position: fixed;
    /* Fix on mobile to ensure visibility */
  }
}

/* Brand Grid Styles */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-card__image {
  width: 100%;
  aspect-ratio: 4/5;
  /* Or 3/4 depending on preference, 4/5 looks good for portraits */
  background: #fff;
  overflow: hidden;
}

.brand-card__image img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.brand-card:hover .brand-card__image img {
  transform: scale(1.03);
}

.brand-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.brand-card__title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 4px;
  text-transform: uppercase;
  color: #a01f34;
}

.brand-card__country {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
  }

  .brand-card__title {
    font-size: 16px;
  }

  .brand-card__country {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .brand-card__desc {
    font-size: 13px;
    line-height: 1.4;
  }

  .brand-card {
    gap: 12px;
  }
}

/* Banner Decor (like Hero) */
.banner-decor {
  position: absolute;
  width: 200px;
  /* Slightly smaller for banners */
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.banner-decor--left {
  left: 5px;
  top: 270px;
}

.banner-decor--right {
  right: 5px;
  bottom: 240px;
}

.mishes-overlay {
  z-index: 2;
  /* Ensure text is above decor */
}

/* Brand Placeholder (when no product image) */
.product-brand-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  /* Add breathing room for logo */
  background: #fff;
}

/* Filter sizes grid */
.filter-sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-size-btn {
  border: 1px solid #d7d0c7;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #333;
  display: inline-block;
  min-width: 36px;
  text-align: center;
}

.filter-size-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-size-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================================================ */
/* TOP BANNER                                                                   */
/* ============================================================================ */

.top-banner {
  background-color: #e5e5e5;
  color: #000;
  position: relative;
  z-index: 101;
  padding: 0;
  overflow: hidden;
}

.top-banner__link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 8px 40px 8px 0;
  /* Right padding for close button */
  font-size: 13px;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
}

.top-banner:hover {
  background-color: #dcdcdc;
}

.top-banner__text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 30s linear infinite;
  margin: 0;
  letter-spacing: 0.5px;
}

.top-banner__close {
  position: absolute;
  right: 0;
  /* Changed back to right */
  top: 0;
  bottom: 0;
  width: 40px;
  background: #e5e5e5;
  /* Match banner background to mask text */
  border: none;
  cursor: pointer;
  z-index: 102;
  font-size: 16px;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.top-banner__close:hover {
  background: rgba(0, 0, 0, 0.05);
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

/* ============================================================================ */
/* LIGHTBOX                                                                     */
/* ============================================================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
  z-index: 10000;
  transition: opacity 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Bonus Form */
.cart-bonuses {
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.bonus-input-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bonus-input-group input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  background: #fcfcfc;
}

.bonus-input-group input:focus {
  border-color: var(--accent);
  background: #fff;
}

.bonus-btn {
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

.bonus-btn:hover {
  background: #a01f34;
  /* Slightly lighter/darker depending on accent, using hardcoded for now or darken logic */
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.bonus-btn:active {
  transform: translateY(0);
}



@keyframes promoFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
