/* ── Veriskey · vk-cart.css ─────────────────────────────────
   Design ref: Mini Cart Component.html
   Target: Elementor Pro Menu Cart inside WoodMart side panel
   ──────────────────────────────────────────────────────────── */

/* Panel */
.cart-widget-side {
  width: 420px !important;
  background: #ffffff;
  box-shadow: -4px 0 24px oklch(0.4 0.03 260 / 0.15);
  display: flex !important;
  flex-direction: column !important;
}
@media (max-width: 768px) {
  .cart-widget-side { width: 100% !important; }
}

/* Header */
.cart-widget-side .wd-heading {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 24px !important;
  border-bottom: 1px solid oklch(0.91 0.012 50) !important;
  flex-shrink: 0;
}
.cart-widget-side .wd-heading .title {
  font-size: 22px !important;
  font-weight: 700;
  color: oklch(0.23 0.012 45);
  font-family: "Manrope", system-ui, sans-serif;
}

/* Close button */
.cart-widget-side .close-side-widget a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid oklch(0.91 0.012 50) !important;
  border-radius: 8px;
  background: transparent !important;
  transition: border-color .12s, background .12s;
}
.cart-widget-side .close-side-widget a:hover {
  border-color: oklch(0.52 0.018 45) !important;
  background: oklch(0.975 0.009 55) !important;
}
.cart-widget-side .close-side-widget .wd-action-icon { font-size: 0; }
.cart-widget-side .close-side-widget .wd-action-icon::before {
  content: "×";
  font-size: 20px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  color: oklch(0.52 0.018 45);
  line-height: 1;
}
.cart-widget-side .close-side-widget .wd-action-text { display: none; }

/* Body flex chain */
.cart-widget-side .widget.woocommerce,
.cart-widget-side .widget_shopping_cart_content {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0;
}

/* Items area — scrollable */
.cart-widget-side .elementor-menu-cart__products {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* ── Product card
   Grid: image col (80px) | info col (1fr)
         image col        | price + stepper row
   remove is absolute top-right, outside grid flow           */
.cart-widget-side .elementor-menu-cart__product {
  display: grid !important;
  grid-template-columns: 80px 1fr;
  grid-template-areas:
    "img name"
    "img price";
  column-gap: 12px;
  row-gap: 6px;
  padding: 14px !important;
  position: relative;
  background: oklch(0.975 0.009 55) !important;
  border: 1px solid oklch(0.91 0.012 50) !important;
  border-radius: 10px !important;
}

/* Image */
.cart-widget-side .elementor-menu-cart__product-image {
  grid-area: img;
  align-self: start;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid oklch(0.91 0.012 50);
  background: #ffffff;
}
.cart-widget-side .elementor-menu-cart__product-image a {
  display: flex;
  width: 100%;
  height: 100%;
}
.cart-widget-side .elementor-menu-cart__product-image img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  display: block;
}

/* Name column */
.cart-widget-side .elementor-menu-cart__product-name {
  grid-area: name;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-inline-end: 22px;
  align-self: start;
}
.cart-widget-side .elementor-menu-cart__product-name a {
  font-weight: 700 !important;
  font-size: 13px !important;
  color: oklch(0.23 0.012 45) !important;
  line-height: 1.3;
  text-decoration: none;
}
.cart-widget-side .elementor-menu-cart__product-name a:hover {
  color: oklch(0.62 0.2 38) !important;
}

/* Price + stepper row */
.cart-widget-side .elementor-menu-cart__product-price {
  grid-area: price;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  align-self: end;
}
.cart-widget-side .elementor-menu-cart__product-price .woocommerce-Price-amount,
.cart-widget-side .elementor-menu-cart__product-price .amount {
  color: oklch(0.62 0.2 38) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}
.cart-widget-side .elementor-menu-cart__product-price .product-quantity {
  display: none;
}

/* Hide Elementor's remove links — replaced by .vk-remove-btn */
.cart-widget-side .elementor-menu-cart__product-remove {
  display: none !important;
}
.cart-widget-side .vk-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: oklch(0.52 0.018 45);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color .12s;
}
.cart-widget-side .vk-remove-btn:hover { color: #d32f2f; }

/* ── Qty stepper ─────────────────────────────────────────── */
.cart-widget-side .vk-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid oklch(0.91 0.012 50);
  border-radius: 6px;
  height: 28px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}
.cart-widget-side .vk-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: oklch(0.52 0.018 45);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background .1s, color .1s;
  flex-shrink: 0;
}
.cart-widget-side .vk-qty-btn:hover {
  background: oklch(0.91 0.012 50);
  color: oklch(0.23 0.012 45);
}
.cart-widget-side .vk-qty-num {
  width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: oklch(0.23 0.012 45);
  font-family: "Space Mono", monospace;
}

