/**
 * Sepet ve ödeme sayfaları — referans UI (kartlar, sipariş özeti)
 */

:root {
  --co-dark: #0f3633;
  --co-muted: #6f675f;
  --co-border: #ece8e1;
  --co-beige: #f5f3ef;
  --co-cream: #efeae4;
}

/* --- Sepet sayfası --- */

.checkout-cart-page {
  background: #fff;
}

.checkout-cart-breadcrumb {
  margin-bottom: 1rem;
}

.checkout-cart-theme {
  padding-bottom: 2rem;
}

.checkout-cart-head {
  margin-bottom: 1.75rem;
}

.checkout-cart-kicker {
  margin: 0 0 0.35rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #9a8f84;
}

.checkout-cart-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 42px);
  color: #2f2925;
}

.checkout-cart-count {
  margin-left: 0.5rem;
  font-family: "Open Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--co-muted);
}

.theme-cart-card {
  margin: 0;
}

.theme-cart-card-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 16px;
}

.theme-cart-card-title {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
}

.theme-cart-card-title a {
  color: #2f2925;
  text-decoration: none;
}

.theme-cart-card-title a:hover {
  color: var(--co-dark);
}

.theme-cart-card-meta {
  font-size: 13px;
  color: var(--co-muted);
  margin-bottom: 0.15rem;
}

.theme-cart-card-image img {
  border-radius: 12px;
  background: var(--co-beige);
}

.theme-cart-card-bottom {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.theme-cart-card-prices {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.theme-cart-card-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--co-dark);
}

.theme-cart-card-line-total {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #2f2925;
}

.theme-cart-card-row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-cart-pill-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--co-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.theme-cart-pill-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--co-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-cart-pill-btn:hover {
  color: var(--co-dark);
}

.theme-cart-pill-input {
  width: 42px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}

.theme-cart-trash {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--co-border);
  background: #fff;
  color: var(--co-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.theme-cart-trash:hover {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.35);
}

.checkout-cart-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 14px;
  color: var(--co-muted);
  text-decoration: none;
}

.checkout-cart-continue-link:hover {
  color: var(--co-dark);
}

.checkout-cart-empty-panel {
  padding: clamp(28px, 6vw, 48px);
  background: var(--co-beige);
  border: 1px solid rgba(232, 223, 211, 0.9);
  border-radius: 16px;
}

.checkout-cart-empty-text {
  color: var(--co-muted);
  margin-bottom: 1.25rem;
}

.checkout-empty-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 54, 51, 0.16);
  background: var(--co-dark);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.checkout-empty-continue-btn:hover {
  transform: translateY(-1px);
  background: #0c2e2b;
  box-shadow: 0 12px 24px rgba(15, 54, 51, 0.2);
}

.checkout-order-summary-panel {
  position: sticky;
  top: 96px;
  padding: 1.5rem;
  background: var(--co-beige);
  border-radius: 16px;
  border: 1px solid rgba(232, 223, 211, 0.9);
}

.checkout-order-summary-title {
  margin: 0 0 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #2f2925;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 14px;
  margin-bottom: 0.65rem;
}

.checkout-summary-row span:first-child {
  color: var(--co-muted);
}

.checkout-summary-row span:last-child {
  font-weight: 600;
  color: #2f2925;
}

.checkout-summary-grand {
  align-items: baseline;
  margin-bottom: 0;
}

.checkout-summary-grand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--co-dark);
}

.checkout-summary-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 1rem 0;
}

.checkout-summary-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  border: 0;
  background: var(--co-dark);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}

.checkout-summary-checkout-btn:hover {
  background: #164845;
  color: #fff !important;
}

.checkout-summary-trust {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  list-style: none;
}

.checkout-summary-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--co-muted);
  margin-bottom: 0.35rem;
}

.checkout-summary-trust i {
  color: #536358;
}

.checkout-cart-modules .checkout-modules-title {
  font-family: "Playfair Display", Georgia, serif;
}

.checkout-accordion .accordion-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

@media (max-width: 991px) {
  .checkout-order-summary-panel {
    position: static;
    margin-top: 1rem;
  }

  .theme-cart-card-inner {
    flex-direction: column;
  }

  .theme-cart-card-image {
    align-self: center;
  }
}

/* --- Ödeme / checkout --- */

.checkout-flow-page {
  background: #faf9f7;
  min-height: 60vh;
}

.checkout-flow-shell {
  max-width: 1140px;
}

.checkout-flow-page-title {
  margin-bottom: 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 38px);
  color: #2f2925;
}

.checkout-steps-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 500;
}

.checkout-step-active {
  color: var(--co-dark);
}

.checkout-step-muted {
  color: var(--co-muted);
}

.checkout-step-next {
  color: #b5aea6;
}

.checkout-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--co-cream);
  color: var(--co-muted);
}

.checkout-step-active .checkout-step-badge {
  background: var(--co-dark);
  color: #fff;
}

.checkout-step-line {
  flex: 1;
  height: 1px;
  background: var(--co-border);
  min-width: 24px;
}

