/* Custom Storefront Pages — Phase 1 storefront styles */

.dsk-cs {
  --dsk-cs-bg: #f7f5f2;
  --dsk-cs-surface: #ffffff;
  --dsk-cs-text: #141414;
  --dsk-cs-muted: #6b6b6b;
  --dsk-cs-border: #e6e2dc;
  --dsk-cs-radius: 14px;
  font-family: var(--dsk-cs-font-body, "DM Sans", sans-serif);
  color: var(--dsk-cs-text);
  background: var(--dsk-cs-bg);
  padding: 28px 0 64px;
  min-height: 50vh;
}

.dsk-cs h1,
.dsk-cs h2,
.dsk-cs h3,
.dsk-cs .dsk-cs-product__title,
.dsk-cs .dsk-cs-shop__title,
.dsk-cs .dsk-cs-section-title,
.dsk-cs .dsk-cs-checkout__title,
.dsk-cs .dsk-cs-account__name {
  font-family: var(--dsk-cs-font-heading, "Outfit", sans-serif);
}

.dsk-cs-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.dsk-cs-btn,
.dsk-cs .button,
.dsk-cs button.button,
.dsk-cs .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--dsk-cs-accent, #111);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.dsk-cs-btn:hover,
.dsk-cs .button:hover,
.dsk-cs .single_add_to_cart_button:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.dsk-cs-btn--ghost {
  background: transparent;
  color: var(--dsk-cs-text) !important;
  border: 1px solid var(--dsk-cs-border);
}

/* Product grid cards */
.dsk-cs-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dsk-cs-card-product {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--dsk-cs-surface);
  border: 1px solid var(--dsk-cs-border);
  border-radius: var(--dsk-cs-radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.dsk-cs-card-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 20, 20, .08);
}

.dsk-cs-card-product__media {
  aspect-ratio: 1;
  background: #efece7;
  overflow: hidden;
}

.dsk-cs-card-product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.dsk-cs-card-product:hover .dsk-cs-card-product__img {
  transform: scale(1.04);
}

.dsk-cs-card-product__body {
  padding: 14px 14px 16px;
}

.dsk-cs-card-product__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.dsk-cs-card-product__price {
  font-weight: 700;
  font-size: 14px;
}

/* Single product */
.dsk-cs-product__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: start;
  margin-top: 12px;
}

.dsk-cs-product__main-image {
  background: var(--dsk-cs-surface);
  border: 1px solid var(--dsk-cs-border);
  border-radius: 18px;
  overflow: hidden;
}

.dsk-cs-product__img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.dsk-cs-product__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.dsk-cs-thumb {
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  background: var(--dsk-cs-surface);
  cursor: pointer;
}

.dsk-cs-thumb.is-active,
.dsk-cs-thumb:hover {
  border-color: var(--dsk-cs-accent, #111);
}

.dsk-cs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsk-cs-product__cats {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dsk-cs-muted);
  margin-bottom: 8px;
}

.dsk-cs-product__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
}

.dsk-cs-product__price {
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0;
}

.dsk-cs-product__short {
  color: var(--dsk-cs-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Single product cart row: wishlist + qty +/- + ATC */
.dsk-cs-product__cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.dsk-cs-product__cart form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  width: 100%;
}

/* Wishlist — soft squircle gradient + white heart */
.dsk-cs .dsk-wl-btn-single,
.dsk-cs-product__cart .dsk-wl-btn-single,
.dsk-cs-product .dsk-wl-btn-single,
.dsk-cs-wl-btn {
  order: -1;
  position: relative !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid rgba(255, 255, 255, .65) !important;
  border-radius: 16px !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35) 0%, transparent 42%),
    linear-gradient(145deg, #ff7a8a 0%, #e54b4b 48%, #c81e1e 100%) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  box-shadow:
    0 8px 20px rgba(229, 75, 75, .38),
    inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0 !important;
  line-height: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.dsk-cs .dsk-wl-btn-single::after,
.dsk-cs-product__cart .dsk-wl-btn-single::after,
.dsk-cs-product .dsk-wl-btn-single::after,
.dsk-cs-wl-btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  border: 1.5px solid rgba(229, 75, 75, .22);
  pointer-events: none;
}

