/* Order Summary / Shopping Cart Page Styles */

/* Main container */
.ov-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* Items container */
.ov-items-container {
  margin-bottom: 30px;
}

.ov-page-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--primary-blue);
  margin: 0 0 30px 0;
  text-align: center;
}

/* Debug section */
.ov-debug {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  font-family: monospace;
  font-size: 12px;
  color: #666;
}

.ov-debug p {
  margin: 5px 0;
}

/* Empty cart state */
.ov-empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  margin-bottom: 30px;
}

.ov-empty-cart h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-medium);
  margin: 0 0 20px 0;
}

.ov-empty-cart-icon {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.ov-return-shop-btn {
  background: var(--primary-red);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
}

.ov-return-shop-btn:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
}

/* Cart table container */
.ov-cart-table-container {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

/* Cart table */
.ov-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.ov-cart-table th {
  background: var(--bg-light);
  padding: 15px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}

.ov-cart-table td {
  padding: 20px 12px;
  border-bottom: 1px solid var(--border-lighter);
  vertical-align: top;
}

.ov-cart-table tr:last-child td {
  border-bottom: none;
}

.ov-cart-table tr:hover {
  background: #fafafa;
}

/* Product cell */
.ov-product-cell {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 200px;
}

.ov-product-image {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-lighter);
  flex-shrink: 0;
}

.ov-product-info {
  flex: 1;
  min-width: 0;
}

.ov-product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.ov-product-format {
  font-size: 12px;
  color: var(--text-medium);
  font-style: italic;
}

/* Price cells */
.ov-price-cell {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-red);
  text-align: right;
}

.ov-total-cell {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-red);
  text-align: right;
}

/* Quantity controls */
.ov-quantity-cell {
  text-align: center;
}

.ov-quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ov-quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: all var(--transition-fast);
}

.ov-quantity-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-red);
}

.ov-quantity-display {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Remove button */
.ov-remove-cell {
  text-align: center;
}

.ov-remove-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.ov-remove-btn:hover {
  background: #fee;
  color: #e74c3c;
}

/* Totals section */
.ov-totals {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 25px;
}

.ov-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
}

.ov-total-row:last-child {
  border-bottom: none;
  border-top: 2px solid var(--border-light);
  margin-top: 10px;
  padding-top: 20px;
  font-size: 18px;
  font-weight: bold;
}

.ov-total-row span:first-child {
  color: var(--text-medium);
}

.ov-price {
  font-weight: 600;
  color: var(--primary-red);
}

/* Checkout section */
.ov-checkout-section {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Continue shopping button */
.ov-continue-btn {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 13px 28px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.ov-continue-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* Quantity buttons */
.ov-qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: all var(--transition-fast);
  margin: 0 2px;
  font-family: var(--font-primary);
}

.ov-qty-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-red);
}

/* Remove button */
.ov-remove-btn {
  background: none;
  border: 1px solid var(--text-light);
  color: var(--text-medium);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  margin-left: 8px;
  font-family: var(--font-primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ov-remove-btn:hover {
  background: #fee;
  color: #e74c3c;
  border-color: #e74c3c;
}

/* Checkout actions */
.ov-checkout-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.ov-checkout-btn {
  background: var(--primary-red);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 150px;
}

.ov-checkout-btn:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
}

.ov-checkout-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.ov-continue-shopping-btn {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 13px 28px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
}

.ov-continue-shopping-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* Checkout spinner */
#checkoutSpinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#checkoutSpinner div {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: ov-spin 1s linear infinite;
}

/* Cart table styling for JSP inline styles override */
.ov-cart-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ov-cart-table th {
  background: var(--bg-light) !important;
  padding: 15px 10px !important;
  text-align: left !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid var(--border-light) !important;
  font-family: var(--font-primary) !important;
}

.ov-cart-table td {
  padding: 15px 10px !important;
  border-bottom: 1px solid var(--border-lighter) !important;
  vertical-align: middle !important;
  font-family: var(--font-primary) !important;
}

.ov-cart-table tr:last-child td {
  border-bottom: none !important;
}

.ov-cart-table tr:hover {
  background: #fafafa !important;
}

/* Product cell with image */
.ov-cart-table td[style*="display:flex"] {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ov-cart-table td img {
  width: 50px !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: cover !important;
  border-radius: var(--border-radius) !important;
  border: 1px solid var(--border-lighter) !important;
  margin-right: 10px !important;
}

/* Price cells */
.ov-cart-table td[style*="text-align:right"] {
  text-align: right !important;
  font-weight: 600 !important;
  color: var(--primary-red) !important;
}

/* Center aligned cells */
.ov-cart-table td[style*="text-align:center"] {
  text-align: center !important;
}

/* Bold total cells */
.ov-cart-table td[style*="font-weight:bold"] {
  font-weight: bold !important;
  font-size: 16px !important;
  color: var(--primary-red) !important;
}

@keyframes ov-spin {
  to { transform: rotate(360deg); }
}

/* Loading state */
.ov-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-medium);
  font-style: italic;
}

.ov-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: ov-spin 1s linear infinite;
  margin-right: 10px;
}

/* Success states */
.ov-success-message {
  background: #efe;
  border: 1px solid #cfc;
  color: #363;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: center;
}

/* MOBILE CARD LAYOUT - Default hidden */
.ov-mobile-cart {
  display: none;
}

.ov-mobile-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
}

