/* Product Detail Page Styling */
.product-detail-section {
  padding: 40px 0;
  background-color: #FFFFFF;
}

.detail-container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 10px;
}

.detail-back-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-back-row .back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.detail-back-row .back-btn:hover {
  background-color: #E2E8F0;
}

.detail-breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
}

.detail-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.detail-img-col {
  width: 100%;
}

.detail-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.detail-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-like-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.detail-like-btn:hover {
  transform: scale(1.1);
}

.detail-like-btn i {
  font-size: 18px;
  color: #1E293B;
}

.detail-info-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.detail-brand {
  font-size: 16px;
  font-weight: 800;
  color: #777777 !important;
  margin-bottom: 8px;
}

.detail-name {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  line-height: 1.35;
}

.detail-reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-reviews .stars {
  font-size: 14px;
}

.detail-reviews .rating {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.detail-reviews .review-count {
  font-size: 13px;
  color: #64748B;
}

.detail-divider {
  height: 1px;
  background-color: #E2E8F0;
  margin: 16px 0;
}

/* Detailed Pricing Box */
.detail-price-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #F8FAFC;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
}

.detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-price-row .price-label {
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
}

.detail-price-row.original .price-val {
  font-size: 14px;
  color: #94A3B8;
  text-decoration: line-through;
}

.detail-price-row.normal-sale .price-val {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
}

.detail-price-row.secret-sale {
  border-top: 1px dashed #E2E8F0;
  padding-top: 12px;
  margin-top: 4px;
}

.detail-price-row.secret-sale .price-label.secret-badge {
  font-size: 14px;
  font-weight: 800;
  color: #EA580C;
  background-color: #FFF7ED;
  border: 1px solid #FFEDD5;
  padding: 4px 10px;
  border-radius: 6px;
}

.detail-price-row.secret-sale .price-val-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-price-row.secret-sale .price-arrow-svg {
  width: 20px;
  height: 16px;
  color: #EF4444;
}

.detail-price-row.secret-sale .discount-percent {
  font-size: 20px;
  font-weight: 900;
  color: #EF4444;
}

.detail-price-row.secret-sale .final-price {
  font-size: 22px;
  font-weight: 900;
  color: #EF4444;
}

/* Gauge details */
.detail-gauge-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-gauge-box .gauge-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.detail-gauge-box .gauge-title {
  color: #334155;
}

.detail-gauge-box .gauge-desc {
  color: #64748B;
}

.detail-gauge-track {
  width: 100%;
  height: 8px;
  background-color: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}

.detail-gauge-bar {
  height: 100%;
  background: linear-gradient(to right, #F87171, #EF4444);
  border-radius: 4px;
}

.detail-benefit-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #FFFBEB;
  border: 1px solid #FEF3C7;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #D97706;
}

.detail-benefit-banner i {
  font-size: 15px;
}

/* Detail buttons */
.detail-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
}

.detail-action-buttons button {
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-action-buttons button:active {
  transform: scale(0.98);
}

.detail-action-buttons .cart-btn {
  background-color: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #475569;
}

.detail-action-buttons .cart-btn:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8;
}

.detail-action-buttons .buy-btn {
  background-color: #000000 !important;
  border: none !important;
  color: #FFFFFF !important;
}

.detail-action-buttons .buy-btn:hover {
  background-color: #222222 !important;
}

/* Tabs lower section */
.detail-tabs-section {
  margin-top: 40px;
  border-top: 2px solid #E2E8F0;
}

.detail-tabs {
  display: flex;
  border-bottom: 1px solid #E2E8F0;
}

.detail-tabs .tab-item {
  flex: 1;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #64748B;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-tabs .tab-item.active {
  color: var(--point-green);
  border-bottom-color: var(--point-green);
}

.detail-tabs-section .tab-content {
  padding: 32px 10px;
}

@media (max-width: 768px) {
  .detail-main-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Checkout Modal styling */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 11000;
  backdrop-filter: blur(4px);
}

.modal-backdrop.active {
  display: block;
}

.checkout-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 500px;
  max-width: 95%;
  max-height: 85vh;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 12000;
  overflow-y: auto;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.checkout-modal.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  background-color: #FFFFFF;
  z-index: 10;
}

.checkout-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.checkout-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
}

.checkout-body {
  padding: 20px;
  text-align: left;
}

.checkout-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #1E293B;
  margin: 20px 0 10px 0;
  border-left: 3px solid var(--point-green);
  padding-left: 8px;
}

