/* ============================================
   ALYA BUTIK - Mobile polish layer
   Focus: Instagram traffic, fast thumb use, compact product discovery
   ============================================ */

@media (max-width: 820px) {
  :root {
    --nav-height: 68px;
    --section-pad-x: clamp(1rem, 4.8vw, 1.35rem);
    --section-pad-y: 3.75rem;
  }

  html {
    scroll-padding-top: var(--nav-height);
  }

  body {
    text-rendering: optimizeLegibility;
  }

  .nav {
    height: var(--nav-height);
    padding: 0 clamp(0.85rem, 3.8vw, 1.15rem);
  }

  .nav.scrolled {
    height: 60px;
  }

  :root:has(.nav.scrolled) {
    --nav-height: 60px;
  }

  .nav__logo {
    gap: 0.45rem;
    min-width: 0;
    font-size: clamp(0.98rem, 4.6vw, 1.12rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .nav__logo-mark {
    width: 31px;
    height: 31px;
    object-fit: cover;
    border-radius: 9px;
  }

  .nav__icons {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .nav__icon {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(26, 23, 20, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
  }

  .nav--prestige .nav__icon {
    border-color: rgba(184, 150, 90, 0.16);
    background: rgba(245, 239, 230, 0.04);
  }

  .cart-badge,
  .fav-badge {
    top: -3px;
    right: -3px;
  }

  .mobile-menu {
    top: var(--nav-height);
    padding: 0.65rem var(--section-pad-x) 1rem;
    box-shadow: 0 18px 36px rgba(26, 23, 20, 0.09);
  }

  .mobile-menu__links {
    gap: 0;
  }

  .mobile-menu__links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(26, 23, 20, 0.07);
    letter-spacing: 0.12em;
  }

  .btn,
  .btn--add-to-cart,
  .checkout-submit,
  .cart-checkout-action {
    min-height: 46px;
    width: 100%;
    padding: 0.9rem 1rem;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
  }

  .hero {
    height: auto;
    min-height: calc(100svh - var(--nav-height));
    grid-template-columns: 1fr;
  }

  .hero__left {
    min-height: calc(100svh - var(--nav-height));
    justify-content: flex-end;
    padding: calc(var(--nav-height) + 1.25rem) var(--section-pad-x) 3rem;
    background:
      linear-gradient(180deg, rgba(250, 247, 242, 0.68) 0%, rgba(250, 247, 242, 0.98) 58%),
      radial-gradient(circle at 88% 12%, rgba(184, 150, 90, 0.18), transparent 34%),
      var(--cream);
  }

  .hero__left::after,
  .hero__right,
  .hero__scroll {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.75rem, 15vw, 4.15rem);
    line-height: 0.96;
    letter-spacing: 0;
    margin-bottom: 1.15rem;
  }

  .hero__desc {
    max-width: 32rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.72;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.55rem;
    padding-bottom: 1.1rem;
  }

  .section-title {
    font-size: clamp(2.05rem, 10.5vw, 2.9rem);
    line-height: 1;
  }

  .eyebrow {
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.18em;
  }

  .eyebrow--line::before {
    width: 28px;
  }

  .collections,
  .prestige-section,
  .newsletter {
    padding: var(--section-pad-y) var(--section-pad-x);
  }

  .products-grid,
  .prestige-catalog-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.72rem;
  }

  .product-card,
  .prestige-catalog-card,
  .prestige-card {
    -webkit-tap-highlight-color: transparent;
  }

  .product-card:hover,
  .prestige-catalog-card:hover,
  .prestige-card:hover {
    transform: none;
  }

  .product-card__image,
  .prestige-catalog-card__image {
    margin-bottom: 0.72rem;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(26, 23, 20, 0.08);
  }

  .product-card__image-inner,
  .product-card:hover .product-card__image-inner {
    transform: none;
  }

  .product-card__tag,
  .prestige-catalog-card__tag {
    top: 0.5rem;
    left: 0.5rem;
    max-width: calc(100% - 1rem);
    padding: 0.3rem 0.46rem;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    line-height: 1.15;
    white-space: normal;
  }

  .card-fav-btn {
    top: 0.45rem;
    right: 0.45rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(26, 23, 20, 0.1);
  }

  .card-quickview-btn {
    display: none;
  }

  .card-add-btn {
    min-height: 38px;
    padding: 0.65rem 0.45rem;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    line-height: 1.1;
  }

  .product-card__info,
  .prestige-catalog-card__info {
    padding: 0 0.08rem;
  }

  .product-card__category,
  .prestige-catalog-card__cat {
    margin-bottom: 0.25rem;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
  }

  .product-card__name,
  .prestige-catalog-card__name,
  .prestige-card__name {
    font-size: 1rem;
    line-height: 1.16;
    margin-bottom: 0.32rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .price,
  .product-card__price,
  .prestige-catalog-card__price,
  .prestige-card__price {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .brand-split {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 340px;
    padding: 2rem var(--section-pad-x);
  }

  .brand-panel__name {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .prestige-header {
    gap: 1.25rem;
    margin-bottom: 1.6rem;
  }

  .prestige-grid,
  .prestige-grid--mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    height: auto;
  }

  .prestige-grid--mosaic .prestige-card:first-child,
  .prestige-grid--mosaic .prestige-card {
    grid-row: auto;
    aspect-ratio: 3 / 4;
  }

  .prestige-card__info {
    padding: 1rem 0.85rem;
  }

  .newsletter {
    gap: 1.5rem;
  }

  .newsletter__form .btn,
  .newsletter button[type="submit"] {
    align-self: stretch !important;
  }

  .footer {
    padding: 3.25rem var(--section-pad-x) 2rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .footer__brand-desc {
    max-width: none;
  }

  .footer__bottom {
    align-items: flex-start;
    text-align: left;
  }

  .footer__socials {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
  }
}

@media (max-width: 820px) {
  .catalog-hero {
    padding: calc(var(--nav-height) + 2rem) var(--section-pad-x) 2rem;
  }

  .catalog-breadcrumb,
  .product-breadcrumb {
    margin-bottom: 1.25rem;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .catalog-breadcrumb::-webkit-scrollbar,
  .product-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .catalog-hero__title {
    font-size: clamp(2.3rem, 12vw, 3.25rem);
    letter-spacing: 0;
  }

  .catalog-hero__desc {
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .catalog-toolbar {
    top: var(--nav-height);
    padding: 0.7rem var(--section-pad-x);
    gap: 0.65rem;
  }

  .catalog-toolbar__row {
    gap: 0.65rem;
  }

  .catalog-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-count {
    font-size: 0.68rem;
  }

  .filter-pills,
  .extra-filter-btns {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar,
  .extra-filter-btns::-webkit-scrollbar {
    display: none;
  }

  .filter-pill,
  .filter-toggle-btn,
  .extra-filter-btn,
  .sort-select {
    min-height: 38px;
    flex: 0 0 auto;
    letter-spacing: 0.08em;
  }

  .catalog-filter-panel.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    max-height: 56svh;
    overflow-y: auto;
    align-items: stretch;
  }

  .catalog-section {
    padding: 1.25rem var(--section-pad-x) var(--section-pad-y);
  }

  #load-more-wrap {
    padding: 0 var(--section-pad-x) var(--section-pad-y);
  }

  .load-more-btn {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 820px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-image-col {
    position: relative;
    top: 0;
    height: min(76vw, 360px);
    min-height: 260px;
    max-height: none;
  }

  .product-image-col__tag {
    top: 1rem;
    left: 1rem;
  }

  .product-info-col {
    padding: 1.65rem var(--section-pad-x) 2rem;
  }

  .product-name {
    font-size: clamp(2rem, 10vw, 2.65rem);
    letter-spacing: 0;
  }

  .product-price {
    font-size: 1.45rem;
  }

  .product-divider {
    margin: 1.35rem 0;
  }

  .option-buttons {
    gap: 0.55rem;
  }

  .option-btn,
  .color-swatch--text {
    min-height: 42px;
    padding: 0.65rem 0.9rem;
  }

  .color-swatch {
    width: 36px;
    height: 36px;
  }

  .product-buybar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin: 1.25rem calc(var(--section-pad-x) * -1) 0;
    padding: 0.6rem var(--section-pad-x) max(0.75rem, env(safe-area-inset-bottom));
    background: rgba(250, 247, 242, 0.94);
    border-top: 1px solid rgba(26, 23, 20, 0.1);
    box-shadow: 0 -16px 36px rgba(26, 23, 20, 0.1);
    backdrop-filter: blur(14px);
  }

  .page--prestige .product-buybar {
    background: rgba(33, 25, 35, 0.94);
    border-top-color: rgba(184, 150, 90, 0.18);
  }

  .product-buybar__price {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.15rem 0.6rem;
    margin-bottom: 0.4rem;
  }

  .product-buybar__price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--font-serif);
  }

  .product-buybar__price-row .price-old {
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: line-through;
  }

  .product-buybar__price-row .price-new {
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--warm-black);
  }

  .product-buybar__price-row .price-discount-badge {
    font-size: 0.66rem;
    padding: 0.2rem 0.5rem;
    animation: buybar-pulse 1.8s ease-in-out infinite;
  }

  .product-buybar__installment {
    font-family: var(--font-sans), Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-light, var(--gold));
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  @keyframes buybar-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
  }

  @media (prefers-reduced-motion: reduce) {
    .product-buybar__price-row .price-discount-badge {
      animation: none;
    }
  }

  .btn--fav-product {
    width: 48px;
    min-height: 48px;
  }

  .product-description {
    margin-top: 1.75rem;
    padding-top: 1.4rem;
    line-height: 1.78;
  }

  .product-tabs__nav {
    margin-inline: calc(var(--section-pad-x) * -1);
    padding-inline: var(--section-pad-x);
  }

  .product-tab-btn {
    min-height: 44px;
    padding: 0.8rem 0.95rem;
    letter-spacing: 0.08em;
  }

  .related-section {
    padding: 3.25rem var(--section-pad-x);
  }

  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .cart-page,
  .checkout-page {
    padding: calc(var(--nav-height) + 2rem) var(--section-pad-x) var(--section-pad-y);
  }

  .cart-header,
  .checkout-header {
    margin-bottom: 1.6rem;
  }

  .cart-title,
  .checkout-title {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
    letter-spacing: 0;
  }

  .cart-layout,
  .checkout-layout {
    gap: 1.35rem;
  }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.8rem 0.85rem;
    padding: 1rem 0;
  }

  .cart-item__thumb {
    grid-row: 1 / 3;
    width: 74px;
    height: 92px;
    border-radius: 8px;
  }

  .cart-item__name {
    white-space: normal;
    line-height: 1.18;
  }

  .cart-item__controls {
    grid-column: 2;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) 34px;
    gap: 0.6rem;
  }

  .qty-btn,
  .qty-value {
    height: 36px;
    line-height: 36px;
  }

  .cart-summary {
    position: static;
  }

  .checkout-summary {
    position: static;
  }

  .cart-summary__title {
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .checkout-panel {
    padding-top: 1.35rem;
  }

  .checkout-panel__head {
    margin-bottom: 1.6rem;
  }

  .checkout-panel h2 {
    font-size: 1.22rem;
  }

  .checkout-grid--2,
  .pickup-branch-grid {
    grid-template-columns: 1fr;
  }

  .checkout-field input,
  .checkout-field textarea,
  .checkout-field select {
    min-height: 44px;
    font-size: 0.92rem;
    padding: 0.85rem 0.9rem;
  }

  .checkout-method,
  .pickup-branch-card,
  .checkout-check--legal {
    padding: 0.9rem;
    border-radius: 8px;
  }

  .checkout-method {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .checkout-method em {
    grid-column: 2;
    justify-self: start;
  }

  .pickup-branch-card a {
    width: 100%;
    min-height: 38px;
    justify-content: center;
  }

  .checkout-legal-box {
    padding: 0.85rem;
    border-radius: 8px;
  }

  .checkout-check {
    gap: 0.6rem;
  }

  .checkout-check input {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 380px) {
  .nav__logo {
    font-size: 0.92rem;
    letter-spacing: 0.05em;
  }

  .nav__logo-mark {
    width: 28px;
    height: 28px;
  }

  .nav__icon {
    width: 31px;
    height: 31px;
  }

  .nav__icons {
    gap: 0.25rem;
  }

  .products-grid,
  .prestige-catalog-grid,
  .related-grid,
  .prestige-grid,
  .prestige-grid--mosaic {
    gap: 0.85rem 0.58rem;
  }

  .product-card__name,
  .prestige-catalog-card__name,
  .prestige-card__name {
    font-size: 0.94rem;
  }

  .card-add-btn {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .catalog-card-enter,
  .product-card,
  .product-card__image-inner,
  .prestige-catalog-card,
  .prestige-card,
  .btn,
  .nav,
  .mobile-menu,
  .promo-ticker__track,
  .hero .eyebrow--line,
  .hero-title,
  .hero__desc,
  .hero__actions,
  .hero__product-image {
    animation: none !important;
    transition: none !important;
  }
}
/* PayTR review polish: branch/contact confidence on small screens */
@media (max-width: 820px) {
  .contact-body {
    grid-template-columns: 1fr;
  }

  .contact-form-area,
  .contact-info {
    padding: clamp(1.2rem, 5vw, 1.8rem);
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-branch-card a,
  .contact-info__text a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    word-break: break-word;
  }
}
/* Homepage hero product image */
@media (max-width: 820px) {
  .hero {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__left {
    min-height: auto;
    justify-content: flex-start;
    padding: calc(var(--nav-height) + 1.05rem) var(--section-pad-x) 1.25rem;
  }

  .hero__left::after,
  .hero__scroll {
    display: none;
  }

  .hero__right {
    display: flex;
    min-height: 58svh;
    height: 58svh;
    order: 2;
    border-top: 1px solid rgba(26, 23, 20, 0.07);
  }

  .hero__image-bg {
    position: absolute;
    inset: 0;
  }

  .hero__product-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 12%;
    transform: translateY(1.8rem) scale(0.965);
    transform-origin: center top;
  }

  .hero__badge {
    right: 1rem;
    bottom: 1.6rem;
    padding: 0.85rem 1rem;
    max-width: min(220px, calc(100vw - 2rem));
  }

  .hero__badge-label {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .hero__badge-value {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .hero__right {
    min-height: 54svh;
    height: 54svh;
  }

  .hero__product-image {
    width: 100%;
    height: 100%;
  }
}






/* Product detail mobile final QA */
@media (max-width: 820px) {
  .product-image-col {
    height: min(82vw, 430px);
    min-height: 290px;
  }
}

@media (max-width: 420px) {
  .product-image-col {
    height: min(86vw, 380px);
    min-height: 285px;
  }
}
