@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --purple: #7030ff;
  --purple-dark: #5e26c1;
  --purple-soft: #f3edff;
  --text: #1a1a1a;
  --text-muted: #8a8a8a;
  --text-soft: #6b6b6b;
  --border: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-muted: #f0f0f0;
  --radius: 12px;
  --radius-pill: 999px;
  --header-h: 64px;
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
}

.store-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo .logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-word {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2a2a2a;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
}

.logo-word strong {
  font-weight: 700;
  color: var(--purple);
}

.search-wrap {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.search-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.search-wrap .search-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search-wrap input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 18px 0 44px;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.9rem;
}

.search-wrap input::placeholder {
  color: #aaa;
}

.search-wrap input:focus {
  border-color: #cfcfcf;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--bg-soft);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.mobile-search-toggle {
  display: none;
}

/* Shipping bar */
.shipping-bar {
  display: flex;
  justify-content: center;
  padding: 10px 16px 14px;
  margin-top: 6px;
}

.shipping-pill {
  width: min(420px, 100%);
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 10px 16px 12px;
  text-align: center;
}

.shipping-pill p {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.shipping-track {
  position: relative;
  height: 4px;
  background: #ddd;
  border-radius: 999px;
}

.shipping-track-fill {
  height: 100%;
  background: var(--purple);
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease;
}

.shipping-track-icon {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  display: grid;
  place-items: center;
  color: #888;
}

.shipping-track-icon svg {
  width: 12px;
  height: 12px;
}

/* Store intro */
.store-intro {
  text-align: center;
  padding: 28px 16px 20px;
}

.store-intro h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.store-intro .tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.store-intro .contact-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid #222;
  border-radius: 10px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-follow:hover,
.btn-follow.active {
  background: var(--bg-soft);
}

.btn-follow.active {
  border-color: var(--purple);
  color: var(--purple);
}

/* Products */
.products-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 8px 0 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 16px;
  padding-bottom: 48px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-new {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #ececec;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.product-card-title {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Product detail */
.product-page {
  padding: 20px 0 60px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.wish-btn.active {
  color: #e11d48;
}

.gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.thumb-nav {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.thumbs-row {
  display: flex;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: none;
}

.thumb.active {
  border-color: var(--purple);
}

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

.product-info h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info .price {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  max-width: 360px;
}

.qty-label {
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-right: 1px solid var(--border);
  height: 48px;
  display: grid;
  place-items: center;
}

.qty-controls {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  padding: 0 8px;
}

.qty-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 8px;
}

.qty-controls button.plus {
  color: var(--purple);
  font-weight: 600;
}

.qty-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
}

.btn-primary,
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 0;
  margin-bottom: 10px;
}

.btn-outline {
  background: #fff;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}

.btn-primary:hover,
.btn-outline:hover {
  opacity: 0.92;
}

.product-tabs {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  border-bottom: 1px solid var(--border);
}

.product-tabs button {
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.product-tabs button.active {
  color: var(--text);
  font-weight: 600;
}

.product-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #111;
}

.tab-panel {
  padding: 16px 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  display: none;
}

.tab-panel.active {
  display: block;
}

.seller-box {
  margin-top: 24px;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 420px;
}

.seller-box strong {
  display: block;
  text-transform: lowercase;
  font-size: 0.95rem;
}

.seller-box a {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.seller-box .btn-follow {
  margin-top: 0;
  height: 32px;
  font-size: 0.8rem;
  padding: 0 12px;
}

/* Cart */
.cart-page {
  padding: 28px 0 80px;
  min-height: 60vh;
}

.cart-page h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.cart-count {
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 40px;
}

.cart-empty {
  text-align: center;
  padding: 60px 16px;
}

.cart-empty svg {
  width: 56px;
  height: 56px;
  color: #333;
  margin: 0 auto 16px;
}

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

.cart-empty a {
  color: var(--purple);
  font-weight: 500;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

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

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--bg-soft);
  border-radius: 6px;
  cursor: pointer;
}

.cart-remove {
  border: 0;
  background: none;
  color: #c00;
  font-size: 0.8rem;
  cursor: pointer;
}

.cart-summary {
  margin-top: 28px;
  max-width: 720px;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: 14px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cart-summary .btn-primary {
  margin-top: 16px;
  max-width: none;
}

/* Checkout / Ödeme */
.checkout-page {
  padding: 24px 0 64px;
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.checkout-steps .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 500;
}

.checkout-steps .step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eee;
  color: #888;
  font-size: 0.8rem;
  font-weight: 700;
}

.checkout-steps .step.active,
.checkout-steps .step.done {
  color: var(--text);
}

.checkout-steps .step.active span,
.checkout-steps .step.done span {
  background: var(--purple);
  color: #fff;
}

.checkout-steps.done-all .step {
  color: var(--text);
}

.checkout-steps.done-all .step span {
  background: var(--purple);
  color: #fff;
}

.checkout-steps.done-all .step span::before {
  content: none;
}

.checkout-steps.done-all .step-line {
  background: var(--purple);
  opacity: 0.45;
}

.checkout-steps .step-line {
  width: 40px;
  height: 2px;
  background: #e5e5e5;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}

.checkout-card h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.co-field.full {
  grid-column: 1 / -1;
}

.co-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

.co-field input,
.co-field select,
.co-field textarea {
  height: 46px;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  padding: 0 14px;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.co-field textarea {
  height: auto;
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
}

.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(112, 48, 255, 0.1);
}

.pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pay-tab {
  border: 1.5px solid #e8e8e8;
  background: #fff;
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: #666;
}

.pay-tab.active {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-soft);
}

.pay-panel {
  display: none;
}

.pay-panel.active {
  display: block;
}

.card-preview {
  background: linear-gradient(135deg, #5e26c1, #7030ff 50%, #9b6bff);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(112, 48, 255, 0.28);
}

.card-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

.card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 52px;
  min-height: 28px;
}

.card-chip {
  width: 36px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f6e27a, #d4af37);
  display: block;
}

.card-logo {
  display: none;
  line-height: 0;
}

.card-logo svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.card-brand[data-brand="visa"] .card-chip,
.card-brand[data-brand="mastercard"] .card-chip,
.card-brand[data-brand="troy"] .card-chip,
.card-brand[data-brand="amex"] .card-chip {
  display: none;
}

.card-brand[data-brand="visa"] .card-logo-visa,
.card-brand[data-brand="mastercard"] .card-logo-mastercard,
.card-brand[data-brand="troy"] .card-logo-troy,
.card-brand[data-brand="amex"] .card-logo-amex {
  display: block;
}

.card-preview-num {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 18px 0;
}

.card-preview-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.card-preview-bottom small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.75;
  margin-bottom: 2px;
}

.card-preview-bottom strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.co-secure {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #888;
}

.transfer-box {
  background: #f7f7fb;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.transfer-box .hint {
  margin-top: 8px;
  color: #888;
  font-size: 0.82rem;
}

.co-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #555;
  margin: 8px 0 16px;
  cursor: pointer;
}