.checkout-flow-card {
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.checkout-flow-card fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.checkout-flow-card legend {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  float: none;
  width: 100%;
}

.checkout-flow-forms .checkout-flow-card .form-control,
.checkout-flow-forms .checkout-flow-card .form-select {
  border-radius: 10px;
  border-color: var(--co-border);
}

.checkout-flow-forms .checkout-flow-card .form-label {
  font-size: 13px;
  font-weight: 500;
}

.checkout-confirm-theme {
  background: #fff;
  border-radius: 12px;
}

.checkout-confirm-theme .checkout-confirm-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
}

.checkout-confirm-theme .checkout-confirm-item:last-child {
  border-bottom: 0;
}

.checkout-confirm-item-main {
  display: flex;
  gap: 0.6rem;
  min-width: 0;
}

.checkout-confirm-qty {
  font-weight: 600;
  color: var(--co-muted);
}

.checkout-confirm-name {
  color: #2f2925;
  text-decoration: none;
}

.checkout-confirm-item-price {
  font-weight: 600;
  white-space: nowrap;
}

.checkout-confirm-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 14px;
}

.checkout-confirm-grand {
  padding-top: 0.75rem;
}

.checkout-confirm-grand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--co-dark);
}

#checkout-payment .btn-primary,
.checkout-flow-sidebar .btn-primary {
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  background: var(--co-dark);
  border-color: var(--co-dark);
}

#checkout-payment .btn-primary:hover {
  background: #164845;
  border-color: #164845;
}

/* --- Login / Register / Account --- */

.account-auth-page {
  background: #faf9f7;
  min-height: 70vh;
}

.account-auth-shell {
  display: flex;
  min-height: calc(100vh - 120px);
}

.account-auth-visual {
  width: 44%;
  min-height: calc(100vh - 120px);
  background: linear-gradient(145deg, #2d2521 0%, #5a4c42 100%);
  border-radius: 0 20px 20px 0;
  position: relative;
  overflow: hidden;
}

.account-auth-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.account-auth-visual-content {
  position: relative;
  z-index: 1;
  color: #fff;
  height: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.account-auth-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}

.account-auth-visual-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 44px);
}

.account-auth-visual-content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  max-width: 320px;
}

.account-auth-main {
  width: 56%;
  padding: 1.25rem 0 2.5rem;
}

.account-auth-main .breadcrumb {
  margin: 0 0 1rem;
}

.account-auth-card-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 1rem;
}

.account-auth-card {
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 18px;
  padding: 1.5rem;
}

.account-auth-card h1 {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  color: #2f2925;
}

.account-auth-subtitle {
  color: var(--co-muted);
  font-size: 14px;
  margin-bottom: 1.1rem;
}

.account-auth-card .form-label,
.account-register-card .col-form-label {
  font-size: 13px;
  color: #5b524a;
  font-weight: 600;
}

.account-auth-card .form-control,
.account-auth-card .form-select {
  border-radius: 10px;
  border-color: var(--co-border);
  min-height: 44px;
}

.account-auth-link {
  font-size: 12px;
  color: #6e645c;
  text-decoration: none;
}

.account-auth-link:hover {
  color: var(--co-dark);
}

.account-auth-card .btn-primary {
  border-radius: 999px;
  background: var(--co-dark);
  border-color: var(--co-dark);
  min-height: 45px;
}

.account-auth-card .btn-primary:hover {
  background: #164845;
  border-color: #164845;
}

.account-auth-alt-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--co-border);
  border-radius: 12px;
  background: #fbfaf8;
}

.account-auth-alt-card h3 {
  font-size: 17px;
  margin: 0 0 0.25rem;
  color: #302822;
}

.account-auth-alt-card p {
  font-size: 13px;
  color: #776d64;
  margin: 0 0 0.75rem;
}

.account-auth-alt-card .btn-light {
  border-radius: 999px;
  border: 1px solid var(--co-border);
}

.account-register-shell,
.account-forgotten-shell {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.account-register-card,
.account-forgotten-card {
  max-width: 860px;
  margin: 0 auto;
}

.account-register-card fieldset {
  border: 1px solid var(--co-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.account-register-card legend {
  float: none;
  width: auto;
  margin: 0 0 0.75rem;
  padding: 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #332c27;
}

.account-register-card .row {
  align-items: center;
}

.account-register-card .form-control,
.account-register-card .form-select {
  border-radius: 10px;
  border-color: var(--co-border);
}

.account-register-submit {
  padding-top: 0.5rem;
}

.account-register-submit .form-check {
  margin-bottom: 0.9rem;
}

.account-dashboard-page {
  background: #faf9f7;
  padding: 1rem 0 2rem;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
}

.account-dashboard-sidebar {
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 18px;
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.account-dashboard-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--co-border);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
}

.account-dashboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--co-dark);
  color: #fff;
  font-weight: 700;
}

.account-dashboard-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2b2521;
}

.account-dashboard-email {
  margin: 0;
  font-size: 12px;
  color: #766d65;
}

.account-dashboard-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.account-dashboard-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: #544b44;
  text-decoration: none;
  font-size: 14px;
}

