/**
 * CozyCat webshop styles — shop archive, product category, single product,
 * cart (classic shortcode), checkout (classic shortcode), order received.
 *
 * Styles standard WooCommerce markup only (no template copies); enqueued
 * exclusively on WC shop/cart/checkout pages, so nothing here can leak
 * onto Elementor-built pages. Carries the profile design language:
 * deep bordeaux red on warm beige, pill buttons, generous card radii,
 * inset keyline borders.
 */

:root {
  /* Bridge to the Elementor kit globals; fallbacks match cozycat.css. */
  --cc-red: var(--red, #4a2028);
  --cc-red-hover: #5b2d3a;
  --cc-beige: var(--beige, #f5ebdc);
  --cc-keyline: rgba(75, 39, 49, 0.12);
  --cc-muted: rgba(75, 39, 49, 0.65);
  --cc-shadow: 0 6px 18px rgba(75, 39, 49, 0.14);
  --cc-shadow-hover: 0 10px 26px rgba(75, 39, 49, 0.22);
  --cc-gold: #f5c542;
}

/* ==========================================================================
   Page container — Hello Elementor declares WC support without wrappers,
   so WooCommerce's default full-bleed wrapper renders the shop archive,
   category archives and single products edge-to-edge. Box them here.
   (Cart/checkout are Elementor-built pages with their own layout.)
   ========================================================================== */

body.woocommerce-shop .site-main,
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main,
body.single-product .site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  box-sizing: border-box;
}

/* ==========================================================================
   Buttons — every WC button becomes a CozyCat pill
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button {
  background-color: var(--cc-red);
  color: var(--cc-beige);
  border: none;
  border-radius: 30px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.25s ease;
}

.woocommerce a.button:hover,
.woocommerce a.button:focus,
.woocommerce button.button:hover,
.woocommerce button.button:focus,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover {
  background-color: var(--cc-red-hover);
  color: var(--cc-beige);
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-hover);
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled {
  background-color: var(--cc-red);
  color: var(--cc-beige);
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

/* Emphasized actions: add to cart, proceed to checkout, place order */
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  padding: 15px 42px;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: var(--cc-shadow);
}

/* "View cart" link appended after AJAX add-to-cart */
.woocommerce a.added_to_cart {
  color: var(--cc-red);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  margin-top: 10px;
  display: inline-block;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background-color: #fff;
  color: var(--cc-red);
  border: 1px solid var(--cc-keyline);
  border-top: none;
  border-left: 4px solid var(--cc-red);
  border-radius: 14px;
  padding: 16px 22px 16px 52px;
  box-shadow: none;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--cc-red);
  top: 16px;
  left: 22px;
}

.woocommerce-error {
  border-left-color: #b3423f;
}

.woocommerce-error::before {
  color: #b3423f;
  top: 16px;
  left: 22px;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: var(--cc-red);
  font-weight: 600;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  padding: 9px 20px;
  font-size: 13px;
}

/* ==========================================================================
   Breadcrumb + archive header
   ========================================================================== */

.woocommerce-breadcrumb {
  color: var(--cc-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.woocommerce-breadcrumb a {
  color: var(--cc-muted);
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: var(--cc-red);
}

/* Shop / category header as a white banner with the signature keyline
   (the Elementor kit paints the page background beige, so white surfaces
   carry the contrast — same scheme as the thank-you detail cards) */
.woocommerce-products-header {
  position: relative;
  background-color: #fff;
  border-radius: 32px;
  padding: 44px 36px 40px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 34px;
}

.woocommerce-products-header::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid var(--cc-keyline);
  pointer-events: none;
}

.woocommerce-products-header__title {
  color: var(--cc-red);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

.woocommerce-products-header .term-description {
  color: var(--cc-red);
  opacity: 0.78;
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Result count + ordering row */
.woocommerce .woocommerce-result-count {
  color: var(--cc-muted);
  font-size: 14px;
  padding-top: 8px;
}

.woocommerce .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a2028' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: var(--cc-red);
  border-radius: 25px;
  padding: 10px 40px 10px 18px;
  font-size: 14px;
  cursor: pointer;
}

/* ==========================================================================
   Product grid (shop, categories, related, cross-sells, up-sells)
   ========================================================================== */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
  margin: 0 0 36px;
}

/* Honor the WooCommerce "columns" catalog setting: it stamps a columns-N
   class on the list. Map it to real grid tracks (and, below, neutralize
   WC's own percentage width rules that assume a float layout). */
.woocommerce ul.products.columns-1 {
  grid-template-columns: 1fr;
}
.woocommerce ul.products.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.woocommerce ul.products.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.woocommerce ul.products.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
.woocommerce ul.products.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}
.woocommerce ul.products.columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

