/*
Theme Name: SleepZone
Theme URI: https://testwait.shop
Description: SleepZone storefront on Flatsome, tuned for phones.
Author: SleepZone
Template: flatsome
Version: 1.0.0
Text Domain: sleepzone
*/

:root {
  --sz-red: #f00000;
  --sz-ink: #161616;
  --sz-muted: #5e5e5e;
  --sz-line: #ececec;
  --sz-soft: #f7f7f7;
}

html { scroll-behavior: smooth; }

body {
  color: var(--sz-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body,
h1, h2, h3, h4, h5, h6,
button, .button, input, select, textarea {
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--sz-ink); }
a:hover { color: var(--sz-red); }

.sz-announce {
  background: #161616;
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  padding: 8px 14px;
}

.sz-announce a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.sz-kicker {
  margin: 0 0 8px;
  color: var(--sz-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sz-hero-title {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sz-lead {
  margin: 0 0 18px;
  color: var(--sz-muted);
  font-size: 17px;
  line-height: 1.5;
}

.sz-hero-actions .button {
  margin: 0 10px 10px 0;
  min-height: 48px;
  border-radius: 8px;
}

.sz-section-title {
  margin: 8px 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.sz-section-note {
  margin: 0 0 8px;
  color: var(--sz-muted);
}

.home .page-title { display: none; }

.price,
.amount,
.woocommerce-Price-amount {
  color: var(--sz-ink);
}

.price .amount,
.product-small .price {
  color: var(--sz-red);
  font-weight: 700;
}

.button.primary,
.button.checkout,
button.button.alt,
.checkout-button,
#place_order,
.single_add_to_cart_button {
  background-color: var(--sz-red) !important;
  border-color: var(--sz-red) !important;
  color: #fff !important;
  border-radius: 8px;
}

.button.primary.is-outline,
.sz-wa.button {
  background: #fff !important;
  color: var(--sz-red) !important;
  border: 1px solid var(--sz-red) !important;
}

.header-main {
  border-bottom: 1px solid var(--sz-line);
  box-shadow: none;
}

.nav > li > a {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sz-footer {
  background: #111;
  color: #f3f3f3;
  padding: 36px 0 28px;
}

.sz-footer a { color: #fff; }
.sz-footer h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 16px;
}
.sz-footer p, .sz-footer li { color: #d7d7d7; }
.sz-footer ul { list-style: none; margin: 0; padding: 0; }
.sz-footer li { margin: 0 0 6px; }
.sz-copy {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #aaa;
  font-size: 13px;
}

.sz-contact-list a,
.sz-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  margin: 0 0 10px;
  border: 1px solid var(--sz-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}

.sz-chart {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.sz-tabbar {
  display: none;
}

.box-image img,
.product-gallery img,
.woocommerce-product-gallery__image img {
  object-fit: cover;
}

@media (max-width: 849px) {
  .sz-announce { font-size: 12.5px; padding: 7px 12px; }

  .sz-hero-title { font-size: 32px; }
  .sz-lead { font-size: 15.5px; }
  .sz-section-title { font-size: 22px; }

  .sz-hero-actions .button,
  .sz-hero-actions .button + .button {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
  }

  #logo img.header-logo,
  #logo img.header-logo-dark {
    max-height: 46px !important;
    width: auto !important;
  }

  .header-main { height: 56px !important; }

  .product-small .box-text {
    padding: 8px 8px 10px;
  }

  .product-small .name,
  .product-small .woocommerce-loop-product__title,
  .product-small .product-title {
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
  }

  .product-small .price { font-size: 15px; }

  .product-small .add-to-cart-button,
  .product-small a.button,
  .product-small .button {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 8px;
  }

  .col-inner > .box-image,
  .product-small .box-image {
    border-radius: 10px;
    overflow: hidden;
  }

  .page-title { padding-top: 8px !important; padding-bottom: 0 !important; }
  .page-title h1,
  .shop-page-title { font-size: 26px !important; }

  .single-product .product-info .product_title { font-size: 24px; line-height: 1.2; }
  .single-product .price { font-size: 22px; }
  .single-product form.cart .single_add_to_cart_button,
  .single-product .sz-wa.button {
    width: 100%;
    min-height: 48px;
    margin: 8px 0 0;
  }
  .single-product div.product form.cart { margin-bottom: 8px; }

  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select,
  .woocommerce-cart table.cart td.actions .coupon .input-text,
  select, input[type="text"], input[type="email"], input[type="tel"],
  input[type="search"], input[type="number"], textarea {
    font-size: 16px;
    min-height: 46px;
  }

  .qty {
    min-height: 44px;
    min-width: 64px;
    font-size: 16px;
  }

  .checkout-button,
  #place_order {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .woocommerce-cart .cart_totals,
  .woocommerce-checkout #order_review {
    border: 1px solid var(--sz-line);
    border-radius: 12px;
    padding: 12px;
  }

  .sticky-add-to-cart-wrapper {
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(0,0,0,.08);
  }

  .sticky-add-to-cart .single_add_to_cart_button {
    min-height: 46px;
    border-radius: 8px;
  }

  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  body.single-product,
  body.woocommerce-cart,
  body.woocommerce-checkout {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  body.single-product { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

  .sz-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--sz-line);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(0,0,0,.05);
  }

  body.single-product .sz-tabbar,
  body.woocommerce-cart .sz-tabbar,
  body.woocommerce-checkout .sz-tabbar {
    display: none;
  }

  .sz-tabbar a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #444;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    padding: 6px 2px 4px;
    min-height: 48px;
  }

  .sz-tabbar a strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .sz-tabbar a.is-current { color: var(--sz-red); }

  .back-to-top { display: none !important; }

  .sz-footer { padding: 28px 0 18px; }
  .sz-footer .col { margin-bottom: 8px; }

  .container, .row { max-width: 100%; }
  img, video, iframe { max-width: 100%; height: auto; }

  .header-cart-icon { min-width: 44px; min-height: 44px; }
  .nav-icon { min-width: 44px; min-height: 44px; }
}

@media (min-width: 850px) {
  .sz-wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    background: #16a34a;
    color: #fff !important;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.16);
  }
}
