/**
 * Tackle Pro Essentials - Minimal Single Product Styles
 */

/* Header */
.simple-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 24px;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}

.cart-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cart-toggle:hover {
  border-color: var(--accent-chartreuse);
  color: var(--accent-chartreuse);
}

/* Main Area */
.simple-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.buy-card {
  max-width: 900px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
}

.buy-card-image {
  background: #071220;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-card-image img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}

.buy-card-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rig-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.rig-tagline {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.price-tag-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.price-large {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
}

.price-each {
  font-size: 0.9rem;
  color: var(--accent-chartreuse);
  font-weight: 600;
}

.option-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.option-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.clean-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  cursor: pointer;
}

.clean-select:focus {
  border-color: var(--accent-chartreuse);
}

.clean-qty-row {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: fit-content;
}

.qty-btn {
  width: 36px;
  height: 38px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  color: #fff;
}

.qty-display {
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

/* Cart Drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100%);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.7);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
}

.close-btn:hover {
  color: #fff;
}

.cart-items-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.cart-item-name {
  font-weight: 700;
  color: #fff;
}

.cart-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  color: #fff;
}

.cart-item-del {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-left: 8px;
}

.cart-item-del:hover {
  color: var(--accent-red);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: #081321;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.total-bold {
  font-weight: 800;
  color: #fff;
}

.btn-checkout-drawer {
  width: 100%;
  padding: 14px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--text-muted);
}

.modal-close-icon:hover {
  color: #fff;
}

.checkout-box h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
  color: #fff;
}

/* Receipt */
.receipt-box {
  text-align: center;
}

.receipt-icon {
  font-size: 2.5rem;
  color: var(--accent-chartreuse);
  margin-bottom: 12px;
}

.receipt-box h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.receipt-box p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .buy-card {
    grid-template-columns: 1fr;
  }
  .buy-card-image img {
    max-height: 280px;
  }
  .buy-card-content {
    padding: 24px 20px;
  }
  .buy-actions {
    grid-template-columns: 1fr;
  }
}

/* Stock Badges & Waitlist Styles */
.badge-out-of-stock {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.badge-in-stock {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cta-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: #374151 !important;
  color: #9ca3af !important;
}

.out-of-stock-card {
  border-color: rgba(239, 68, 68, 0.2) !important;
}

.waitlist-box {
  background: #161e2e;
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
}

.waitlist-header strong {
  font-size: 0.95rem;
  color: #f5a623;
  display: block;
  margin-bottom: 4px;
}

.waitlist-header p {
  font-size: 0.84rem;
  color: #9ba3b8;
  line-height: 1.4;
  margin-bottom: 12px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
}

.waitlist-input {
  flex: 1;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.88rem;
}

.waitlist-input:focus {
  outline: none;
  border-color: #f5a623;
}

.waitlist-btn {
  background: #f5a623;
  color: #0d1117;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  cursor: pointer;
}

.waitlist-btn:hover {
  background: #ffb84d;
}

.waitlist-success {
  color: #4ade80;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 0;
}

/* --- Catch Proof Gallery --- */
.proof-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.proof-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.proof-header p {
  color: #9ba3b8;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

.proof-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(245, 166, 35, 0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  cursor: default;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 3/4;
}

.proof-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* --- Checkout & Payment System Modal Styles --- */
.checkout-backdrop, .receipt-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.checkout-backdrop.open, .receipt-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 92vw;
  max-width: 900px;
  max-height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.checkout-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.checkout-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 2px;
}

.checkout-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.checkout-close:hover {
  color: #fff;
}

.checkout-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  padding: 28px;
}

@media (max-width: 768px) {
  .checkout-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.checkout-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5a623;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #f5a623;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
}

.payment-options-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.pay-tab {
  flex: 1;
  padding: 10px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-tab.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
}

.pay-tab-content {
  display: none;
}

.pay-tab-content.active {
  display: block;
}

.express-pay-box {
  background: #1e293b;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.express-pay-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.btn-express-pay {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.checkout-summary-card {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 22px;
}

.co-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.co-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.co-item-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.co-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5a623;
}

.checkout-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 14px 0;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.checkout-total-row {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-top: 10px;
}

.btn-submit-order {
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  background: linear-gradient(135deg, #f5a623 0%, #d97706 100%);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(245, 166, 35, 0.4);
}

.security-note {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 12px;
}

/* Receipt Modal */
.receipt-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 90vw;
  max-width: 520px;
  background: #0f172a;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  padding: 30px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.receipt-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.receipt-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.receipt-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.receipt-order-num {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.receipt-box {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.receipt-box h4 {
  font-size: 0.85rem;
  color: #f5a623;
  margin-bottom: 10px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.receipt-total-line {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.receipt-est {
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}

.btn-receipt-close {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
