:root {
  --gold: #C9A227;
  --purple: #7B68C4;
  --pink: #D63384;
  --dark: #241C33;
  --gray: #6b6b76;
  --bg: #FAF9FC;
  --white: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.3px; }

/* Header */
.topbar { background: var(--dark); color: #fff; text-align: center; font-size: 13px; padding: 6px 0; }
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 500; }
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 20px; position: relative;
}

/* Logo: fluid sizing (clamp) so it scales smoothly and looks the same
   proportionally on phone, tablet and desktop instead of jumping sizes. */
.logo { display: flex; align-items: center; font-weight: 800; color: var(--gold); letter-spacing: 0.5px; font-size: clamp(20px, 4.5vw, 28px); flex-shrink: 0; order: 1; }
.logo-img { height: clamp(30px, 7vw, 46px); width: auto; max-width: 200px; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 22px; order: 2; }
.main-nav a { font-weight: 600; color: var(--dark); font-size: 15px; white-space: nowrap; transition: color .15s; }
.main-nav a:hover { color: var(--purple); }

.header-actions { display: flex; align-items: center; gap: 14px; order: 3; }
.search-form input { padding: 9px 14px; border-radius: 20px; border: 1px solid #e2dfe8; width: 190px; font-size: 14px; transition: border-color .15s, width .2s; }
.search-form input:focus { outline: none; border-color: var(--purple); }
.mobile-search { display: none; }

.account-link { font-weight: 600; font-size: 14px; color: var(--dark); white-space: nowrap; }
.account-link:hover { color: var(--purple); }

.cart-link {
  background: var(--purple); color: #fff; padding: 9px 16px; border-radius: 20px;
  font-weight: 700; display: flex; align-items: center; gap: 6px; font-size: 14px;
  transition: background .15s;
}
.cart-link:hover { background: var(--dark); }
.cart-count { background: rgba(255,255,255,0.25); border-radius: 10px; padding: 1px 8px; font-size: 12px; }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay { display: none; }

/* Hero / Grid */
.hero { background: linear-gradient(120deg, var(--purple), var(--pink)); border-radius: var(--radius); color: #fff; padding: 60px 40px; margin: 24px 0; }
.hero h1 { font-size: 36px; margin: 0 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 24px 0; }
.product-card { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform .18s, box-shadow .18s; border: 1px solid #f2f0f7; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 220px; object-fit: contain; margin-bottom: 12px; }
.product-card h3 { font-size: 16px; margin: 6px 0; font-weight: 700; }
.price { font-weight: 700; color: var(--pink); }
.old-price { text-decoration: line-through; color: var(--gray); margin-left: 8px; font-weight: 400; font-size: 13px; }
.btn { display: inline-block; background: var(--dark); color: #fff; padding: 10px 20px; border-radius: 24px; border: none; cursor: pointer; font-weight: 600; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--purple); box-shadow: 0 4px 14px rgba(123,104,196,0.35); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #b3901f; box-shadow: 0 4px 14px rgba(201,162,39,0.35); }
.btn-block { width: 100%; text-align: center; }

/* Forms */
.form-box { background: #fff; padding: 30px; border-radius: var(--radius); max-width: 420px; margin: 40px auto; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f7ec; color: #1e7e42; }
.alert-error { background: #fdecec; color: #c0392b; }

/* Footer */
.site-footer { background: var(--dark); color: #ccc; text-align: center; padding: 30px 0; margin-top: 40px; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: var(--gold) !important; }
.site-footer p { margin: 6px 0; font-size: 14px; }

/* Admin */
.admin-menu-toggle { display: none; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--dark); color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .logo { display: block; padding: 0 20px 20px; }
.admin-sidebar a { display: block; padding: 12px 20px; color: #ccc; font-weight: 500; transition: background .15s, color .15s; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-content { flex: 1; padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--purple); }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
table.data-table th { background: #f4f2f9; }
.badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-green { background: #e6f7ec; color: #1e7e42; }
.badge-yellow { background: #fff8e1; color: #a17a00; }
.badge-red { background: #fdecec; color: #c0392b; }
.badge-gray { background: #eee; color: #555; }
.top-actions { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Admin product image gallery manager */
.product-image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.pim-item { background: #f8f7fb; border-radius: 8px; padding: 6px; text-align: center; }
.pim-item img { width: 100%; height: 80px; object-fit: contain; border-radius: 6px; background: #fff; }

/* ============ RESPONSIVE / MOBILE ============ */

/* Force any two-column layout (built with inline grid-template-columns
   across storefront + admin pages) down to a single column on small
   screens, without needing to touch every page individually. */
@media (max-width: 820px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
  .admin-menu-toggle {
    display: block; width: 100%; text-align: left; padding: 14px 20px;
    background: var(--dark); color: #fff; border: none; font-size: 15px; font-weight: 700; cursor: pointer;
  }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar {
    position: fixed; top: 0; left: -280px; bottom: 0; width: 260px; z-index: 600;
    overflow-y: auto; transition: left .25s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  }
  .admin-sidebar.open { left: 0; }
  .admin-content { padding: 16px; }
}

@media (max-width: 700px) {
  .header-main { padding: 12px 16px; gap: 10px; }

  /* Hide the desktop-inline nav; turn it into a slide-down panel */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 500px; }
  .main-nav a { padding: 14px 20px; border-bottom: 1px solid #f0eef5; font-size: 15px; }
  .main-nav .mobile-search { display: flex; padding: 14px 20px; border-bottom: 1px solid #f0eef5; }
  .main-nav .mobile-search input { width: 100%; }

  .desktop-search { display: none; }
  .account-link { display: none; }
  .nav-toggle { display: flex; }

  .cart-link { padding: 7px 12px; font-size: 13px; }
  .cart-link .cart-label { display: none; }

  .nav-overlay.open {
    display: block; position: fixed; inset: 0; top: 0;
    background: rgba(0,0,0,0.25); z-index: 400;
  }

  .hero { padding: 34px 20px; }
  .hero h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .product-card img { height: 150px; }
  .form-box { padding: 20px; margin: 20px auto; }
  table.data-table { display: block; overflow-x: auto; white-space: nowrap; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: 1fr; }
}

/* ============ 3D IMAGE TILT ============ */
.tilt-3d {
  overflow: hidden;
  border-radius: 12px;
}
.tilt-3d img {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: zoom-in;
}
.product-card { perspective: 700px; }
.product-card .tilt-3d { border-radius: 10px; }

/* ============ FULLSCREEN IMAGE ZOOM ============ */
.img-zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 30, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.img-zoom-modal.active { display: flex; }
.img-zoom-modal img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  touch-action: pinch-zoom;
}
.img-zoom-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
}

/* ============ CHECKOUT TRUST BANNER ============ */
.checkout-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
  background: linear-gradient(120deg, var(--purple), var(--pink));
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 600;
}
.checkout-banner span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ============ PRODUCT IMAGE GALLERY ============ */
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery-thumbs img {
  width: 60px; height: 60px; object-fit: contain; background: #fff;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 4px;
}
.product-gallery-thumbs img.active-thumb { border-color: var(--gold); }

@media (max-width: 700px) {
  .checkout-banner { font-size: 12.5px; padding: 12px 16px; gap: 10px 18px; }
  .img-zoom-close { top: 10px; right: 16px; font-size: 30px; }
}

/* ============ FLASH SALE ============ */
.sale-badge {
  position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 12px; z-index: 2;
}
.product-card { position: relative; }
.flash-sale-strip {
  background: linear-gradient(120deg, #241C33, #4a2f5c);
  border-radius: var(--radius); padding: 24px; margin: 24px 0; color: #fff;
}
.flash-sale-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.flash-sale-header h2 { margin: 0; color: #fff; }
.flash-countdown {
  background: rgba(255,255,255,0.12); padding: 8px 16px; border-radius: 20px;
  font-weight: 800; font-size: 16px; letter-spacing: 1px;
}
.flash-sale-strip .product-card { background: #fff; }

/* ============ COUPON / LOYALTY (checkout) ============ */
.coupon-box { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.coupon-box form { display: flex; gap: 8px; }
.coupon-box input[type="text"] { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: #e6f7ec; color: #1e7e42; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.loyalty-box { background: #fff8e1; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }

/* ============ MANUAL MFS PAYMENT (checkout) ============ */
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.payment-option { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; padding: 10px 12px; border: 1px solid #e2dfe8; border-radius: 8px; cursor: pointer; }
.payment-option input { width: auto; }
.mfs-pay-box { background: #f4f2f9; border-radius: 10px; padding: 14px; margin: 10px 0 16px; }
.mfs-number-line { background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }

/* ============ BUNDLES ============ */
.bundle-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.bundle-items-list { list-style: none; padding: 0; margin: 10px 0; }
.bundle-items-list li { padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 14px; }

/* ============ RATINGS / REVIEWS ============ */
.stars { color: var(--gold); letter-spacing: 1px; }
.stars-line { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.reviews-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e8e5f0; }
.review-card { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============ WISHLIST ============ */
.wishlist-btn {
  background: #fff; border: 1px solid #eee; border-radius: 50%; width: 44px; height: 44px;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform .15s;
}
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-corner { position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0; }
.wishlist-btn-mini {
  background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 32px; height: 32px;
  font-size: 15px; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

/* ============ SKIN QUIZ ============ */
.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-option {
  border: 1px solid #e2dfe8; border-radius: 20px; padding: 8px 16px; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; gap: 6px; width: auto;
}
.quiz-option input { width: auto; margin: 0; }
.quiz-option:has(input:checked) { background: var(--purple); color: #fff; border-color: var(--purple); }
.quiz-result-banner {
  background: linear-gradient(120deg, var(--purple), var(--pink)); color: #fff;
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.quiz-result-banner h2 { color: #fff; margin: 0 0 6px; }

/* ============ SHOP FILTER SIDEBAR ============ */
.filter-sidebar { background: #fff; border-radius: var(--radius); padding: 18px; }
.filter-sidebar h4 { margin: 16px 0 8px; font-size: 14px; }
.filter-sidebar h4:first-child { margin-top: 0; }

/* =========================================================
   Blog / page content blocks (output of the block editor)
   ========================================================= */
.roz-content { line-height: 1.8; font-size: 17px; overflow-wrap: anywhere; }
.roz-content h2 { margin: 1.6em 0 .5em; } .roz-content h3 { margin: 1.4em 0 .4em; } .roz-content h4 { margin: 1.2em 0 .4em; }
.roz-content p { margin: 0 0 1.1em; }
.roz-content ul, .roz-content ol { margin: 0 0 1.2em 1.4em; padding: 0; }
.roz-content img { max-width: 100%; height: auto; }
.roz-content figure { margin: 1.4em 0; }
.roz-content figcaption { text-align: center; color: #888; font-size: 14px; margin-top: 6px; }
.roz-img img { width: 100%; border-radius: 14px; display: block; }
.roz-img-medium { max-width: 70%; margin-left: auto; margin-right: auto; }
.roz-img-small { max-width: 40%; margin-left: auto; margin-right: auto; }
.roz-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.roz-embed iframe, .roz-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.roz-quote { margin: 1.6em 0; padding: 14px 22px; border-left: 4px solid var(--gold); background: #faf8ff; border-radius: 0 12px 12px 0; font-size: 1.1em; font-style: italic; }
.roz-quote p { margin: 0; } .roz-quote cite { display: block; margin-top: 8px; font-size: 14px; color: #777; font-style: normal; }
.roz-callout { margin: 1.4em 0; padding: 14px 18px; border-radius: 12px; background: #f1eefb; border: 1px solid #ddd5f3; }
.roz-callout-warn { background: #fff5e6; border-color: #f2d6a8; } .roz-callout-good { background: #eaf7ee; border-color: #bfe3c9; }
.roz-btn-wrap { text-align: center; margin: 1.4em 0; }
.roz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.4em 0; }
.roz-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.roz-table-wrap { overflow-x: auto; margin: 1.4em 0; }
.roz-table { border-collapse: collapse; width: 100%; } .roz-table th, .roz-table td { border: 1px solid #e3dff0; padding: 8px 12px; text-align: left; } .roz-table th { background: #f4f2f9; }
.roz-divider { border: 0; border-top: 1px solid #e3dff0; margin: 2em 0; }
@media (max-width: 600px) { .roz-content { font-size: 16px; } .roz-img-medium, .roz-img-small { max-width: 100%; } }

/* generic content tags so pasted / typed articles look good even without roz-* classes */
.roz-content blockquote { margin: 1.6em 0; padding: 14px 22px; border-left: 4px solid var(--gold); background: #faf8ff; border-radius: 0 12px 12px 0; font-style: italic; }
.roz-content a { color: var(--purple, #7b68c4); text-decoration: underline; }
.roz-content a.btn { color: #fff; text-decoration: none; }
.roz-content table { border-collapse: collapse; width: 100%; } .roz-content th, .roz-content td { border: 1px solid #e3dff0; padding: 8px 12px; text-align: left; } .roz-content th { background: #f4f2f9; }
.roz-toc { background: #faf8ff; border: 1px solid #e3dff0; border-radius: 12px; padding: 14px 20px; margin: 20px 0; }
.roz-toc b { display: block; margin-bottom: 6px; } .roz-toc ol { margin: 0 0 0 1.2em; padding: 0; } .roz-toc li { margin: 3px 0; } .roz-toc .toc-h3 { margin-left: 1.2em; list-style: circle; }
.roz-meta-line { color: #999; display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.roz-related { margin-top: 40px; } .roz-related .grid { margin-top: 12px; }

/* =========================================================
   Admin: article editor (rich editor + SEO assistant)
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.blog-title-input { width: 100%; box-sizing: border-box; font-size: 26px; font-weight: 700; padding: 14px 16px; border: 1px solid #ddd; border-radius: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } .blog-title-input { font-size: 20px; } }
.re-root { border: 1px solid #ddd; border-radius: 12px; background: #fff; position: relative; }
.re-toolbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; background: #f7f5fc; border-bottom: 1px solid #e3dff0; border-radius: 12px 12px 0 0; }
.re-group { display: inline-flex; gap: 3px; align-items: center; padding-right: 10px; border-right: 1px solid #e3dff0; } .re-group:last-child { border-right: 0; }
.re-btn { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #d9d3ec; background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.re-btn:hover, .re-btn.on { background: #eee9fb; } .re-wide { font-size: 13px; white-space: nowrap; }
.re-color input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.re-select { height: 32px; border: 1px solid #d9d3ec; border-radius: 8px; background: #fff; padding: 0 6px; font-size: 13px; max-width: 190px; }
.re-wrap { position: relative; }
.re-area { min-height: 420px; max-height: 75vh; overflow-y: auto; padding: 22px 26px; outline: none; background: #fff; }
.re-area:empty:before, .re-area > p:only-child:has(> br:only-child):before { content: attr(data-ph); color: #b5b0c6; }
.re-area figure.roz-img img { cursor: pointer; } .re-area figure.roz-img:hover img { outline: 2px solid var(--purple, #7b68c4); }
.re-area figcaption:empty:before { content: 'ক্যাপশন (ঐচ্ছিক)'; color: #c4c0d3; }
.re-area .roz-embed iframe, .re-area .roz-embed video { pointer-events: none; }
.re-area figure.roz-video { cursor: pointer; } .re-area figure.roz-video:hover .roz-embed { outline: 2px solid var(--purple, #7b68c4); }
.re-source { width: 100%; min-height: 420px; box-sizing: border-box; border: 0; padding: 16px; font-family: monospace; font-size: 13px; outline: none; resize: vertical; }
.re-status { padding: 6px 14px; border-top: 1px solid #eee; font-size: 12px; color: #888; background: #fafafa; border-radius: 0 0 12px 12px; }
.re-float { position: absolute; z-index: 15; gap: 4px; padding: 5px; background: #2b2540; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25); flex-wrap: wrap; max-width: 340px; }
.re-float button { border: 0; background: transparent; color: #fff; padding: 5px 9px; border-radius: 7px; cursor: pointer; font-size: 12px; } .re-float button:hover { background: rgba(255,255,255,.15); } .re-float .danger { color: #ff9c9c; }
.re-full { position: fixed !important; inset: 0; z-index: 9999; border-radius: 0; display: flex; flex-direction: column; } .re-full .re-wrap { flex: 1; overflow: hidden; } .re-full .re-area, .re-full .re-source { max-height: none; height: 100%; } .re-full .re-toolbar { border-radius: 0; }
body.re-noscroll { overflow: hidden; }
@media (max-width: 700px) { .re-area { padding: 14px; min-height: 320px; } .re-group { border-right: 0; } }

/* SEO assistant */
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 1100px) { .seo-cols { grid-template-columns: 1fr; } }
.seo-auto { font-size: 12px; margin-left: 6px; }
.seo-count { font-size: 12px; color: #999; margin-top: 3px; } .seo-count.ok { color: #1e8e4e; } .seo-count.warn { color: #c77d00; }
.seo-score { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.seo-ring { width: 74px; height: 74px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; flex: none; line-height: 1; } .seo-ring b { font-size: 24px; } .seo-ring small { font-size: 11px; opacity: .85; }
.seo-good { background: #1e8e4e; } .seo-warn { background: #e0a100; } .seo-bad { background: #d64545; }
.seo-word { font-weight: 700; } .seo-t-good { color: #1e8e4e; } .seo-t-warn { color: #b98500; } .seo-t-bad { color: #d64545; }
.seo-bar { height: 8px; background: #eee; border-radius: 6px; overflow: hidden; margin: 6px 0; min-width: 160px; } .seo-bar i { display: block; height: 100%; }
.seo-sub { font-size: 12px; color: #999; }
.seo-snippet { border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: #fff; font-family: Arial, sans-serif; }
.seo-s-label { font-size: 11px; color: #999; margin-bottom: 6px; } .seo-s-url { color: #202124; font-size: 13px; overflow-wrap: anywhere; } .seo-s-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 2px 0; } .seo-s-desc { color: #4d5156; font-size: 14px; line-height: 1.5; }
.seo-list h5 { margin: 14px 0 6px; font-size: 13px; color: #555; }
.seo-item { display: flex; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f2f2f2; } .seo-item > span { flex: none; } .seo-item div div { color: #777; font-size: 12px; margin-top: 2px; }

/* ---- admin: product form layout + details editor ---- */
.product-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.pd-top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.pd-sub { font-size: 13px; color: #888; margin-top: 4px; }
.pd-example { padding: 8px 14px; border: 1px dashed #b8aee3; background: #faf8ff; border-radius: 20px; cursor: pointer; color: #6a5bb0; font-weight: 600; }
.pd-card { border: 1px solid #ebe7f6; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.pd-head { background: #faf9fd; padding: 9px 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .pd-head small { color: #999; font-size: 12px; }
.pd-body { padding: 12px 14px; } .pd-body textarea, .pd-body input[type=text] { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.pd-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; } .pd-fields { flex: 1; display: grid; gap: 6px; min-width: 0; } .pd-row > input { flex: 1; }
.pd-tools { display: flex; gap: 2px; } .pd-tools button { border: 1px solid #e3dff0; background: #fff; border-radius: 6px; width: 28px; height: 30px; cursor: pointer; } .pd-tools button:hover { background: #eee9fb; }
.pd-add { border: 1px dashed #cfc8e8; background: #faf8ff; color: #6a5bb0; border-radius: 8px; padding: 7px 14px; cursor: pointer; font-weight: 600; }

/* ---- storefront: product info accordion ---- */
.pi-highlights { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; } .pi-highlights li { padding-left: 26px; position: relative; } .pi-highlights li:before { content: '✔'; position: absolute; left: 0; color: #1e8e4e; font-weight: 700; }
.pi-wrap { margin: 10px 0 30px; }
.pi-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .pi-toolbar h2 { margin: 0; font-size: 22px; }
.pi-toggleall { background: none; border: 0; color: var(--purple, #7b68c4); cursor: pointer; font-weight: 600; }
.pi-item { border: 1px solid #e9e5f5; border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.pi-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: none; border: 0; cursor: pointer; font-size: 17px; font-weight: 700; text-align: left; color: inherit; font-family: inherit; }
.pi-btn .pi-ico { width: 36px; height: 36px; border-radius: 10px; background: #f1eefb; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 18px; }
.pi-btn .pi-chev { margin-left: auto; transition: transform .25s; color: #999; } .pi-item.open .pi-chev { transform: rotate(180deg); }
.pi-item.open { border-color: #cfc6ee; box-shadow: 0 4px 16px rgba(123,104,196,.10); }
.pi-panel { display: none; padding: 2px 20px 18px 20px; line-height: 1.8; } .pi-item.open .pi-panel { display: block; animation: piIn .25s ease; }
@keyframes piIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pi-panel p { margin: 0 0 .8em; } .pi-panel ul, .pi-panel ol { margin: 0 0 .8em 1.3em; padding: 0; }
.pi-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pi-benefit { background: #faf8ff; border-radius: 12px; padding: 14px 16px; border: 1px solid #efeafa; } .pi-benefit b { display: block; margin-bottom: 4px; } .pi-benefit b:before { content: '✅ '; }
.pi-timeline { position: relative; margin-left: 8px; padding-left: 22px; border-left: 3px solid #e1dbf5; }
.pi-step { position: relative; margin-bottom: 14px; } .pi-step:before { content: ''; position: absolute; left: -31px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold, #c9a227); border: 3px solid #fff; box-shadow: 0 0 0 2px #e1dbf5; }
.pi-step b { color: var(--purple, #7b68c4); display: block; }
.pi-faq { border-bottom: 1px solid #f0edf8; } .pi-faq:last-child { border-bottom: 0; }
.pi-faq .pi-q { width: 100%; text-align: left; background: none; border: 0; padding: 12px 0; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; gap: 10px; font-family: inherit; color: inherit; } .pi-faq .pi-q:after { content: '＋'; margin-left: auto; color: #999; } .pi-faq.open .pi-q:after { content: '－'; }
.pi-faq .pi-a { display: none; padding: 0 0 12px; color: #555; } .pi-faq.open .pi-a { display: block; }
.pi-warn { background: #fff8ec; border-radius: 10px; padding: 10px 14px; }
@media (max-width: 800px) { .product-page-grid { grid-template-columns: 1fr !important; gap: 20px !important; } .pi-btn { padding: 14px; font-size: 16px; } .pi-panel { padding: 2px 14px 14px; } }
