/* Kush & Coil Redesign — WooCommerce Styles */

/* ── Product grid ────────────────────────────────── */
.vv-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .vv-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .vv-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .vv-product-grid { grid-template-columns: 1fr; } }

/* Card chips (card definition lives in main.css) */
.vv-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: var(--vv-black);
  color: var(--vv-white);
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vv-chip-new  { background: var(--vv-black); color: var(--vv-white); }
.vv-chip-hot  { background: var(--vv-black); color: var(--vv-white); }
.vv-chip-sale { background: var(--vv-black); color: var(--vv-white); }
.vv-chip-save { background: var(--vv-black); color: var(--vv-white); }

.vv-card-sku { font-family: var(--ff-body); font-size: 10.5px; color: var(--fg-muted); }
.vv-card-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.vv-price { font-family: var(--ff-display); font-size: 28px; font-weight: 700; line-height: 1; color: var(--vv-black); }
.vv-price-old { font-size: var(--fs-small); color: var(--fg-muted); text-decoration: line-through; }

.vv-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--vv-black);
  background: var(--vv-white);
  color: var(--vv-black);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.vv-add-btn:hover { background: var(--vv-black); color: var(--vv-white); }
.vv-add-btn.added { background: var(--vv-green-500); border-color: var(--vv-green-500); color: var(--vv-black); }
.vv-add-btn.has-error, .vv-btn.has-error { background: var(--vv-sale); border-color: var(--vv-sale); color: var(--vv-white); }

.vv-card-stock {
  font-size: 11.5px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.vv-stock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vv-success); }
.vv-stock-dot.low { background: var(--vv-warning); }
.vv-stock-dot.out { background: var(--vv-grey-400); }

/* ── WooCommerce overrides ───────────────────────── */
.woocommerce ul.products { margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products li.product { margin: 0 !important; padding: 0 !important; }

/* WC default loop reset */
.woocommerce-loop-product__title {
  font-family: var(--ff-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 0 !important;
}
.woocommerce .price {
  font-family: var(--ff-display) !important;
  font-size: 22px !important;
  color: var(--vv-black) !important;
}
.woocommerce .price ins { text-decoration: none !important; }
.woocommerce .price del { color: var(--fg-muted) !important; font-size: 14px !important; }

/* Shop page layout */
.woocommerce-products-header__title {
  font-family: var(--ff-display) !important;
  font-size: 48px !important;
  text-transform: uppercase !important;
  letter-spacing: .01em !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  max-width: var(--shell);
  margin: var(--s-4) auto !important;
  padding: 0 28px !important;
  font-size: var(--fs-small) !important;
  color: var(--fg-muted) !important;
}
.woocommerce-breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--vv-black); }

/* Add to cart button (WC default) */
.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
  background: var(--vv-green-500) !important;
  color: var(--vv-black) !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  font-family: var(--ff-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  transition: background var(--dur-fast) !important;
}
.single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--vv-green-600) !important;
  color: var(--vv-black) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--vv-black) !important; color: var(--vv-white) !important; }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--vv-grey-800) !important; }

/* ── Single product ──────────────────────────────── */
.vv-product-single { max-width: var(--shell); margin: 0 auto; padding: var(--s-8) 28px; }
.vv-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 768px) { .vv-product-layout { grid-template-columns: 1fr; gap: 28px; } }

.vv-product-gallery { position: sticky; top: calc(var(--header-height) + 20px); }
.vv-product-gallery .woocommerce-product-gallery { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--vv-grey-200); background: var(--vv-white); }

.vv-product-meta { display: flex; flex-direction: column; gap: var(--s-4); }
.vv-product-title {
  font-family: var(--ff-display);
  font-size: 44px;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .01em;
  margin: 0;
}
.vv-product-price {
  font-family: var(--ff-display);
  font-size: 34px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.vv-product-sku {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.vv-product-desc { font-size: 14.5px; color: var(--vv-grey-700); line-height: 1.6; }
.vv-product-sep { border: none; border-top: 1px solid var(--vv-grey-150); margin: 0; }

/* ── Cart page ───────────────────────────────────── */
.vv-cart-wrap { max-width: var(--shell); margin: 0 auto; padding: var(--s-8) 28px; }
.vv-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .vv-cart-layout { grid-template-columns: 1fr; } }

.vv-cart-table { width: 100%; border-collapse: collapse; }
.vv-cart-table th {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--vv-grey-200);
}
.vv-cart-table td { padding: var(--s-3); border-bottom: 1px solid var(--vv-grey-150); vertical-align: middle; }
.vv-cart-table .product-thumbnail { width: 72px; }
.vv-cart-table .product-thumbnail img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-md); background: var(--vv-grey-50); }

/* Cart totals box */
.vv-cart-totals-box {
  border: 1px solid var(--vv-grey-200);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  background: var(--vv-white);
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.vv-cart-totals-box h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: var(--s-4);
}

/* ── Checkout ─────────────────────────────────────── */
.vv-checkout-wrap { max-width: var(--shell); margin: 0 auto; padding: var(--s-8) 28px; }

/* WC form fields */
.woocommerce-checkout .form-row label { font-size: var(--fs-small); font-weight: 600; color: var(--vv-black); }
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid var(--vv-grey-300) !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--ff-body) !important;
  font-size: var(--fs-small) !important;
  padding: 10px 12px !important;
  background: var(--vv-white) !important;
  color: var(--vv-black) !important;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast) !important;
  box-shadow: none !important;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--vv-black) !important;
  box-shadow: var(--focus-ring) !important;
  outline: none !important;
}

/* Order review table */
#order_review .shop_table { border-collapse: collapse; width: 100%; }
#order_review .shop_table td, #order_review .shop_table th {
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--vv-grey-150);
  font-size: var(--fs-small);
}
#order_review .order-total td { font-family: var(--ff-display); font-size: 24px; }

/* ── Notices / messages ───────────────────────────── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--r-md) !important;
  border-left: 4px solid var(--vv-green-500) !important;
  background: var(--vv-green-50) !important;
  color: var(--vv-black) !important;
  padding: var(--s-3) var(--s-4) !important;
  font-size: var(--fs-small) !important;
  list-style: none !important;
  margin: 0 0 var(--s-4) !important;
}
.woocommerce-error { border-left-color: var(--vv-danger) !important; background: #fef2f2 !important; }
.woocommerce-info  { border-left-color: var(--vv-info)  !important; background: #eff6ff !important; }

/* ── Loyalty redeem (checkout) ───────────────────── */
.kc-loyalty-checkout-wrap {
  border: 1px solid var(--vv-green-500);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
  background: var(--vv-green-50);
}
.kc-loyalty-checkout-wrap h4 {
  font-family: var(--ff-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: var(--s-2);
}
