/* =====================================================
   ExpertlyEdu WooCommerce Skin
   Shop, product, cart, checkout and account pages
===================================================== */
body.woocommerce,
body.woocommerce-page {
  background:
    radial-gradient(circle at top right, rgba(30,111,187,0.22), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(23,212,232,0.12), transparent 28rem),
    var(--color-bg);
  color: var(--color-text);
}

.woocommerce-page .site-main,
.woocommerce .site-main,
.woocommerce-page #primary,
.woocommerce #primary {
  background: transparent !important;
}

.expertly-shop-page {
  min-height: 70vh;
  padding: calc(var(--header-offset, 72px) + 48px) 0 88px;
  position: relative;
  overflow: hidden;
}

.expertly-shop-page::before,
.expertly-shop-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .45;
}

.expertly-shop-page::before {
  width: 420px;
  height: 420px;
  background: rgba(30,111,187,.35);
  right: -120px;
  top: 80px;
}

.expertly-shop-page::after {
  width: 360px;
  height: 360px;
  background: rgba(23,212,232,.16);
  left: -120px;
  bottom: 8%;
}

.expertly-shop-hero,
.expertly-woo-shell {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.expertly-shop-hero {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.expertly-shop-hero-main,
.expertly-shop-hero-card,
.expertly-woo-panel {
  background: linear-gradient(135deg, rgba(13,27,53,.94), rgba(10,20,40,.92));
  border: 1px solid rgba(30,111,187,.22);
  border-radius: var(--radius-2xl, 28px);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,.4));
  backdrop-filter: blur(18px);
}

.expertly-shop-hero-main {
  padding: clamp(26px, 4vw, 48px);
}

.expertly-shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(23,212,232,.1);
  border: 1px solid rgba(23,212,232,.22);
  color: var(--color-secondary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.expertly-shop-hero h1,
.woocommerce-products-header__title.page-title {
  color: #fff;
  font-family: var(--font-heading, 'Outfit', 'Inter', sans-serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 16px;
}

.expertly-shop-hero p {
  color: rgba(226,232,240,.76);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.8;
  max-width: 760px;
  margin: 0;
}

.expertly-shop-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.expertly-shop-hero-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.expertly-shop-hero-card strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.expertly-shop-hero-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expertly-shop-hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(226,232,240,.72);
  font-size: .95rem;
}

.expertly-shop-hero-list li::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: rgba(23,212,232,.12);
  border: 1px solid rgba(23,212,232,.26);
  color: var(--color-secondary);
  font-weight: 900;
  font-size: .76rem;
}

.expertly-woo-toolbar,
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce-notices-wrapper {
  position: relative;
  z-index: 1;
}

.expertly-woo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(13,27,53,.76);
  border: 1px solid rgba(255,255,255,.08);
}

.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  float: none;
  margin: 0;
  color: rgba(226,232,240,.7);
  font-size: .92rem;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
  float: none;
  margin: 0;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select,
