/* =========================
   COOKIE BANNER
========================= */

.cmplz-cookiebanner,
.cc-window {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}


/* =========================
   WOOCOMMERCE PRODUCTS
========================= */

.wp-block-woocommerce-product-template li {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wp-block-woocommerce-product-template .wc-block-components-product-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}

.wp-block-woocommerce-product-template img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-woocommerce-product-template .wc-block-components-product-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wp-block-woocommerce-product-template .wc-block-components-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-block-woocommerce-product-template .wc-block-components-product-price,
.wp-block-woocommerce-product-template .wp-block-button {
  margin-top: auto;
}


/* =========================
   CATEGORY PAGE
========================= */

.product-category .woocommerce-products-header img {
  max-width: 900px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.tax-product_cat .term-description {
  max-width: 800px;
  margin: 0 auto 25px auto;
  padding: 0 15px;
}

.tax-product_cat h1,
.tax-product_cat h2,
.tax-product_cat h3 {
  color: #1f7a1f;
}

.woocommerce ul.products li.product .price {
  color: #222222;
  font-weight: 600;
}

.woocommerce ul.products li.product {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.woocommerce a.button {
  border-radius: 6px;
  padding: 10px 16px;
}


/* =========================
   PRODUCT PAGE
========================= */

.single-product div.product .summary,
.single-product .product_title,
.single-product .woocommerce-product-details__short-description {
  max-width: 100% !important;
  width: 100% !important;
}

.single-product .product_title {
  line-height: 1.3;
}

.single-product .woocommerce-product-details__short-description {
  line-height: 1.6;
}

.single-product .price {
  color: #222;
  font-weight: 600;
}

.single-product div.product p {
  color: #333;
}

/* CLS FIX */

.woocommerce ul.products li.product img,
.single-product div.images img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
}


/* =========================
   MOBILE PRODUCT
========================= */

@media (max-width: 768px) {

  .single-product div.product {
    display: block;
  }

  .single-product div.product div.images {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .single-product div.product div.summary {
    width: 100% !important;
    padding: 0 10px;
  }

  .single-product .single_add_to_cart_button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .single-product .product_title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .single-product .price {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 15px;
    color: #1f3d1f;
  }

  .single-product .single_add_to_cart_button {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  }

  .single-product .woocommerce-product-details__short-description {
    margin-bottom: 15px;
  }

  .single-product div.images {
    margin-bottom: 15px;
  }
}


/* =========================
   NOTICE BLOCK
========================= */

.one-piece-notice {
  margin: 10px 0 16px;
  padding: 12px 14px;
  background: #f6f9f4;
  border-left: 4px solid #2e7d32;
  border-radius: 6px;
}

.one-piece-title {
  font-weight: 600;
  color: #2e7d32;
  font-size: 15px;
  margin-bottom: 3px;
}

.one-piece-sub {
  font-size: 13px;
  color: #444;
}


/* =========================
   FOOTER
========================= */

.site-footer,
.site-footer p,
.site-footer li {
  color: #444 !important;
}

.site-footer a {
  color: #2e7d32 !important;
}

.site-footer a:hover {
  color: #1b5e20 !important;
}

.site-description {
  color: #444 !important;
  font-weight: 500;
}


/* =========================
   CART
========================= */

.woocommerce-cart table,
.woocommerce-cart td,
.woocommerce-cart th {
  color: #2b2b2b !important;
}

.woocommerce-cart h1,
.woocommerce-cart h2 {
  color: #1e7a32;
}

.woocommerce-cart .amount {
  color: #1f1f1f;
  font-weight: 600;
}

.woocommerce-cart .button {
  background: #2e7d32;
  color: #fff;
  border-radius: 6px;
}

.woocommerce-cart .button:hover {
  background: #256628;
}

.woocommerce-cart table.cart img {
  border-radius: 6px;
}

@media (max-width: 768px) {

  .woocommerce-cart table.cart img {
    display: block !important;
    width: 60px;
    height: auto;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    display: table-cell !important;
  }
}


/* =========================
   CHECKOUT
========================= */

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review,
.woocommerce-checkout form.checkout {
  background: #f7f6f1;
  padding: 20px;
  border-radius: 8px;
}

.woocommerce-checkout label,
.woocommerce-checkout p,
.woocommerce-checkout td,
.woocommerce-checkout th {
  color: #2b2b2b;
}

.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  background: #ffffff;
  border: 1px solid #ccc;
}

.woocommerce-checkout h3 {
  color: #1e7a32;
}

.woocommerce-checkout #place_order {
  background: #2e7d32;
  color: #fff;
  border-radius: 6px;
}

.woocommerce-checkout #place_order:hover {
  background: #256628;
}


/* =========================
   TRUST BLOCK
========================= */

.checkout-trust {
  background: #f6f4ef;
  border: 1px solid #ddd6c8;
  padding: 16px;
  margin: 14px 0 20px 0;
  border-radius: 10px;
  text-align: center;
}

.checkout-trust-line {
  font-size: 14px;
  color: #333;
  margin: 4px 0;
}

.checkout-trust-line strong {
  color: #2e7d32;
  font-weight: 600;
}

.checkout-trust-note {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}

.woocommerce-checkout-payment::before {
  content: "🔒 Secure checkout • Handmade in Ukraine • Free shipping\A Estimated delivery: 14–17 days (USA & EU)";
  white-space: pre-line;
  display: block;
  background: #f4f1e8;
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  line-height: 1.6;
}


/* =========================
   BLOG / POSTS
========================= */

html {
  scroll-behavior: smooth;
}

.wp-block-post {
  background: #ffffff;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.wp-block-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.wp-block-button__link {
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 10px;
}

.wp-block-post-featured-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.35s ease;
  display: block;
}

.wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.08);
}

.wp-block-post-title {
  position: relative;
  text-align: center;
  margin-bottom: 35px;
  font-size: 18px;
  line-height: 1.35;
  margin-top: 12px;
  min-height: 60px;
}

.wp-block-post-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg,#2e7d32,#c9a45c);
  margin: 12px auto 0;
}

.wp-block-post-title::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: #c9a45c;
  margin: 6px auto 0;
}

.wp-block-read-more {
  margin-top: auto;
  display: inline-block;
}

.wp-block-query {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================
   MOBILE GRID
========================= */

@media (max-width: 600px) {
  .wc-block-product-template {
    grid-template-columns: 1fr !important;
  }
}