/*
 * PartyConnect WooCommerce Styling
 * Drop this file into your theme, then enqueue it after WooCommerce styles.
 * It uses the PartyConnect theme variables from assets/css/app.css:
 * --pcw-bg, --pcw-surface, --pcw-surface-strong, --pcw-surface-soft,
 * --pcw-text, --pcw-muted, --pcw-soft-text, --pcw-border,
 * --pcw-primary, --pcw-primary-2, --pcw-primary-3,
 * --pcw-success, --pcw-warning, --pcw-danger,
 * --pcw-card-shadow, --pcw-small-shadow, --pcw-gradient,
 * --pcw-radius-xl, --pcw-radius-lg, --pcw-radius-md, --pcw-radius-sm.
 */

/* --------------------------------------------------------------------------
   Base WooCommerce Shell
-------------------------------------------------------------------------- */

.woocommerce,
.woocommerce-page,
.woocommerce-account,
.woocommerce-cart,
.woocommerce-checkout {
  color: var(--pcw-text, #101828);
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  color: var(--pcw-muted, #667085);
  font-size: 0.9rem;
  font-weight: 700;
}

.woocommerce .woocommerce-breadcrumb a,
.woocommerce-page .woocommerce-breadcrumb a {
  color: var(--pcw-primary, #7c3aed);
}

.woocommerce-page main,
.woocommerce-page .site-main,
.woocommerce main.site-main,
.woocommerce .content-area,
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area,
.woocommerce-account .content-area {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.woocommerce-page h4 {
  color: var(--pcw-text, #101828);
  letter-spacing: -0.04em;
}

.woocommerce-page h1,
.woocommerce-products-header__title.page-title,
.product_title.entry-title,
.woocommerce-cart h1,
.woocommerce-checkout h1,
.woocommerce-account h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  font-weight: 950;
}

.woocommerce a {
  color: var(--pcw-primary, #7c3aed);
  text-decoration: none;
}

.woocommerce a:hover {
  color: var(--pcw-primary-2, #ec4899);
}

/* --------------------------------------------------------------------------
   Notices
-------------------------------------------------------------------------- */

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error,
.wc-block-components-notice-banner {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-lg, 22px);
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  color: var(--pcw-text, #101828);
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
  padding: 16px 18px;
  font-weight: 720;
}

.woocommerce .woocommerce-message,
.wc-block-components-notice-banner.is-success {
  border-left: 5px solid var(--pcw-success, #10b981);
}

.woocommerce .woocommerce-info,
.wc-block-components-notice-banner.is-info {
  border-left: 5px solid var(--pcw-primary-3, #06b6d4);
}

.woocommerce .woocommerce-error,
.wc-block-components-notice-banner.is-error {
  border-left: 5px solid var(--pcw-danger, #ef4444);
}

.woocommerce .woocommerce-error li {
  margin: 6px 0;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
  color: var(--pcw-primary, #7c3aed);
}

/* --------------------------------------------------------------------------
   Buttons
-------------------------------------------------------------------------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce .checkout-button,
.woocommerce .single_add_to_cart_button,
.woocommerce .add_to_cart_button,
.wc-block-components-button,
.wp-block-button__link {
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 46px;
  padding: 13px 20px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pcw-gradient, linear-gradient(135deg, #7c3aed, #ec4899, #f97316)) !important;
  color: #fff !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover,
.woocommerce .checkout-button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .add_to_cart_button:hover,
.wc-block-components-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.34);
  opacity: 0.96;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button.alt,
.woocommerce .checkout-button.button.alt {
  background: var(--pcw-gradient, linear-gradient(135deg, #7c3aed, #ec4899, #f97316)) !important;
  color: #fff !important;
}

.woocommerce a.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled,
.woocommerce .button:disabled[disabled] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.woocommerce .coupon .button,
.woocommerce-cart-form .actions .button[name="update_cart"],
.woocommerce .woocommerce-form-login .button,
.woocommerce-account .woocommerce-button,
.woocommerce .woocommerce-Button,
.woocommerce .return-to-shop .button,
.wc-block-components-button.is-link {
  background: var(--pcw-surface-strong, #fff) !important;
  color: var(--pcw-text, #101828) !important;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
}

/* --------------------------------------------------------------------------
   Forms
-------------------------------------------------------------------------- */

.woocommerce form .form-row,
.woocommerce-page form .form-row {
  padding: 0;
  margin: 0 0 16px;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
.woocommerce form label,
.woocommerce-page form label,
.wc-block-components-text-input label,
.wc-block-components-checkbox label,
.wc-block-components-radio-control label {
  color: var(--pcw-soft-text, #475467);
  font-weight: 820;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"] {
  min-height: 48px;
  border-radius: 16px !important;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  background: var(--pcw-surface-strong, #fff) !important;
  color: var(--pcw-text, #101828) !important;
  box-shadow: none !important;
  padding: 12px 14px !important;
  outline: none !important;
}

.woocommerce textarea,
.woocommerce-page textarea {
  min-height: 120px;
  resize: vertical;
}

.woocommerce input::placeholder,
.woocommerce textarea::placeholder,
.wc-block-components-text-input input::placeholder {
  color: var(--pcw-muted, #667085) !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.wc-block-components-text-input input:focus {
  border-color: color-mix(in srgb, var(--pcw-primary, #7c3aed) 72%, var(--pcw-border, #d0d5dd)) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pcw-primary, #7c3aed) 16%, transparent) !important;
}

.select2-dropdown {
  background: var(--pcw-surface-strong, #fff) !important;
  color: var(--pcw-text, #101828) !important;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: var(--pcw-card-shadow, 0 18px 48px rgba(16,24,40,0.10));
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: var(--pcw-primary, #7c3aed) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
  background: var(--pcw-surface-soft, #eef2ff) !important;
  color: var(--pcw-text, #101828) !important;
}

.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
  border-color: var(--pcw-danger, #ef4444) !important;
}

.woocommerce-validated input,
.woocommerce-validated select,
.woocommerce-validated textarea {
  border-color: var(--pcw-success, #10b981) !important;
}

/* --------------------------------------------------------------------------
   Product Archive / Tickets Grid
-------------------------------------------------------------------------- */

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin: 0 0 22px;
  color: var(--pcw-muted, #667085);
  font-weight: 760;
}

.woocommerce .woocommerce-ordering select {
  min-width: 210px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0 0 !important;
}

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  position: relative;
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: 12px;
  box-shadow: var(--pcw-card-shadow, 0 18px 48px rgba(16,24,40,0.10));
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pcw-primary, #7c3aed) 38%, var(--pcw-border, #d0d5dd));
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.18);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 22px;
  margin: 0 0 14px !important;
  background: var(--pcw-surface-soft, #eef2ff);
}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  color: var(--pcw-text, #101828);
  font-size: 1.04rem !important;
  line-height: 1.22;
  font-weight: 950;
  padding: 0 4px !important;
  margin: 2px 0 8px !important;
  letter-spacing: -0.04em;
}

.woocommerce ul.products li.product .price {
  color: var(--pcw-primary, #7c3aed) !important;
  font-weight: 950 !important;
  font-size: 1.06rem !important;
  padding: 0 4px;
  margin: 8px 0 12px !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--pcw-muted, #667085) !important;
  opacity: 0.62;
  font-weight: 700;
}

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

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  min-width: auto;
  min-height: auto;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pcw-gradient, linear-gradient(135deg, #7c3aed, #ec4899, #f97316));
  color: #fff;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  top: 18px;
  left: 18px;
  right: auto;
  margin: 0;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.28);
}

.woocommerce ul.products li.product .button {
  width: 100%;
  margin-top: 4px !important;
}

.star-rating,
.woocommerce .star-rating,
.woocommerce p.stars a {
  color: var(--pcw-warning, #f59e0b);
}

/* --------------------------------------------------------------------------
   Single Product / Ticket Details
-------------------------------------------------------------------------- */

.woocommerce div.product {
  background: transparent;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  margin-bottom: 34px;
}

.woocommerce div.product div.images img {
  border-radius: var(--pcw-radius-xl, 30px);
  box-shadow: var(--pcw-card-shadow, 0 18px 48px rgba(16,24,40,0.10));
  background: var(--pcw-surface-soft, #eef2ff);
}

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

.woocommerce div.product div.images .flex-control-thumbs li {
  width: 72px !important;
  float: none !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  border-radius: 14px;
  border: 2px solid transparent;
  opacity: 0.75;
  box-shadow: none;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  border-color: var(--pcw-primary, #7c3aed);
  opacity: 1;
}

.woocommerce div.product div.summary {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--pcw-card-shadow, 0 18px 48px rgba(16,24,40,0.10));
}

.woocommerce div.product .product_title {
  margin-bottom: 12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--pcw-primary, #7c3aed);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--pcw-soft-text, #475467);
  font-size: 1rem;
  margin: 16px 0 20px;
}

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

.woocommerce div.product form.cart div.quantity {
  margin: 0 !important;
}

.woocommerce .quantity .qty {
  width: 86px;
  min-height: 48px;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: 16px;
  background: var(--pcw-surface-strong, #fff);
  color: var(--pcw-text, #101828);
  font-weight: 850;
  text-align: center;
}

.woocommerce div.product form.cart .button {
  flex: 1 1 220px;
}

.woocommerce div.product .product_meta {
  color: var(--pcw-muted, #667085);
  font-weight: 720;
  border-top: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  padding-top: 16px;
}

.woocommerce div.product .product_meta > span {
  display: block;
  margin: 7px 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  border: 0;
  overflow-x: auto;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  background: var(--pcw-surface, rgba(255,255,255,0.92)) !important;
  color: var(--pcw-muted, #667085);
  border-radius: 999px !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--pcw-gradient, linear-gradient(135deg, #7c3aed, #ec4899, #f97316)) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: inherit !important;
  padding: 12px 16px !important;
  font-weight: 900 !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
  color: var(--pcw-soft-text, #475467);
}

.woocommerce-Reviews-title,
.woocommerce #reviews #comments h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: 20px;
  background: var(--pcw-surface-strong, #fff);
  color: var(--pcw-text, #101828);
}

.woocommerce #review_form #respond {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: 22px;
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
}

/* --------------------------------------------------------------------------
   Tables: Cart, Orders, Downloads
-------------------------------------------------------------------------- */

.woocommerce table.shop_table,
.woocommerce-page table.shop_table,
.woocommerce table.shop_table_responsive,
.woocommerce-page table.shop_table_responsive,
.wc-block-cart-items,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary {
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  border-radius: var(--pcw-radius-xl, 30px) !important;
  background: var(--pcw-surface, rgba(255,255,255,0.92)) !important;
  color: var(--pcw-text, #101828) !important;
  overflow: hidden;
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-page table.shop_table th,
.woocommerce-page table.shop_table td,
.wc-block-cart-items th,
.wc-block-cart-items td {
  border-color: var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  color: var(--pcw-text, #101828);
  padding: 16px !important;
}

.woocommerce table.shop_table th,
.woocommerce-page table.shop_table th,
.wc-block-cart-items th {
  color: var(--pcw-soft-text, #475467);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 950;
  background: var(--pcw-surface-soft, #eef2ff);
}

.woocommerce table.shop_table td.product-name a,
.woocommerce-page table.shop_table td.product-name a,
.wc-block-components-product-name {
  color: var(--pcw-text, #101828) !important;
  font-weight: 900;
}

.woocommerce table.shop_table img,
.woocommerce-page table.shop_table img,
.wc-block-cart-item__image img {
  border-radius: 14px;
}

.woocommerce a.remove {
  color: var(--pcw-danger, #ef4444) !important;
  background: color-mix(in srgb, var(--pcw-danger, #ef4444) 10%, transparent) !important;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}

.woocommerce a.remove:hover {
  color: #fff !important;
  background: var(--pcw-danger, #ef4444) !important;
}

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

.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: min(260px, 100%) !important;
  min-height: 46px;
  border-radius: 999px !important;
  padding: 12px 16px !important;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  background: var(--pcw-surface-strong, #fff) !important;
  color: var(--pcw-text, #101828) !important;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details,
.wc-block-cart__totals-title,
.wc-block-components-sidebar-layout .wc-block-components-sidebar {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--pcw-card-shadow, 0 18px 48px rgba(16,24,40,0.10));
}

.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-size: 1.35rem;
  margin: 0 0 18px;
  font-weight: 950;
}

/* --------------------------------------------------------------------------
   Checkout
-------------------------------------------------------------------------- */

.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: auto;
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
}

.woocommerce-checkout #order_review {
  margin-top: 24px;
}

.woocommerce-checkout-payment,
.woocommerce #payment {
  background: var(--pcw-surface-soft, #eef2ff) !important;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px) !important;
  color: var(--pcw-text, #101828);
}

.woocommerce #payment ul.payment_methods {
  border-bottom: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
}

.woocommerce #payment div.payment_box {
  background: var(--pcw-surface-strong, #fff) !important;
  color: var(--pcw-soft-text, #475467) !important;
  border-radius: 18px;
}

.woocommerce #payment div.payment_box::before {
  border-bottom-color: var(--pcw-surface-strong, #fff) !important;
}

.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper,
.wc-block-components-checkout-step__description,
.wc-block-components-checkbox .wc-block-components-checkbox__label {
  color: var(--pcw-muted, #667085);
}

/* --------------------------------------------------------------------------
   My Account
-------------------------------------------------------------------------- */

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  display: none;
}

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.lost_reset_password {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: clamp(18px, 4vw, 26px);
  box-shadow: var(--pcw-card-shadow, 0 18px 48px rgba(16,24,40,0.10));
  color: var(--pcw-text, #101828);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.lost_reset_password {
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--pcw-muted, #667085);
  font-weight: 880;
  border: 1px solid transparent;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  color: var(--pcw-text, #101828);
  background: var(--pcw-surface-soft, #eef2ff);
  border-color: var(--pcw-border, rgba(16, 24, 40, 0.1));
}

.woocommerce-MyAccount-content p:first-child {
  margin-top: 0;
}

.woocommerce-Address,
.woocommerce-address-fields,
.woocommerce-customer-details address,
.woocommerce-order-overview,
.woocommerce-order-details,
.woocommerce-customer-details {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border-color: var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  border-radius: var(--pcw-radius-lg, 22px);
  color: var(--pcw-text, #101828);
}

.woocommerce ul.order_details {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: 18px;
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
}

/* --------------------------------------------------------------------------
   Ticket/Event Product Enhancements
   These are safe helpers that work if you add the classes in templates later.
-------------------------------------------------------------------------- */

.pcw-ticket-product-card,
.product-type-event_ticket,
.product_cat-tickets,
.product_cat-ticket {
  position: relative;
}

.pcw-ticket-meta,
.woocommerce .pcw-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.pcw-ticket-chip,
.woocommerce .pcw-ticket-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--pcw-surface-soft, #eef2ff);
  color: var(--pcw-soft-text, #475467);
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  font-size: 0.82rem;
  font-weight: 850;
}

.pcw-app-ticket-cta,
.woocommerce .pcw-app-ticket-cta {
  margin: 22px 0;
  border-radius: var(--pcw-radius-xl, 30px);
  padding: clamp(20px, 4vw, 30px);
  color: #fff;
  background: var(--pcw-gradient, linear-gradient(135deg, #7c3aed, #ec4899, #f97316));
  box-shadow: 0 22px 54px rgba(124, 58, 237, 0.26);
  overflow: hidden;
}

.pcw-app-ticket-cta h3,
.woocommerce .pcw-app-ticket-cta h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.pcw-app-ticket-cta p,
.woocommerce .pcw-app-ticket-cta p {
  color: rgba(255,255,255,0.86);
  margin: 0 0 16px;
}

.pcw-app-ticket-cta .pcw-btn,
.woocommerce .pcw-app-ticket-cta .pcw-btn {
  background: rgba(255,255,255,0.16) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   WooCommerce Blocks
-------------------------------------------------------------------------- */

.wc-block-grid__product,
.wc-block-components-product-metadata,
.wc-block-components-order-summary-item,
.wc-block-cart-item__wrap,
.wc-block-components-panel,
.wc-block-checkout__terms,
.wc-block-components-address-card {
  color: var(--pcw-text, #101828);
}

.wc-block-grid__products {
  gap: 22px;
}

.wc-block-grid__product {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  border-radius: var(--pcw-radius-xl, 30px);
  padding: 12px;
  box-shadow: var(--pcw-card-shadow, 0 18px 48px rgba(16,24,40,0.10));
}

.wc-block-grid__product-image img {
  border-radius: 22px;
}

.wc-block-grid__product-title,
.wc-block-components-product-name,
.wc-block-components-title {
  color: var(--pcw-text, #101828) !important;
  font-weight: 950;
}

.wc-block-grid__product-price,
.wc-block-components-product-price,
.wc-block-components-totals-item__value {
  color: var(--pcw-primary, #7c3aed) !important;
  font-weight: 950;
}

.wc-block-cart,
.wc-block-checkout {
  color: var(--pcw-text, #101828);
}

.wc-block-components-sidebar,
.wc-block-components-main,
.wc-block-components-checkout-step,
.wc-block-components-card {
  background: var(--pcw-surface, rgba(255,255,255,0.92));
  border-color: var(--pcw-border, rgba(16, 24, 40, 0.1)) !important;
  border-radius: var(--pcw-radius-xl, 30px) !important;
  color: var(--pcw-text, #101828);
}

.wc-block-components-checkout-step {
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  box-shadow: var(--pcw-small-shadow, 0 10px 24px rgba(16,24,40,0.08));
}

.wc-block-components-totals-wrapper,
.wc-block-components-order-summary {
  box-shadow: none;
}

.wc-block-components-radio-control__option,
.wc-block-components-checkbox,
.wc-block-components-payment-method-label,
.wc-block-components-shipping-rates-control__package {
  color: var(--pcw-text, #101828) !important;
}

/* --------------------------------------------------------------------------
   Dark Mode Specific Fixes
-------------------------------------------------------------------------- */

html[data-theme="dark"] .woocommerce img,
html[data-theme="dark"] .woocommerce-page img {
  color-scheme: dark;
}

html[data-theme="dark"] .woocommerce .coupon .button,
html[data-theme="dark"] .woocommerce-cart-form .actions .button[name="update_cart"],
html[data-theme="dark"] .woocommerce .woocommerce-form-login .button,
html[data-theme="dark"] .woocommerce-account .woocommerce-button,
html[data-theme="dark"] .woocommerce .woocommerce-Button,
html[data-theme="dark"] .woocommerce .return-to-shop .button,
html[data-theme="dark"] .wc-block-components-button.is-link {
  background: var(--pcw-surface-soft, #171a2d) !important;
  color: var(--pcw-text, #f8fafc) !important;
}

html[data-theme="dark"] .woocommerce form .form-row input.input-text,
html[data-theme="dark"] .woocommerce form .form-row textarea,
html[data-theme="dark"] .woocommerce form .form-row select,
html[data-theme="dark"] .woocommerce input[type="text"],
html[data-theme="dark"] .woocommerce input[type="email"],
html[data-theme="dark"] .woocommerce input[type="tel"],
html[data-theme="dark"] .woocommerce input[type="number"],
html[data-theme="dark"] .woocommerce input[type="password"],
html[data-theme="dark"] .woocommerce textarea,
html[data-theme="dark"] .woocommerce select,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] .wc-block-components-text-input input {
  color-scheme: dark;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: var(--pcw-text, #f8fafc) !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--pcw-text, #f8fafc) transparent transparent transparent;
}

html[data-theme="dark"] .woocommerce table.shop_table th,
html[data-theme="dark"] .woocommerce-page table.shop_table th,
html[data-theme="dark"] .wc-block-cart-items th {
  background: rgba(255,255,255,0.045);
}

html[data-theme="dark"] .woocommerce #payment div.payment_box,
html[data-theme="dark"] .woocommerce #reviews #comments ol.commentlist li .comment-text {
  background: var(--pcw-surface-soft, #171a2d) !important;
}

html[data-theme="dark"] .woocommerce #payment div.payment_box::before {
  border-bottom-color: var(--pcw-surface-soft, #171a2d) !important;
}

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-checkout .col2-set,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-MyAccount-navigation {
    position: relative;
    top: auto;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .woocommerce-page main,
  .woocommerce-page .site-main,
  .woocommerce main.site-main,
  .woocommerce .content-area,
  .woocommerce-cart .content-area,
  .woocommerce-checkout .content-area,
  .woocommerce-account .content-area,
  .woocommerce .woocommerce-breadcrumb,
  .woocommerce .woocommerce-message,
  .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-error,
  .woocommerce-page .woocommerce-message,
  .woocommerce-page .woocommerce-info,
  .woocommerce-page .woocommerce-error,
  .wc-block-components-notice-banner {
    width: min(100% - 24px, 1180px);
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering {
    float: none;
    width: 100%;
  }

  .woocommerce .woocommerce-ordering select {
    width: 100%;
  }

  .woocommerce div.product div.summary {
    padding: 20px;
  }

  .woocommerce div.product form.cart {
    align-items: stretch;
  }

  .woocommerce div.product form.cart div.quantity,
  .woocommerce div.product form.cart .button,
  .woocommerce .quantity .qty {
    width: 100%;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    float: none;
    width: 100%;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon .button,
  .woocommerce-cart table.cart td.actions .button[name="update_cart"] {
    width: 100% !important;
  }

  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr {
    border-bottom: 1px solid var(--pcw-border, rgba(16, 24, 40, 0.1));
  }

  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before {
    color: var(--pcw-muted, #667085);
    font-weight: 900;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2,
  .woocommerce-checkout #order_review,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    padding: 18px;
    border-radius: 24px;
  }
}