.woocommerce select,
.woocommerce-page select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce-page input.input-text,
.woocommerce-page textarea {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(6,13,31,.78);
  color: var(--color-text);
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce-page input.input-text:focus,
.woocommerce-page textarea:focus,
.woocommerce-page select:focus {
  border-color: rgba(23,212,232,.45);
  box-shadow: 0 0 0 4px rgba(23,212,232,.08);
  background: rgba(6,13,31,.95);
}

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

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product.expertly-product-card,
.woocommerce-page ul.products li.product.expertly-product-card {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
}

.expertly-product-card-inner,
.woocommerce ul.products li.product:not(.product-category) {
  position: relative;
}

.expertly-product-card-inner {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(13,27,53,.98), rgba(10,20,40,.98));
  border: 1px solid rgba(30,111,187,.2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.expertly-product-card-inner:hover {
  transform: translateY(-6px);
  border-color: rgba(23,212,232,.34);
  box-shadow: 0 24px 70px rgba(30,111,187,.2);
}

.expertly-product-image-link {
  position: relative;
  display: block;
  min-height: 176px;
  background:
    radial-gradient(circle at 72% 12%, rgba(23,212,232,.18), transparent 34%),
    radial-gradient(circle at 20% 90%, rgba(30,111,187,.24), transparent 38%),
    rgba(6,13,31,.7);
  overflow: hidden;
}

.expertly-product-image-link img,
.woocommerce ul.products li.product a img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  margin: 0 !important;
  display: block;
  opacity: .94;
  transition: transform .35s ease, opacity .35s ease;
}

.expertly-product-card-inner:hover .expertly-product-image-link img {
  transform: scale(1.04);
  opacity: 1;
}

.expertly-product-placeholder {
  height: 210px;
  display: grid;
  place-items: center;
  color: var(--color-secondary);
  font-size: 3rem;
}

.woocommerce span.onsale,
.woocommerce-page span.onsale,
.expertly-product-badge {
  min-height: auto;
  min-width: auto;
  line-height: 1;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #17D4E8, #1E6FBB);
  color: #04101f;
  font-weight: 900;
  font-size: .76rem;
  box-shadow: 0 8px 22px rgba(23,212,232,.24);
}

.woocommerce span.onsale,
.woocommerce-page span.onsale {
  top: 14px;
  left: 14px;
  right: auto;
}

.expertly-product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
}

.expertly-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.expertly-product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  color: #fff;
  font-family: var(--font-heading, 'Outfit', 'Inter', sans-serif);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.22;
  padding: 0;
  margin: 0 0 10px;
}

.expertly-product-excerpt {
  color: rgba(226,232,240,.68);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

.expertly-product-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.expertly-product-meta span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  padding: 9px 8px;
  color: rgba(226,232,240,.72);
  font-size: .72rem;
  text-align: center;
}

.expertly-product-meta strong {
  color: var(--color-secondary);
  font-size: .98rem;
  line-height: 1;
}

.expertly-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.expertly-product-price {
  color: var(--color-secondary);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: rgba(226,232,240,.38);
  opacity: 1;
  font-size: .88rem;
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  text-decoration: none;
  color: var(--color-secondary);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.expertly-product-card .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  background: var(--gradient-primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: .92rem !important;
  line-height: 1 !important;
  box-shadow: 0 8px 24px rgba(30,111,187,.28) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 34px rgba(30,111,187,.42) !important;
}

.woocommerce a.added_to_cart {
  margin-left: 8px;
  color: var(--color-secondary);
  font-weight: 800;
  font-size: .88rem;
}

.woocommerce .star-rating,
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: #f59e0b;
}

.woocommerce nav.woocommerce-pagination {
  margin-top: 36px;
}

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

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--color-text);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--gradient-primary);
  color: #fff;
}

/* Notices */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  background: rgba(13,27,53,.92);
  border: 1px solid rgba(23,212,232,.18);
  border-left: 4px solid var(--color-secondary);
  color: var(--color-text);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
  color: var(--color-secondary);
}

/* Single product */
.woocommerce div.product {
  width: min(1240px, calc(100% - 32px));
  margin: calc(var(--header-offset, 72px) + 50px) auto 90px;
  background: linear-gradient(135deg, rgba(13,27,53,.92), rgba(10,20,40,.92));
  border: 1px solid rgba(30,111,187,.2);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow-card);
}

.woocommerce div.product div.images img {
  border-radius: 22px;
  background: rgba(255,255,255,.04);
}