.dsk-cs .dsk-wl-btn-single span,
.dsk-cs-product__cart .dsk-wl-btn-single span,
.dsk-cs-product .dsk-wl-btn-single span,
.dsk-cs-wl-btn span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.dsk-cs .dsk-wl-btn-single svg,
.dsk-cs-product__cart .dsk-wl-btn-single svg,
.dsk-cs-product .dsk-wl-btn-single svg,
.dsk-cs-wl-btn svg {
  width: 22px !important;
  height: 22px !important;
  fill: #fff !important;
  stroke: #fff !important;
  stroke-width: 1.6 !important;
  display: block !important;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12));
}

.dsk-cs .dsk-wl-btn-single:hover,
.dsk-cs-product__cart .dsk-wl-btn-single:hover,
.dsk-cs-product .dsk-wl-btn-single:hover,
.dsk-cs-wl-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 12px 26px rgba(229, 75, 75, .48),
    inset 0 1px 0 rgba(255, 255, 255, .4) !important;
  filter: brightness(1.04);
  border-color: rgba(255, 255, 255, .8) !important;
  color: #fff !important;
}

.dsk-cs .dsk-wl-btn-single.active,
.dsk-cs-product__cart .dsk-wl-btn-single.active,
.dsk-cs-product .dsk-wl-btn-single.active,
.dsk-cs-wl-btn.active {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .3) 0%, transparent 42%),
    linear-gradient(145deg, #ff5c6c 0%, #dc2626 55%, #991b1b 100%) !important;
  border-color: rgba(255, 255, 255, .75) !important;
  color: #fff !important;
  box-shadow:
    0 10px 24px rgba(220, 38, 38, .45),
    inset 0 1px 0 rgba(255, 255, 255, .3) !important;
  animation: dsk-cs-wl-pop .35s ease;
}

.dsk-cs .dsk-wl-btn-single.active svg,
.dsk-cs-product__cart .dsk-wl-btn-single.active svg,
.dsk-cs-product .dsk-wl-btn-single.active svg,
.dsk-cs-wl-btn.active svg {
  fill: #fff !important;
  stroke: #fff !important;
}

@keyframes dsk-cs-wl-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Qty +/- — style any .quantity inside CS product cart */
.dsk-cs-qty-wrap,
.dsk-cs-product__cart .quantity,
.dsk-cs-product form.cart .quantity {
  display: inline-flex !important;
  align-items: stretch;
  margin: 0 !important;
  border: 1.5px solid var(--dsk-cs-border, #e6e2dc);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  height: 48px;
  float: none !important;
}

.dsk-cs-qty-wrap .dsk-cs-qty-btn,
.dsk-cs-product__cart .quantity .dsk-cs-qty-btn,
.dsk-cs-product form.cart .quantity .dsk-cs-qty-btn {
  width: 44px;
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--dsk-cs-text, #141414) !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: none !important;
  transition: background .15s ease;
}

.dsk-cs-qty-wrap .dsk-cs-qty-btn:hover,
.dsk-cs-product__cart .quantity .dsk-cs-qty-btn:hover,
.dsk-cs-product form.cart .quantity .dsk-cs-qty-btn:hover {
  background: #f3f4f6 !important;
}

.dsk-cs-qty-wrap .qty,
.dsk-cs-product__cart .quantity .qty,
.dsk-cs-product form.cart .quantity .qty,
.dsk-cs-product__cart .quantity input.qty {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 64px;
  height: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-left: 1px solid var(--dsk-cs-border, #e6e2dc) !important;
  border-right: 1px solid var(--dsk-cs-border, #e6e2dc) !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: transparent !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
  appearance: textfield;
}

.dsk-cs-qty-wrap .qty::-webkit-outer-spin-button,
.dsk-cs-qty-wrap .qty::-webkit-inner-spin-button,
.dsk-cs-product__cart .quantity .qty::-webkit-outer-spin-button,
.dsk-cs-product__cart .quantity .qty::-webkit-inner-spin-button,
.dsk-cs-product form.cart .quantity .qty::-webkit-outer-spin-button,
.dsk-cs-product form.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dsk-cs-product__cart .single_add_to_cart_button,
.dsk-cs-product__cart button.single_add_to_cart_button,
.dsk-cs-product form.cart .single_add_to_cart_button {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 0 28px !important;
  border-radius: 999px !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.dsk-cs-product__cart .single_add_to_cart_button:hover,
.dsk-cs-product form.cart .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.dsk-cs-product__meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--dsk-cs-muted);
}

.dsk-cs-product__tabs {
  margin-top: 48px;
}

.dsk-cs-tabs__nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--dsk-cs-border);
  margin-bottom: 18px;
}

