/* =====================
   Base & Reset
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-accent:    #e879a0;
  --color-accent-h:  #db2777;
  --color-text:      #1f2937;
  --color-sub:       #6b7280;
  --color-border:    #f3c6dc;
  --color-bg:        #ffffff;
  --color-bg-gray:   #fce7f3;
  --color-hero-bg:   #fdf2f8;
  --font:            'Noto Sans JP', sans-serif;
  --radius:          8px;
  --shadow-sm:       0 1px 3px rgba(0,0,0,.08);
  --shadow-md:       0 4px 16px rgba(0,0,0,.10);
  --transition:      .2s ease;
  --header-h:        64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 15px;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* =====================
   Header
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: .05em;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-desktop a:hover { color: var(--color-accent); }
.nav-desktop a:hover::after { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Auth area */
.auth-area, .user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-auth {
  background: none;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-auth:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-register {
  background: var(--color-accent);
  color: #fff;
}

.btn-register:hover {
  background: var(--color-accent-h);
}

.btn-logout {
  border-color: var(--color-sub);
  color: var(--color-sub);
}

.btn-logout:hover {
  background: var(--color-sub);
  color: #fff;
}

.user-greeting {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

/* Cart Button */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color var(--transition);
}

.cart-btn:hover { color: var(--color-accent); }

.cart-count {
  position: absolute;
  top: -4px; right: -6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count[data-count="0"] { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px; height: 32px;
}

.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
}

.nav-mobile.open { display: flex; }

.mobile-nav-link {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav-link:hover {
  background: var(--color-hero-bg);
  color: var(--color-accent);
}

/* =====================
   Buttons
   ===================== */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent-h);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* =====================
   Sections
   ===================== */
.section { padding: 80px 0; }
.section-gray { background: var(--color-bg-gray); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 13px;
  color: var(--color-sub);
  text-align: center;
  letter-spacing: .12em;
  margin-bottom: 48px;
}

/* =====================
   Product Grid
   ===================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-img-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-hero-bg);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name  { font-size: 15px; font-weight: 700; }
.product-desc  { font-size: 13px; color: var(--color-sub); line-height: 1.5; }
.product-price { font-size: 18px; font-weight: 700; color: var(--color-accent); }

.product-actions {
  margin-top: 4px;
}

.product-clickable {
  cursor: pointer;
  transition: opacity .2s;
}
.product-clickable:hover { opacity: .8; }

.btn-add-cart {
  width: 100%;
  background: none;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-add-cart:hover {
  background: var(--color-accent);
  color: #fff;
}

/* =====================
   Info Bar (header下)
   ===================== */
.info-bar {
  background: linear-gradient(90deg, #fdf2f8 0%, #fce7f3 100%);
  color: #831843;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .info-bar { font-size: 11px; padding: 8px 12px; line-height: 1.6; }
}

/* =====================
   Payment Info Box (商品詳細)
   ===================== */
.payment-info-box {
  margin-top: 24px;
  background: #fdf2f8;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.payment-info-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent-h);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.payment-info-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 16px;
  font-size: 13.5px;
}

.payment-info-list dt {
  font-weight: 700;
  color: var(--color-sub);
}

.payment-info-list dd {
  line-height: 1.7;
}

.info-note-green {
  display: inline-block;
  margin-top: 4px;
  color: #166534;
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 500px) {
  .payment-info-list { grid-template-columns: 1fr; gap: 4px 0; }
  .payment-info-list dt { margin-top: 8px; }
  .payment-info-list dd { padding-left: 12px; }
}

/* =====================
   Product Detail
   ===================== */
.btn-back {
  background: none;
  border: 1.5px solid var(--color-border);
  color: var(--color-sub);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  margin-bottom: 24px;
  transition: border-color .2s, color .2s;
}

.btn-back:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.product-detail-img-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail-img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--color-hero-bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

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

/* スライダー矢印 */
.pd-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: background .2s, transform .2s;
  z-index: 2;
  line-height: 1;
}

.pd-slider-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.pd-slider-prev { left: 12px; }
.pd-slider-next { right: 12px; }

/* サムネイル */
.pd-image-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  background: var(--color-hero-bg);
  transition: border-color .2s;
}

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

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

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.product-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
}

.product-detail-price .tax-mark {
  font-size: 13px;
  color: var(--color-sub);
  margin-left: 8px;
  font-weight: 400;
}

.product-detail-shipping {
  font-size: 14px;
  color: var(--color-sub);
}

.badge-free {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 8px;
}

.product-detail-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
  white-space: pre-wrap;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pd-qty-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.pd-qty-label input {
  width: 80px;
  padding: 8px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  text-align: center;
  outline: none;
}

.pd-qty-label input:focus { border-color: var(--color-accent); }

@media (max-width: 700px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-detail-name { font-size: 20px; }
  .product-detail-price { font-size: 24px; }
}

/* =====================
   Order History
   ===================== */
.order-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.order-id   { font-size: 13px; color: var(--color-sub); }
.order-date { font-size: 13px; color: var(--color-sub); }

