/* AUTO-GENERATED: storefront-tail.css — do not edit by hand.
 * Sources: storefront-overrides.css, storefront-mobile.css
 * Rebuild: node scripts/build-storefront-css.js
 */

/* === storefront-overrides.css === */
/* Soften legacy storefront.css so modular storefront-*.css can win */

:root {
  --brand: var(--color-brand, #d0473e);
  --ink: var(--color-ink, #1c1412);
  --muted: var(--color-ink-muted, #5c534f);
  --bg: var(--color-canvas, #fbf7f4);
  --line: var(--color-line, #e8ddd8);
  --cream: var(--color-surface, #fff);
  --green: var(--color-success, #3d6b4f);
}

body {
  font-family: var(--font-body, "Gantari", system-ui, sans-serif);
  color: var(--color-ink, #1c1412);
}

/* Prefer atmosphere washes over legacy Poppins + flat radial stack */
body {
  background-attachment: fixed;
}

/* New home hero: mute old caption chip overlay */
.store-hero .hero-caption,
.home-hero .hero-caption {
  display: none;
}

/* When sf-card is present, quiet legacy card chrome */
.sf-card.product-card,
.product-card.sf-card {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.sf-card.product-card:hover,
.product-card.sf-card:hover {
  transform: none;
  box-shadow: none;
}

/* Legacy footer chrome yields to .sf-footer when both exist */
.sf-footer.footerContainer,
footer.sf-footer {
  background: inherit;
  border-top: none;
}

/* === storefront-mobile.css === */
/* Storefront mobile — loaded LAST in layout.ejs. No new HTML. */

@media (max-width: 768px) {
  /* —— Header —— */
  .sf-header {
    padding-top: env(safe-area-inset-top, 0);
  }

  .sf-header__bar-inner {
    gap: 0.65rem;
    padding: 0.65rem 0.85rem 0.6rem;
  }

  .sf-brand__mark {
    font-size: clamp(0.72rem, 3.15vw, 0.98rem);
    overflow: visible;
    max-width: none;
  }

  .sf-search input {
    min-width: 0;
    font-size: 0.9rem;
  }

  .sf-basket {
    min-height: 2.4rem;
  }

  .sf-wishlist-link {
    min-height: 2.4rem;
  }

  .main {
    padding-inline: 0.85rem;
    padding-block: 0.85rem 1.25rem;
  }

  /* Legacy header fallbacks */
  .top-bar {
    flex-wrap: wrap;
    gap: 0.65rem 0.75rem;
    padding: 0.7rem 0.85rem;
  }

  .top-bar .search {
    flex: 1 1 100%;
    max-width: none;
  }

  .mega-menu:not(.sf-mega) {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding-inline: 0.85rem;
  }

  /* —— Home hero height —— */
  .home-hero {
    --hh-header: 7rem;
    min-height: min(62svh, 440px);
    max-height: 520px;
    margin-bottom: 1.5rem;
  }

  .home-hero__content {
    padding: 1.25rem 1.1rem 2.75rem;
  }

  .home-hero__brand {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .home-hero__headline {
    font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  }

  .home-hero__lead {
    font-size: 0.9rem;
    max-width: 34ch;
  }

  .hero.swiperSingleSlider .hero-track {
    min-height: 0;
  }

  .hero-slide img,
  .banner-img {
    aspect-ratio: 4 / 3;
    max-height: 220px;
    object-fit: cover;
  }

  /* —— Listing grid: hard 2 columns —— */
  .listing,
  .listing.listing-page {
    gap: 0.9rem;
  }

  .listing-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .listing.listing-page .listing-grid.product-grid,
  .listing-layout .listing-grid.product-grid,
  .listRightBlock .product-grid,
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem;
  }

  .listing-grid.product-grid .product-card,
  .product-grid .product-card,
  .product-grid .productitem {
    min-width: 0;
  }

  .listing-title {
    font-size: 1.35rem;
  }

  .listing-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Home rails: ~1.75 cards (listing-scale + peek); swipeable */
  .home-shop-rail .home-shop-owl.productOwl {
    gap: 0.75rem;
    padding-inline: 1.85rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* pan-x alone trapped vertical page scroll over the rail on mobile */
    touch-action: pan-x pan-y;
  }

  .home-shop-rail .home-shop-owl .product-card,
  .home-shop-rail .home-shop-owl .productitem {
    flex: 0 0 calc((100% - 0.75rem) / 1.75);
    min-width: 0;
  }

  /* —— PDP stack —— */
  .pdp {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .pdp-gallery,
  .pdp-buy,
  .pdp-info {
    min-width: 0;
  }

  .thumb.large,
  .gallery-main.thumb.large,
  .pdp-gallery__stage,
  .pdp-gallery .gallery-main,
  .pdp-gallery #galleryMain {
    min-height: clamp(360px, 88vw, 520px);
    aspect-ratio: 3 / 4;
    max-height: none;
  }

  .pdp-gallery__thumbs,
  .pdp-gallery .gallery-thumbs {
    display: none;
  }

  .pdp-buy__form,
  .pdp-form {
    max-width: none;
    width: 100%;
  }

  .pdp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pdp-buy__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .pdp-buy__cta {
    width: auto;
    flex: 1 1 auto;
  }

  .pdp-buy__fav,
  .pdp-buy__share {
    width: 2.85rem;
    flex: 0 0 auto;
  }

  .pdp-actions .btn-add,
  .pdp-actions .btn-fav {
    width: 100%;
  }

  .pdp-tabs,
  .pdp-buy__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .pdp-tabs .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gallery-thumbs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }

  /* —— Cart —— */
  .cart-page {
    max-width: none;
    margin: 0.35rem 0;
    padding: 0.85rem;
  }

  .checkout-steps {
    gap: 0.45rem;
    font-size: 0.78rem;
    flex-wrap: wrap;
  }

  .cart-table {
    display: block;
    width: 100%;
    overflow-x: visible;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
  }

  .cart-table tr {
    border: 1px solid var(--line, #e8dfdd);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
  }

  .cart-table td {
    border-bottom: 0;
    padding: 0.28rem 0;
  }

  .cart-table td:first-child {
    font-weight: 600;
    padding-bottom: 0.45rem;
  }

  .cart-table td:nth-child(2)::before { content: "SKU: "; color: var(--muted, #6b6b6b); font-weight: 400; }
  .cart-table td:nth-child(3)::before { content: "Adet: "; color: var(--muted, #6b6b6b); font-weight: 400; }
  .cart-table td:nth-child(4)::before { content: "Birim: "; color: var(--muted, #6b6b6b); font-weight: 400; }
  .cart-table td:nth-child(5)::before { content: "Tutar: "; color: var(--muted, #6b6b6b); font-weight: 400; }

  .qty-cell {
    white-space: normal;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .cart-summary .summary-totals p,
  .cart-summary > p {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn,
  .cta-row .btn-muted,
  .cta-row a.btn-muted {
    width: 100%;
    text-align: center;
  }

  .mini-basket-panel {
    width: min(100vw, 100%);
  }

  /* —— Shared —— */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .home-hero {
    min-height: min(56svh, 380px);
  }

  .listing-grid.product-grid,
  .product-grid {
    gap: 0.55rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