.dsk-cs-tabs__btn {
  background: none;
  border: none;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--dsk-cs-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dsk-cs-tabs__btn.is-active {
  color: var(--dsk-cs-text);
  border-bottom-color: var(--dsk-cs-accent, #111);
}

.dsk-cs-tabs__panel {
  line-height: 1.7;
  color: #333;
}

.dsk-cs-related {
  margin-top: 56px;
}

.dsk-cs-section-title {
  font-size: 24px;
  margin: 0 0 18px;
}

/* Shop */
.dsk-cs-shop-banner {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 180px;
  background: linear-gradient(120deg, #1a1a1a, #3a3a3a);
  text-decoration: none;
  color: #fff;
}

.dsk-cs-shop-banner__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  opacity: .85;
}

.dsk-cs-shop-banner__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  background: linear-gradient(90deg, rgba(0,0,0,.55), transparent);
}

.dsk-cs-shop-banner__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 34px);
  color: #fff;
}

.dsk-cs-shop-banner__sub {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 15px;
}

.dsk-cs-shop__header {
  margin-bottom: 18px;
}

.dsk-cs-shop__title {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
}

.dsk-cs-shop__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  color: var(--dsk-cs-muted);
  font-size: 14px;
}

.dsk-cs-shop__pagination {
  margin-top: 28px;
}

.dsk-cs-empty {
  padding: 40px 0;
  color: var(--dsk-cs-muted);
}

/* Checkout — two-column: form card + glass cart */
.dsk-cs-checkout {
  background: linear-gradient(180deg, #f4f5f7 0%, #eceef2 100%);
  padding-bottom: 72px;
}

.dsk-cs-checkout__title {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #0f172a;
}

.dsk-cs-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr);
  gap: 28px;
  align-items: start;
}

.dsk-cs-checkout__form,
.dsk-cs-account-guest {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
}

.dsk-cs-checkout__aside {
  position: sticky;
  top: 24px;
  background:
    linear-gradient(145deg, rgba(255, 240, 246, .95) 0%, rgba(232, 242, 255, .95) 55%, rgba(237, 233, 254, .9) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 16px 40px rgba(99, 52, 255, .08);
  backdrop-filter: blur(10px);
}

.dsk-cs-checkout-active .woocommerce-checkout-review-order-table,
.dsk-cs-checkout-active #order_review_heading,
.dsk-cs-checkout-active .woocommerce-checkout-review-order-table img,
.dsk-cs .woocommerce-checkout #order_review .shop_table {
  display: none !important;
}

.dsk-cs-checkout .woocommerce {
  margin: 0;
}

.dsk-cs-checkout .col2-set,
.dsk-cs-checkout .woocommerce-billing-fields,
.dsk-cs-checkout .woocommerce-shipping-fields,
.dsk-cs-checkout .woocommerce-additional-fields {
  width: 100% !important;
  float: none !important;
}

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

.dsk-cs-checkout h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.dsk-cs-checkout .form-row {
  margin: 0 0 14px;
  padding: 0;
}

.dsk-cs-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.dsk-cs-checkout .form-row input.input-text,
.dsk-cs-checkout .form-row textarea,
.dsk-cs-checkout .form-row select,
.dsk-cs-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 10px 14px !important;
  font-size: 14px;
  color: #111827;
  box-shadow: none !important;
}

.dsk-cs-checkout .form-row textarea {
  min-height: 96px;
}

.dsk-cs-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 24px !important;
  padding: 0 !important;
}

.dsk-cs-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

.dsk-cs-checkout .form-row-first,
.dsk-cs-checkout .form-row-last {
  width: 48% !important;
  float: left;
}

.dsk-cs-checkout .form-row-last {
  float: right;
}

.dsk-cs-checkout .form-row-wide {
  clear: both;
  width: 100% !important;
}

@media (max-width: 560px) {
  .dsk-cs-checkout .form-row-first,
  .dsk-cs-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
  }
}

