
:root {
  --pink: #d95896;
  --rose: #922b5a;
  --ink: #482a3b;
  --line: #f0d6e2;
  --cream: #fff9fc;
}

[hidden] {
  display: none !important;
}

.lightbox-modal[hidden],
.order-modal-backdrop[hidden],
.variant-alert[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', 'Myanmar Text', 'Myanmar MN', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .detail-product-title, .details h3 {
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

p, .desc-text, #heroText, #subTitle, .detail-description-card {
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  transition: all 0.2s ease;
}

button:hover {
  background: #fbe4ee;
}

button.primary {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

button.primary:hover {
  background: var(--rose);
  border-color: var(--rose);
}

.strip {
  background: #e68bb5;
  color: white;
  text-align: center;
  padding: 9px;
  font-size: 12px;
  letter-spacing: 1px;
}

header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px max(5vw, 18px);
  border-bottom: 1px solid var(--line);
}

.logo {
  text-decoration: none;
  color: var(--rose);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo i {
  font-weight: 500;
}

nav {
  display: flex;
  gap: 8px;
}

main {
  max-width: 1180px;
  margin: auto;
  padding: 22px;
}

.hero {
  background: radial-gradient(circle at 85% 30%, #f4a6c9, transparent 34%), linear-gradient(110deg, #ffe6f1, #fff4f8);
  border-radius: 24px;
  padding: 55px 7%;
  min-height: 315px;
}

.hero small {
  letter-spacing: 3px;
  color: var(--rose);
  font-weight: 600;
}

h1 {
  font: 700 clamp(39px, 6vw, 76px)/1.1 Georgia, 'Times New Roman', serif;
  margin: 18px 0;
  color: #85335b;
}

h1 em {
  color: var(--pink);
  font-weight: 500;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 35px 0 22px;
  flex-wrap: wrap;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--rose);
  margin: 0;
}

h3 {
  color: var(--rose);
  margin-top: 0;
}

h4 {
  color: var(--rose);
  margin: 0 0 4px 0;
  font-size: 17px;
}

.toolbar p {
  color: #987488;
  margin: 8px 0;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  background: #fff;
  width: 100%;
  min-width: 0;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217, 88, 150, 0.15);
}

.filters input {
  width: 200px;
}

.filters select {
  width: 160px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(146, 43, 90, 0.08);
}

.product:focus-within {
  outline: 2px solid var(--pink);
  box-shadow: 0 0 0 4px rgba(217, 88, 150, 0.2);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  outline: none;
}

.photo {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f8d6e5, #fff0f7);
  display: grid;
  place-items: center;
  color: #d05e93;
  font-size: 65px;
  overflow: hidden;
}