.checkout-section-title:first-of-type {
  margin-top: 0;
}

.checkout-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.checkout-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.checkout-item-info {
  flex: 1;
  text-align: left;
}

.checkout-item-info h4 {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 2px 0;
}

.checkout-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.checkout-address-box {
  background-color: #F8FAFC;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-address-row {
  display: flex;
  font-size: 12px;
  line-height: 1.4;
}

.checkout-address-row .label {
  width: 60px;
  color: #64748B;
  font-weight: 700;
  flex-shrink: 0;
}

.checkout-address-row .val {
  color: #334155;
}

.checkout-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.payment-method-option {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.payment-method-option input {
  margin: 0;
  cursor: pointer;
}

.payment-method-option label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.payment-method-option.selected {
  border-color: var(--point-green);
  background-color: #F0FDF4;
}

.checkout-summary-box {
  background-color: #FFF7ED;
  border: 1px solid #FFEDD5;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #475569;
}

.checkout-summary-row.total {
  border-top: 1px dashed #FFD8A8;
  padding-top: 8px;
  margin-top: 4px;
  font-weight: 800;
  font-size: 15px;
  color: #EA580C;
}

.checkout-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background-color: var(--point-green);
  border: none;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkout-submit-btn:hover {
  background-color: #15803D;
}

/* Success & Loading View */
.checkout-success-view {
  text-align: center;
  padding: 30px 10px;
}

.checkout-success-view i {
  font-size: 44px;
  color: var(--point-green);
  margin-bottom: 12px;
}

.checkout-success-view h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
}

/* Auth Modal styling */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 20px;
}

.auth-tabs .auth-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.auth-tabs .auth-tab-btn.active {
  color: var(--point-green);
  border-bottom-color: var(--point-green);
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-input-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  text-align: left;
}

.auth-input-group input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-input-group input:focus {
  border-color: var(--point-green);
}

.auth-submit-btn {
  width: 100%;
  padding: 12.5px;
  border-radius: 6px;
  background-color: var(--point-green);
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.auth-submit-btn:hover {
  background-color: #15803D;
}

/* Auth Page Styling */
.auth-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 10px;
  background-color: #F8FAFC;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  padding: 40px;
  border: 1px solid #E2E8F0;
  box-sizing: border-box;
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.5;
}

.auth-switch-link {
  font-size: 13px;
  color: #64748B;
  margin-top: 24px;
  text-align: center;
}

.auth-switch-link a {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}

.auth-switch-link a:hover {
  color: #333333;
}

/* Checkout Page Layout */
.checkout-page-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 16px 80px 16px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .checkout-page-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 10px 60px 10px;
  }
}

.checkout-left-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.checkout-right-col {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.checkout-card-box {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  text-align: left;
  box-sizing: border-box;
}

.checkout-card-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 20px 0;
  border-bottom: 1.5px solid #F1F5F9;
  padding-bottom: 12px;
}

.checkout-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-input-row label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.checkout-input-row input, .checkout-input-row select {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 13.5px;
  outline: none;
  background-color: #FFF;
  transition: border-color 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.checkout-input-row input:focus, .checkout-input-row select:focus {
  border-color: #000000;
}

.payment-grid-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.payment-card-btn {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background-color: #FFF;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.payment-card-btn.active {
  border-color: #000000;
  background-color: #000000;
  color: #FFFFFF;
}

/* Pricing bill box */
.checkout-bill-card {
  background-color: #FFFFFF;
  border: 1.5px solid #000000;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  text-align: left;
  box-sizing: border-box;
}

.checkout-bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
}

.checkout-bill-row.savings {
  color: #EF4444;
}

.checkout-bill-row.total-amount {
  border-top: 1.5px solid #000000;
  padding-top: 16px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 900;
  color: #000000;
}

.checkout-pay-btn {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  background-color: #000000;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.2s;
  text-align: center;
}

.checkout-pay-btn:hover {
  background-color: #222222;
}

/* Checkout success view */
.checkout-page-success {
  max-width: 600px;
  margin: 60px auto;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.checkout-page-success i {
  font-size: 56px;
  color: #000000;
  margin-bottom: 20px;
}

.checkout-page-success h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 12px 0;
}

.checkout-page-success p {
  font-size: 14.5px;
  color: #64748B;
  margin: 0 0 32px 0;
  line-height: 1.6;
}