.co-agree input {
  margin-top: 3px;
  accent-color: var(--purple);
}

.co-agree a {
  color: var(--purple);
  text-decoration: underline;
}

.co-submit {
  max-width: none;
  height: 52px;
}
.co-submit #coSubmitTotal {
  margin-left: 0.35em;
}

.co-back {
  display: inline-block;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkout-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 88px;
}

.checkout-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.co-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  max-height: 280px;
  overflow-y: auto;
}

.co-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
}

.co-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-soft);
}

.co-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 2px;
}

.co-item span {
  font-size: 0.75rem;
  color: #888;
}

.co-item em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.co-totals {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.co-totals > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.co-totals .grand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.co-ship-ok {
  margin-top: 12px;
  color: #0a7a5f;
  font-size: 0.82rem;
  background: #e8fff8;
  padding: 10px 12px;
  border-radius: 10px;
}

.co-ship-hint {
  margin-top: 12px;
  color: #888;
  font-size: 0.8rem;
}

.checkout-empty,
.checkout-success {
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
  padding: 32px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2b5, #00b89f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: 0 10px 28px rgba(0, 210, 181, 0.35);
}

.checkout-success h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-order {
  display: inline-block;
  margin: 14px 0;
  padding: 10px 18px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
}

.success-meta {
  color: #666;
  font-size: 0.9rem;
}

.success-hint {
  color: #888;
  font-size: 0.85rem;
  margin-top: 8px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.success-actions .btn-primary,
.success-actions .btn-outline {
  max-width: 220px;
  width: 100%;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    order: -1;
  }

  .co-grid {
    grid-template-columns: 1fr;
  }
}

/* Auth / Login */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
  background: #fff;
}