.account-dashboard-nav a:hover {
  background: var(--co-beige);
  color: #261f1b;
}

.account-dashboard-logout {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e7d7d7;
  color: #8f3e3e;
  background: #fff7f7;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 13px;
  font-weight: 600;
}

.account-dashboard-logout:hover {
  background: #fdeeee;
  color: #7e3333;
}

.account-dashboard-content {
  display: grid;
  gap: 1rem;
}

.account-panel-card {
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
}

.account-panel-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.45rem;
  color: #2f2925;
}

.account-panel-card p {
  margin: 0;
  color: #6f675f;
}

.account-dashboard-muted {
  margin-top: 0.55rem;
  color: #6f675f;
}

.account-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.65rem 0 0.25rem;
}

.account-dashboard-stat {
  border: 1px solid var(--co-border);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  background: #fff;
}

.account-dashboard-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #766d65;
  margin-bottom: 0.2rem;
}

.account-dashboard-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2b2521;
  line-height: 1.1;
}

.account-dashboard-recent-actions {
  margin-top: 0.75rem;
}

.account-dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

@media (max-width: 1199px) {
  .account-auth-visual {
    width: 40%;
  }

  .account-auth-main {
    width: 60%;
  }
}

@media (max-width: 991px) {
  .account-auth-main,
  .account-auth-visual {
    width: 100%;
  }

  .account-auth-shell {
    min-height: auto;
  }

  .account-auth-card-wrap {
    max-width: 720px;
  }

  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-dashboard-sidebar {
    position: static;
  }

  .account-dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* --- Generic account pages UI refresh --- */

[id^="account-"].container {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

[id^="account-"].container > .row {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

[id^="account-"].container > .row > #content.col {
  order: 2;
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 18px;
  padding: 1.25rem;
}

[id^="account-"].container > .row > #column-left,
[id^="account-"].container > .row > #column-right {
  order: 1;
  flex: 0 0 280px;
  max-width: 280px;
  width: 280px;
}

[id^="account-"].container > .row > #column-left .list-group,
[id^="account-"].container > .row > #column-right .list-group {
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 16px;
  padding: 0.6rem;
  margin-bottom: 0;
  position: sticky;
  top: 96px;
}

[id^="account-"].container > .row > #column-left .list-group-item,
[id^="account-"].container > .row > #column-right .list-group-item {
  border: 0;
  border-radius: 10px;
  margin-bottom: 0.2rem;
  color: #544b44;
  font-size: 14px;
  padding: 0.55rem 0.7rem;
}

[id^="account-"].container > .row > #column-left .list-group-item.active,
[id^="account-"].container > .row > #column-right .list-group-item.active,
[id^="account-"].container > .row > #column-left .list-group-item:hover,
[id^="account-"].container > .row > #column-right .list-group-item:hover {
  background: var(--co-beige);
  color: #261f1b;
}

[id^="account-"].container > .row > #content h1 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  color: #2f2925;
}

[id^="account-"] fieldset {
  border: 1px solid var(--co-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

[id^="account-"] legend {
  float: none;
  width: auto;
  margin: 0 0 0.75rem;
  padding: 0 0.25rem;
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #332c27;
}

[id^="account-"] .form-control,
[id^="account-"] .form-select {
  min-height: 42px;
  border-radius: 10px;
  border-color: var(--co-border);
}

[id^="account-"] .col-form-label,
[id^="account-"] .form-label {
  color: #5b524a;
  font-weight: 600;
  font-size: 13px;
}

[id^="account-"] .table-responsive {
  border: 1px solid var(--co-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

[id^="account-"] .table {
  margin-bottom: 0;
}

[id^="account-"] .table thead td,
[id^="account-"] .table thead th {
  background: #f5f3ef;
  color: #4d443d;
  border-color: var(--co-border);
  font-weight: 600;
}

[id^="account-"] .table td,
[id^="account-"] .table th {
  border-color: var(--co-border);
  vertical-align: middle;
  font-size: 13px;
}

[id^="account-"] .btn {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}

[id^="account-"] .btn-primary {
  background: var(--co-dark);
  border-color: var(--co-dark);
}

[id^="account-"] .btn-primary:hover {
  background: #164845;
  border-color: #164845;
}

[id^="account-"] .btn-light {
  border: 1px solid var(--co-border);
  background: #fff;
}

[id^="account-"] .pagination {
  margin: 0;
}

[id^="account-"] .pagination .page-link {
  border-color: var(--co-border);
  color: #4d443d;
}

[id^="account-"] .pagination .active .page-link {
  background: var(--co-dark);
  border-color: var(--co-dark);
}

@media (max-width: 767px) {
  [id^="account-"].container > .row {
    display: block;
  }

  [id^="account-"].container > .row > #column-left,
  [id^="account-"].container > .row > #column-right {
    max-width: 100%;
    width: 100%;
    margin-bottom: 0.8rem;
  }

  [id^="account-"].container > .row > #column-left .list-group,
  [id^="account-"].container > .row > #column-right .list-group {
    position: static;
  }

  [id^="account-"].container > .row > #content.col {
    padding: 1rem;
    border-radius: 14px;
  }
}