.photo-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(30, 10, 20, 0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

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

.details {
  padding: 16px;
}

.details h3 {
  font-size: 15px;
  margin: 3px 0 9px;
  color: var(--ink);
  font-family: inherit;
}

.price {
  font-weight: 700;
  color: var(--rose);
  font-size: 19px;
}

.tag {
  display: inline-block;
  border-radius: 30px;
  padding: 5px 10px;
  background: #fce8f1;
  color: #9e3d6a;
  font-size: 12px;
  margin-top: 10px;
  font-weight: 500;
}

.desc {
  color: #987488;
  font-size: 12px;
}

footer {
  text-align: center;
  padding: 60px 0 25px;
  color: #a57990;
  font-size: 12px;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 4px 14px rgba(146, 43, 90, 0.03);
}

.login {
  max-width: 430px;
  margin: 55px auto;
}

.login label, .formgrid label, .panel > label {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field-hint {
  font-size: 11px;
  color: #987488;
  font-weight: normal;
}

.login .primary {
  margin-top: 15px;
  width: 100%;
}

.error {
  color: #a20d47;
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs .selected {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

.formgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.span-2 {
  grid-column: span 2;
}

.checks {
  display: flex;
  gap: 22px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.checks input {
  width: auto;
  cursor: pointer;
}

.scroll {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th {
  color: var(--rose);
  font-weight: 600;
  background: #fffdfd;
}

td button {
  padding: 6px 10px;
  margin: 2px;
  font-size: 12px;
}

.muted {
  color: #99768a;
  font-size: 12px;
}

#notice {
  color: var(--rose);
  font-weight: 600;
}

/* Settings Cards Styling */
.pricing-header-banner {
  margin-bottom: 18px;
}

.pricing-header-banner p {
  color: #987488;
  margin: 4px 0 0 0;
  font-size: 13px;
}

.settings-card {
  margin-bottom: 22px;
  border-left: 4px solid var(--pink);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.card-icon {
  font-size: 26px;
  line-height: 1;
}

.rate-indicator {
  background: #fce8f1;
  color: var(--rose);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 12px;
  display: inline-block;
}

.formula-box {
  background: #fff2f8;
  border: 1px solid #f6d1e4;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  font-size: 12.5px;
  color: #722045;
}

.formula-title {
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 6px;
  font-size: 13px;
}

.formula-line {
  line-height: 1.6;
}

.preview-box {
  background: #faf5f8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
}

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

.preview-weight-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink);
}

.pill-btn {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.pill-btn:hover {
  background: #fbe4ee;
}

.pill-btn.active {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  font-weight: 600;
}

.preview-custom-weight {
  width: 65px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
}

.preview-breakdown-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.preview-item {
  padding: 6px 10px;
  background: #fff8fb;
  border-radius: 8px;
  border: 1px solid #f6e2ed;
}

.preview-item small {
  display: block;
  color: #987488;
  font-size: 11px;
}

.preview-item strong {
  color: var(--rose);
  font-size: 13.5px;
}

.preview-final-banner {
  background: linear-gradient(135deg, #fce8f1, #fff0f7);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--rose);
  font-size: 14px;
}

.preview-final-banner span.price-val {
  font-size: 18px;
  font-weight: 700;
}

/* Product Editor Detailed Price Breakdown Card */
.price-breakdown-card {
  background: linear-gradient(135deg, #fff7fa 0%, #ffffff 100%);
  border: 1.5px dashed var(--pink);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}

.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.breakdown-title {
  font-weight: 700;
  color: var(--rose);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.breakdown-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.breakdown-step label {
  display: block;
  color: #987488;
  margin: 0 0 2px 0;
  font-size: 11px;
}

.breakdown-step div {
  font-weight: 600;
  color: var(--ink);
}

.breakdown-override-alert {
  background: #fff0f3;
  border: 1px solid #ffd1dc;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  color: #b3143c;
  font-size: 12px;
  font-weight: 500;
}

.breakdown-final-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fce8f1;
  padding: 10px 14px;
  border-radius: 10px;
}

.breakdown-final-row span {
  font-weight: 600;
  color: var(--rose);
}

.breakdown-final-row strong {
  font-size: 20px;
  color: var(--rose);
}

/* Badges */
.badge {
  display: inline-block;
  border-radius: 16px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.badge-air {
  background: #e7f3ff;
  color: #005bb5;
  border: 1px solid #c2e0ff;
}

.badge-land {
  background: #fff4e5;
  color: #a35200;
  border: 1px solid #ffe2ba;
}

.badge-override {
  background: #ffe6ea;
  color: #b3143c;
  border: 1px solid #ffd1dc;
  font-size: 10px;
  margin-left: 4px;
}

/* Feedback banners */
.feedback-banner {
  padding: 12px 16px;
  border-radius: 12px;
  margin: 12px 0 18px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedback-success {
  background: #ebfbee;
  color: #1b682e;
  border: 1px solid #c3f2cc;
}

.feedback-error {
  background: #fff0f3;
  color: #b3143c;
  border: 1px solid #ffd1dc;
}

.save-settings-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.save-status-msg {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--rose);
}

.excel-import-box {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin: 15px 0;
  flex-wrap: wrap;
}

.excel-import-box label {
  flex: 1;
  min-width: 200px;
}

@media(max-width: 850px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .formgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .span-2 {
    grid-column: span 1;
  }
}

@media(max-width: 500px) {
  main {
    padding: 13px;
  }
  .hero {
    padding: 35px 23px;
    min-height: 270px;
  }
  .products {
    gap: 11px;
  }
  .details {
    padding: 11px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 15px;
  }
  .logo {
    font-size: 19px;
  }
  .filters input {
    width: 160px;
  }
}

/* ==========================================================================
   SHOPEE-STYLE PRODUCT DETAIL & INTERACTIVE PHOTO GALLERY
   ========================================================================== */
.product-detail-view {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.back-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--rose);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover {
  background: #fbe4ee;
  border-color: var(--pink);
}

.detail-breadcrumb {
  font-size: 13px;
  color: #987488;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media(min-width: 820px) {
  .product-detail-layout {
    grid-template-columns: 460px 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* Gallery Column */
.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-photo-stage {
  position: relative;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(146, 43, 90, 0.06);
}

.photo-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-preorder {
  background: rgba(217, 88, 150, 0.92);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(217, 88, 150, 0.35);
}

.badge-stock {
  background: rgba(40, 167, 69, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.main-photo-viewport {
  aspect-ratio: 3/4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff2f8, #f8dce8);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.main-photo-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease-out;
  user-select: none;
}

.main-photo-viewport:hover img {
  transform: none;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--rose);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }
.gallery-nav-btn:hover {
  background: white;
  color: var(--pink);
  transform: translateY(-50%) scale(1.08);
}

.gallery-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.photo-counter {
  background: rgba(30, 10, 20, 0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.btn-fullscreen-toggle {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  color: var(--rose);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 12px;
}

.btn-fullscreen-toggle:hover {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

/* Thumbnail Carousel Strip (Supports 4–10 Photos) */
.thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 6px;
}

.thumb-item {
  flex: 0 0 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(146, 43, 90, 0.05);
}

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

.thumb-item:hover {
  border-color: #f4a6c9;
  transform: translateY(-2px);
}

.thumb-item.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(217, 88, 150, 0.25);
  transform: none;
}

/* Info Column */
.info-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.detail-category-tag {
  background: #fbe4ee;
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
}

.detail-sku-tag {
  font-size: 12px;
  color: #987488;
  font-family: monospace;
}

.detail-product-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--rose);
  margin: 0;
  line-height: 1.2;
}

.detail-price-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(146, 43, 90, 0.04);
}

.price-row {
  display: flex;
  flex-direction: column;
}

.detail-price-val {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--pink);
  font-family: system-ui, sans-serif;
}

.detail-tax-label {
  font-size: 11px;
  color: #987488;
}

.detail-status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: #eef7ee;
  color: #2b7a36;
}

.detail-status-pill.preorder {
  background: #fff2f8;
  color: var(--pink);
  border: 1px solid #f8c8dc;
}

.detail-status-pill.soldout {
  background: #f8f8f8;
  color: #888;
}

/* Variant Groups */
.variant-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.variant-label b {
  color: var(--rose);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Variant Groups & Sizing System */
.size-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.weight-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(219, 39, 119, 0.08);
  border: 1px solid rgba(219, 39, 119, 0.22);
  color: var(--pink, #db2777);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.variant-btn {
  padding: 8px 16px;
  border: 1px solid var(--line, #e5e7eb);
  background: white;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink, #1f2937);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.variant-btn:hover:not(:disabled) {
  border-color: var(--pink, #db2777);
  background: #fff5f9;
  transform: translateY(-1px);
}

.variant-btn.selected {
  background: var(--pink, #db2777) !important;
  border-color: var(--pink, #db2777) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
}

.variant-btn.sold-out,
.variant-btn[disabled] {
  opacity: 0.42;
  cursor: not-allowed !important;
  text-decoration: line-through;
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
}

.size-stock-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  transition: all 0.2s ease;
  display: inline-block;
}

.variant-btn.selected .size-stock-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.variant-btn.sold-out .size-stock-badge,
.variant-btn[disabled] .size-stock-badge {
  background: transparent;
  color: #9ca3af;
  text-decoration: none;
}

.pill-option {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-option:hover {
  border-color: var(--pink);
  background: #fff5f9;
}

.pill-option.active {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(217, 88, 150, 0.3);
}

.pill-option.disabled {
  opacity: 0.45;
  text-decoration: line-through;
  background: #fafafa;
}

/* Variant Stock Availability Display */
.variant-stock-feedback {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
}

.stock-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
  flex-shrink: 0;
}

.stock-pulse-dot.warning {
  background: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

.stock-pulse-dot.danger {
  background: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.detail-description-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}

.detail-description-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--rose);
}

.desc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #553545;
  white-space: pre-wrap;
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-share {
  background: #fff;
  border: 1px solid var(--pink);
  color: var(--pink);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 20px;
}

.btn-share:hover {
  background: var(--pink);
  color: white;
}

.share-toast {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
  animation: fadeIn 0.2s ease;
}

/* Fullscreen Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(22, 8, 16, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox-image-viewport {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-viewport img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn.prev { left: 24px; }
.lightbox-nav-btn.next { right: 24px; }
.lightbox-nav-btn:hover { background: rgba(255, 255, 255, 0.4); }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ==========================================================================
   PROMINENT PINK "BUY NOW — TELEGRAM" BUTTON & ORDER MODAL
   ========================================================================== */
.buy-now-panel {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #e11d48, #db2777, #be185d);
  background-size: 200% 200%;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, background-position 0.4s;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
}

.btn-buy-now:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn-buy-now .buy-icon {
  font-size: 22px;
  display: inline-block;
  transform: rotate(-10deg);
  transition: transform 0.2s;
}

.btn-buy-now:hover .buy-icon {
  transform: rotate(0deg) scale(1.15);
}

.buy-now-note {
  font-size: 13px;
  color: #71717a;
  text-align: center;
}

.buy-now-note b {
  color: var(--pink, #db2777);
}

.variant-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  animation: shakeAlert 0.4s ease-in-out;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.variant-group.highlight-required {
  animation: pulseRequired 1s ease-in-out infinite alternate;
  border-radius: 12px;
  padding: 8px;
  background: rgba(225, 29, 72, 0.05);
}

@keyframes pulseRequired {
  from { outline: 2px solid rgba(225, 29, 72, 0.4); }
  to { outline: 2px solid rgba(225, 29, 72, 0.9); }
}

/* Order Modal Backdrop & Dialog */
.order-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.order-modal-dialog {
  background: white;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #fce7f3;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.order-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.order-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.order-modal-header {
  text-align: center;
  padding-right: 20px;
}

.order-modal-icon {
  font-size: 38px;
  margin-bottom: 6px;
}

.order-modal-header h2 {
  font-size: 22px;
  color: #9d174d;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.order-modal-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.order-summary-card {
  background: #fff5f8;
  border: 1px solid #fbcfe8;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.summary-field-row {
  display: flex;
  gap: 12px;
}

.summary-field.half {
  flex: 1;
}

.summary-label {
  color: #831843;
  font-weight: 600;
  font-size: 13px;
}

.summary-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.summary-sku {
  font-family: monospace;
  background: #fce7f3;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: #be185d;
}

.summary-pill {
  background: white;
  border: 1px solid #f472b6;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12.5px;
  color: #be185d;
}

.summary-price {
  font-size: 18px;
  font-weight: 800;
  color: #be123c;
}

.summary-url {
  font-size: 11.5px;
  color: #64748b;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-textbox-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-textbox-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.clipboard-tag {
  color: #059669;
  font-size: 12px;
  font-weight: 600;
}

.order-summary-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #334155;
  background: #f8fafc;
  resize: none;
  line-height: 1.45;
}

.order-summary-textarea:focus {
  outline: 2px solid #f472b6;
  background: white;
}

.btn-copy-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-order:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.order-modal-instructions {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  color: #166534;
}

.order-modal-instructions p {
  margin: 0 0 6px 0;
}

.order-modal-instructions ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

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

.btn-open-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-open-telegram:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 10px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f8fafc;
  color: #334155;
}

.sales-preview-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 4px;
}

.sales-preview-tag a {
  color: var(--pink, #db2777);
  font-weight: 600;
  text-decoration: none;
}

.sales-preview-tag a:hover {
  text-decoration: underline;
}


/* Let the gallery shrink below the intrinsic width of its thumbnail strip. */
.gallery-column, .info-column { min-width: 0; max-width: 100%; }
.thumbnail-strip { max-width: 100%; overflow-x: auto; }
.product-detail-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .product-detail-layout { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
}

.order-modal-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.order-modal-dialog > * { flex-shrink: 0; }
.order-modal-close { position: sticky; top: 0; right: auto; align-self: flex-end; margin-bottom: -34px; z-index: 2; }
.variant-group.highlight-required { animation: none; outline: 2px solid #e11d48; }

.site-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:14px; padding:24px 16px; text-align:center; }
.admin-login-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 20px; border:1px solid #cf79a3; border-radius:999px; background:#fce7f3; color:#8d315f; font-size:14px; font-weight:600; text-decoration:none; }
.admin-login-link:focus-visible { outline:3px solid #9d2d65; outline-offset:3px; }
.admin-login-link:hover { background:#f8d4e8; }