.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-new      { background: #fef3c7; color: #92400e; }
.status-confirmed{ background: #dbeafe; color: #1e40af; }
.status-paid     { background: #dcfce7; color: #166534; }
.status-shipped  { background: #ede9fe; color: #5b21b6; }
.status-canceled { background: #fee2e2; color: #991b1b; }

.order-items {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.order-items li { padding: 2px 0; }

.order-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  text-align: right;
}

.order-history-empty {
  text-align: center;
  color: var(--color-sub);
  padding: 40px 0;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.order-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-issue-receipt {
  background: none;
  border: 1.5px solid #1e40af;
  color: #1e40af;
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-issue-receipt:hover {
  background: #1e40af;
  color: #fff;
}

.btn-mark-paid {
  background: #166534;
  border: none;
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-mark-paid:hover { background: #14532d; }

.paid-label {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
}

.shipped-label {
  font-size: 12px;
  font-weight: 700;
  color: #5b21b6;
}

.canceled-label {
  font-size: 12px;
  font-weight: 700;
  color: #991b1b;
}

.btn-cancel-order {
  background: none;
  border: 1.5px solid #dc2626;
  color: #dc2626;
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-cancel-order:hover {
  background: #dc2626;
  color: #fff;
}

.order-canceled { opacity: 0.6; }

.btn-save-invoice {
  background: none;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-save-invoice:hover {
  background: var(--color-accent);
  color: #fff;
}

/* =====================
   Cart Panel
   ===================== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
}

.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: 340px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-md);
}

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

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

.cart-panel-header h2 { font-size: 18px; font-weight: 700; }

.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-sub);
  transition: color var(--transition);
}

.cart-close:hover { color: var(--color-text); }

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty { color: var(--color-sub); font-size: 14px; text-align: center; margin-top: 40px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
}

.cart-item-info { flex: 1; }
.cart-item-name  { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 13px; color: var(--color-accent); font-weight: 700; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-input-cart {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}

.qty-input-cart:focus { border-color: var(--color-accent); }

.qty-remove {
  width: 24px; height: 24px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sub);
  transition: background var(--transition), color var(--transition);
}

.qty-remove:hover { background: #fee2e2; color: #dc2626; }

.cart-panel-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-subtotal,
.cart-shipping {
  font-size: 13px;
  color: var(--color-sub);
  display: flex;
  justify-content: space-between;
}

.cart-total {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
}

.cart-total strong { color: var(--color-accent); font-size: 18px; }
.btn-checkout { width: 100%; text-align: center; }

/* =====================
   Modals
   ===================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-wide { max-width: 560px; }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-sub);
}

.modal-close:hover { color: var(--color-text); }

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--color-text);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.modal-err {
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
  min-height: 18px;
}

.modal-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-sub);
}

.modal-switch a { color: var(--color-accent); font-weight: 600; }

/* Checkout modal */
.checkout-items {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

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

.checkout-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-sub);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 16px;
  border-top: 2px solid var(--color-border);
  font-weight: 600;
}

.checkout-total-price {
  font-size: 20px;
  color: var(--color-accent);
}

.checkout-customer {
  background: var(--color-bg-gray);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-customer p { font-size: 14px; display: flex; gap: 8px; }
.checkout-customer .label { color: var(--color-sub); min-width: 56px; font-weight: 600; }

.checkout-note {
  font-size: 13px;
  color: var(--color-sub);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Bank info */
.bank-info {
  background: #fdf2f8;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.9;
}

.bank-info-title {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.bank-note {
  font-size: 12px;
  color: var(--color-sub);
  margin-top: 4px;
}

/* Order done modal actions */
.order-done-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-mail-owner {
  display: block;
  text-align: center;
  background: none;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-mail-owner:hover {
  background: var(--color-accent);
  color: #fff;
}

.reset-desc {
  font-size: 14px;
  color: var(--color-sub);
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-link-close {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--color-sub);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  font-family: var(--font);
  transition: color var(--transition);
}

.btn-link-close:hover { color: var(--color-text); }

/* Order done modal */
.order-done-msg {
  font-size: 15px;
  color: var(--color-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}

.order-done-id {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.payment-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: center;
}

/* =====================
   Footer
   ===================== */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo { font-size: 20px; font-weight: 700; color: var(--color-accent); letter-spacing: .05em; }

.footer-nav, .footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #d1d5db; transition: color var(--transition); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-legal a { font-size: 12px; color: #9ca3af; transition: color var(--transition); }
.footer-legal a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: #6b7280; }

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

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .btn-auth    { padding: 5px 10px; font-size: 12px; }
  .user-greeting { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 22px; }
}

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

/* =====================
   Animations
   ===================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   Legal Pages
   ===================== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.8;
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  background: var(--color-bg-gray);
  width: 200px;
  font-weight: 600;
  white-space: nowrap;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--color-accent);
}

.legal-section p,
.legal-section li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}

.legal-section ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-section li {
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .legal-table th { width: 120px; }
}

/* =====================
   Invoice Print
   ===================== */
.invoice-print { display: none; }

@media print {
  @page { size: A4; margin: 0; }

  body > *:not(.invoice-print) { display: none !important; }
  .invoice-print {
    display: block;
    padding: 40px;
    font-family: sans-serif;
    color: #1f2937;
  }
  .inv-header {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: 2px solid #e879a0;
    padding-bottom: 16px;
  }
  .inv-title { font-size: 28px; letter-spacing: .2em; color: #e879a0; }
  .inv-store { font-size: 15px; color: #6b7280; margin-top: 8px; }
  .inv-meta { margin-bottom: 24px; font-size: 15px; line-height: 2.2; }
  .inv-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
  .inv-table th,
  .inv-table td { border: 1px solid #f3c6dc; padding: 10px 14px; font-size: 14px; }
  .inv-table th { background: #fce7f3; text-align: left; }
  .inv-table td:nth-child(2),
  .inv-table td:nth-child(4) { text-align: right; }
  .inv-table td:nth-child(3) { text-align: center; }
  .inv-sub-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    color: #555;
  }
  .inv-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #e879a0;
    padding-top: 12px;
    margin-bottom: 32px;
  }
  .inv-bank {
    background: #fdf2f8;
    border: 1px solid #f3c6dc;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 2;
  }
  .inv-bank-title { font-weight: 700; color: #e879a0; margin-bottom: 4px; }
  .inv-bank-note { color: #db2777; font-weight: 700; margin-top: 4px; }
}
