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

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

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-VariableFont_wght.woff2') format('woff2'),
    url('../fonts/Jost-VariableFont_wght.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.woff2') format('woff2'),
    url('../fonts/Jost-Italic-VariableFont_wght.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;
}

.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;
  border-radius: 8px;
  background: #fff;
  max-height: 450px;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-wrapper {
  position: relative;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.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);
}

.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;
  border-radius: 12px;
  max-height: 420px;
}

.mishes-image {
  width: 100%;
  display: block;
  border-radius: 12px;
  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;
  gap: 10px;
  padding: 12px 22px;
  background: #fff;
  color: var(--accent);
  border: 1.6px 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;
  border-radius: 10px;
  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;
}

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

.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;
}

/* ============================================================================ */
/* 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;
  gap: 8px;
}

.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 {
  width: 36px;
  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;
  border-radius: 10px;
  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 {
  border-radius: 12px;
  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: 16px 0;
}

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

.filter-group-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.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);
}

.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: 12px;
}

.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;
}

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

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

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

.product-name {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
}

.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;
  /* Hide scrollbar spacing if needed, or minimal */
  scrollbar-width: none;
  /* Firefox */
}

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

.product-slider-track .product-card {
  flex: 0 0 260px;
  /* Fixed width for slider items */
  scroll-snap-align: start;
  min-width: 0;
}

.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 .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;
  border-radius: 10px;
  height: clamp(320px, 60vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.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-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 520px;
  }

  .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Thumbs become a horizontal scrollable row on small screens */
  .gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .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: 18px;
}

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

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

.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;
}

.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;
}

/* ============================================================================ */
/* 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: 16px;
  margin: 0;
  font-weight: 350;
}

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

/* ============================================================================ */
/* 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%;
  border-radius: 12px;
  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;
    max-width: 540px;
  }

  .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;
  }

  .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: 600;
  }

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

  .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 16px;
    max-width: 440px;
  }

  .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;
    border-radius: 12px;
  }

  .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: 0px;
    max-width: 398px;
  }

  .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;
    border-radius: 14px;
  }

  .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: 16px;
  }

  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: 17px;
    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 70px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .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 {
    top: 0;
    left: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    transform: none;
    border-radius: 0;
    padding: 18px 14px 20px;
  }

  .filter-toggle {
    padding: 0;
  }

  .product-card {
    gap: 8px;
  }

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

  }

  .product-row {
    flex-wrap: wrap;
  }

  .product-name {
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    margin-right: auto;
  }

  .product-price {
    font-size: 14px;
    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;
}