/* =========================================================
   King Animation School - WooCommerce / Store styles
   Dark navy + purple + gold, matched to the main theme.
   ========================================================= */

.kas-shop { padding-top: 40px; }
.kas-shop__body { position: relative; }

/* ---------- Header cart & account ---------- */
.kas-header__cta { display: flex; align-items: center; gap: 14px; }

.kas-cart,
.kas-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.kas-cart:hover,
.kas-account:hover {
  border-color: rgba(247, 185, 11, 0.7);
  background: rgba(247, 185, 11, 0.12);
  transform: translateY(-1px);
}

.kas-cart svg,
.kas-account svg { width: 20px; height: 20px; }

.kas-cart__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe07a, #f7b90b);
  color: #2b1a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

@media (max-width: 900px) {
  .kas-account span { display: none; }
}

/* ---------- Product grid ---------- */
.woocommerce ul.products,
.kas-store__grid ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(3, 6, 26, 0.45);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  text-align: left;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 185, 11, 0.55);
  box-shadow: 0 26px 60px rgba(3, 6, 26, 0.6);
}

.woocommerce ul.products li.product a img {
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px !important;
  font-weight: 700;
  color: #fff;
  padding: 0 0 6px !important;
  line-height: 1.35;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #ffd24a !important;
  font-weight: 800;
  font-size: 20px;
}

.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 500;
  font-size: 15px;
}

.woocommerce span.onsale {
  background: linear-gradient(135deg, #ffe07a, #f7b90b);
  color: #2b1a00;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 0;
  min-width: 0;
  line-height: 1.4;
  top: 14px;
  left: 14px;
  right: auto;
  margin: 0;
}

/* ---------- Buttons ---------- */
.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 {
  background: linear-gradient(135deg, #ffe07a, #f7b90b) !important;
  color: #24160a !important;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  line-height: 1.2;
  text-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(247, 185, 11, 0.3);
}

.woocommerce a.button.wc-forward,
.woocommerce .widget_shopping_cart a.button {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- Single product ---------- */
.woocommerce div.product .product_title {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product #tab-description,
.woocommerce div.product .woocommerce-tabs .panel {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 30px 0 0;
  border: 0;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin: 0 8px 8px 0;
  padding: 0;
}

.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 a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 700;
  padding: 11px 22px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: linear-gradient(135deg, #ffe07a, #f7b90b);
  border-color: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #24160a !important; }

.woocommerce div.product .woocommerce-tabs .panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 26px;
  margin-top: 18px;
}

/* Badges & trust list */
.kas-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.kas-badge--license {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.kas-trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.kas-trust li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.kas-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.kas-trust li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Cart / checkout / account ---------- */
.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals table,
.woocommerce-checkout #order_review {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.woocommerce table.shop_table thead th { color: #fff; }

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce p.no-comments {
  background: rgba(255, 255, 255, 0.05);
  border-top-color: #f7b90b;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
}

.woocommerce-info::before,
.woocommerce-message::before { color: #f7b90b; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  padding: 12px 14px;
  min-height: 48px;
}

.woocommerce form .form-row label,
.woocommerce-checkout h3,
.woocommerce-account h2,
.woocommerce-account h3 { color: #fff; }

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: none;
  border-color: rgba(247, 185, 11, 0.7);
  box-shadow: 0 0 0 3px rgba(247, 185, 11, 0.15);
}

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

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: linear-gradient(135deg, #ffe07a, #f7b90b);
  color: #24160a;
  border-color: transparent;
}

.woocommerce .woocommerce-form-login,
.woocommerce .woocommerce-form-register {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 26px;
}

.kas-cart-empty { text-align: center; margin-top: 22px; }

/* ---------- Homepage store section ---------- */
.kas-store__cta { text-align: center; margin-top: 34px; }

.kas-store__empty {
  text-align: center;
  padding: 46px 24px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
}

.kas-store__empty h3 { color: #fff; margin: 0 0 8px; font-size: 22px; }

/* ---------- Addon areas ---------- */
.kas-addon-area { padding: 26px 0; }
.kas-addon-widget { margin-bottom: 18px; color: rgba(255, 255, 255, 0.8); }
.kas-addon-widget__title { color: #fff; font-size: 18px; margin: 0 0 10px; }

/* ---------- Price / license table in account ---------- */
.kvlm-table,
.kvlm-dashboard table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  overflow: hidden;
}

.kvlm-table th,
.kvlm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  font-size: 14px;
}

.kvlm-table th { color: #fff; font-weight: 700; }
