/**
 * CatWalk Cart Page Styles
 * ========================
 * Matches the reference design from catwalk.axiomthemes.com/cart/
 * 
 * Color Palette:
 * - Primary Pink: #fc8dcf
 * - Light Pink BG: #fdf1fb
 * - Dark Text: #171517
 * - Remove Orange: #e05100
 * - Border Pink: #f3d4ee
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --catwalk-cart-primary: #fc8dcf;
  --catwalk-cart-primary-hover: #e87abc;
  --catwalk-cart-bg-light: #fdf1fb;
  --catwalk-cart-text: #171517;
  --catwalk-cart-text-secondary: #666666;
  --catwalk-cart-border: #f3d4ee;
  --catwalk-cart-remove: #e05100;
  --catwalk-cart-step-inactive: #171517;
}

/* ============================================
   CART PAGE BANNER
   ============================================ */
.catwalk-cart-banner {
  background-color: var(--catwalk-cart-bg-light);
  padding: 60px 0 40px;
  text-align: center;
}

.catwalk-cart-banner h1 {
  font-family: "futura-pt", sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
  margin: 0;
  letter-spacing: 1px;
}

/* ============================================
   3-STEP PROGRESS INDICATOR
   ============================================ */
.catwalk-cart-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 30px;
  flex-wrap: wrap;
}

.catwalk-cart-step {
  display: flex;
  align-items: center;
  font-family: "futura-pt", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.catwalk-cart-step.active {
  background-color: var(--catwalk-cart-primary);
  color: #ffffff;
}

.catwalk-cart-step.inactive {
  background-color: var(--catwalk-cart-step-inactive);
  color: #ffffff;
}

.catwalk-cart-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  margin-right: 10px;
  font-size: 12px;
}

/* ============================================
   CART MAIN SECTION
   ============================================ */
.catwalk-cart-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.catwalk-cart-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  max-width: 100%; /* Full width */
  margin: 0 auto;
  padding: 0 40px; /* Increased padding */
}

/* ============================================
   CART TABLE
   ============================================ */
.catwalk-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.catwalk-cart-table thead th {
  background-color: var(--catwalk-cart-bg-light);
  font-family: "futura-pt", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
  padding: 20px 15px;
  text-align: left;
  border: none;
}

.catwalk-cart-table thead th:first-child {
  padding-left: 20px;
}

.catwalk-cart-table thead th:last-child {
  text-align: right;
  padding-right: 20px;
}

.catwalk-cart-table tbody td {
  padding: 25px 15px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
  font-family: "futura-pt", sans-serif;
}

/* Remove Button Cell */
.catwalk-cart-table .cart-remove {
  width: 40px;
  text-align: center;
}

.catwalk-cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: #000; /* Default black */
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.catwalk-cart-remove-btn:hover {
  color: var(--catwalk-cart-primary); /* Theme color on hover */
  transform: scale(1.1);
}

.catwalk-cart-table .cart-remove {
  text-align: right;
  padding-right: 0;
  width: 40px;
}

/* Product Image */
.catwalk-cart-table .cart-thumbnail {
  width: 100px;
}

.catwalk-cart-table .cart-thumbnail img {
  width: 80px;
  height: 100px;
  object-fit: cover;
}

/* Product Name */
.catwalk-cart-table .cart-product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
}

.catwalk-cart-table .cart-product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.catwalk-cart-table .cart-product-name a:hover {
  color: var(--catwalk-cart-primary);
}

/* Price */
.catwalk-cart-table .cart-price {
  font-size: 16px;
  font-weight: 400;
  color: var(--catwalk-cart-text-secondary);
  white-space: nowrap; /* Prevent wrapping */
}

/* Quantity */
.catwalk-cart-table .cart-quantity {
  width: 140px;
}

/* Subtotal */
.catwalk-cart-table .cart-subtotal {
  text-align: right;
  font-size: 16px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
  padding-right: 20px;
  white-space: nowrap; /* Prevent wrapping */
}

/* ============================================
   QUANTITY CONTROLS
   ============================================ */
.catwalk-qty-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--catwalk-cart-border);
  border-radius: 0;
  background: #fff;
}

.catwalk-qty-btn {
  width: 36px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--catwalk-cart-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.catwalk-qty-btn:hover {
  background-color: var(--catwalk-cart-bg-light);
}

.catwalk-qty-input {
  width: 50px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--catwalk-cart-border);
  border-right: 1px solid var(--catwalk-cart-border);
  text-align: center;
  font-family: "futura-pt", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
  appearance: textfield;
  -moz-appearance: textfield;
}

