/* WooCommerce w stylistyce Truly Wooden — koszyk, checkout, sklep, konto. */

.tw-page,
.tw-page p,
.tw-page td,
.tw-page th,
.tw-page label,
.tw-page input,
.tw-page select,
.tw-page textarea {
  font-family: "Jost", sans-serif;
}

.tw-page h1,
.tw-page h2,
.tw-page h3,
.tw-page .wc-block-components-title,
.tw-page .wp-block-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  color: #1c1813;
}

.tw-page a {
  color: var(--tw-accent, #b08a4f);
}

/* Przyciski (klasyczne i blokowe) */
.tw-page .button,
.tw-page button:not(.wc-block-components-quantity-selector__button),
.tw-page input[type="submit"],
.tw-page .wp-block-button__link,
.tw-page .wc-block-components-button {
  background: #14110e !important;
  color: #efeae0 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 16px 32px !important;
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-family: "Jost", sans-serif !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  box-shadow: none !important;
}
.tw-page .button:hover,
.tw-page button:not(.wc-block-components-quantity-selector__button):hover,
.tw-page input[type="submit"]:hover,
.tw-page .wp-block-button__link:hover,
.tw-page .wc-block-components-button:hover {
  background: var(--tw-accent, #b08a4f) !important;
  color: #14110e !important;
}

/* Pola formularzy */
.tw-page input[type="text"],
.tw-page input[type="email"],
.tw-page input[type="tel"],
.tw-page input[type="password"],
.tw-page input[type="number"],
.tw-page select,
.tw-page textarea,
.tw-page .wc-block-components-text-input input {
  border: 1px solid rgba(28, 24, 19, 0.25) !important;
  border-radius: 4px !important;
  background: #fff !important;
}
.tw-page input:focus,
.tw-page select:focus,
.tw-page textarea:focus {
  outline: none !important;
  border-color: var(--tw-accent, #b08a4f) !important;
}

/* Akcenty cenowe / sumy */
.tw-page .woocommerce-Price-amount,
.tw-page .wc-block-components-totals-item__value,
.tw-page .price {
  font-family: "Cormorant Garamond", serif;
}

/* Siatka sklepu */
.tw-shop ul.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 0;
  margin: 40px 0 0;
}
@media (max-width: 900px) {
  .tw-shop ul.products {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .tw-shop ul.products {
    grid-template-columns: 1fr;
  }
}
.tw-shop ul.products li.product {
  text-align: center;
}
.tw-shop ul.products li.product img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
.tw-shop ul.products li.product .woocommerce-loop-product__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: #1c1813;
}

/* Komunikaty Woo */
.tw-page .woocommerce-message,
.tw-page .woocommerce-info,
.tw-page .wc-block-components-notice-banner {
  border-left-color: var(--tw-accent, #b08a4f) !important;
}

/* Strony prawne (regulamin, polityka, zwroty) */
.tw-page p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: #3a342c;
  font-size: 15px;
  max-width: 80ch;
}
.tw-page h2.tw-par {
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #1c1813;
}
.tw-page .tw-toc {
  margin: 1.4rem 0 2.6rem;
  padding-left: 1.1rem;
  color: #5a5147;
  line-height: 1.9;
  max-width: 80ch;
}
.tw-page .tw-toc li {
  margin: 0;
}

/* Checkboxy zgód na checkout */
.tw-page .tw-consent {
  margin: 10px 0;
}
.tw-page .tw-consent label {
  font-size: 13px;
  line-height: 1.6;
  color: #3a342c;
  display: inline;
}
.tw-page .tw-consent input[type="checkbox"] {
  margin-right: 8px;
}
.tw-page .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 12px;
}
.tw-page form.checkout .tw-consent a,
.tw-page .woocommerce-terms-and-conditions-wrapper a {
  color: var(--tw-accent, #b08a4f);
}

/* Dynamiczny szablon produktu */
@media (max-width: 900px) {
  .tw-prod-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}
.tw-page [data-tw-gallery] {
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) {
  .tw-page [data-tw-gallery] {
    position: static;
  }
}

/* Sklep — edytorska siatka kart */
.tw-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}
@media (max-width: 980px) {
  .tw-shop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 28px;
  }
}
@media (max-width: 560px) {
  .tw-shop-grid {
    grid-template-columns: 1fr;
  }
}
.tw-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.tw-card-imgwrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #1c1813;
  border-radius: 2px;
}
.tw-card-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tw-card:hover .tw-card-imgwrap img {
  transform: scale(1.05);
}
.tw-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(20, 17, 14, 0.82);
  color: #efeae0;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.tw-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a7e6c;
  margin: 20px 0 8px;
}
.tw-card-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  margin: 0 0 6px;
  color: #1c1813;
}
.tw-card-price,
.tw-card-price .woocommerce-Price-amount {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  color: var(--tw-accent, #b08a4f);
}
.tw-card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1c1813;
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    letter-spacing 0.3s ease;
}
.tw-card:hover .tw-card-cta {
  opacity: 1;
  letter-spacing: 0.3em;
}