/* WC's woocommerce.css sets float + a percentage width per column count
   (e.g. .columns-3 li.product { width: 30.75% }); those out-specify the
   base rule below and squeeze each card into a fraction of its grid
   track. The attribute selector ties that specificity and, loading
   later, wins — so grid tracks alone size the cards. */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce ul.products[class*="columns-"] li.product-category {
  width: auto;
  float: none;
  margin: 0;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category {
  float: none;
  width: auto;
  margin: 0;
  position: relative;
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 24px;
  padding: 14px 14px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--cc-shadow-hover);
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product-category a img {
  border-radius: 16px;
  margin: 0 0 14px;
  width: 100%;
}

/* Category icons are portrait transparent silhouettes — show the whole
   icon centered rather than stretching it to the tile width. */
.woocommerce ul.products li.product-category a img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  margin: 6px auto 16px;
  border-radius: 0;
  object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.woocommerce ul.products li.product h2 {
  color: var(--cc-red);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0 6px 6px;
  hyphens: auto;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title .count {
  background: none;
  color: var(--cc-muted);
  font-weight: 400;
}

.woocommerce ul.products li.product .price {
  color: var(--cc-red);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.woocommerce ul.products li.product .price del {
  color: var(--cc-muted);
  font-weight: 400;
  opacity: 1;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  font-weight: 700;
}

.woocommerce ul.products li.product .star-rating {
  margin: 0 auto 10px;
  color: var(--cc-gold);
}

.woocommerce ul.products li.product .button {
  margin: auto auto 0;
  padding: 11px 26px;
  font-size: 14px;
}

/* Sale badge — quiet gold pill, top-right inside the card */
.woocommerce span.onsale {
  position: absolute;
  top: 24px;
  right: 24px;
  left: auto;
  min-width: 0;
  min-height: 0;
  line-height: 1;
  background-color: var(--cc-gold);
  color: var(--cc-red);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  z-index: 2;
}

/* Pagination — round beige pills, current inverted */
.woocommerce nav.woocommerce-pagination {
  margin-bottom: 20px;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: inline-flex;
  gap: 8px;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  color: var(--cc-red);
  font-weight: 600;
  transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background-color: var(--cc-red);
  color: var(--cc-beige);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--cc-red);
  color: var(--cc-beige);
}

/* ==========================================================================
   Single product
   ========================================================================== */

.woocommerce div.product div.images {
  margin-bottom: 30px;
}

/* Main image: the flexslider wraps slides in .flex-viewport once it boots;
   the wrapper selector covers the no-slider/single-image case. Selectors
   mirror WC's own (div.images …) so ours win on cascade order. */
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  border-radius: 20px;
  overflow: hidden;
}

.woocommerce div.product div.images .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  float: none;
  width: 86px;
  margin: 0;
  clear: none;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  border-radius: 12px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  opacity: 1;
}

/* Summary as a floating white card with keyline */
.woocommerce div.product div.summary {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 28px;
  padding: 34px 36px;
  overflow: hidden;
  margin-bottom: 30px;
}

.woocommerce div.product div.summary::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid var(--cc-keyline);
  pointer-events: none;
}

.woocommerce div.product div.summary > * {
  position: relative;
}

