/*
Theme Name: FDPYO
Theme URI: https://fdpyo.com/
Author: FDPYO
Description: Односторінковий магазин
Version: 1.0.0
Text Domain: fdpyo
*/

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: #161616;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button,
input,
textarea { font: inherit; color: inherit; }

.site-header {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: 22px 16px 8px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #161616;
  display: grid;
  place-items: center;
}

.burger { justify-self: start; }

.cart-link {
  justify-self: end;
  position: relative;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #111;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.logo {
  justify-self: center;
  text-decoration: none;
  text-align: center;
}

.logo img {
  width: min(280px, 64vw);
  height: auto;
  margin: 0 auto;
}

.logo__text {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.catalog {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: min(320px, 88vw);
  background: #fff;
  padding: 88px 28px 32px;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.06);
}

.catalog.is-open { transform: translateX(0); }

.catalog a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  font-size: 16px;
}

.catalog a[aria-current="page"] { font-weight: 600; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 35;
  border: 0;
  padding: 0;
}

.backdrop[hidden],
.catalog:not(.is-open) + .backdrop { display: none; }

.feed { padding: 12px 0 64px; }

.product-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 520px) 40px;
  justify-content: center;
  align-items: center;
  gap: 8px 6px;
  margin: 28px auto 56px;
  padding: 0 8px;
}

.slider { overflow: hidden; min-width: 0; }

.slider__link { display: block; text-decoration: none; }

.slider__track {
  display: flex;
  transition: transform 0.35s ease;
}

.slider__track img {
  flex: 0 0 100%;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.arrow {
  width: 40px;
  height: 64px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #222;
  padding: 0;
}

.arrow[hidden] { visibility: hidden; }

.product-row__info {
  grid-column: 1 / -1;
  width: min(520px, 100%);
  margin: 8px auto 0;
  justify-self: center;
}

.product-row__desc {
  display: none;
  white-space: pre-line;
  font-size: 14px;
  margin: 0 0 18px;
}

.buyline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.name {
  display: block;
  text-decoration: none;
  font-size: 14px;
}

.price {
  margin-top: 2px;
  font-size: 14px;
}

.price .amount { font-weight: 400; }

.buy,
#place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
}

.single-layout .product-row__desc { display: block; }

.single-layout .product-row__info { margin-top: 20px; }

.empty,
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  max-width: 640px;
  margin: 24px auto;
  padding: 0 16px;
  list-style: none;
}

.woocommerce-error { color: #8a1f1f; }

.checkout-wrap {
  max-width: 480px;
  margin: 12px auto 72px;
  padding: 0 16px;
}

.checkout-wrap h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 12px 0 20px;
}

.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle,
.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-message,
.woocommerce-billing-fields > h3,
.woocommerce-order .woocommerce-customer-details,
.fdpyo-hidden { display: none !important; }

.woocommerce-checkout .form-row { margin: 0 0 14px; }

.woocommerce-checkout label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.woocommerce-checkout textarea { min-height: 88px; resize: vertical; }

.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-weight: 400;
}

.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
}

.woocommerce-checkout #payment ul { list-style: none; margin: 0 0 16px; padding: 0; }

.woocommerce-checkout #place_order { width: 100%; margin-top: 8px; }

.remove-line {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
}

.cart-empty { margin: 8px 0 24px; }

.checkout-wrap > .buy { margin-top: 8px; }

.note {
  font-size: 13px;
  color: #444;
  margin: 0 0 16px;
}

@media (min-width: 900px) {
  .product-row {
    grid-template-columns: 48px minmax(280px, 460px) 48px minmax(220px, 280px);
    gap: 10px 28px;
    align-items: center;
    margin-bottom: 88px;
  }

  .product-row__info {
    grid-column: auto;
    width: auto;
    margin: 0;
    justify-self: start;
  }

  .product-row__desc { display: block; }

  .single-layout {
    grid-template-columns: 48px minmax(320px, 560px) 48px minmax(240px, 340px);
  }
}