.dsk-cs-checkout #payment {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.dsk-cs-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.dsk-cs-checkout #payment ul.payment_methods li {
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.dsk-cs-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: var(--dsk-cs-accent, #6334ff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsk-cs-accent, #6334ff) 18%, transparent);
}

.dsk-cs-checkout #payment ul.payment_methods li.wc_payment_method > label {
  font-weight: 600;
  cursor: pointer;
}

.dsk-cs-checkout #payment div.payment_box {
  background: #f9fafb;
  border-radius: 10px;
  margin: 10px 0 0;
  padding: 12px 14px;
  color: #4b5563;
  font-size: 13px;
}

.dsk-cs-checkout #payment div.payment_box::before {
  display: none;
}

.dsk-cs-checkout #place_order,
.dsk-cs-checkout button#place_order {
  width: 100%;
  min-height: 52px;
  border-radius: 14px !important;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  background: var(--dsk-cs-accent, #6334ff) !important;
  box-shadow: 0 10px 24px rgba(99, 52, 255, .25);
}

.dsk-cs-cart-panel__title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dsk-cs-accent, #6334ff);
  letter-spacing: -.01em;
}

.dsk-cs-cart-items {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dsk-cs-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
}

.dsk-cs-cart-item__media img,
.dsk-cs-cart-item__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #fff;
}

.dsk-cs-cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.dsk-cs-cart-item__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
}

.dsk-cs-cart-item__price {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.dsk-cs-cart-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dsk-cs-cart-item .dsk-cs-qty-btn,
.dsk-cs-cart-item__remove {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}

.dsk-cs-cart-item .dsk-cs-qty-btn:hover,
.dsk-cs-cart-item__remove:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.dsk-cs-cart-item .dsk-cs-qty-input {
  width: 44px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  -moz-appearance: textfield;
}

.dsk-cs-cart-item .dsk-cs-qty-input::-webkit-outer-spin-button,
.dsk-cs-cart-item .dsk-cs-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dsk-cs-coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.dsk-cs-coupon__input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  background: #fff;
}

.dsk-cs-coupon .dsk-cs-btn--ghost {
  border-radius: 12px;
  padding: 10px 16px;
  background: #fff;
}

.dsk-cs-coupon-msg {
  font-size: 13px;
  margin-bottom: 10px;
  color: #b91c1c;
}

.dsk-cs-coupon-msg.is-ok {
  color: #047857;
}

.dsk-cs-applied-coupons {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  color: #4b5563;
}

.dsk-cs-totals {
  border-top: 1px solid rgba(15, 23, 42, .08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dsk-cs-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #4b5563;
}

.dsk-cs-totals__row--total {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
  color: #0f172a;
}

.dsk-cs-checkout__empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border-radius: 20px;
}

/* My Account */
.dsk-cs-account {
  padding: 24px 16px 48px;
  background: var(--dsk-cs-bg);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.dsk-cs-account *,
.dsk-cs-account *::before,
.dsk-cs-account *::after {
  box-sizing: border-box;
}

.dsk-cs-account__shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 0;
  background: var(--dsk-cs-surface);
  border: 1px solid var(--dsk-cs-border);
  border-radius: 18px;
  overflow: hidden;
  min-height: 560px;
  max-width: 100%;
}

.dsk-cs-account__sidebar {
  background: #141418;
  color: #f5f5f5;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
}

.dsk-cs-account__profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 6px 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 14px;
}

.dsk-cs-account__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--dsk-cs-accent, #6334ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

.dsk-cs-account__profile-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}

.dsk-cs-account__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsk-cs-account__email {
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: .6;
  word-break: break-word;
}

.dsk-cs-account__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dsk-cs-account__link {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}

.dsk-cs-account__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 0;
}

.dsk-cs-account__icon svg,
.dsk-cs-account__link svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  opacity: .9;
}

.dsk-cs-account__label {
  min-width: 0;
  line-height: 1.25;
}

.dsk-cs-account__link:hover,
.dsk-cs-account__link.is-active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.dsk-cs-account__link--logout {
  margin-top: auto;
  color: #fca5a5;
}

.dsk-cs-account__link--logout:hover {
  background: rgba(248, 113, 113, .12);
  color: #fecaca;
}