.woocommerce div.product .product_title {
  color: var(--cc-red);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--cc-red);
  font-size: 26px;
  font-weight: 700;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--cc-muted);
  font-size: 0.7em;
  opacity: 1;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--cc-red);
  opacity: 0.8;
  font-size: 15px;
  line-height: 1.65;
  margin: 14px 0 6px;
}

.woocommerce div.product .star-rating {
  color: var(--cc-gold);
}

.woocommerce div.product .woocommerce-review-link {
  color: var(--cc-muted);
  font-size: 13px;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 18px;
}

.woocommerce div.product form.cart div.quantity {
  float: none;
  margin: 0;
}

.woocommerce div.product form.cart .button {
  float: none;
}

.woocommerce .quantity .qty {
  background-color: var(--cc-beige);
  border: none;
  border-radius: 999px;
  color: var(--cc-red);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 6px;
  width: 76px;
  text-align: center;
}

/* Stock status (Készleten / Elfogyott) */
.woocommerce div.product .stock {
  color: var(--cc-red);
  font-weight: 600;
}

.woocommerce div.product .stock.out-of-stock {
  opacity: 0.7;
}

.woocommerce div.product .product_meta {
  border-top: 1px solid var(--cc-keyline);
  padding-top: 14px;
  color: var(--cc-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.woocommerce div.product .product_meta a {
  color: var(--cc-red);
}

.woocommerce div.product .product_meta > span {
  display: block;
  margin-bottom: 4px;
}

/* Tabs — beige pills, active inverted; strip WC's boxed tab chrome */
.woocommerce div.product .woocommerce-tabs {
  clear: both;
  margin-bottom: 36px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  border: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 999px;
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--cc-red);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 11px 26px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background-color: var(--cc-red);
  border-color: var(--cc-red);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--cc-beige);
}

.woocommerce div.product .woocommerce-tabs .panel {
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 24px;
  padding: 28px 32px;
  color: var(--cc-red);
  margin: 0;
}

.woocommerce div.product .woocommerce-tabs .panel h2:first-of-type {
  color: var(--cc-red);
  font-size: 20px;
}

/* Attributes table ("További információk") — WC's shop_attributes rules
   zero the cell padding and italicize values; restore breathing room */
.woocommerce table.shop_attributes {
  border: none;
  width: 100%;
  margin-bottom: 0;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
  border: none;
  border-top: 1px solid var(--cc-keyline);
  padding: 12px 16px;
  color: var(--cc-red);
  font-style: normal;
  line-height: 1.6;
  background: none;
}

.woocommerce table.shop_attributes tr:first-child th,
.woocommerce table.shop_attributes tr:first-child td {
  border-top: none;
}

.woocommerce table.shop_attributes th {
  width: 180px;
  text-align: left;
  font-weight: 600;
}

.woocommerce table.shop_attributes td p {
  margin: 0;
  padding: 0;
}

/* Related / up-sells section headings */
.woocommerce .related > h2,
.woocommerce .upsells > h2,
.woocommerce .cross-sells > h2 {
  text-align: center;
  color: var(--cc-red);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 10px 0 24px;
}

/* ==========================================================================
   Tables (cart, order review, order details)
   ========================================================================== */

.woocommerce table.shop_table {
  border: 1px solid var(--cc-keyline);
  border-radius: 24px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background-color: #fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: none;
  border-top: 1px solid var(--cc-keyline);
  padding: 15px 18px;
  color: var(--cc-red);
  vertical-align: middle;
}

.woocommerce table.shop_table thead th,
.woocommerce table.shop_table tr:first-child th,
.woocommerce table.shop_table tr:first-child td {
  border-top: none;
}