.auth-back {
  align-self: flex-start;
  width: min(420px, 100%);
  margin-inline: auto;
  margin-bottom: 24px;
  border: 0;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #333;
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo img {
  height: 80px;
  width: auto;
  max-width: min(320px, 82vw);
  margin: 0 auto 6px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  object-fit: contain;
}

.auth-logo .brand {
  font-size: 1.5rem;
  font-weight: 500;
  color: #2a2a2a;
  letter-spacing: -0.02em;
}

.auth-logo .brand strong {
  font-weight: 700;
  color: var(--purple);
}

.auth-box {
  width: min(420px, 100%);
  text-align: center;
}

.auth-box h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.auth-box .sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
}

.phone-field {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  margin-bottom: 16px;
}

.phone-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.phone-field input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 1rem;
  background: transparent;
}

.phone-field .country {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #444;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  height: 36px;
}

.btn-muted {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #a0a7b0;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-muted.active,
.btn-muted:not(:disabled):hover {
  background: var(--purple);
}

.btn-muted:disabled {
  cursor: not-allowed;
}

.link-purple {
  display: inline-block;
  margin-top: 18px;
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: 0;
}

.auth-features {
  width: min(420px, 100%);
  margin-top: 40px;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 18px 20px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: #777;
  font-size: 0.85rem;
  text-align: left;
}

.auth-feature svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #999;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 60, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  width: min(420px, 100%);
  border-radius: 18px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.modal input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  outline: none;
  margin-bottom: 14px;
}

.modal input:focus {
  border-color: #bbb;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  z-index: 300;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 8px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  min-height: 180px;
  max-height: 340px;
  background: var(--bg-soft);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vw, 40px) clamp(56px, 8vw, 72px);
  background-size: cover;
  background-position: center;
}

.slider-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

.slider-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 420px;
  margin-left: 8px;
}

.slider-content h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.slider-content p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  opacity: 0.92;
  margin-bottom: 16px;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.15s;
}

.slider-btn:hover {
  opacity: 0.9;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s;
}

.slider-nav:hover {
  background: #fff;
}

.slider-nav svg {
  width: 18px;
  height: 18px;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}

.slider-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 999px;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 260;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

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

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

.cart-drawer-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--bg-soft);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  display: grid;
  place-items: center;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-drawer-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.cart-drawer-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #ccc;
}

.drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-soft);
}

.drawer-item-info h3 {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawer-item-info .price {
  font-weight: 700;
  font-size: 0.95rem;
}

.drawer-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.drawer-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.drawer-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 1rem;
  color: #555;
}

.drawer-qty button.plus {
  color: var(--purple);
  font-weight: 600;
}

.drawer-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.drawer-remove {
  border: 0;
  background: none;
  color: #999;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-drawer-foot {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-drawer-shipping {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  padding: 10px 12px;
  background: var(--purple-soft);
  border-radius: 10px;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 2px 2px 4px;
}

.cart-drawer-total span {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.cart-drawer-total strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-drawer-foot .btn-primary,
.cart-drawer-foot .btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  line-height: 1;
  box-sizing: border-box;
}

body.drawer-open {
  overflow: hidden;
}

.product-card-img img,
.gallery-main img,
.drawer-item img {
  background: var(--bg-soft);
}

/* Footer minimal */
.store-footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .btn-primary,
  .btn-outline,
  .qty-box,
  .seller-box {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 16 / 9;
    min-height: 160px;
    width: calc(100% - 24px);
    border-radius: 14px;
  }

  .slider-slide {
    padding: 24px 20px;
  }

  .slider-content {
    margin-left: 0;
    max-width: 85%;
  }

  .slider-nav {
    display: none;
  }

  .cart-drawer {
    width: 100vw;
  }

  .store-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .search-wrap {
    display: none;
  }

  .search-wrap.mobile-open {
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 4px);
    max-width: none;
    z-index: 110;
  }

  .mobile-search-toggle {
    display: grid;
  }

  .logo .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-word {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .shipping-pill p {
    font-size: 11px;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .header-actions .icon-btn:nth-child(1) {
    /* keep all icons */
  }

  .product-card-title {
    font-size: 0.78rem;
  }

  .product-card-price {
    font-size: 0.88rem;
  }
}
