/* ===== CHECKOUT PROGRESS INDICATOR ===== */
.op-checkout-progress {
  background: var(--op-white);
  border-bottom: 1px solid var(--op-border);
  padding: var(--op-space-lg) 0;
  margin-bottom: var(--op-space-xl);
}
.op-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.op-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}
.op-progress-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--op-text-sm);
  background: var(--op-bg);
  color: var(--op-text-muted);
  border: 2px solid var(--op-border);
  transition: all var(--op-transition);
}
.op-progress-label {
  font-size: var(--op-text-xs);
  font-weight: 600;
  color: var(--op-text-muted);
}
.op-progress-line {
  flex: 1;
  height: 2px;
  background: var(--op-border);
  min-width: 60px;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
  transition: background var(--op-transition);
}
.op-progress-step--active .op-progress-num {
  background: var(--op-primary);
  color: var(--op-white);
  border-color: var(--op-primary);
}
.op-progress-step--active .op-progress-label {
  color: var(--op-primary);
}
.op-progress-step--done .op-progress-num {
  background: var(--op-success);
  color: var(--op-white);
  border-color: var(--op-success);
}
.op-progress-step--done .op-progress-label {
  color: var(--op-success);
}
.op-progress-line--done {
  background: var(--op-success);
}

/* ===== CART PAGE ===== */
.woocommerce-cart .op-wc-content,
.woocommerce-checkout .op-wc-content,
.woocommerce-account .op-wc-content {
  padding: var(--op-space-2xl) 0;
}

/* Cart table */
table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  box-shadow: var(--op-shadow-sm);
}
table.shop_table th {
  background: var(--op-bg);
  padding: 1rem;
  font-size: var(--op-text-sm);
  font-weight: 600;
  color: var(--op-text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--op-border);
}
table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid var(--op-border-light);
  vertical-align: middle;
}
table.shop_table .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--op-radius);
}
table.shop_table .product-name a {
  color: var(--op-text);
  font-weight: 500;
  text-decoration: none;
}
table.shop_table .product-name a:hover { color: var(--op-primary); }
table.shop_table .product-remove a {
  color: var(--op-text-muted);
  font-size: 1.25rem;
  text-decoration: none;
}
table.shop_table .product-remove a:hover { color: var(--op-danger); }

/* Cart quantity */
table.shop_table .quantity input {
  width: 60px;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  font-family: var(--op-font);
}

/* Cart totals */
.cart_totals {
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  padding: var(--op-space-lg);
  box-shadow: var(--op-shadow-sm);
  margin-top: var(--op-space-lg);
  max-width: 400px;
  margin-left: auto;
}
.cart_totals h2 {
  font-size: var(--op-text-xl);
  margin-bottom: var(--op-space-md);
}
.cart_totals table th { background: transparent; font-weight: 600; }
.cart_totals table td { text-align: right; }
.cart_totals .order-total th,
.cart_totals .order-total td {
  font-size: var(--op-text-lg);
  font-weight: 700;
  color: var(--op-text);
  border-top: 2px solid var(--op-border);
  padding-top: 1rem;
}

/* Update cart / checkout buttons */
button[name="update_cart"],
.wc-proceed-to-checkout a {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--op-radius);
  font-family: var(--op-font);
  font-weight: 600;
  font-size: var(--op-text-base);
  cursor: pointer;
  transition: all var(--op-transition);
  text-decoration: none;
  text-align: center;
  border: none;
}
button[name="update_cart"] {
  background: var(--op-bg);
  color: var(--op-text);
  border: 1px solid var(--op-border);
}
button[name="update_cart"]:hover { border-color: var(--op-primary); color: var(--op-primary); }
.wc-proceed-to-checkout a {
  background: var(--op-primary);
  color: #fff !important;
  width: 100%;
}
.wc-proceed-to-checkout a:hover { background: var(--op-primary-dark); }

/* ===== EMPTY CART — IMPROVED ===== */
.woocommerce-cart .cart-empty {
  text-align: center;
  padding: var(--op-space-3xl) var(--op-space-lg);
}
.woocommerce-cart .cart-empty::before {
  content: '';
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--op-space-lg);
  background: var(--op-bg);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.5'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 002 1.61h9.72a2 2 0 002-1.61L23 6H6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
}
.woocommerce-cart .return-to-shop {
  margin-top: var(--op-space-lg);
}
.woocommerce-cart .return-to-shop a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--op-primary);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--op-radius);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--op-transition);
}
.woocommerce-cart .return-to-shop a:hover {
  background: var(--op-primary-dark);
  color: #fff;
}

/* Empty cart category suggestions */
.op-empty-cart-suggestions {
  margin-top: var(--op-space-2xl);
  padding-top: var(--op-space-2xl);
  border-top: 1px solid var(--op-border);
}
.op-empty-cart-suggestions h3 {
  text-align: center;
  margin-bottom: var(--op-space-lg);
  color: var(--op-text);
}
.op-empty-cart-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: var(--op-space-2xl);
}
.op-empty-cart-cats a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-full);
  color: var(--op-text);
  font-size: var(--op-text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--op-transition);
}
.op-empty-cart-cats a:hover {
  border-color: var(--op-primary);
  color: var(--op-primary);
  background: var(--op-primary-light);
}

