/* extracted from checkout/cart.tpl line 3 */
/* =====================================================
   ProTechTrader Modern Cart Styles
   ===================================================== */

/* Prevent horizontal overflow on mobile */
html, body.ptt-cart-page {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Full-width cart page override - apply to ALL s_wrap containers on this page */
body.ptt-cart-page .s_wrap {
  width: 100% !important;
  max-width: 1200px !important;
  left: 0 !important;
  transform: none !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  float: none !important;
}

/* Center the main content area */
body.ptt-cart-page #content_wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Cart Hero */
.ptt-cart-hero {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3548 100%);
  padding: 30px 20px;
  margin-bottom: 30px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  box-sizing: border-box;
}
.ptt-cart-hero .s_wrap,
.ptt-cart-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.ptt-cart-hero h1 {
  color: #fff;
  font-size: 32px;
  margin: 0 0 10px;
  font-weight: 700;
}
.ptt-cart-hero .cart-meta {
  display: flex;
  gap: 25px;
  color: #9ca3af;
  font-size: 14px;
}
.ptt-cart-hero .cart-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ptt-cart-hero .cart-meta svg {
  width: 16px;
  height: 16px;
}

/* Progress Steps */
.ptt-progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: -15px auto 25px;
  padding: 0 20px;
  max-width: 600px;
  box-sizing: border-box;
}
.ptt-progress-step {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
}
.ptt-progress-step.active {
  color: #f12b63;
  font-weight: 600;
}
.ptt-progress-step.completed {
  color: #4cb1ca;
}
.ptt-progress-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-weight: 700;
  font-size: 12px;
  background: #e5e7eb;
  color: #6b7280;
}
.ptt-progress-step.active .step-num {
  background: #f12b63;
  color: #fff;
}
.ptt-progress-step.completed .step-num {
  background: #4cb1ca;
  color: #fff;
}
.ptt-progress-line {
  width: 60px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 15px;
}
.ptt-progress-line.completed {
  background: #4cb1ca;
}

/* Main Cart Container */
#content.ptt-cart-content {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px 40px !important;
  position: relative !important;
  left: 0 !important;
  transform: none !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Cart Layout */
.ptt-cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure full width container */
.ptt-cart-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Cart Items Section */
.ptt-cart-items {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}
/* Ensure cart main section has no height constraints */
.ptt-cart-main {
  min-height: auto;
  max-height: none;
  overflow: visible;
  width: 100%;
}
.ptt-cart-header {
  background: #f8f9fa;
  padding: 15px 25px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ptt-cart-header h2 {
  margin: 0;
  font-size: 18px;
  color: #1a1f2e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ptt-cart-header h2 svg {
  width: 22px;
  height: 22px;
  color: #f12b63;
}
.ptt-cart-count {
  background: #f12b63;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Cart Item Card */
.ptt-cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 25px;
  border-bottom: 1px solid #e9ecef;
  align-items: center;
  box-sizing: border-box;
}
.ptt-cart-item:last-child {
  border-bottom: none;
}
.ptt-cart-item:hover {
  background: #fafbfc;
}
.ptt-item-image {
  position: relative;
}
.ptt-item-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}
.ptt-item-image:hover img {
  border-color: #4cb1ca;
}
.ptt-item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Allow text wrapping */
}
.ptt-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1f2e;
  text-decoration: none;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}
.ptt-item-name:hover {
  color: #f12b63;
}
.ptt-item-model {
  font-size: 12px;
  color: #6b7280;
}
.ptt-item-options {
  font-size: 12px;
  color: #6b7280;
}
.ptt-item-options span {
  display: block;
  padding: 2px 0;
}
.ptt-item-stock-warning {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 600;
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 20px;
}
.ptt-item-price-section {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}
.ptt-item-unit-price {
  font-size: 13px;
  color: #6b7280;
}
.ptt-item-total {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f2e;
}
.ptt-item-quantity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.ptt-qty-input {
  width: 50px;
  padding: 8px 5px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.ptt-qty-input:focus {
  outline: none;
  border-color: #4cb1ca;
}
.ptt-item-actions {
  display: flex;
  gap: 8px;
}
.ptt-btn-update, .ptt-btn-remove {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.ptt-btn-update {
  background: #e0f2fe;
  color: #0284c7;
}
.ptt-btn-update:hover {
  background: #0284c7;
  color: #fff;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ptt-btn-remove {
  background: #fee2e2;
  color: #dc2626;
}
.ptt-btn-remove:hover {
  background: #dc2626;
  color: #fff;
}
.ptt-btn-update svg, .ptt-btn-remove svg {
  width: 16px;
  height: 16px;
}

/* Cart Summary Sidebar */
.ptt-cart-summary {
  position: sticky;
  top: 20px;
  width: 100%;
}
.ptt-summary-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
}
.ptt-summary-header {
  background: linear-gradient(135deg, #f12b63 0%, #d91a4f 100%);
  color: #fff;
  padding: 20px 25px;
}
.ptt-summary-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.ptt-summary-body {
  padding: 25px;
}
.ptt-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
}
.ptt-summary-row:last-child {
  border-bottom: none;
}
.ptt-summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #1a1f2e;
  padding-top: 15px;
  border-top: 2px solid #1a1f2e;
  margin-top: 10px;
}
.ptt-summary-row.total .value {
  color: #f12b63;
  font-size: 24px;
}
.ptt-summary-label {
  color: #6b7280;
}
.ptt-summary-value {
  font-weight: 600;
  color: #1a1f2e;
}