.ov-mobile-item-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.ov-mobile-item-image {
  width: 60px;
  height: auto;
  max-height: 75px;
  object-fit: contain;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-lighter);
  flex-shrink: 0;
}

.ov-mobile-item-info {
  flex: 1;
}

.ov-mobile-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.ov-mobile-item-format {
  font-size: 14px;
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 10px;
}

.ov-mobile-item-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-red);
}

.ov-mobile-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-lighter);
}

.ov-mobile-quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ov-mobile-qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all var(--transition-fast);
}

.ov-mobile-qty-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-red);
}

.ov-mobile-quantity {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 30px;
  text-align: center;
}

.ov-mobile-remove-btn {
  background: #fee;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ov-mobile-remove-btn:hover {
  background: #e74c3c;
  color: white;
}

.ov-mobile-total {
  text-align: right;
  margin-top: 10px;
}

.ov-mobile-total-label {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 5px;
}

.ov-mobile-total-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
  .ov-container {
    padding: 30px 15px;
  }

  .ov-checkout-section {
    flex-direction: column;
    gap: 10px;
  }

  .ov-continue-btn,
  .ov-checkout-btn {
    width: 100%;
    text-align: center;
  }

  /* Hide table on mobile and show card layout */
  .ov-cart-table {
    display: none !important;
  }

  /* Show mobile card layout */
  .ov-mobile-cart {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .ov-container {
    padding: 20px 10px;
  }

  .ov-totals {
    padding: 20px;
  }

  .ov-total-row {
    padding: 10px 0;
  }

  .ov-mobile-item {
    padding: 15px;
  }

  .ov-mobile-item-header {
    gap: 10px;
  }

  .ov-mobile-item-image {
    width: 50px;
    max-height: 65px;
  }

  .ov-mobile-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* Print styles */
@media print {
  .ov-checkout-actions,
  .ov-quantity-controls,
  .ov-remove-btn {
    display: none;
  }

  .ov-cart-table {
    box-shadow: none;
    border: 1px solid #000;
  }

  .ov-cart-summary {
    box-shadow: none;
    border: 1px solid #000;
  }
}





/* Country Selector Styles */
.country-selector-container {
  margin: 20px 0;
}

.country-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.country-selector {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.country-selector-btn {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  text-align: left;
}

.country-selector-btn:hover {
  border-color: var(--primary-blue);
}

.country-selector-btn.active {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.country-arrow {
  font-size: 12px;
  color: var(--text-medium);
  transition: transform var(--transition-fast);
}

.country-selector-btn.active .country-arrow {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow: hidden;
}

.country-dropdown.show {
  display: block;
}

.country-search-container {
  padding: 12px;
  border-bottom: 1px solid var(--border-lighter);
}

.country-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 14px;
  outline: none;
}

.country-search:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.country-list {
  max-height: 240px;
  overflow-y: auto;
}

.country-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
  transition: background-color var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.country-option:hover {
  background: var(--bg-light);
}

.country-option.selected {
  background: var(--primary-blue);
  color: white;
}

.country-code {
  font-size: 12px;
  color: var(--text-medium);
  font-weight: 600;
}

.country-option.selected .country-code {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .country-selector {
    max-width: none;
  }
  
  .country-dropdown {
    max-height: 250px;
  }
  
  .country-list {
    max-height: 190px;
  }
}









.coupon-section {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.coupon-container {
  max-width: 100%;
}

.coupon-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  align-items: stretch;
}

.coupon-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.coupon-input:focus {
  outline: none;
  border-color: #c82333;
}

.coupon-input::placeholder {
  color: #6c757d;
}

.apply-coupon-btn {
  padding: 12px 24px;
  background: #c82333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 80px;
}

.apply-coupon-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.coupon-message {
  font-size: 14px;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  min-height: 0;
}

.coupon-message:not(:empty) {
  margin: 12px 0 8px 0;
  padding: 8px 12px;
  border-radius: 4px;
}

.coupon-message.success {
  color: #155724;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
}

.coupon-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}

.applied-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 12px;
}

#appliedCouponText {
  font-weight: 500;
  color: #155724;
  flex: 1;
  font-size: 14px;
}

.remove-coupon-btn {
  background: none;
  border: none;
  color: #721c24;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  margin-left: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ov-total-row.discount {
  color: #155724;
  font-weight: 500;
  background-color: rgba(209, 231, 221, 0.3);
  margin: 2px 0;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Responsive design */
@media (max-width: 576px) {
  .coupon-section {
    margin: 15px 0;
    padding: 15px;
  }
  
  .coupon-input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .apply-coupon-btn {
    width: 100%;
    padding: 12px;
  }
  
  .applied-coupon {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .remove-coupon-btn {
    align-self: flex-end;
    margin-left: 0;
  }
}




<style>
  .shipping-options-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
  }
  
  .shipping-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
  }
  
  .shipping-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .shipping-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .shipping-option:hover {
    border-color: var(--primary-red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .shipping-option.selected {
    border-color: var(--primary-red);
    background: #fff5f5;
  }
  
  .shipping-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  
  .shipping-option-details {
    flex: 1;
  }
  
  .shipping-option-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
  }
  
  .shipping-option-delivery {
    font-size: 14px;
    color: #666;
  }
  
  .shipping-option-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-red);
  }
  
  .shipping-loading {
    padding: 20px;
    text-align: center;
    color: #666;
  }
  
  .shipping-error {
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
  }
</style>