/* ===== CHECKOUT ===== */
.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--op-space-2xl);
}

/* Form fields */
.woocommerce form .form-row {
  margin-bottom: var(--op-space-md);
}
.woocommerce form .form-row label {
  display: block;
  font-size: var(--op-text-sm);
  font-weight: 600;
  color: var(--op-text);
  margin-bottom: 0.375rem;
}
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  font-family: var(--op-font);
  font-size: var(--op-text-base);
  transition: border-color var(--op-transition), box-shadow var(--op-transition);
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--op-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Order review */
#order_review_heading { margin-top: var(--op-space-2xl); }
.woocommerce-checkout-review-order-table {
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
}

/* Payment methods */
#payment {
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  padding: var(--op-space-lg);
  margin-top: var(--op-space-lg);
}
#payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--op-space-md) 0;
}
#payment ul.payment_methods li {
  padding: 1rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  margin-bottom: 0.5rem;
  transition: border-color var(--op-transition);
}
#payment ul.payment_methods li:has(input:checked) {
  border-color: var(--op-primary);
  background: var(--op-primary-light);
}
#payment ul.payment_methods li label {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#payment .payment_box {
  padding: 0.75rem 0 0 1.75rem;
  font-size: var(--op-text-sm);
  color: var(--op-text-secondary);
}

#place_order {
  background: var(--op-primary);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--op-radius);
  font-family: var(--op-font);
  font-weight: 700;
  font-size: var(--op-text-lg);
  cursor: pointer;
  width: 100%;
  transition: background var(--op-transition);
}
#place_order:hover { background: var(--op-primary-dark); }

/* ===== MY ACCOUNT ===== */
.woocommerce-MyAccount-navigation {
  float: left;
  width: 220px;
  margin-right: var(--op-space-2xl);
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  box-shadow: var(--op-shadow-sm);
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--op-text);
  font-size: var(--op-text-sm);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--op-border-light);
  transition: all var(--op-transition);
}
.woocommerce-MyAccount-navigation ul li a:hover { background: var(--op-bg); color: var(--op-primary); }
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--op-primary-light);
  color: var(--op-primary);
  font-weight: 600;
}

.woocommerce-MyAccount-content {
  overflow: hidden;
}

/* Orders table */
.woocommerce-orders-table {
  width: 100%;
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
}

/* ===== QUICK VIEW MODAL ===== */
.op-qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--op-space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.op-qv-overlay.op-qv-active {
  opacity: 1;
  visibility: visible;
}
.op-qv-modal {
  background: var(--op-white);
  border-radius: var(--op-radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--op-shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.op-qv-active .op-qv-modal {
  transform: scale(1);
}
.op-qv-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--op-radius-lg) 0 0 var(--op-radius-lg);
}
.op-qv-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: var(--op-bg);
}
.op-qv-gallery {
  display: flex;
  gap: 0.375rem;
  padding: 0.5rem;
  overflow-x: auto;
}
.op-qv-gallery img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--op-radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--op-transition);
}
.op-qv-gallery img:hover,
.op-qv-gallery img.active { border-color: var(--op-primary); }
.op-qv-info {
  padding: var(--op-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--op-space-sm);
}
.op-qv-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--op-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--op-transition);
  z-index: 1;
}
.op-qv-close:hover { background: var(--op-border); }
.op-qv-name {
  font-family: var(--op-font-display);
  font-size: var(--op-text-xl);
  font-weight: 700;
  color: var(--op-text);
  line-height: 1.3;
}
.op-qv-price { font-size: var(--op-text-lg); font-weight: 700; }
.op-qv-stock { font-size: var(--op-text-sm); font-weight: 600; }
.op-qv-stock--in { color: var(--op-success); }
.op-qv-stock--out { color: var(--op-danger); }
.op-qv-desc { font-size: var(--op-text-sm); color: var(--op-text-secondary); line-height: 1.6; }
.op-qv-meta { font-size: var(--op-text-xs); color: var(--op-text-muted); }
.op-qv-actions { display: flex; gap: 0.75rem; margin-top: auto; }
.op-qv-actions .op-btn { flex: 1; justify-content: center; }

/* Quick view button on product card */
.op-quick-view-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--op-white);
  box-shadow: var(--op-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--op-transition);
  z-index: 3;
  color: var(--op-text-secondary);
}
ul.products li.product:hover .op-quick-view-btn {
  opacity: 1;
  transform: translateY(0);
}
.op-quick-view-btn:hover {
  background: var(--op-primary);
  color: var(--op-white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--op-space-lg);
  }
  .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    border-radius: var(--op-radius);
  }
  .woocommerce-MyAccount-navigation ul li a {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--op-border-light);
  }
  .cart_totals { max-width: none; margin-left: 0; }
  table.shop_table { font-size: var(--op-text-sm); }
  table.shop_table .product-thumbnail { display: none; }

  .op-qv-modal { grid-template-columns: 1fr; max-width: 420px; }
  .op-qv-image { border-radius: var(--op-radius-lg) var(--op-radius-lg) 0 0; }

  .op-progress-steps { gap: 0; }
  .op-progress-line { min-width: 40px; }
  .op-progress-label { font-size: 0.625rem; }
}