/* Promo Code Section */
.ptt-promo-section {
  padding: 20px 25px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}
.ptt-promo-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4cb1ca;
  cursor: pointer;
  font-weight: 600;
}
.ptt-promo-toggle:hover {
  color: #3a9bb0;
}
.ptt-promo-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.ptt-promo-toggle.active svg {
  transform: rotate(180deg);
}
.ptt-promo-form {
  display: none;
  margin-top: 15px;
}
.ptt-promo-form.show {
  display: block;
}
.ptt-promo-input-group {
  display: flex;
  gap: 10px;
}
.ptt-promo-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  min-width: 0;
}
.ptt-promo-input:focus {
  outline: none;
  border-color: #4cb1ca;
}
.ptt-promo-btn {
  padding: 12px 15px;
  background: #4cb1ca;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ptt-promo-btn:hover {
  background: #3a9bb0;
}

/* Checkout Actions */
.ptt-checkout-actions {
  padding: 25px;
  border-top: 1px solid #e9ecef;
}
.ptt-btn-checkout {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #f12b63 0%, #d91a4f 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.ptt-btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241,43,99,0.4);
  color: #fff;
}
.ptt-btn-checkout svg {
  width: 20px;
  height: 20px;
}

/* Express Checkout */
.ptt-express-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}
.ptt-sub-cart-note {
  margin-top: 20px;
  padding: 11px 14px;
  border-top: 1px solid #e9ecef;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.ptt-express-label {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ptt-express-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ptt-express-btn-container {
  height: 44px;
  width: 100%;
  min-width: 200px;
  border-radius: 8px;
  overflow: hidden;
}
#gpay-cart-btn {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptt-express-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.ptt-express-btn:hover {
  transform: translateY(-1px);
}
.ptt-express-btn svg {
  width: 20px;
  height: 20px;
}
.ptt-paypal-btn {
  background: #ffc439;
  color: #003087;
}
.ptt-paypal-btn:hover {
  background: #f0b90b;
}
.ptt-amazon-btn {
  background: #f0c14b;
  color: #232f3e;
  border-color: #a88734;
}
.ptt-amazon-btn:hover {
  background: #e0b040;
}
.ptt-venmo-btn {
  background: #008CFF;
  color: white;
  border: none;
}
.ptt-venmo-btn:hover {
  background: #0076d6;
}
#gpay-cart-btn {
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
}

/* Trust Badges */
.ptt-trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}
.ptt-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #6b7280;
}
.ptt-badge svg {
  width: 16px;
  height: 16px;
  color: #4cb1ca;
}

