/* ==========================================================================
   L'Aube Avenue - Form Pages (Register, Login, Cart, Checkout)
   ========================================================================== */

/* Breadcrumb (shared) */
.breadcrumb-nav { background: var(--color-bg); border-bottom: 1px solid var(--color-border-light); padding: 12px 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 11px; color: var(--color-text-muted); }
.breadcrumb-list li { display: flex; align-items: center; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--color-text-muted); }
.breadcrumb-list li a { color: var(--color-text-light); font-size: 11px; }
.breadcrumb-list li.current { color: var(--color-text); }

/* ==========================================================================
   Form Page Layout
   ========================================================================== */
.form-page {
  padding: 40px 0 60px;
  background: var(--color-bg-light);
}

.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-bg);
  padding: 40px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
}

.form-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.form-lead {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

/* ==========================================================================
   Registration Benefits
   ========================================================================== */
.reg-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 25px;
}

.reg-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #FFF8E7;
  border: 1px solid #F0D78C;
  border-radius: 6px;
  font-size: 12px;
  color: var(--color-text);
}

.reg-benefit i {
  color: #D4AF37;
  font-size: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   SNS Login
   ========================================================================== */
.sns-login-section {
  margin-bottom: 20px;
}

.sns-login-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 12px;
}

.sns-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sns-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--color-bg);
  color: var(--color-text);
}

.sns-login-btn:hover {
  background: var(--color-bg-light);
}

.sns-login-btn i {
  font-size: 18px;
}

.sns-google i { color: #4285F4; }
.sns-apple i { color: #000; }
.sns-line-login i { color: #06C755; }

/* ==========================================================================
   Form Divider
   ========================================================================== */
.form-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.form-divider span {
  padding: 0 15px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.main-form {
  /* form container */
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 6px;
}

.required {
  font-size: 10px;
  color: var(--color-sale);
  font-weight: normal;
  margin-left: 4px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  background: var(--color-bg);
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-input::placeholder {
  color: #ccc;
}

.form-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  background: var(--color-bg);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-textarea:focus {
  border-color: var(--color-primary);
}

.form-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

.form-row-half .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-row-half {
  margin-bottom: 18px;
}

.form-row-third {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

/* Password toggle */
.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 16px;
}

/* Radio & Checkbox */
.form-radio-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-radio,
.form-checkbox {
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-checkbox a {
  color: var(--color-primary) !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   Form Actions
   ========================================================================== */
.form-actions {
  margin-top: 25px;
}

.btn-form-primary,
a.btn-form-primary,
a.btn-form-primary:link,
a.btn-form-primary:visited {
  width: 100%;
  height: 50px;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.btn-form-primary:hover,
a.btn-form-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-bg);
  opacity: 1;
}

.btn-form-secondary,
a.btn-form-secondary,
a.btn-form-secondary:link,
a.btn-form-secondary:visited {
  width: 100%;
  height: 50px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-form-secondary:hover,
a.btn-form-secondary:hover {
  border-color: var(--color-text);
}

.form-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-footer-link a {
  color: var(--color-primary) !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   Cart Recommend Sections
   ========================================================================== */
.cart-recommend {
  margin-top: 40px;
}

.cart-recommend-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-text);
}

/* ==========================================================================
   Login Benefits
   ========================================================================== */
.login-benefits {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: 8px;
}

.login-benefits-title {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: var(--color-text);
}

.login-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--color-bg);
  border-radius: 6px;
  border: 1px solid var(--color-border-light);
}

.login-benefit-item i {
  font-size: 20px;
  color: var(--color-primary);
}

.login-benefit-item .benefit-label {
  font-size: 12px;
  color: var(--color-text);
  font-weight: bold;
  line-height: 1.4;
}

.login-benefit-item .benefit-desc {
  font-size: 10px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Login Options
   ========================================================================== */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 12px;
  color: var(--color-primary) !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.cart-page {
  padding: 40px 0 60px;
  background: var(--color-bg-light);
}

.cart-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.cart-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

/* Cart Empty */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
}

.cart-empty-icon {
  font-size: 48px;
  color: var(--color-border);
  margin-bottom: 15px;
}

.cart-empty h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.cart-empty p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

/* Cart Items */
.cart-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.cart-items {
  flex: 1;
  min-width: 0;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  margin-bottom: 12px;
}

.cart-item-image {
  width: 100px;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-brand {
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cart-item-options {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.cart-item-options span {
  margin-right: 12px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 16px;
  font-weight: bold;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.cart-item-qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--color-bg);
  cursor: pointer;
  font-size: 14px;
}

.cart-item-qty input {
  width: 35px;
  height: 30px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  -moz-appearance: textfield;
}

.cart-item-remove {
  font-size: 11px;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  margin-left: 10px;
}

.cart-item-remove:hover {
  color: var(--color-sale);
}

/* Cart Summary */
.cart-summary {
  width: 300px;
  flex-shrink: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 25px;
  position: sticky;
  top: 130px;
}

.cart-summary-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--color-text-light);
}

.cart-summary-row.total {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.cart-summary-row .points-note {
  font-size: 11px;
  color: #D4AF37;
}

.cart-coupon {
  margin: 15px 0;
}

.cart-coupon-input {
  display: flex;
  gap: 6px;
}

.cart-coupon-input input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 12px;
}

.cart-coupon-input button {
  height: 36px;
  padding: 0 12px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.cart-summary-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-summary-note {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */
.checkout-page {
  padding: 40px 0 60px;
  background: var(--color-bg-light);
}

.checkout-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.checkout-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.checkout-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 15px;
}

.checkout-section-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.checkout-item-summary {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.checkout-item-summary:last-child {
  border-bottom: none;
}

.checkout-item-summary img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
}

.checkout-item-detail {
  flex: 1;
}

.checkout-item-detail .name {
  font-size: 13px;
  font-weight: 500;
}

.checkout-item-detail .opts {
  font-size: 11px;
  color: var(--color-text-muted);
}

.checkout-item-detail .price {
  font-size: 13px;
  font-weight: bold;
  margin-top: 4px;
}

/* Payment options in checkout */
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--color-primary);
}

.payment-option i {
  font-size: 18px;
  color: var(--color-text-light);
  width: 24px;
  text-align: center;
}

.payment-option .pay-label {
  font-size: 13px;
  flex: 1;
}

.payment-option .pay-note {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Checkout Guest Banner
   ========================================================================== */
.checkout-guest-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #FFF8E7;
  border: 1px solid #F0D78C;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
}

.checkout-guest-banner i {
  color: #D4AF37;
  font-size: 16px;
  flex-shrink: 0;
}

.checkout-guest-banner a {
  color: var(--color-primary) !important;
  font-weight: bold;
  text-decoration: underline !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
  .form-wrapper {
    padding: 25px 20px;
    border: none;
    border-radius: 0;
  }

  .reg-benefits {
    grid-template-columns: 1fr;
  }

  .form-radio-group {
    flex-direction: column;
    gap: 8px;
  }

  .cart-layout {
    flex-direction: column;
  }

  .cart-summary {
    width: 100%;
    position: static;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 80px;
    height: 100px;
  }

  .checkout-wrapper {
    padding: 0 15px;
  }
}
