:root {
  --yellow: #feeb27;
  --orange: #fe8e00;
  --deep-orange: #fe3d00;
  --black: #020202;
  --white: #ffffff;
  --panel-bg: rgba(12, 12, 12, 0.82);
  --gold-metal: linear-gradient(145deg, #ffe57a 0%, #feeb27 20%, #fe8e00 45%, #ffe57a 62%, #b46f00 85%, #ffdf59 100%);
  --pattern-fill: radial-gradient(circle at 20% 25%, rgba(254, 235, 39, 0.16) 0 8%, transparent 9%),
    radial-gradient(circle at 80% 75%, rgba(254, 61, 0, 0.14) 0 7%, transparent 8%),
    repeating-linear-gradient(135deg, rgba(254, 142, 0, 0.08) 0 4px, rgba(0, 0, 0, 0) 4px 11px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f7f5f0;
  color: #1a1a1a;
  font-family: "Noto Sans SC", sans-serif;
}

body {
  background-image: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: #ffffff;
  background-image: none;
  border-bottom: 1px solid #d9e6d3;
  backdrop-filter: blur(6px);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 102px;
  height: 120px;
  object-fit: contain;
}

.brand-title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  background: none;
  color: #22B14C;
  text-shadow: none;
}

.brand-subtitle {
  margin: 0.12rem 0 0;
  color: #22B14C;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #2D4F1E;
  font-weight: 700;
  padding: 0.45rem 0.78rem;
  border: 1px solid #22B14C;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active-link {
  transform: translateY(-1px);
  background: #22B14C;
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn,
.accent-btn {
  border: 1px solid #22B14C;
  color: var(--white);
  background: #22B14C;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.action-btn:hover,
.accent-btn:hover {
  transform: translateY(-1px);
  background: #1c8f3d;
  filter: none;
}

main {
  width: min(1120px, 96vw);
  margin: 1rem auto 2rem;
}

.view {
  display: none;
  animation: reveal 0.35s ease;
}

.view.active {
  display: block;
}

.hero,
.panel,
.contact-layout,
.about-layout {
  background: #ffffff;
  background-image: none;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
}

.about-layout,
.contact-layout {
  background: #d3d3d3;
  background-image: none;
}

.about-layout p,
.contact-layout p,
.contact-layout span,
.contact-layout strong {
  color: #1a1a1a;
}

.bevel-border {
  border: 2px solid #22B14C;
  box-shadow: inset 1px 1px 0 rgba(255, 251, 210, 0.25), inset -1px -1px 0 rgba(112, 60, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
  margin-top: 0;
  color: var(--deep-orange);
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  color: #22B14C;
}

.sub-title {
  color: #22B14C;
  margin-bottom: 0.65rem;
}

.hero-copy,
p,
.notice,
label {
  color: #1a1a1a;
}

.notice {
  background: rgba(254, 142, 0, 0.09);
  border-left: 3px solid var(--orange);
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.view-toggle-group {
  display: inline-flex;
  border: 1px solid rgba(254, 142, 0, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.view-toggle-btn {
  border: none;
  padding: 0.32rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a5b20;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.view-toggle-btn.active {
  background: #22B14C;
  color: #ffffff;
}

.card-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
  margin-top: 0.8rem;
}

.featured-pager {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}

.pager-info {
  min-width: 64px;
  text-align: center;
  font-weight: 700;
  color: var(--deep-orange);
}

.card,
.gallery-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid #ede8df;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover,
.gallery-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card img,
.gallery-item img {
  width: 100%;
  display: block;
  height: 190px;
  object-fit: cover;
}

.card-grid.thumbnail-view {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}

.card-grid.thumbnail-view .card img {
  height: 116px;
}

.card-grid.thumbnail-view .card-content {
  padding: 0.42rem;
}

.card-grid.thumbnail-view .card-content p,
.card-grid.thumbnail-view .article-price,
.card-grid.thumbnail-view .card-actions {
  display: none;
}

.card-grid.thumbnail-view .card-content h4 {
  margin: 0;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-grid.thumbnail-view {
  grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
  gap: 0.34rem;
}

.gallery-grid.thumbnail-view .gallery-item img {
  height: 162px;
}

.gallery-grid.thumbnail-view .gallery-caption {
  padding: 0.36rem;
}

.gallery-grid.thumbnail-view .gallery-caption .card-actions {
  display: none;
}

.gallery-grid.thumbnail-view .gallery-caption-text {
  margin: 0;
  font-size: 0.72rem;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.gallery-open-trigger {
  cursor: zoom-in;
}

.gallery-delete-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #ffffff;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
}

.gallery-delete-btn:hover {
  background: #c92c2c;
}

.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #000;
}

.gallery-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-slide {
  min-width: 100%;
  position: relative;
}

.gallery-slide img {
  height: 220px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.carousel-prev {
  left: 0.4rem;
}

.carousel-next {
  right: 0.4rem;
}

.gallery-dots {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-dot.active {
  background: #feeb27;
  transform: scale(1.2);
}

.card-content,
.gallery-caption {
  padding: 0.68rem;
  display: flex;
  flex-direction: column;
}

.gallery-caption-text {
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.45rem;
  flex: 1;
}

.gallery-manage-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.gallery-manage-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.gallery-manage-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.gallery-manage-info {
  flex: 1;
  min-width: 0;
}

.gallery-manage-captions {
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  line-height: 1.6;
  word-break: break-word;
}

.gallery-manage-label {
  opacity: 0.6;
  font-size: 0.78rem;
}

.gallery-manage-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-manage-edit-form {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-manage-edit-form label {
  font-size: 0.82rem;
  opacity: 0.7;
}

.gallery-manage-edit-form input,
.gallery-manage-edit-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.gallery-manage-edit-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.article-price {
  margin: 0.25rem 0 0.45rem;
  color: var(--deep-orange);
  font-weight: 700;
}

.card-actions {
  margin-top: 0.55rem;
}

.card-actions .action-btn {
  text-decoration: none;
  display: inline-block;
}

.about-layout,
.contact-layout,
.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info p,
.contact-info span,
.contact-info strong {
  font-size: clamp(0.85rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  color: #1a1a1a;
  font-family: "Noto Sans SC", sans-serif;
}

.contact-info p {
  margin: 0;
}

.owner-photo,
.qr-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #22B14C;
}

.qr-image {
  width: min(220px, 75%);
  margin-top: 0.7rem;
  justify-self: start;
}

.auth-form,
.panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.upload-status {
  min-height: 1.15rem;
  color: var(--deep-orange);
  font-size: 0.86rem;
}

.error-text {
  color: #c0392b;
}

.auth-secondary {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--deep-orange);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.link-btn:hover {
  color: var(--orange);
}

.admin-edit-grid {
  margin-top: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.admin-tab-btn {
  border: 1px solid rgba(34, 177, 76, 0.28);
  background: #fff;
  color: #1a1a1a;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab-btn.active {
  background: #22B14C;
  color: #fff;
}

.admin-tab-panel.hidden {
  display: none;
}

.admin-settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.admin-settings-form input,
.admin-settings-form select {
  padding: 0.45rem 0.6rem;
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.discount-codes-wrap {
  margin-top: 0.75rem;
}

.discount-table {
  width: 100%;
}

.discount-table td,
.discount-table th {
  font-size: 0.82rem;
}

.pager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.checkout-discount-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.checkout-discount-row input {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cfd6d0;
  border-radius: 6px;
}

.checkout-total-breakdown {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.25rem;
}

.checkout-total-breakdown div,
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.checkout-total-breakdown strong,
.checkout-total-row strong {
  color: #1a1a1a;
}

.checkout-total-breakdown span {
  color: #1a1a1a;
}

.update-meta {
  margin-top: 0.35rem;
  color: var(--orange);
  font-size: 0.85rem;
  opacity: 0.95;
}

#articleDetailBody {
  white-space: pre-wrap;
  word-break: break-word;
}

.article-admin-meta {
  font-size: 0.82rem;
  color: #444;
  margin-top: 0.75rem;
}

.article-edit-panel {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(254, 142, 0, 0.3);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.article-edit-panel input,
.article-edit-panel textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(254, 142, 0, 0.4);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  resize: vertical;
}

.edit-btn-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.article-detail-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.article-swipe-left {
  animation: articleSwipeLeft 0.24s ease;
}

.article-swipe-right {
  animation: articleSwipeRight 0.24s ease;
}

@keyframes articleSwipeLeft {
  0% { transform: translateX(16px); opacity: 0.55; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes articleSwipeRight {
  0% { transform: translateX(-16px); opacity: 0.55; }
  100% { transform: translateX(0); opacity: 1; }
}

.detail-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e0d0c0;
  margin-bottom: 0.8rem;
}

.share-wrap {
  margin-top: 1rem;
}

.share-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  text-decoration: none;
  border: 1px solid rgba(254, 142, 0, 0.45);
  background: rgba(254, 142, 0, 0.1);
  color: #1a1a1a;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.x-icon {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
}

input,
textarea,
select {
  background: #ffffff;
  border: 1px solid #d0c8b8;
  color: #1a1a1a;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
  color: #a09888;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e0d8c8;
  padding: 0.6rem;
  color: #1a1a1a;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 1rem;
}

.modal-card {
  width: min(540px, 100%);
  background: rgba(10, 10, 10, 0.96);
  border-radius: 18px;
  padding: 1rem;
  position: relative;
}

.gallery-modal-card {
  width: min(920px, 95vw);
}

.gallery-modal-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #080808;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-modal-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

#galleryModalPrev {
  left: 0.7rem;
}

#galleryModalNext {
  right: 0.7rem;
}

.gallery-modal-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.modal-card p,
.modal-card label,
.modal-card .sub-title,
.modal-card .notice {
  color: #ffffff;
}

.modal-card .notice {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--orange);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.tab {
  flex: 1;
  border: 1px solid rgba(254, 235, 39, 0.45);
  background: rgba(254, 142, 0, 0.15);
  color: var(--white);
  border-radius: 8px;
  padding: 0.45rem;
  cursor: pointer;
}

.tab.active {
  background: #22B14C;
}

.close-btn {
  position: absolute;
  right: 0.7rem;
  top: 0.5rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  z-index: 2;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.checkout-card > .close-btn,
.cart-drawer .close-btn {
  color: #000000;
  background: rgba(34, 177, 76, 0.08);
  border: 1px solid rgba(34, 177, 76, 0.22);
}

.checkout-card > .close-btn:hover,
.cart-drawer .close-btn:hover {
  background: rgba(34, 177, 76, 0.16);
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  background: #ffffff;
  background-image: none;
  color: #1a1a1a;
  border-top: 1px solid #d9e6d3;
}

.site-footer p {
  margin: 0;
  color: #1a1a1a;
  font-weight: 600;
}

.hidden,
.auth-only,
.approved-only {
  display: none !important;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .about-layout,
  .contact-layout,
  .forms-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand-logo {
    width: 75px;
    height: 89px;
  }

  .contact-info p,
  .contact-info span,
  .contact-info strong {
    font-size: clamp(0.6rem, 6.5vw, 1.5rem);
  }
}

/* ---------------------------------------------------------------------------
   CART BUTTON & BADGE
--------------------------------------------------------------------------- */
.cart-btn {
  position: relative;
  background: transparent;
  border: 2px solid #22B14C;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cart-btn:hover { background: #e6f9ed; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fe3d00;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   CART DRAWER
--------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 900;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 95vw);
  background: #fff;
  z-index: 910;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  border-left: 3px solid #22B14C;
  animation: slideInRight 0.25s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9f9f9;
}
.cart-drawer-header h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #1a1a1a;
}
.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
  padding: 0 4px;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 1rem;
}
.cart-empty-msg {
  color: #888;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}
.cart-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.cart-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 0.85rem;
  color: #22B14C;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cart-qty-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-qty-btn:hover { background: #e5e7eb; }
.cart-qty-display {
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.cart-remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #fe3d00;
  padding: 0 4px;
  margin-left: 4px;
}
.cart-footer {
  padding: 0.8rem 1rem;
  border-top: 2px solid #e5e7eb;
  background: #f9f9f9;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.7rem;
}
.cart-total-row span:last-child { color: #22B14C; }
.cart-action-row {
  display: flex;
  gap: 0.5rem;
}
.cart-clear-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1.5px solid #fe3d00;
  color: #fe3d00;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.cart-clear-btn:hover { background: #fff0ed; }
.cart-checkout-btn {
  flex: 1;
  background: #22B14C;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s;
}
.cart-checkout-btn:hover { background: #1a8c3a; }

/* ---------------------------------------------------------------------------
   BUY BUTTONS
--------------------------------------------------------------------------- */
.card-buy-btn {
  margin-top: 0.4rem;
  background: #22B14C;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s;
  width: 100%;
}
.card-buy-btn:hover { background: #1a8c3a; }
.article-detail-buy-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.8rem 0 1rem;
  flex-wrap: wrap;
}
.article-detail-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #22B14C;
  font-family: 'Cinzel', serif;
}
.detail-buy-btn {
  background: #22B14C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s;
}
.detail-buy-btn:hover { background: #1a8c3a; }

/* ---------------------------------------------------------------------------
   CHECKOUT MODAL
--------------------------------------------------------------------------- */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 950;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.checkout-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  width: min(520px, 96vw);
  overflow: hidden;
}

.checkout-card p,
.checkout-card label,
.checkout-card span,
.checkout-card .sub-title,
.checkout-card .notice,
.checkout-card h3,
.checkout-card h4 {
  color: #1a1a1a;
}

.checkout-card .notice {
  background: rgba(254, 142, 0, 0.09);
  border-left-color: var(--orange);
}

.checkout-card .upload-status {
  color: #1a1a1a;
}

.checkout-card .error-text,
.checkout-card .upload-status.error-text {
  color: #c0392b;
}
.checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9f9f9;
}
.checkout-card-header h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #1a1a1a;
}
.checkout-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #555;
}
.checkout-body { padding: 1.4rem; }
.checkout-step h4 {
  margin: 0 0 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: #22B14C;
}
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.checkout-form-grid .full-span { grid-column: 1 / -1; }
.checkout-form-grid input,
.checkout-form-grid select {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fafafa;
  box-sizing: border-box;
}
.checkout-form-grid input:focus,
.checkout-form-grid select:focus {
  outline: none;
  border-color: #22B14C;
  background: #fff;
}
.checkout-card #checkoutAddressForm {
  gap: 0.16rem;
}
.checkout-card #checkoutAddressForm label {
  margin-top: 0;
  font-size: 0.84rem;
  line-height: 1.2;
}
.checkout-card #checkoutAddressForm input {
  padding: 0.36rem 0.55rem;
  min-height: 34px;
  font-size: 0.88rem;
  line-height: 1.15;
}
.checkout-save-context {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #22B14C;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.checkout-save-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #555;
}

.checkout-save-row span {
  color: #1a1a1a;
}
.checkout-save-row input[type="checkbox"] {
  width: auto;
  margin: 0;
  min-height: auto;
  padding: 0;
}
.checkout-card #checkoutAddressForm .accent-btn {
  margin-top: 0.35rem !important;
}
.checkout-btn-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}
.checkout-back-btn {
  background: transparent;
  border: 1.5px solid #22B14C;
  color: #22B14C;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.checkout-back-btn:hover { background: #e6f9ed; }
.place-order-btn {
  flex: 1;
  background: #22B14C;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s;
}
.place-order-btn:hover { background: #1a8c3a; }
.place-order-btn:disabled {
  background: #a5d6b1;
  cursor: not-allowed;
}
.checkout-order-summary {
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  max-height: 200px;
  overflow-y: auto;
}
.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.checkout-item-title { flex: 1; font-weight: 600; color: #1a1a1a; }
.checkout-item-qty { color: #888; }
.checkout-item-price { color: #22B14C; font-weight: 700; }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  padding: 0.5rem 0;
  border-top: 2px solid #e5e7eb;
}
.checkout-total-row span:last-child { color: #22B14C; }
.checkout-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #555;
  min-height: 1.2rem;
}
.checkout-status.error-text { color: #fe3d00; }
#squarePaymentContainer {
  margin: 1rem 0;
  min-height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.order-success-wrap {
  text-align: center;
  padding: 1.5rem 0;
}
.order-success-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.order-success-wrap h4 {
  font-family: 'Cinzel', serif;
  color: #22B14C;
  margin: 0 0 0.5rem;
}
.order-success-wrap p {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}
.order-success-id {
  font-size: 0.78rem;
  color: #888;
  margin: 0.2rem 0 1rem;
}
.order-success-close-btn {
  background: #22B14C;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   IMAGE MAGNIFIER
--------------------------------------------------------------------------- */
.magnifier-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.magnifier-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: background 0.15s;
}
.magnifier-close:hover { background: rgba(255,255,255,0.3); }
.magnifier-stage {
  position: relative;
  cursor: crosshair;
  display: inline-block;
  max-width: min(700px, 90vw);
  max-height: 75vh;
  overflow: hidden;
  border-radius: 8px;
}
.magnifier-stage img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}
.magnifier-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid #22B14C;
  border-radius: 50%;
  background-repeat: no-repeat;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
  z-index: 1002;
}
.magnifier-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.8rem;
  max-width: 600px;
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   DASHBOARD
--------------------------------------------------------------------------- */
.dashboard-header {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}
.dashboard-verify-notice {
  background: #fff3cd;
  border: 1.5px solid #f0c040;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #7a5c00;
  margin-bottom: 1rem;
}
.orders-table { width: 100%; }
.order-status.paid { color: #22B14C; font-weight: 700; }
.order-items-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------
   ADMIN TRANSACTION LOG
--------------------------------------------------------------------------- */
.tx-table { width: 100%; }
.tx-table,
.tx-table th,
.tx-table td {
  font-size: 0.74rem;
}
.tx-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.tx-add_to_cart { background: #e6f9ed; color: #22B14C; }
.tx-remove_from_cart { background: #fff3cd; color: #856404; }
.tx-checkout_started { background: #e0f2fe; color: #0369a1; }
.tx-purchase_complete { background: #22B14C; color: #fff; }
.tx-cart_abandoned { background: #fee2e2; color: #b91c1c; }
.tx-complete td { background: #f0fff4; }
.tx-abandoned td { background: #fff8f8; }
.tx-items-cell {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------
   PAYMENT STATS
--------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.stat-card {
  background: linear-gradient(135deg, #f0fff4, #e6f9ed);
  border: 1.5px solid #22B14C;
  border-radius: 10px;
  padding: 0.9rem 0.7rem;
  text-align: center;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #22B14C;
  font-family: 'Cinzel', serif;
  line-height: 1.1;
  word-break: break-all;
}
.stat-label {
  font-size: 0.72rem;
  color: #555;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stats-section { margin-top: 0.5rem; }
