.font-modern { font-family: Inter, "Segoe UI", Arial, sans-serif; }
.font-rounded { font-family: "Trebuchet MS", "Segoe UI", sans-serif; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.font-serif button, .font-serif input, .font-serif textarea, .font-serif select { font-family: inherit; }

body:not(.admin-body) .panel,
body:not(.admin-body) .product-card,
body:not(.admin-body) .intro,
body:not(.admin-body) .search { border-radius: var(--theme-radius); }

.header-dark .store-header { background: rgba(23, 33, 27, .96); color: #fff; border-color: transparent; }
.header-accent .store-header { background: color-mix(in srgb, var(--primary) 94%, #000); color: #fff; border-color: transparent; }
.header-dark .store-logo, .header-accent .store-logo { filter: drop-shadow(0 1px 1px rgba(255,255,255,.25)); }
.header-dark .cart-button, .header-accent .cart-button { background: #fff; color: var(--ink); }

.theme-elegant .intro { background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--primary) 55%, #111)); }
.theme-elegant .product-card { box-shadow: 0 14px 40px rgba(22, 20, 18, .08); }
.theme-elegant .product-image { background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 10%, #f4efe8), #e8e1d7); }

.theme-vibrant .intro { background: linear-gradient(125deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #6f2cff)); }
.theme-vibrant .product-card { border-width: 2px; }
.theme-vibrant .chips a.active { background: var(--primary); border-color: var(--primary); }

.theme-minimal .intro { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.theme-minimal .intro p { color: var(--muted); }
.theme-minimal .product-card { box-shadow: none; }
.theme-minimal .product-card:hover { box-shadow: 0 8px 24px rgba(23,33,27,.07); }
.theme-minimal .product-image { background: color-mix(in srgb, var(--bg) 90%, var(--primary)); }

.theme-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme-choice { position: relative; display: block !important; cursor: pointer; }
.theme-choice input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch { min-height: 112px; padding: 15px; border: 2px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.theme-choice input:checked + .theme-swatch { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.theme-swatch i { height: 35px; border-radius: 9px; background: var(--swatch); }
.theme-swatch strong { margin-top: 10px; }

@media (max-width: 760px) { .theme-preview-grid { grid-template-columns: 1fr 1fr; } }