.dsk-cs-account__content {
  padding: 32px 36px;
  min-width: 0;
  background: #fafafa;
}

.dsk-cs-account__content .woocommerce-MyAccount-navigation {
  display: none;
}

.dsk-cs-account__content .dsk-ca-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.dsk-cs-account__content .dsk-ca-stat-card {
  text-align: left;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.dsk-cs-account__content .dsk-ca-stat-icon {
  margin-bottom: 10px;
}

/* Motion */
@keyframes dsk-cs-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dsk-cs-product__grid,
.dsk-cs-shop-banner,
.dsk-cs-checkout__grid,
.dsk-cs-account__shell {
  animation: dsk-cs-fade-up .45s ease both;
}

.dsk-cs-card-product {
  animation: dsk-cs-fade-up .5s ease both;
}

.dsk-cs-product-grid .dsk-cs-card-product:nth-child(2) { animation-delay: .05s; }
.dsk-cs-product-grid .dsk-cs-card-product:nth-child(3) { animation-delay: .1s; }
.dsk-cs-product-grid .dsk-cs-card-product:nth-child(4) { animation-delay: .15s; }

@media (max-width: 960px) {
  .dsk-cs-product__grid,
  .dsk-cs-checkout__grid,
  .dsk-cs-account__shell {
    grid-template-columns: 1fr;
  }

  .dsk-cs-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Checkout: cart first on tablet/mobile, then billing form */
  .dsk-cs-checkout__grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .dsk-cs-checkout__aside {
    order: -1;
    position: static;
    top: auto;
  }

  .dsk-cs-checkout__form,
  .dsk-cs-checkout__aside {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .dsk-cs-account {
    padding: 12px 10px 36px;
    max-width: 100%;
    overflow-x: clip;
  }

  .dsk-cs-account__shell {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  .dsk-cs-account__sidebar {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 12px 12px;
    max-width: 100%;
  }

  .dsk-cs-account__profile {
    padding: 4px 4px 12px;
    margin-bottom: 10px;
  }

  .dsk-cs-account__nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .dsk-cs-account__nav::-webkit-scrollbar {
    height: 3px;
  }

  .dsk-cs-account__link {
    grid-template-columns: 18px auto;
    column-gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .dsk-cs-account__link--logout {
    margin-top: 0;
  }

  .dsk-cs-account__label {
    white-space: nowrap;
  }

  .dsk-cs-account__content {
    padding: 18px 14px 22px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .dsk-cs-account__content .woocommerce-MyAccount-content,
  .dsk-cs-account__content .woocommerce-MyAccount-content > * {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .dsk-cs-account__content p,
  .dsk-cs-account__content .woocommerce-MyAccount-content > p {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .dsk-cs-account__content .dsk-ca-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
    width: 100%;
    max-width: 100%;
  }

  .dsk-cs-account__content .dsk-ca-stat-card {
    min-width: 0;
    max-width: 100%;
    padding: 14px 12px;
    box-sizing: border-box;
  }

  .dsk-cs-account__content .dsk-ca-stat-num {
    font-size: 1.15rem;
  }

  .dsk-cs-account__content .dsk-ca-stat-lbl {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

  .dsk-cs-account__content .dsk-ca-table-wrap,
  .dsk-cs-account__content table {
    max-width: 100%;
  }

  .dsk-cs-account__content .dsk-ca-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .dsk-cs-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dsk-cs-card-product__title {
    font-size: 13px;
  }

  .dsk-cs-checkout {
    padding-left: 0;
    padding-right: 0;
  }

  .dsk-cs-checkout .dsk-cs-container {
    width: min(100%, calc(100% - 20px));
  }

  .dsk-cs-checkout__title {
    font-size: 1.55rem;
    margin-bottom: 14px;
  }

  .dsk-cs-account__content .dsk-ca-stats {
    grid-template-columns: 1fr;
  }

  .dsk-cs-account__content {
    padding: 16px 12px 20px;
  }

  .dsk-cs-product__cart form.cart {
    gap: 10px;
  }

  .dsk-cs-product__cart .single_add_to_cart_button,
  .dsk-cs-product form.cart .single_add_to_cart_button {
    flex: 1 1 100%;
    width: 100%;
  }
}
