/* Inner pages — professional mobile layouts (loads after responsive.css) */

/* ── Shop / Category ── */
@media (min-width: 769px) {
  .shop-sidebar__drawer > summary.shop-sidebar__drawer-trigger {
    display: none;
  }

  .shop-sidebar__drawer {
    display: block;
  }
}

@media (max-width: 768px) {
  .shop-page .shop-main {
    padding: 16px 0 36px;
  }

  .shop-bc {
    font-size: 10px;
    letter-spacing: 0.08em;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .shop-bc::-webkit-scrollbar {
    display: none;
  }

  .shop-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
  }

  .shop-header__title {
    font-size: var(--heading-lg);
    line-height: 1.2;
  }

  .shop-header__count {
    font-size: 13px;
    margin-top: 4px;
  }

  .shop-toolbar {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    gap: 10px;
  }

  .shop-toolbar__label {
    font-size: 10px;
    flex-shrink: 0;
  }

  .shop-toolbar__select {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    font-size: 14px;
  }

  .shop-sidebar {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    position: static;
  }

  .shop-sidebar__drawer {
    background: var(--color-white);
    border: 1px solid var(--color-border-accent);
    margin-bottom: 16px;
  }

  .shop-sidebar__drawer-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-navy);
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .shop-sidebar__drawer-trigger::-webkit-details-marker {
    display: none;
  }

  .shop-sidebar__drawer-trigger::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-navy);
    border-bottom: 2px solid var(--color-navy);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.7;
  }

  .shop-sidebar__drawer[open] > .shop-sidebar__drawer-trigger::after {
    transform: rotate(-135deg);
  }

  .shop-sidebar__inner {
    max-height: min(52vh, 360px);
    overflow-y: auto;
    padding: 0 12px 12px;
    overscroll-behavior: contain;
  }

  .shop-sidebar__title {
    display: none;
  }

  .shop-sidebar__link {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 14px;
  }

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

  .shop-page .product-card__title {
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* ── Product page ── */
@media (max-width: 768px) {
  .product-page .product-main {
    background: var(--color-white);
  }

  .product-main__inner {
    padding: 16px 20px 32px;
  }

  .product-gallery__main-wrap {
    max-width: none;
    margin: 0;
  }

  .product-gallery__thumbs {
    max-width: none;
    margin-top: 12px;
  }

  .product-details__config {
    grid-template-columns: 1fr;
  }

  .product-details__config-option:nth-child(3) {
    grid-column: auto;
  }

  .product-rec {
    padding: 8px 20px 32px;
  }

  .rec-card__title {
    font-size: 13px;
  }

  .rec-card__cta {
    height: 40px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .product-bc {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .product-bc::-webkit-scrollbar {
    display: none;
  }

  /* The page-wide sticky bar (.product-sticky-bar) keeps Add to Cart in reach on phones. */
}


/* ── Cart ── */
@media (max-width: 768px) {
  .cart-page .page-cart {
    padding: 16px 0 32px;
  }

  .cart-main__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .cart-main__count {
    font-size: 11px;
  }

  .order-summary {
    padding: 20px 16px;
    box-shadow: 0 -4px 20px rgba(44, 62, 80, 0.08);
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .order-summary__title {
    font-size: 18px;
  }

  .cart-addons__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
    padding: 14px;
  }

  .cart-item__img {
    width: 72px;
    height: 72px;
  }

  .cart-item--primary .cart-item__title {
    font-size: 15px;
  }

  .cart-item__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
  }

  .cart-item__controls {
    justify-content: space-between;
    width: 100%;
  }

  .cart-item .qty {
    height: var(--touch-target);
  }

  .cart-item .qty__btn {
    min-width: var(--touch-target);
    height: 100%;
  }

  .cart-item__remove {
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
  }

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

  .cart-page .page-cart {
    padding-bottom: 24px;
  }
}


/* ── Checkout & order review ── */
@media (max-width: 768px) {
  .checkout-page .page-checkout,
  .page-order {
    padding: 16px 0 32px;
  }

  .checkout-form-panel,
  .checkout-summary {
    padding: 20px 16px;
  }

  .checkout-form .input,
  .checkout-form .select {
    min-height: 48px;
    font-size: 16px;
  }

  .checkout-trust-strip {
    padding: 16px 16px 16px 52px;
  }

  .checkout-trust-strip::before {
    left: 16px;
    top: 18px;
    font-size: 20px;
  }

  .checkout-trust-strip__title {
    font-size: 16px;
  }

  .checkout-trust-strip__text {
    font-size: 13px;
  }

  .checkout-summary__item {
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
  }

  .checkout-summary__thumb {
    width: 56px;
    height: 56px;
  }

  .checkout-stepper {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }

  .checkout-stepper::-webkit-scrollbar {
    display: none;
  }

  .checkout-step {
    flex-shrink: 0;
    font-size: 9px;
  }

  .checkout-summary .btn--payment {
    font-size: 15px;
  }

  .order-header__title {
    font-size: var(--heading-xl);
    line-height: 1.15;
  }

  .order-panel {
    padding: 16px;
    margin-bottom: 12px;
  }

  .order-place-btn {
    width: 100%;
    min-height: var(--btn-height-mobile);
    font-size: 15px;
  }

  .order-header__breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .order-header__breadcrumb::-webkit-scrollbar {
    display: none;
  }
}


/* ── About ── */
@media (max-width: 768px) {
  .about-page .about-top {
    padding: 16px 0 0;
  }

  .about-hero {
    min-height: 0;
    padding: 48px 0 52px;
  }

  .about-hero__title {
    font-size: var(--heading-xl);
    line-height: 1.15;
  }

  .about-hero__tagline {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .about-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .about-hero__actions .btn {
    width: 100%;
    min-height: var(--btn-height-mobile);
    justify-content: center;
  }

  .about-intro,
  .about-values,
  .about-mission,
  .about-story,
  .about-cta {
    padding: var(--section-space-sm) 0;
  }

  .about-intro__lead {
    font-size: 20px;
  }

  .about-intro__body p {
    font-size: 15px;
    line-height: 1.65;
  }

  .about-values__head {
    margin-bottom: 28px;
    text-align: left;
  }

  .about-values__title {
    font-size: 22px;
    text-align: left;
  }

  .about-value-card {
    padding: 18px 16px;
  }

  .about-value-card__title {
    font-size: 13px;
  }

  .about-value-card__text {
    font-size: 14px;
  }

  .about-mission__panel {
    padding: 20px 16px;
  }

  .about-mission__title {
    font-size: 18px;
  }

  .about-story__title {
    font-size: 22px;
  }

  .about-cta {
    padding: 40px 0;
  }

  .about-cta__title {
    font-size: 18px;
  }

  .about-cta .btn {
    width: 100%;
    min-height: var(--btn-height-mobile);
  }
}


/* ── Contact ── */
@media (max-width: 768px) {
  .contact-page .contact-top {
    padding: 16px 0 0;
  }

  .contact-page-head {
    padding-bottom: 24px;
    border-bottom: none;
  }

  .contact-page-head__text {
    font-size: 14px;
  }

  .contact-section {
    padding: 0 0 var(--section-space-sm);
    background: var(--color-bg);
    border-bottom: none;
  }

  .contact-info__heading {
    font-size: 20px;
  }

  .contact-info__intro {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .contact-cards {
    gap: 10px;
  }

  .contact-card {
    padding: 0;
    border: none;
    background: transparent;
  }

  .contact-card:first-child .contact-card__value a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  .contact-card:first-child .contact-card__value a:hover {
    background: #243447;
    color: var(--color-white);
  }

  .contact-card:first-child .contact-card__label {
    display: none;
  }

  .contact-card:not(:first-child) {
    padding: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
  }

  .contact-form-panel {
    padding: 20px 16px;
    border: 1px solid var(--color-border-light);
  }

  .contact-form-panel__title {
    font-size: 18px;
  }

  .contact-form .input,
  .contact-form .select,
  .contact-form textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .contact-form__submit .btn--primary {
    width: 100%;
    min-height: var(--btn-height-mobile);
  }

  .contact-links__head {
    text-align: left;
  }

  .contact-links__title {
    font-size: 20px;
    text-align: left;
  }

  .contact-link-card {
    padding: 18px 16px;
  }

  .contact-cta {
    padding: 40px 0;
  }

  .contact-cta__title {
    font-size: 18px;
  }

  .contact-cta .btn {
    width: 100%;
    min-height: var(--btn-height-mobile);
  }
}


/* ── Auth pages ── */
@media (max-width: 768px) {
  .login-header,
  .signup-header {
    height: 72px;
  }

  .login-header__inner,
  .signup-header__inner {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .login-header__logo img,
  .signup-header__logo img {
    width: 104px;
    height: auto;
  }

  .login-footer__inner,
  .signup-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px var(--container-padding);
    text-align: center;
  }

  .login-footer__legal,
  .signup-footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .login-footer__legal a,
  .signup-footer__legal a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