.woocommerce table.shop_table thead th {
  background-color: var(--cc-beige);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.woocommerce table.shop_table a {
  color: var(--cc-red);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce table.shop_table a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.woocommerce-cart table.cart img {
  border-radius: 12px;
  width: 64px;
}

.woocommerce-cart table.cart a.remove {
  width: 30px;
  height: 30px;
  line-height: 28px;
  border-radius: 999px;
  background-color: var(--cc-beige);
  color: var(--cc-red) !important;
  font-weight: 400;
  transition: all 0.2s ease;
}

.woocommerce-cart table.cart a.remove:hover {
  background-color: var(--cc-red);
  color: var(--cc-beige) !important;
}

.woocommerce-cart table.cart td.actions {
  background-color: var(--cc-beige);
  padding: 16px 18px;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 999px;
  color: var(--cc-red);
  padding: 11px 18px;
  font-size: 14px;
  width: 170px;
}

.woocommerce-cart table.cart td.actions .coupon .button,
.woocommerce-cart table.cart td.actions > .button {
  padding: 11px 24px;
  font-size: 14px;
}

/* Totals card */
.woocommerce-cart .cart-collaterals .cart_totals {
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 28px;
  padding: 28px 30px;
}

.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  color: var(--cc-red);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 16px;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
  background: none;
  border: none;
  border-radius: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
  background: none;
  border-top: 1px solid var(--cc-keyline);
  padding: 12px 4px;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:first-child th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:first-child td {
  border-top: none;
}

.woocommerce-cart .cart-collaterals .cart_totals .order-total td,
.woocommerce-cart .cart-collaterals .cart_totals .order-total th {
  font-size: 18px;
  font-weight: 700;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 16px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  margin-bottom: 0;
}

/* Empty cart */
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
  text-align: center;
}

.woocommerce-cart .return-to-shop {
  margin-top: 22px;
}

/* ==========================================================================
   Checkout page
   ========================================================================== */

/* Coupon / login reveal forms */
.woocommerce form.checkout_coupon,
.woocommerce form.login {
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 20px;
  padding: 22px 26px;
  color: var(--cc-red);
}

/* Customer details as one white card */
.woocommerce-checkout #customer_details {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 32px;
  padding: 36px 38px;
  margin-bottom: 30px;
  overflow: hidden;
}

.woocommerce-checkout #customer_details::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid var(--cc-keyline);
  pointer-events: none;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  position: relative;
}

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  color: var(--cc-red);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Form fields — white pills on beige, matching the profile forms */
.woocommerce form .form-row label {
  color: var(--cc-red);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.woocommerce form .form-row .required {
  color: var(--cc-red);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
  background-color: var(--cc-beige);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--cc-red);
  font-size: 15px;
  padding: 12px 18px;
  line-height: 1.4;
}

.woocommerce form .form-row textarea.input-text {
  background-color: var(--cc-beige);
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--cc-red);
  font-size: 15px;
  padding: 12px 18px;
  min-height: 90px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea.input-text:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--cc-red);
  box-shadow: 0 0 0 3px rgba(75, 39, 49, 0.1);
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: #b3423f;
  box-shadow: none;
}

.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select {
  border-color: transparent;
}

/* Select2 (country/state dropdowns) */
.woocommerce .select2-container--default .select2-selection--single {
  background-color: var(--cc-beige);
  border: 1px solid transparent;
  border-radius: 999px;
  height: auto;
  padding: 12px 18px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--cc-red);
  line-height: 1.4;
  padding: 0;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 14px;
}

/* Order review card */
.woocommerce-checkout #order_review {
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 28px;
  padding: 28px 30px;
}

.woocommerce-checkout #order_review table.shop_table {
  border: none;
  border-radius: 0;
  background: none;
  margin-bottom: 18px;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  padding: 12px 4px;
}

.woocommerce-checkout #order_review table.shop_table thead th {
  background: none;
  border-bottom: 1px solid var(--cc-keyline);
}

.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td {
  font-size: 18px;
  font-weight: 700;
}

/* Payment methods */
.woocommerce-checkout #payment {
  background: none;
  border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--cc-keyline);
  padding: 0 0 16px;
}

.woocommerce-checkout #payment ul.payment_methods li {
  color: var(--cc-red);
}