/* ── Subtotal row ────────────────────────────────────────── */
.cart-widget-side .elementor-menu-cart__subtotal,
.cart-widget-side .woocommerce-mini-cart__total {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  font-weight: 700;
  color: oklch(0.23 0.012 45);
  padding: 16px 24px 0 !important;
  border-top: 2px solid oklch(0.91 0.012 50);
  margin-top: 4px !important;
  flex-shrink: 0;
}
.cart-widget-side .elementor-menu-cart__subtotal strong,
.cart-widget-side .woocommerce-mini-cart__total strong {
  color: oklch(0.23 0.012 45);
  font-weight: 700;
}
.cart-widget-side .elementor-menu-cart__subtotal .woocommerce-Price-amount,
.cart-widget-side .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: oklch(0.23 0.012 45) !important;
}

/* ── Shipping row (injected by JS) ──────────────────────── */
.cart-widget-side .vk-shipping-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: oklch(0.52 0.018 45);
  padding: 6px 24px;
  flex-shrink: 0;
}

/* ── Trust block (injected by JS) ───────────────────────── */
.cart-widget-side .vk-cart-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  margin: 0 16px 14px;
  background: oklch(0.95 0.045 155);
  border: 1px solid oklch(0.75 0.12 155);
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-widget-side .vk-trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: oklch(0.3 0.018 45);
}
.cart-widget-side .vk-trust-row svg {
  stroke: oklch(0.45 0.12 155);
  flex-shrink: 0;
}
.cart-widget-side .vk-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: oklch(0.45 0.12 155);
  width: fit-content;
  margin-top: 4px;
}

/* ── Empty cart state ────────────────────────────────────── */
.cart-widget-side .woocommerce-mini-cart__empty-message,
.cart-widget-side .elementor-menu-cart__empty-message {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.cart-widget-side .vk-empty-title {
  font-size: 22px;
  font-weight: 700;
  color: oklch(0.23 0.012 45);
  font-family: "Manrope", system-ui, sans-serif;
  margin: 0 0 10px;
}
.cart-widget-side .vk-empty-sub {
  font-size: 14px;
  color: oklch(0.52 0.018 45);
  line-height: 1.5;
  margin: 0;
}

/* Empty cart footer */
.cart-widget-side .vk-empty-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.cart-widget-side .vk-empty-summary {
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.91 0.012 50);
}
.cart-widget-side .vk-empty-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: oklch(0.52 0.018 45);
  padding: 6px 0;
}
.cart-widget-side .vk-empty-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: oklch(0.23 0.012 45);
  padding: 14px 0 16px;
  border-top: 2px solid oklch(0.91 0.012 50);
  margin-top: 6px;
}
.cart-widget-side .vk-empty-footer .vk-cart-trust {
  margin: 0 16px 14px;
}
.cart-widget-side .vk-empty-actions {
  padding: 0 16px 24px;
}
.cart-widget-side .vk-checkout-btn-empty {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: oklch(0.82 0 0);
  color: oklch(0.55 0 0) !important;
  border-radius: 11px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-sizing: border-box;
  pointer-events: none;
  cursor: default;
}

/* ── Buttons area ────────────────────────────────────────── */
.cart-widget-side .elementor-menu-cart__footer-buttons,
.cart-widget-side .woocommerce-mini-cart__buttons {
  padding: 16px 24px 24px !important;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Checkout button */
.cart-widget-side .elementor-button--checkout,
.cart-widget-side .elementor-menu-cart__checkout-button,
.cart-widget-side .woocommerce-mini-cart__buttons .checkout {
  width: 100% !important;
  background: oklch(0.62 0.2 38) !important;
  color: #ffffff !important;
  border-radius: 11px !important;
  padding: 13px 22px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-transform: none !important;
  transition: background .15s ease;
}
.cart-widget-side .elementor-button--checkout:hover,
.cart-widget-side .elementor-menu-cart__checkout-button:hover {
  background: oklch(0.55 0.2 37) !important;
  color: #ffffff !important;
}

/* View cart button */
.cart-widget-side .elementor-button--view-cart,
.cart-widget-side .elementor-menu-cart__view-cart,
.cart-widget-side .woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
  width: 100% !important;
  background: transparent !important;
  color: oklch(0.23 0.012 45) !important;
  border: 1px solid oklch(0.91 0.012 50) !important;
  border-radius: 11px !important;
  padding: 13px 22px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: none !important;
}

/* Add to cart button inside VK product grid */
.vk-section .wd-add-btn .add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: oklch(0.62 0.2 38);
  color: #fff !important;
  border: none;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  box-sizing: border-box;
}
.vk-section .wd-add-btn .add_to_cart_button:hover {
  background: oklch(0.55 0.2 37) !important;
  color: #fff !important;
}

/* Hide WooCommerce inline "View cart" link after add-to-cart */
a.added_to_cart.wc-forward { display: none !important; }