.catwalk-qty-input::-webkit-outer-spin-button,
.catwalk-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================
   CART ACTIONS ROW
   ============================================ */
.catwalk-cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 20px;
}

.catwalk-coupon-form {
  display: flex;
  gap: 10px;
}

.catwalk-coupon-input {
  width: 200px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--catwalk-cart-border);
  font-family: "futura-pt", sans-serif;
  font-size: 14px;
  color: var(--catwalk-cart-text);
}

.catwalk-coupon-input::placeholder {
  color: #999;
}

.catwalk-coupon-btn {
  height: 48px;
  padding: 0 25px;
  background-color: var(--catwalk-cart-step-inactive);
  color: #ffffff;
  border: none;
  font-family: "futura-pt", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.catwalk-coupon-btn:hover {
  background-color: #333;
}

.catwalk-update-cart-btn {
  height: 48px;
  padding: 0 30px;
  background-color: #b0a9ad;
  color: #ffffff;
  border: none;
  font-family: "futura-pt", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.catwalk-update-cart-btn:hover {
  background-color: #999;
}

/* ============================================
   CART TOTALS SIDEBAR
   ============================================ */
.catwalk-cart-totals {
  background-color: #fff;
  padding: 30px;
  border: 1px solid #f0f0f0;
  position: sticky;
  top: 120px;
}

.catwalk-cart-totals-title {
  font-family: "futura-pt", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.catwalk-cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-family: "futura-pt", sans-serif;
  font-size: 15px;
  border-bottom: 1px solid #f5f5f5;
}

.catwalk-cart-totals-row:last-of-type {
  border-bottom: none;
}

.catwalk-cart-totals-label {
  color: var(--catwalk-cart-text);
  font-weight: 400;
}

.catwalk-cart-totals-value {
  color: var(--catwalk-cart-text);
  font-weight: 500;
}

.catwalk-cart-totals-row.total {
  padding: 20px 0;
  margin-top: 10px;
  border-top: 2px solid var(--catwalk-cart-text);
  border-bottom: none;
}

.catwalk-cart-totals-row.total .catwalk-cart-totals-label,
.catwalk-cart-totals-row.total .catwalk-cart-totals-value {
  font-size: 18px;
  font-weight: 600;
}

/* Checkout Button */
.catwalk-checkout-btn {
  display: block;
  width: 100%;
  height: 54px;
  background-color: var(--catwalk-cart-primary);
  color: #ffffff;
  border: none;
  font-family: "futura-pt", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 25px;
  text-align: center;
  line-height: 54px;
  text-decoration: none;
}

.catwalk-checkout-btn:hover {
  background-color: var(--catwalk-cart-primary-hover);
  color: #ffffff;
  text-decoration: none;
}

/* Continue Shopping Link */
.catwalk-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "futura-pt", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
  text-decoration: none;
  margin-top: 20px;
  transition: color 0.2s ease;
}

.catwalk-continue-shopping:hover {
  color: var(--catwalk-cart-primary);
}

/* ============================================
   EMPTY CART
   ============================================ */
.catwalk-cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.catwalk-cart-empty-icon {
  font-size: 80px;
  color: var(--catwalk-cart-border);
  margin-bottom: 20px;
}

.catwalk-cart-empty h2 {
  font-family: "futura-pt", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--catwalk-cart-text);
  margin: 0 0 15px 0;
}

.catwalk-cart-empty p {
  font-family: "futura-pt", sans-serif;
  font-size: 16px;
  color: var(--catwalk-cart-text-secondary);
  margin: 0 0 30px 0;
}