/* TechCrate Cross-Sell */
.ptt-techcrate-upsell{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);border:2px dashed #f59e0b;border-radius:15px;padding:25px;margin-top:25px;position:relative;overflow:hidden;box-sizing:border-box}
.ptt-techcrate-upsell .ptt-upsell-badge{display:inline-block;background:#f59e0b;color:#fff;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:4px 12px;border-radius:20px;margin-bottom:15px}
.ptt-techcrate-upsell .ptt-upsell-content{display:grid;grid-template-columns:100px 1fr;gap:20px;align-items:center}
.ptt-techcrate-upsell .ptt-upsell-image{width:100px;height:100px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;border:2px solid #fbbf24;box-sizing:border-box}
.ptt-techcrate-upsell .ptt-upsell-image img{max-width:80px;max-height:80px;object-fit:contain}
.ptt-techcrate-upsell .ptt-upsell-text h3{margin:0 0 8px;font-size:22px;color:#1a1f2e;font-weight:700;line-height:1.3}
.ptt-techcrate-upsell .ptt-upsell-text p{margin:0 0 15px;color:#4a5568;font-size:14px;line-height:1.5}
.ptt-techcrate-upsell .ptt-upsell-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.ptt-techcrate-upsell .ptt-upsell-form{display:inline;margin:0}
.ptt-techcrate-upsell .ptt-upsell-btn{display:inline-flex;align-items:center;gap:6px;padding:12px 24px;background:linear-gradient(135deg,#f59e0b 0%,#d97706 100%);color:#fff !important;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;box-shadow:0 4px 12px rgba(245,158,11,0.3);transition:all 0.2s ease;font-family:inherit}
.ptt-techcrate-upsell .ptt-upsell-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(245,158,11,0.4)}
.ptt-techcrate-upsell .ptt-upsell-learn-more{color:#92400e;font-weight:600;font-size:14px;text-decoration:none}
.ptt-techcrate-upsell .ptt-upsell-learn-more:hover{color:#78350f;text-decoration:underline}
.ptt-techcrate-upsell .ptt-upsell-close{position:absolute;top:12px;right:15px;background:transparent;border:none;color:#92400e;font-size:22px;cursor:pointer;line-height:1;padding:4px 8px;opacity:0.6;font-family:inherit}
.ptt-techcrate-upsell .ptt-upsell-close:hover{opacity:1}
@media (max-width:600px){.ptt-techcrate-upsell .ptt-upsell-content{grid-template-columns:1fr;text-align:center}.ptt-techcrate-upsell .ptt-upsell-image{margin:0 auto}.ptt-techcrate-upsell .ptt-upsell-actions{justify-content:center}}
/* Continue Shopping */
.ptt-continue-shopping {
  text-align: center;
  margin-top: 20px;
}
.ptt-continue-shopping a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4cb1ca;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.ptt-continue-shopping a:hover {
  color: #f12b63;
}
.ptt-continue-shopping svg {
  width: 18px;
  height: 18px;
}

/* Shipping Calculator */
.ptt-shipping-calc {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 25px;
  overflow: hidden;
  width: 100%;
}
.ptt-shipping-header {
  background: #f8f9fa;
  padding: 15px 25px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ptt-shipping-header h3 {
  margin: 0;
  font-size: 16px;
  color: #1a1f2e;
  flex: 1;
}
.ptt-shipping-header svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
  transition: transform 0.3s ease;
}
.ptt-shipping-header.active svg {
  transform: rotate(180deg);
}
.ptt-shipping-body {
  padding: 25px;
  display: none;
}
.ptt-shipping-body.show {
  display: block;
}
.ptt-form-row {
  margin-bottom: 15px;
}
.ptt-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}
.ptt-form-row label .required {
  color: #f12b63;
}
.ptt-form-row select,
.ptt-form-row input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
.ptt-form-row select:focus,
.ptt-form-row input[type="text"]:focus {
  outline: none;
  border-color: #4cb1ca;
}
.ptt-btn-quote {
  width: 100%;
  padding: 12px;
  background: #4cb1ca;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}
.ptt-btn-quote:hover {
  background: #3a9bb0;
}

/* Messages */
.ptt-message {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ptt-message svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.ptt-message.success {
  background: #d1fae5;
  color: #065f46;
}
.ptt-message.warning {
  background: #fef3c7;
  color: #92400e;
}
.ptt-message.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Empty Cart */
.ptt-empty-cart {
  text-align: center;
  padding: 60px 20px;
}
.ptt-empty-cart svg {
  width: 80px;
  height: 80px;
  color: #d1d5db;
  margin-bottom: 20px;
}
.ptt-empty-cart h2 {
  font-size: 24px;
  color: #1a1f2e;
  margin: 0 0 10px;
}
.ptt-empty-cart p {
  color: #6b7280;
  margin: 0 0 25px;
}
.ptt-btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #f12b63 0%, #d91a4f 100%);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.ptt-btn-shop:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241,43,99,0.4);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .ptt-cart-layout {
    grid-template-columns: 1fr;
  }
  .ptt-cart-summary {
    position: static;
  }
}
@media (max-width: 768px) {
  .ptt-cart-hero {
    width: 100%;
    margin-left: 0;
    padding: 20px 15px;
  }
  .ptt-cart-hero h1 {
    font-size: 24px;
  }
  .ptt-cart-hero .cart-meta {
    flex-direction: column;
    gap: 8px;
  }
  .ptt-progress-bar {
    display: none;
  }
  .ptt-cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 15px;
  }
  .ptt-item-image img {
    width: 80px;
    height: 80px;
  }
  .ptt-item-price-section {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-top: 15px;
    border-top: 1px dashed #e9ecef;
    min-width: 0;
  }
  .ptt-item-quantity {
    justify-content: flex-end;
  }
  .ptt-item-total {
    font-size: 18px;
  }
  .ptt-trust-badges {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ptt-promo-input-group {
    flex-direction: column;
  }
  .ptt-promo-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .ptt-cart-header {
    padding: 15px;
  }
  .ptt-summary-body {
    padding: 15px;
  }
  .ptt-checkout-actions {
    padding: 15px;
  }
}

.ptt-cart-plan-selector { margin-top: 10px; padding: 12px; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; max-width: 430px; }
.ptt-cart-plan-label { display: block; margin-bottom: 6px; color: #1e3a5f; font-size: 13px; font-weight: 700; }
.ptt-cart-plan-select { width: 100%; min-height: 44px; margin: 0; padding: 8px 34px 8px 10px; border: 1px solid #93c5fd; border-radius: 7px; background: #fff; color: #172033; font-size: 13px; box-sizing: border-box; }
.ptt-cart-plan-links { margin-top: 6px; font-size: 12px; color: #526174; }
.ptt-cart-plan-links a { color: #2563eb; text-decoration: underline; }
.ptt-cart-plan-status { min-height: 16px; margin-top: 5px; color: #526174; font-size: 12px; }
.ptt-cart-plan-status.ptt-plan-error { color: #b91c1c; }
@media (max-width: 640px) { .ptt-cart-plan-selector { max-width: none; } }