/* Storefront mobile layer. This file contains no desktop rules. */
@media (max-width: 760px) {
  body { padding-bottom: 76px; font-size: 17px; line-height: 1.5; background: #fbfaf8; }
  .container { width: calc(100% - 28px); }
  .header { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(17,17,17,.025); }
  .header__inner {
    min-height: 0;
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 4px 8px;
  }
  .logo {
    align-self: center;
    font-size: clamp(24px,7vw,30px);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .burger {
    width: 40px;
    height: 42px;
    grid-column: 3;
    grid-row: 1;
    border: 0;
    border-radius: 10px;
    background: transparent;
  }
  .burger span { width: 24px; height: 2px; }
  .mobile-header-shortcuts {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .mobile-header-shortcut {
    width: 36px;
    height: 42px;
    position: relative;
    display: grid;
    place-items: center;
  }
  .mobile-header-shortcut::before {
    width: 24px;
    height: 24px;
    display: block;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .mobile-header-shortcut span {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    position: absolute;
    top: 1px;
    right: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
  }
  .nav { border-radius: 14px; padding: 8px; }
  .nav a { min-height: 50px; padding: 13px 16px; font-size: 17px; }
  .header-actions {
    display: none;
  }
  .header-actions .header__btn { display: none; }
  .header-icon-link {
    min-width: 0;
    min-height: 58px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #ebe8e3;
    border-radius: 22px;
    background: #fff;
    color: #111;
    font-size: 0;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(24,18,12,.025);
  }
  .header-icon-link::before {
    width: 25px;
    height: 25px;
    display: block;
    flex: 0 0 25px;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .header-icon-link--favorites::before,
  .mobile-header-shortcut--favorites::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E");
  }
  .header-icon-link--cart::before,
  .mobile-header-shortcut--cart::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l1 13H5L6 8Z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E");
  }
  .header-icon-link--profile::before,
  .mobile-header-shortcut--profile::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
  }
  .header-icon-link--favorites::after { content: "Обране"; font-size: 15px; }
  .header-icon-link--cart::after { content: "Кошик"; font-size: 15px; }
  .header-icon-link--profile::after { content: "Профіль"; font-size: 15px; }
  .header-icon-link span {
    min-width: 21px;
    height: 21px;
    margin-left: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 11px;
  }
  .nav { top: calc(100% - 12px); left: 14px; right: 14px; z-index: 20; }

  .hero { padding: 14px 0 26px; }
  .hero__inner {
    min-height: 470px;
    padding: 0;
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    border: 1px solid #ebe8e3;
    border-radius: 24px;
    background:
      linear-gradient(
        90deg,
        #f7f3ed 0%,
        rgba(247,243,237,.99) 28%,
        rgba(247,243,237,.96) 40%,
        rgba(247,243,237,.84) 51%,
        rgba(247,243,237,.58) 64%,
        rgba(247,243,237,.26) 78%,
        rgba(247,243,237,.07) 91%,
        rgba(247,243,237,0) 100%
      ),
      var(--mobile-hero-image, url("../assets/mobile-hero-model.png"));
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, auto 100%;
  }
  .hero__inner::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    content: "";
    background: linear-gradient(
      90deg,
      rgba(247,243,237,.22) 0%,
      rgba(247,243,237,.12) 46%,
      rgba(247,243,237,0) 82%
    );
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 44%, transparent 82%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 44%, transparent 82%);
  }
  .hero__content {
    width: 63%;
    min-height: 470px;
    padding: 26px 0 22px 22px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero .label { margin-bottom: 15px; color: #a78d70; font-size: 12px; }
  .hero h1 {
    margin-bottom: 15px;
    max-width: 100%;
    font-size: clamp(27px,7.4vw,33px);
    line-height: 1.06;
  }
  .hero__text { margin-bottom: 16px; color: #66615c; font-size: 14px; line-height: 1.45; }
  .hero__actions { width: 100%; margin-top: auto; display: grid; gap: 10px; }
  .hero__actions .btn--light { display: none; }
  .hero__actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 18px;
    font-size: 14px;
  }
  .hero__image { display: none; }
  .page-hero, .product-page { padding-top: 34px; }
  .page-hero h1 { font-size: clamp(38px,11vw,52px); line-height: 1.02; }
  .page-hero p { font-size: 17px; line-height: 1.55; }
  .btn, .filter-btn, .product-card__btn { min-height: 50px; font-size: 16px; }
  .catalog-filter { margin-bottom: 22px; gap: 10px; scrollbar-width: none; }
  .catalog-filter::-webkit-scrollbar { display: none; }
  .filter-btn { min-height: 46px; padding: 0 18px; }
  .product-grid, .product-grid--catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-card { min-width: 0; border-radius: 15px; box-shadow: 0 10px 30px rgba(25,20,15,.035); }
  .product-card__image { height: clamp(155px,42vw,205px); padding: 12px; font-size: 14px; }
  .product-card__image--photo span { padding: 5px 8px; font-size: 10px; }
  .product-favorite-button { width: 44px; height: 44px; top: 10px; right: 10px; font-size: 22px; }
  .product-card__body { padding: 12px; }
  .product-card__body h3 { min-height: 38px; margin-bottom: 5px; font-size: 15px; line-height: 1.25; }
  .product-card__body p {
    display: -webkit-box;
    margin-bottom: 7px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .product-card__body strong { margin-bottom: 9px; font-size: 17px; }
  .product-card__actions { gap: 7px; }
  .product-card__btn { min-height: 40px; padding: 7px 6px; font-size: 13px; text-align: center; }
  .product-page__inner { gap: 16px; }
  .product-gallery__main { height: min(112vw,520px); border-radius: 16px; }
  .product-gallery__thumb { height: 94px; border-radius: 12px; }
  .product-info { padding: 20px; border-radius: 16px; }
  .product-info h1 { font-size: 36px; line-height: 1.06; }
  .product-info__desc, .product-details li { font-size: 16px; }
  .product-price { font-size: 30px; }
  .size-list button { min-height: 52px; font-size: 16px; }
  .product-actions .btn { min-height: 52px; }
  .category-grid, .benefits__grid, .steps-grid, .info-grid, .contacts-grid, .form-layout, .auth-layout, .auth-grid { grid-template-columns: 1fr; }
  .category-card, .benefit-card, .step-card, .info-card, .contact-card, .contact-form, .faq-item, .auth-card { border-radius: 16px; padding: 22px; }
  .contact-list li, .info-card li { min-height: 58px; font-size: 16px; }
  .contact-form label { font-size: 16px; }
  .contact-form input, .contact-form textarea, .auth-card input { min-height: 54px; font-size: 16px; }
  .auth-page { padding: 32px 0 50px; }
  .auth-layout, .auth-grid { gap: 18px; }
  .auth-copy h1 { font-size: 40px; }
  .auth-card h2 { font-size: 28px; }
  .social-login { grid-template-columns: 1fr; }
  .social-login button { min-height: 50px; font-size: 15px; }

  .mobile-bottom-nav {
    min-height: 70px;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #ebe8e3;
    border-radius: 18px 18px 0 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 28px rgba(25,20,15,.06);
    backdrop-filter: blur(16px);
  }
  .mobile-bottom-nav__item {
    min-width: 0;
    min-height: 56px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 12px;
    color: #4f4b47;
    font-size: 10px;
    line-height: 1;
  }
  .mobile-bottom-nav__item.is-active { background: #f5efe8; color: #111; }
  .mobile-bottom-nav__icon {
    width: 23px;
    height: 23px;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .mobile-bottom-nav__item--home .mobile-bottom-nav__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v11h14V10M9 21v-6h6v6'/%3E%3C/svg%3E");
  }
  .mobile-bottom-nav__item--catalog .mobile-bottom-nav__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  }
  .mobile-bottom-nav__item--favorites .mobile-bottom-nav__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E"); }
  .mobile-bottom-nav__item--cart .mobile-bottom-nav__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l1 13H5L6 8Z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E"); }
  .mobile-bottom-nav__item--profile .mobile-bottom-nav__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
  .mobile-bottom-nav__item b {
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #dfc09e;
    color: #111;
    font-size: 9px;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .header__inner { gap: 4px 2px; }
  .logo { font-size: 24px; }
  .burger { width: 36px; height: 40px; }
  .mobile-header-shortcut { width: 31px; }
  .mobile-header-shortcuts { gap: 0; }
  .mobile-header-shortcut::before { width: 24px; height: 24px; }
  .mobile-header-shortcut span { right: -1px; }
  .product-grid, .product-grid--catalog { gap: 8px; }
  .product-card__body { padding: 11px; }
  .product-card__body h3 { font-size: 15px; }
  .product-card__btn { font-size: 13px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 96px; }

  .categories {
    padding: 52px 0 34px;
    overflow: hidden;
    background: #faf8f4;
  }
  .categories .container {
    width: 100%;
  }
  .categories .section-heading {
    width: calc(100% - 28px);
    margin: 0 auto 22px;
  }
  .categories .section-heading .label {
    margin-bottom: 10px;
    color: #b59a78;
    font-size: 13px;
    letter-spacing: .08em;
  }
  .categories .section-heading h2 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
  }
  .category-tabs {
    width: 100%;
    padding: 0 14px 4px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar,
  .category-slider::-webkit-scrollbar { display: none; }
  .category-tab {
    min-height: 50px;
    flex: 0 0 auto;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    padding: 0 21px;
    color: #111;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }
  .category-tab.is-active {
    border-color: #050505;
    background: #050505;
    color: #fff;
  }
  .category-grid.category-slider {
    width: 100%;
    margin-top: 22px;
    padding: 0 14px 8px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-slider .category-card {
    width: min(82vw, 352px);
    min-width: min(82vw, 352px);
    min-height: 0;
    padding: 0;
    display: block;
    flex: 0 0 min(82vw, 352px);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(35,27,19,.08);
    scroll-snap-align: start;
  }
  .category-slider .category-card:hover { transform: none; }
  .category-slider .category-slide__image {
    height: clamp(270px, 76vw, 326px);
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--category-bg, #f3eee7);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .category-slider .category-slide__image::after {
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    content: "";
    background: linear-gradient(transparent, rgba(10,8,6,.34));
    pointer-events: none;
  }
  .category-slider .category-slide__number {
    min-width: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 11px;
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    color: #9a7a4f;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
  }
  .category-slider .category-slide__visual-label {
    margin: 0;
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 2;
    display: block !important;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }
  .category-slider .category-slide__content {
    min-height: 138px;
    padding: 20px 20px 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
  }
  .category-slider .category-slide__content h3 {
    margin: 0 0 6px;
    font-size: 27px;
    line-height: 1.1;
  }
  .category-slider .category-slide__content p {
    margin: 0;
    color: #6b6b6b;
    font-size: 17px;
    line-height: 1.35;
  }
  .category-slider .category-slide__arrow {
    width: 54px;
    height: 54px;
    margin: 0;
    flex: 0 0 54px;
    display: grid !important;
    place-items: center;
    border-radius: 50%;
    background: #f1e8dc;
    color: #050505;
    font-size: 27px;
  }
  .category-dots {
    margin: 18px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .category-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #e8e5df;
    padding: 0;
  }
  .category-dot.is-active { background: #c8a77a; }
  .category-catalog-link {
    width: calc(100% - 28px);
    min-height: 62px;
    margin: 0 auto;
    border: 1px solid rgba(200,167,122,.65);
    border-radius: 19px;
    background: rgba(255,255,255,.72);
    padding: 0 20px;
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
  }
  .category-catalog-link__icon,
  .category-catalog-link__arrow { font-size: 24px; }
  .category-catalog-link__arrow { justify-self: end; }

  .mobile-header-shortcut span,
  .header-icon-link span,
  .mobile-bottom-nav__item b {
    background: #d8b98c !important;
    color: #111 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
  }
}
