/**
 * Mobile & tablet layouts only (max-width breakpoints).
 * Desktop 992px+ uses base styles unchanged.
 * Sizes scale via --u to preserve proportions and alignment.
 */

/* ─── Mobile layout & fluid scale ─── */
@media (max-width: 768px) {
  :root {
    --header-height: clamp(64px, calc(80 * var(--u)), 80px);
    --header-padding-x: clamp(16px, calc(32 * var(--u)), 32px);
    --section-padding-x: clamp(16px, calc(40 * var(--u)), 40px);
    --section-padding-lg: clamp(24px, calc(60 * var(--u)), 60px);
    --logo-width: clamp(80px, 24vw, 96px);
    --logo-height: clamp(58px, 17vw, 70px);
  }

  .page {
    overflow-x: clip;
  }

  /* Header */
  .header__inner {
    height: var(--header-height);
    padding: 0 var(--header-padding-x);
  }

  .header__actions {
    gap: clamp(12px, calc(20 * var(--u)), 20px);
    height: auto;
  }

  .header__icon-btn {
    width: clamp(40px, calc(44 * var(--u)), 44px);
    height: clamp(40px, calc(44 * var(--u)), 44px);
  }

  .header__menu-btn {
    width: clamp(40px, calc(44 * var(--u)), 44px);
    height: clamp(40px, calc(44 * var(--u)), 44px);
  }

  /* Hero */
  .hero__content {
    padding: clamp(24px, calc(40 * var(--u)), 40px) var(--section-padding-x);
    gap: clamp(20px, calc(40 * var(--u)), 40px);
  }

  .hero__title {
    font-size: var(--hero-title-size);
    line-height: var(--hero-title-leading);
  }

  .hero__subtitle {
    font-size: var(--hero-subtitle-size);
    line-height: var(--hero-subtitle-leading);
  }

  .hero__buttons {
    gap: var(--hero-btn-gap);
    max-width: min(100%, var(--hero-buttons-max));
  }

  .hero__buttons .btn {
    height: var(--hero-btn-height);
    font-size: var(--hero-btn-font-size);
  }

  .hero__buttons .btn--primary {
    width: min(100%, var(--hero-btn-primary-w));
  }

  .hero__buttons .btn--ghost {
    width: min(100%, var(--hero-btn-ghost-w));
  }

  .hero__dots {
    bottom: clamp(16px, calc(28 * var(--u)), 28px);
  }

  /* Products */
  .products__header {
    flex-wrap: wrap;
    gap: clamp(8px, calc(12 * var(--u)), 12px);
    align-items: baseline;
  }

  .products__title {
    font-size: clamp(24px, calc(36 * var(--u)), 36px);
    line-height: 1.15;
  }

  .products__body {
    padding: clamp(10px, calc(16 * var(--u)), 16px) var(--section-padding-x);
  }

  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card__image-wrap {
    height: clamp(140px, 44vw, 180px);
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
  }

  .product-card__badge {
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    height: auto;
    min-height: 0;
    max-width: calc(100% - 34px);
    font-family: var(--font-manrope);
    font-variant: normal;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 7px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card__heart {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
  }

  .product-card__heart svg {
    width: 14px;
    height: 14px;
  }

  .product-card__rating,
  .product-card__dots,
  .product-card__add-btn {
    display: none;
  }

  .product-card__info {
    padding: 10px;
    gap: 5px;
    min-height: 0;
  }

  .product-card__category {
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: 1px;
  }

  .product-card__info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .product-card__name {
    font-size: 12px;
    line-height: 1.35;
    width: 100%;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__price {
    font-size: 13px;
    line-height: 1.2;
    align-self: flex-start;
  }

  /* Categories — compact explore banners */
  .category-card {
    height: clamp(120px, 32vw, 144px);
  }

  .category-card__title {
    padding: 12px 6px 12px var(--section-padding-x);
    font-size: 16px;
    line-height: 1.22;
  }

  .category-card__bg-text {
    right: clamp(64px, 20vw, 92px);
    font-size: clamp(44px, 14vw, 64px) !important;
  }

  .category-card__image--oils {
    width: clamp(88px, 26vw, 112px);
    max-height: 100px;
  }

  .category-card__image--crystals {
    width: clamp(80px, 24vw, 104px);
    max-height: 92px;
    transform: rotate(-20deg);
  }

  .category-card__image--gemstones {
    width: clamp(88px, 26vw, 110px);
    max-height: 96px;
  }

  .featured {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  .featured__content {
    flex: 1 1 0;
    min-width: 0;
    padding: 20px 0;
    background: #f3eddf;
    align-items: stretch;
    justify-content: flex-start;
  }

  .featured__inner {
    padding: 0 10px 0 var(--section-padding-x);
    gap: 12px;
  }

  .featured__section-title {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .featured__body {
    gap: 12px;
  }

  .featured__details {
    gap: 10px;
  }

  .featured__meta {
    gap: 6px;
  }

  .featured__label {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1.4px;
  }

  .featured__title {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    padding-top: 0;
  }

  .featured__list {
    padding-top: 2px;
  }

  .featured__list-item {
    padding: 8px 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .featured__list-arrow {
    width: 11px;
    height: 11px;
  }

  .featured__desc {
    font-size: 12px;
    line-height: 1.45;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .featured__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .featured__btn {
    flex: none;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .featured__nav {
    gap: 8px;
  }

  .featured__nav-btn {
    width: 36px;
    height: 36px;
  }

  .featured__nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .featured__image {
    flex: 0 0 clamp(132px, 34vw, 160px);
    width: clamp(132px, 34vw, 160px);
    min-width: clamp(132px, 34vw, 160px);
    min-height: 0;
    height: auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px 16px 4px;
    margin-right: var(--section-padding-x);
    background: #ffffff;
    box-sizing: border-box;
  }

  .featured__product-photo {
    width: 100%;
    height: auto;
    max-height: min(200px, 46vw);
    object-fit: contain;
    object-position: center;
  }

  /* Intention — Shop by Intention */
  .intention {
    padding: 36px 0 32px;
    overflow: hidden;
  }

  .intention__dots {
    width: min(140px, 36vw);
    right: -6px;
    top: 4px;
    opacity: 0.9;
  }

  .intention__header {
    width: 100%;
    max-width: none;
    margin: 0 auto 24px;
    padding: 0 var(--section-padding-x);
    gap: 16px;
    box-sizing: border-box;
  }

  .intention__intro {
    gap: 12px;
  }

  .intention__title {
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .intention__desc {
    display: none;
  }

  .intention__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 24px;
    max-width: none;
    width: 100%;
    padding-bottom: 4px;
  }

  .intention__tabs::-webkit-scrollbar {
    display: none;
  }

  .intention__tab {
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 1.2px;
    padding-bottom: 10px;
  }

  .intention__featured {
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    gap: 0;
  }

  .intention__featured-content {
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 0 var(--section-padding-x) 20px;
    gap: 12px;
    box-sizing: border-box;
  }

  .intention__featured-label {
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 1.2px;
    white-space: normal;
    max-width: none;
  }

  .intention__featured-title {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: none;
  }

  .intention__featured-text {
    font-size: 13px;
    line-height: 1.5;
    max-width: none;
  }

  .intention__featured-stones {
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
    max-width: none;
  }

  .intention__featured-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    max-width: none;
  }

  .intention__btn {
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 1.2px;
  }

  .intention__featured-image {
    flex: none;
    width: 100%;
    height: 52vw;
    min-height: 200px;
    max-height: 280px;
  }

  /* Ritual & stats */
  .ritual {
    gap: 0;
  }

  .ritual__intro {
    padding: 32px var(--section-padding-x) 36px;
    gap: 16px;
  }

  .ritual__label {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 1.4px;
  }

  .ritual__row {
    flex-direction: column;
    gap: 16px;
  }

  .ritual__title {
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: none;
  }

  .ritual__title em {
    font-size: 28px;
    line-height: 1.12;
  }

  .ritual__side {
    flex: none;
    width: 100%;
    max-width: none;
    gap: 16px;
    padding-top: 0;
  }

  .ritual__text {
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
  }

  .ritual__btn {
    height: 44px;
    padding: 12px 20px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats__item {
    min-height: 0;
    padding: 20px 14px;
    border-right: 1px solid rgba(58, 36, 24, 0.12);
    border-bottom: 1px solid rgba(58, 36, 24, 0.12);
  }

  .stats__item:nth-child(2n) {
    border-right: none;
  }

  .stats__item:nth-child(n + 3) {
    border-bottom: none;
  }

  .stats__number {
    font-size: 36px;
    line-height: 0.95;
    letter-spacing: -1.5px;
  }

  .stats__label {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 1.2px;
    margin-top: 8px;
  }

  .stats__desc {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* CTA Quiz */
  .cta-quiz__media {
    height: clamp(180px, 45vw, 220px);
  }

  .cta-quiz__content {
    height: auto;
    min-height: 0;
    padding: 28px var(--section-padding-x) 32px;
    gap: 12px;
  }

  .cta-quiz__label {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 1.4px;
  }

  .cta-quiz__title {
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: none;
  }

  .cta-quiz__subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  .cta-quiz__question {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: none;
  }

  .cta-quiz__intro,
  .cta-quiz__panel,
  .cta-quiz__result {
    gap: 10px;
    width: 100%;
  }

  .cta-quiz__btn {
    min-width: 0;
    width: 100%;
    max-width: 280px;
    height: 44px;
    padding: 0 20px;
    font-size: 11px;
    letter-spacing: 1.2px;
    margin-top: 8px;
  }

  .cta-quiz__btn svg {
    width: 14px;
    height: 14px;
  }

  .cta-quiz__options {
    width: 100%;
    max-width: none;
    gap: 10px;
    margin-top: 12px;
  }

  .cta-quiz__option {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 1px;
  }

  .cta-quiz__back {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 14px;
  }

  /* Testimonials / Reviews */
  .testimonials {
    padding: 40px var(--section-padding-x);
    gap: 24px;
  }

  .testimonials__header {
    gap: 10px;
    max-width: none;
  }

  .testimonials__label {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 1.4px;
  }

  .testimonials__title {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .testimonials__carousel {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
  }

  .testimonials__content {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 0;
  }

  .testimonials__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .testimonials__arrow--prev {
    grid-column: 1;
  }

  .testimonials__arrow--next {
    grid-column: 3;
  }

  .testimonials__arrow svg {
    width: 22px;
    height: 22px;
  }

  .testimonials__stars {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  .testimonials__quote {
    font-size: 18px;
    line-height: 1.45;
    max-width: none;
  }

  .testimonials__author {
    margin-top: 18px;
    gap: 12px;
  }

  .testimonials__avatar {
    width: 44px;
    height: 44px;
  }

  .testimonials__name {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 1.2px;
  }

  .testimonials__role {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Footer */
  .footer__inner {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }

  /* Shop toolbar only — hero handled in shop.css */
  .shop-toolbar__count {
    font-size: clamp(16px, calc(20 * var(--u)), 20px);
  }

  .shop-filter-drawer__panel {
    width: 100%;
    max-width: 100%;
  }
}

/* ─── Small mobile ─── */
@media (max-width: 480px) {
  .header__actions {
    gap: 10px;
  }

  .header__icons {
    gap: 8px;
  }

  .header__login-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__buttons .btn--primary,
  .hero__buttons .btn--ghost {
    width: 100%;
  }

  .products__grid {
    gap: 10px;
  }

  .product-card__image-wrap {
    height: clamp(130px, 42vw, 160px);
  }

  .product-card__name {
    font-size: 11px;
  }

  .product-card__price {
    font-size: 12px;
  }

  .product-card__badge {
    font-size: 6px;
  }

  .category-card {
    height: clamp(112px, 30vw, 132px);
  }

  .category-card__title {
    padding: 10px 4px 10px var(--section-padding-x);
    font-size: 14px;
    line-height: 1.2;
  }

  .category-card__bg-text {
    right: clamp(56px, 18vw, 80px);
    font-size: clamp(38px, 12vw, 52px) !important;
  }

  .category-card__image--oils {
    width: clamp(80px, 24vw, 100px);
    max-height: 88px;
  }

  .category-card__image--crystals {
    width: clamp(72px, 22vw, 92px);
    max-height: 84px;
  }

  .category-card__image--gemstones {
    width: clamp(80px, 24vw, 98px);
    max-height: 88px;
  }

  .featured__section-title {
    font-size: 18px;
  }

  .featured__title {
    font-size: 16px;
  }

  .featured__image {
    flex: 0 0 clamp(120px, 32vw, 144px);
    width: clamp(120px, 32vw, 144px);
    min-width: clamp(120px, 32vw, 144px);
    padding: 12px 8px 12px 4px;
  }

  .featured__product-photo {
    max-height: min(180px, 42vw);
  }

  .featured__btn {
    height: 38px;
    font-size: 9px;
  }

  .ritual__title {
    font-size: 24px;
  }

  .ritual__title em {
    font-size: 24px;
  }

  .ritual__text {
    font-size: 13px;
  }

  .stats__number {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .stats__item {
    padding: 16px 12px;
  }

  .stats__desc {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }

  .intention__tabs {
    gap: 20px;
  }

  .intention__title {
    font-size: 22px;
  }

  .intention__featured-title {
    font-size: 24px;
  }

  .intention__featured-text,
  .intention__featured-stones {
    font-size: 12px;
  }

  .intention__dots {
    width: min(120px, 32vw);
    right: -4px;
  }

  .intention__featured-image {
    min-height: 180px;
    max-height: 240px;
  }

  .cta-quiz__title {
    font-size: 22px;
  }

  .cta-quiz__question {
    font-size: 20px;
  }

  .cta-quiz__subtitle {
    font-size: 13px;
  }

  .testimonials {
    padding: 32px var(--section-padding-x);
    gap: 20px;
  }

  .testimonials__title {
    font-size: 22px;
  }

  .testimonials__quote {
    font-size: 16px;
    line-height: 1.4;
  }

  .testimonials__carousel {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .testimonials__arrow {
    width: 32px;
    height: 32px;
  }

  .testimonials__arrow svg {
    width: 18px;
    height: 18px;
  }

  .cta-quiz__option {
    min-width: 100%;
  }
}