.woocommerce div.product .product_title {
  color: #fff;
  font-family: var(--font-heading, 'Outfit', 'Inter', sans-serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-product-details__short-description p {
  color: rgba(226,232,240,.72);
  line-height: 1.8;
}

.woocommerce div.product form.cart {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.woocommerce .quantity .qty {
  width: 84px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(6,13,31,.82);
  color: #fff;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 42px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom-color: rgba(255,255,255,.08);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 16px 16px 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: rgba(30,111,187,.22);
  border-color: rgba(23,212,232,.22);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--color-text);
  font-weight: 800;
}

.woocommerce div.product .woocommerce-tabs .panel {
  color: rgba(226,232,240,.72);
  line-height: 1.75;
  padding: 24px 0 0;
}

.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce .related.products h2,
.woocommerce .up-sells h2 {
  color: #fff;
  font-family: var(--font-heading, 'Outfit', 'Inter', sans-serif);
  font-weight: 900;
}

/* Cart / Checkout / Account pages */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content,
.woocommerce-cart main,
.woocommerce-checkout main,
.woocommerce-account main {
  color: var(--color-text);
}

.woocommerce-cart .expertly-page,
.woocommerce-checkout .expertly-page,
.woocommerce-account .expertly-page {
  background: transparent;
}

.woocommerce table.shop_table,
.woocommerce-page table.shop_table,
.woocommerce-cart-form,
.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.woocommerce .cart_totals,
.woocommerce .woocommerce-MyAccount-navigation,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.woocommerce-form-coupon {
  background: linear-gradient(135deg, rgba(13,27,53,.92), rgba(10,20,40,.92));
  border: 1px solid rgba(30,111,187,.18);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce table.shop_table th,
.woocommerce-page table.shop_table th {
  color: #fff;
  font-weight: 900;
  background: rgba(255,255,255,.035);
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th,
.woocommerce-page table.shop_table td,
.woocommerce-page table.shop_table th {
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(226,232,240,.75);
}

.woocommerce table.shop_table a,
.woocommerce-page table.shop_table a,
.woocommerce .woocommerce-MyAccount-navigation a {
  color: var(--color-secondary);
  font-weight: 800;
}

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

.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-account h2,
.woocommerce-account h3 {
  color: #fff;
  font-family: var(--font-heading, 'Outfit', 'Inter', sans-serif);
  font-weight: 900;
}

.woocommerce form .form-row label {
  color: rgba(226,232,240,.8);
  font-weight: 700;
}

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

.woocommerce-checkout #payment {
  background: rgba(6,13,31,.78);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}

.woocommerce-checkout #payment div.payment_box {
  background: rgba(255,255,255,.05);
  color: rgba(226,232,240,.75);
  border-radius: 14px;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(255,255,255,.05);
}

.woocommerce .woocommerce-MyAccount-navigation {
  padding: 14px;
}

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

.woocommerce .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(226,232,240,.78);
}

.woocommerce .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce .woocommerce-MyAccount-navigation li a:hover {
  background: rgba(30,111,187,.22);
  border-color: rgba(23,212,232,.22);
  color: #fff;
}

.woocommerce .woocommerce-MyAccount-content {
  padding: 24px;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.woocommerce-form-coupon {
  padding: 22px;
}

/* Empty states */
.woocommerce .cart-empty,
.woocommerce .woocommerce-info.cart-empty {
  text-align: center;
  padding: 34px;
}

/* Search/widgets/sidebar if present */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--color-secondary);
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: rgba(255,255,255,.14);
}

/* Mobile */
@media (max-width: 1080px) {
  .expertly-shop-hero {
    grid-template-columns: 1fr;
  }
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .expertly-shop-page {
    padding-top: calc(var(--header-offset, 64px) + 28px);
  }
  .expertly-shop-hero-main,
  .expertly-shop-hero-card {
    padding: 22px;
    border-radius: 22px;
  }
  .expertly-woo-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr;
  }
  .expertly-product-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .expertly-product-footer .button {
    width: 100%;
  }
  .expertly-product-meta {
    grid-template-columns: 1fr;
  }
  .woocommerce div.product {
    width: min(100% - 24px, 1240px);
    margin-top: calc(var(--header-offset, 64px) + 24px);
    padding: 16px;
    border-radius: 22px;
  }
  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before {
    color: #fff;
  }
}