.woocommerce-checkout #payment ul.payment_methods label {
  color: var(--cc-red);
  font-weight: 600;
}

.woocommerce-checkout #payment div.payment_box {
  background-color: var(--cc-beige);
  border-radius: 14px;
  color: var(--cc-red);
  font-size: 14px;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--cc-beige);
}

.woocommerce-checkout #payment .place-order {
  padding: 18px 0 0;
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--cc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a {
  color: var(--cc-red);
}

/* ==========================================================================
   Order received (shop thank-you)
   ========================================================================== */

/* Widen + center the overview card (base class caps at 600px, margin 0) */
.cozycat-shop-thankyou .cozycat-shop-thankyou-card {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.cozycat-shop-order-details {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cozycat-shop-order-details section,
.cozycat-shop-order-details .woocommerce-order-details,
.cozycat-shop-order-details .woocommerce-customer-details {
  background-color: #fff;
  border: 1px solid var(--cc-keyline);
  border-radius: 28px;
  padding: 30px 34px;
  margin: 0;
}

.cozycat-shop-order-details .woocommerce-order-details__title,
.cozycat-shop-order-details .woocommerce-customer-details h2,
.cozycat-shop-order-details .woocommerce-column__title,
.cozycat-shop-order-details h2 {
  color: var(--cc-red);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 18px;
}

.cozycat-shop-order-details table.shop_table {
  border: none;
  border-radius: 0;
}

.cozycat-shop-order-details table.shop_table th,
.cozycat-shop-order-details table.shop_table td {
  padding: 12px 6px;
  background: none;
}

.cozycat-shop-order-details table.shop_table thead th {
  background: none;
  border-bottom: 1px solid var(--cc-keyline);
}

.cozycat-shop-order-details address {
  font-style: normal;
  color: var(--cc-red);
  line-height: 1.8;
  border: none;
  padding: 0;
}

.cozycat-shop-order-details .woocommerce-columns--addresses .woocommerce-column {
  float: none;
  width: auto;
}

.cozycat-shop-order-details .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* BACS bank details block (rendered by the gateway hook) */
.cozycat-shop-order-details .wc-bacs-bank-details,
.cozycat-shop-order-details .woocommerce-bacs-bank-details {
  background-color: var(--cc-beige);
  border-radius: 20px;
  padding: 22px 26px;
  color: var(--cc-red);
}

.cozycat-shop-order-details .wc-bacs-bank-details li,
.cozycat-shop-order-details .woocommerce-bacs-bank-details li {
  color: var(--cc-red);
}

.cozycat-shop-order-details .wc-bacs-bank-details-account-name {
  color: var(--cc-red);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .woocommerce-products-header {
    border-radius: 24px;
    padding: 32px 20px 30px;
  }

  .woocommerce-products-header::before {
    inset: 9px;
    border-radius: 16px;
  }

  .woocommerce-products-header__title {
    font-size: 26px;
  }

  /* Override any columns-N choice on small screens — the attribute
     selector ties its specificity and, loading later, wins. */
  .woocommerce ul.products,
  .woocommerce ul.products[class*="columns-"] {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .woocommerce div.product div.summary {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .woocommerce div.product .product_title {
    font-size: 24px;
  }

  .woocommerce div.product .woocommerce-tabs .panel {
    padding: 20px 18px;
  }

  .woocommerce-checkout #customer_details {
    padding: 26px 20px;
    border-radius: 24px;
  }

  /* WC stacks cart rows below 768px; soften the stacked cells */
  .woocommerce-cart table.cart td {
    border-top: 1px solid var(--cc-keyline) !important;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100%;
    box-sizing: border-box;
  }

  .woocommerce-cart .cart-collaterals .cart_totals {
    padding: 22px 18px;
  }

  .cozycat-shop-order-details section,
  .cozycat-shop-order-details .woocommerce-order-details,
  .cozycat-shop-order-details .woocommerce-customer-details {
    padding: 22px 18px;
    border-radius: 20px;
  }
}
