/* Theme 3 — "Simple": light, green accent */
.preview-theme.theme-r3 {
  --bg: #F5F7F5;
  --card: #ffffff;
  --text: #16181A;
  --muted: #767B80;
  --border: #E6EBE6;
  --accent: #E4F3E8;
  --accent-text: #2E7D46;
}
.theme-r3 .store-simple-header h1 { color: #16181A; font-family: 'Quicksand', sans-serif !important; font-size: clamp(21px, 5.8vw, 30px) !important; font-weight: 700; }
.theme-r3 .store-simple-header p { color: #767B80; font-family: 'Quicksand', sans-serif !important; font-size: clamp(13px, 3.5vw, 15.5px) !important; }

.theme-r3 .product-card { background: #fff; border-radius: 16px; border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.theme-r3 .product-image { background: #E4F3E8; border-radius: 12px; }
.theme-r3 .product-name { color: #16181A; font-weight: 600; }
.theme-r3 .product-price { color: #16181A; font-weight: 700; }
.theme-r3 .more-btn { background: #3DA35D; color: #fff; }

.theme-r3 .popup-card, .theme-r3 .checkout-overlay-card { background: #fff; color: #16181A; }
.theme-r3 .popup-backdrop, .theme-r3 .checkout-overlay-backdrop { background: rgba(0,0,0,0.35); }
.theme-r3 .popup-close, .theme-r3 .checkout-close { background: #F5F7F5; color: #16181A; }
.theme-r3 .popup-image { background: #E4F3E8; }
.theme-r3 .checkout-badge { background: #E4F3E8; }

.theme-r3 .form-group input, .theme-r3 .form-group textarea, .theme-r3 .form-group select { background: #F5F7F5; }
.theme-r3 .total-box { background: #F5F7F5; }
.theme-r3 .upload-ui { background: #F5F7F5; }
.theme-r3 .send-btn { background: #3DA35D; }
.theme-r3 .product-qty button { background: #3DA35D; color: #fff; }

.theme-r3 .cart-bar { background: #3DA35D; box-shadow: 0 10px 30px rgba(61,163,93,0.3); }
.theme-r3 .cart-bar-checkout-label { background: #fff; color: #3DA35D; }

/* ---------- R3 full-store chrome (Phase 3 pilot): soft, rounded, friendly ---------- */
.theme-r3.sf-chrome { --sf-primary: #2E7D46; --sf-primary-ink: #fff; font-family: 'Quicksand', sans-serif; }
.theme-r3.sf-chrome .sf-header { background: rgba(255,255,255,0.92); border-bottom: 1px solid #E6EBE6; border-radius: 0 0 22px 22px; }
@supports (backdrop-filter: blur(8px)) { .theme-r3.sf-chrome .sf-header { backdrop-filter: blur(8px); } }
.theme-r3.sf-chrome .sf-nav a:hover, .theme-r3.sf-chrome .sf-icon-btn:hover { background: #E4F3E8; }

.theme-r3.sf-chrome .sf-hero { background: linear-gradient(135deg, #E4F3E8 0%, #F5F7F5 70%); border-radius: 28px; margin: 14px 12px 0; padding: 22px 18px; }
@media (min-width: 760px) { .theme-r3.sf-chrome .sf-hero { max-width: 1056px; margin: 20px auto 0; padding: 36px 32px; } }
.theme-r3.sf-chrome .sf-hero .store-simple-header h1 { font-size: clamp(28px, 7.5vw, 44px) !important; line-height: 1.1; letter-spacing: -0.01em; }
.theme-r3.sf-chrome .sf-hero .store-simple-header p { font-size: clamp(14.5px, 3.8vw, 17px) !important; margin-top: 8px; }
.theme-r3.sf-chrome .sf-hero-media { border-radius: 22px; box-shadow: 0 8px 24px rgba(46,125,70,0.12); }

.theme-r3.sf-chrome .sf-h2 { font-weight: 700; letter-spacing: -0.005em; }
.theme-r3.sf-chrome .cat-chip { background: #fff; color: #16181A; border: 1px solid #E6EBE6; }
.theme-r3.sf-chrome .cat-chip.cat-active { background: #2E7D46; color: #fff; border-color: #2E7D46; }

.theme-r3.sf-chrome .sf-card { border-radius: 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.theme-r3.sf-chrome .sf-card-media { margin: 8px 8px 0; width: calc(100% - 16px); border-radius: 16px; background: #E4F3E8; }
.theme-r3.sf-chrome .sf-card .product-price { color: #2E7D46; }
.theme-r3.sf-chrome .sf-feat-img { border-radius: 20px; }
.theme-r3.sf-chrome .sf-add:hover { background: #276b3c; }

.theme-r3.sf-chrome .sf-footer { margin-top: 12px; border-radius: 28px 28px 0 0; border: 0; box-shadow: 0 -6px 24px rgba(0,0,0,0.04); }
.theme-r3.sf-chrome .sf-drawer-panel { border-radius: 24px 0 0 24px; }
@media (max-width: 480px) { .theme-r3.sf-chrome .sf-drawer-panel { border-radius: 0; } }
.theme-r3.sf-chrome .cart-bar { background: #2E7D46; box-shadow: 0 10px 30px rgba(46,125,70,0.3); }
.theme-r3.sf-chrome .cart-bar-checkout-label { background: #fff; color: #2E7D46; }
.theme-r3.sf-chrome { --muted: #5f6469; } /* AA contrast for descriptions and hints on white and #F5F7F5 */