/* =====================================================
   ExpertlyEdu Checkout Form Field Fix
   Prevent white WooCommerce checkout inputs/dropdowns
===================================================== */
.woocommerce-checkout form.checkout {
  padding: clamp(18px, 3vw, 30px);
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-account-fields,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout #customer_details,
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  color: var(--color-text, #e2e8f0);
}

.woocommerce form .form-row {
  margin-bottom: 16px;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
.woocommerce-checkout label,
.woocommerce-checkout .woocommerce-input-wrapper {
  color: rgba(226, 232, 240, .82) !important;
}

.woocommerce form .form-row .input-text,
.woocommerce-page form .form-row .input-text,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="search"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .input-text,
.woocommerce-checkout .select2-container--default .select2-selection--single,
.woocommerce-checkout .select2-container--default .select2-selection--multiple,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="tel"],
.woocommerce-account input[type="password"],
.woocommerce-account textarea,
.woocommerce-account select {
  width: 100%;
  min-height: 50px;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  background: linear-gradient(135deg, rgba(6, 13, 31, .92), rgba(13, 27, 53, .82)) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 26px rgba(0, 0, 0, .14);
  outline: none !important;
  padding: 12px 15px !important;
  line-height: 1.35;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder,
.woocommerce-account input::placeholder,
.woocommerce-account textarea::placeholder {
  color: rgba(203, 213, 225, .56) !important;
  opacity: 1;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce-page form .form-row .input-text:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus,
.woocommerce-account input:focus,
.woocommerce-account textarea:focus,
.woocommerce-account select:focus,
.woocommerce-checkout .select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: rgba(23, 212, 232, .55) !important;
  background: linear-gradient(135deg, rgba(6, 13, 31, .98), rgba(13, 27, 53, .94)) !important;
  box-shadow: 0 0 0 4px rgba(23, 212, 232, .10), 0 16px 36px rgba(0, 0, 0, .22) !important;
}

.woocommerce-checkout select option,
.woocommerce-account select option,
.woocommerce select option,
.woocommerce-page select option {
  background: #0d1b35 !important;
  color: #f8fafc !important;
}

/* WooCommerce Select2 country/state dropdown */
.woocommerce-checkout .select2-container,
.woocommerce-account .select2-container {
  width: 100% !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single,
.woocommerce-account .select2-container--default .select2-selection--single {
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f8fafc !important;
  padding-left: 0 !important;
  padding-right: 32px !important;
  line-height: 1.35 !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder,
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(203, 213, 225, .62) !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 12px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b,
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #17d4e8 transparent transparent transparent !important;
}

.select2-container--open .select2-dropdown,
.woocommerce .select2-dropdown,
.woocommerce-page .select2-dropdown {
  background: #0d1b35 !important;
  border: 1px solid rgba(23, 212, 232, .28) !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45) !important;
  z-index: 999999 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: rgba(6, 13, 31, .95) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  color: #f8fafc !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  outline: none !important;
}

.select2-results__option,
.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #0d1b35 !important;
  color: rgba(248, 250, 252, .88) !important;
  padding: 10px 14px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: linear-gradient(135deg, var(--color-primary, #1e6fbb), var(--color-secondary, #17d4e8)) !important;
  color: #ffffff !important;
}

/* Validation states */
.woocommerce form .form-row.woocommerce-invalid .select2-container,
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea {
  border-color: rgba(248, 113, 113, .75) !important;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .10) !important;
}

.woocommerce form .form-row.woocommerce-validated .select2-container,
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.woocommerce form .form-row.woocommerce-validated textarea {
  border-color: rgba(34, 197, 94, .55) !important;
}

/* Checkout coupon/login notices */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(13, 27, 53, .94), rgba(10, 20, 40, .94)) !important;
  border: 1px solid rgba(23, 212, 232, .22) !important;
  color: rgba(226, 232, 240, .86) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22) !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before {
  color: var(--color-secondary, #17d4e8) !important;
}

.woocommerce .woocommerce-error::before {
  color: #f87171 !important;
}

.woocommerce-checkout .woocommerce-form-coupon,
.woocommerce-checkout .woocommerce-form-login {
  background: linear-gradient(135deg, rgba(13,27,53,.92), rgba(10,20,40,.92)) !important;
  border: 1px solid rgba(30,111,187,.18) !important;
  border-radius: 22px !important;
  color: rgba(226,232,240,.78) !important;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,.4));
}