.catwalk-cart-empty .catwalk-checkout-btn {
  display: inline-block;
  width: auto;
  padding: 0 40px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  .catwalk-cart-container {
    grid-template-columns: 1fr;
  }

  .catwalk-cart-totals {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .catwalk-cart-banner h1 {
    font-size: 36px;
  }

  .catwalk-cart-steps {
    flex-direction: column;
    gap: 5px;
  }

  .catwalk-cart-step {
    width: 100%;
    justify-content: center;
  }

  .catwalk-cart-table thead {
    display: none;
  }

  .catwalk-cart-table tbody tr {
    display: grid;
    grid-template-columns: 40px 80px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .catwalk-cart-table tbody td {
    padding: 0;
    border: none;
  }

  .catwalk-cart-table .cart-remove {
    grid-row: 1 / 3;
    align-self: center;
  }

  .catwalk-cart-table .cart-thumbnail {
    grid-row: 1 / 3;
  }

  .catwalk-cart-table .cart-product-name {
    grid-column: 3;
  }

  .catwalk-cart-table .cart-price,
  .catwalk-cart-table .cart-quantity,
  .catwalk-cart-table .cart-subtotal {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .catwalk-cart-table .cart-subtotal {
    text-align: left;
    padding-right: 0;
  }

  .catwalk-cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .catwalk-coupon-form {
    flex-direction: column;
  }

  .catwalk-coupon-input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catwalk-cart-banner {
    padding: 40px 0 30px;
  }

  .catwalk-cart-banner h1 {
    font-size: 28px;
  }

  .catwalk-cart-section {
    padding: 40px 0;
  }

  .catwalk-cart-totals {
    padding: 20px;
  }
}

/* ============================================
   GUEST CHECKOUT POPUP CARD
   ============================================ */
#GuestCheckout .modal-content {
  border: none;
  border-radius: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#GuestCheckout .modal-body {
  padding: 50px;
}

#GuestCheckout .close-btn-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

#GuestCheckout .close {
  opacity: 0.5;
  transition: opacity 0.3s;
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  outline: none;
  padding: 0;
  margin: 0;
}

#GuestCheckout .close:hover {
  opacity: 1;
}

.popup-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #171517;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.catwalk-form-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 8px;
}

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  color: #999;
  font-size: 13px;
  letter-spacing: 1px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #eee;
}

.or-divider:not(:empty)::before {
  margin-right: 15px;
}

.or-divider:not(:empty)::after {
  margin-left: 15px;
}

.catwalk-link-dark {
  color: #171517;
  text-decoration: none;
  transition: color 0.3s;
}

.catwalk-link-dark:hover {
  color: #000;
  text-decoration: underline;
}

/* ============================================
   CART DROPDOWN & MODALS
   ============================================ */

/* Cart Count Styling */
.cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--catwalk-primary, #ff69b4);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #fff;
}

/* Sharp Edges & Dark Theme for Dropdown */
.catwalk-cart-dropdown {
  background-color: #1a1a1a;
  border: none;
  min-width: 330px;
  margin-top: 10px;
  border-radius: 0 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}
.catwalk-cart-dropdown:before {
  content: "";
  position: absolute;
  top: -8px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #1a1a1a;
  z-index: 1001;
}

/* Scrollbar */
.c-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.c-scrollbar::-webkit-scrollbar-track {
  background: #333;
}
.c-scrollbar::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 0;
}
.c-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Buttons */
.btn-catwalk-primary {
  background-color: var(--catwalk-primary, #ff69b4);
  border: 1px solid var(--catwalk-primary, #ff69b4);
  border-radius: 0 !important;
  font-weight: 500;
  padding: 8px 0;
  color: #fff;
}
.btn-catwalk-primary:hover {
  background-color: #e0559e;
  color: #fff;
}
.btn-outline-light {
  border-color: #fff;
  color: #fff;
  border-radius: 0 !important;
  padding: 8px 0;
  background: transparent;
}
.btn-outline-light:hover {
  background: #fff;
  color: #000;
}
.dc-image img {
  border-radius: 0 !important;
}

/* Sharp Edges for Modals */
.catwalk-popup-card {
  border-radius: 0 !important;
  border: none;
  overflow: hidden;
}
.catwalk-popup-card .btn,
.catwalk-popup-card .form-control,
.catwalk-added-product {
  border-radius: 0 !important;
}

.catwalk-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1050;
  font-size: 24px;
  color: #000;
  border: none;
  background: transparent;
  opacity: 0.5;
}
.catwalk-modal-close:hover {
  opacity: 1;
}

.catwalk-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%; /* Icon circle stays round */
  font-size: 30px;
  background-color: #28a745;
  color: white;
}
.catwalk-text-primary {
  color: var(--catwalk-primary, #ff69b4);
}

.btn-outline-dark {
  border-color: #ccc;
  background: transparent;
}
.btn-dark {
  background-color: #343a40;
  border-color: #343a40;
  color: #fff;
}

/* Quick View Elements */
.catwalk-qv-img {
  height: 500px;
  object-fit: cover;
}
.catwalk-qv-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

/* Radio Items */
.catwalk-radio-item input {
  display: none;
}
.catwalk-radio-item label {
  display: block;
  padding: 5px 15px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 0;
  transition: all 0.2s;
}
.catwalk-radio-item input:checked + label {
  border-color: #000;
  background: #000;
  color: #fff;
}

/* Color Swatches */
.catwalk-color-radio input {
  display: none;
}
.catwalk-color-swatch {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px #ddd;
}
.catwalk-color-radio input:checked + .catwalk-color-swatch {
  box-shadow: 0 0 0 2px #000;
  transform: scale(1.1);
}