/* Checkboxes / terms */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-account input[type="checkbox"] {
  accent-color: var(--color-secondary, #17d4e8);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-form__label-for-checkbox,
.woocommerce-checkout .woocommerce-form__label-for-checkbox span {
  color: rgba(226, 232, 240, .78) !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout .woocommerce-form__label-for-checkbox a {
  color: var(--color-secondary, #17d4e8) !important;
  font-weight: 800;
}

/* Payment area */
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li label {
  color: rgba(248, 250, 252, .9) !important;
}

.woocommerce-checkout #payment div.payment_box,
.woocommerce-checkout #payment .payment_box p,
.woocommerce-checkout #payment .payment_box label {
  color: rgba(226, 232, 240, .8) !important;
}

/* Third-party payment plugin fields/iframes wrappers */
.woocommerce-checkout .payment_box input,
.woocommerce-checkout .payment_box select,
.woocommerce-checkout .payment_box textarea,
.woocommerce-checkout .wc-credit-card-form input,
.woocommerce-checkout .wc-stripe-elements-field,
.woocommerce-checkout .wc-stripe-iban-element-field,
.woocommerce-checkout .StripeElement,
.woocommerce-checkout .paytr-form input,
.woocommerce-checkout .iyzico-form input {
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(6,13,31,.92) !important;
  color: #f8fafc !important;
  padding: 12px 14px !important;
}

/* Prevent browser autofill from turning fields white/yellow */
.woocommerce-checkout input:-webkit-autofill,
.woocommerce-checkout input:-webkit-autofill:hover,
.woocommerce-checkout input:-webkit-autofill:focus,
.woocommerce-account input:-webkit-autofill,
.woocommerce-account input:-webkit-autofill:hover,
.woocommerce-account input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #0d1b35 inset !important;
  caret-color: #f8fafc !important;
  transition: background-color 9999s ease-in-out 0s;
}

@media (max-width: 768px) {
  .woocommerce-checkout form.checkout {
    padding: 16px;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
  }
}

/* ============================================================
   ExpertlyEdu - Direct checkout / sepet adimini gizleme
   ============================================================ */
.woocommerce .quantity,
.woocommerce-page .quantity,
.woocommerce div.product form.cart div.quantity,
.woocommerce .product-quantity,
.woocommerce table.shop_table .product-quantity,
.woocommerce-checkout-review-order-table .product-quantity,
.woocommerce .wc-forward[href*="cart"],
.woocommerce a.button.wc-forward[href*="cart"] {
    display: none !important;
}

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

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .button.single_add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce .expertly-product-footer .button {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    color: #111827 !important;
    border: 0 !important;
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce .expertly-product-footer .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(245, 158, 11, 0.34) !important;
}

.woocommerce div.product form.cart .variations {
    width: 100%;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
    display: block;
    width: 100%;
    padding: 8px 0 !important;
    color: #e5e7eb;
    text-align: left;
}

.woocommerce div.product form.cart .variations label {
    color: #f8fafc;
    font-weight: 800;
}

.woocommerce div.product form.cart .reset_variations {
    color: #fbbf24 !important;
    font-size: 0.9rem;
    margin-left: 0;
}

.woocommerce-variation-price,
.woocommerce-variation-availability {
    margin: 12px 0;
    color: #e5e7eb;
}

.expertly-direct-checkout-notice,
.woocommerce-message .expertly-direct-checkout-notice {
    color: #e5e7eb;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-cart form.woocommerce-cart-form {
    display: none !important;
}

