FlatlyPage
Version 1.0.0 • 54 files • 724.77 KB
Files
.htaccess
.last_check
admin/account.php
admin/dashboard.php
admin/easyedit.js
admin/extensions.php
admin/generate-hash.php
admin/index.php
admin/logout.php
admin/preview.php
admin/scripts.php
admin/theme-edit/builder.php
admin/theme-edit/generator.php
admin/theme-edit/index.php
admin/themes.php
assets/fonts/inter/inter.css
assets/fonts/space-grotesk/space-grotesk.css
config.php
contact-handler.php
contact.php
css/admin.css
css/contact.css
css/styles.css
css/theme.css
data/.htaccess
data/index.php
data/settings.php
data/sitemap-config.php
engine/index.php
engine/renderion.php
extensions-loader.php
extensions/privimetrics/main.php
extensions/privimetrics/manifest.xml
extensions/scroll_to_top/main.php
extensions/scroll_to_top/manifest.xml
extensions/seo_image_master/main.php
extensions/seo_image_master/manifest.xml
favicons.txt
index.php
newsletter/.htaccess
newsletter/confirm.php
newsletter/manager.php
newsletter/newsletter-form.js
newsletter/newsletter-styles.css
newsletter/newsletter-unavailable.php
newsletter/newsletter.sql
newsletter/settings.php
newsletter/subscribe.php
newsletter/unsubscribe.php
page.php
robots.txt.php
sitemap.php
updater/index.php
version.txt
css/admin.css
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #0a0a0a;
--bg-elevated: #111;
--bg-card: #161616;
--bg-hover: #1c1c1c;
--border: #262626;
--border-focus: #404040;
--text: #fafafa;
--text-muted: #737373;
--text-subtle: #525252;
--accent: #fff;
--success: #22c55e;
--error: #ef4444;
--blue: #3b82f6;
--radius: 12px;
--radius-sm: 8px;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
a {
color: inherit;
text-decoration: none;
}
/* Layout */
.app {
display: flex;
min-height: 100vh;
}
/* Sidebar */
.sidebar {
width: 260px;
background: var(--bg-elevated);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 100;
}
.sidebar-header {
padding: 20px 20px 16px;
border-bottom: 1px solid var(--border);
}
.sidebar-logo {
font-size: 1.125rem;
font-weight: 700;
display: flex;
align-items: center;
gap: 10px;
}
.sidebar-logo span {
font-size: 0.75rem;
font-weight: 500;
background: var(--bg-card);
padding: 2px 8px;
border-radius: 4px;
color: var(--text-muted);
}
.sidebar-nav {
padding: 16px 12px;
flex: 1;
overflow-y: auto;
}
.nav-section {
margin-bottom: 24px;
}
.nav-label {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-subtle);
padding: 0 12px;
margin-bottom: 8px;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
font-size: 0.875rem;
color: var(--text-muted);
border-radius: var(--radius-sm);
transition: all 0.15s;
margin-bottom: 2px;
}
.nav-item:hover {
background: var(--bg-hover);
color: var(--text);
}
.nav-item.active {
background: var(--bg-card);
color: var(--text);
}
.nav-item svg {
width: 18px;
height: 18px;
flex-shrink: 0;
}
.sidebar-footer {
padding: 16px;
border-top: 1px solid var(--border);
}
.user-menu {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: var(--radius-sm);
transition: background 0.15s;
}
.user-menu:hover {
background: var(--bg-hover);
}
.user-avatar {
width: 32px;
height: 32px;
background: linear-gradient(135deg, #333, #555);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: 600;
}
.user-info {
flex: 1;
}
.user-name {
font-size: 0.875rem;
font-weight: 500;
}
.user-role {
font-size: 0.75rem;
color: var(--text-muted);
}
/* Main Content */
.main {
flex: 1;
margin-left: 260px;
}
.main-header {
position: sticky;
top: 0;
z-index: 50;
background: rgba(10, 10, 10, 0.8);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
padding: 0 32px;
}
.main-header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}
.main-header h1 {
font-size: 1rem;
font-weight: 600;
}
.header-actions {
display: flex;
align-items: center;
gap: 12px;
}
/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
display: none;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
padding: 0;
background: transparent;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
color: var(--text);
transition: background 0.15s;
}
.mobile-nav-toggle:hover {
background: var(--bg-hover);
}
.mobile-nav-toggle svg {
width: 24px;
height: 24px;
}
@media (max-width: 768px) {
.mobile-nav-toggle {
display: flex;
}
}
.main-content {
padding: 32px;
max-width: 2100px;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 18px;
font-size: 0.875rem;
font-weight: 500;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.15s;
border: none;
font-family: inherit;
}
.btn svg {
width: 16px;
height: 16px;
}
.btn-primary {
background: var(--text);
color: var(--bg);
}
.btn-primary:hover {
opacity: 0.9;
}
.btn-secondary {
background: var(--bg-card);
color: var(--text);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--bg-hover);
border-color: var(--border-focus);
}
.btn-ghost {
background: transparent;
color: var(--text-muted);
}
.btn-ghost:hover {
background: var(--bg-hover);
color: var(--text);
}
.btn-danger {
background: var(--error);
color: white;
}
.btn-danger:hover {
opacity: 0.9;
}
.btn-sm {
padding: 6px 12px;
font-size: 0.8125rem;
}
.btn-icon {
padding: 8px;
}
/* Messages */
.message {
padding: 14px 18px;
border-radius: var(--radius-sm);
margin-bottom: 24px;
font-size: 0.875rem;
display: flex;
align-items: center;
gap: 12px;
}
.message.success {
background: rgba(34, 197, 94, 0.1);
border: 1px solid rgba(34, 197, 94, 0.3);
color: var(--success);
}
.message.error {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.3);
color: var(--error);
}
/* Form Elements */
.form-section {
margin-bottom: 32px;
}
.form-section-title {
font-size: 0.9375rem;
font-weight: 600;
margin-bottom: 16px;
}
.form-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.form-row-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.form-group {
margin-bottom: 20px;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-label {
display: block;
font-size: 0.8125rem;
font-weight: 500;
margin-bottom: 8px;
color: var(--text-muted);
}
.form-input,
.form-textarea,
.form-select {
width: 100%;
padding: 12px 14px;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
font-size: 0.875rem;
font-family: inherit;
transition: border-color 0.15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
outline: none;
border-color: var(--border-focus);
}
.form-textarea {
min-height: 100px;
resize: vertical;
}
.form-hint {
font-size: 0.75rem;
color: var(--text-subtle);
margin-top: 6px;
}
.form-switch {
display: inline-block;
position: relative;
width: 48px;
height: 24px;
}
.form-switch input {
opacity: 0;
width: 0;
height: 0;
}
.form-switch label {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}
.form-switch label:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
.form-switch input:checked + label {
background-color: #2196F3;
}
.form-switch input:checked + label:before {
transform: translateX(24px);
}
/* Card */
.card {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.card-header {
padding: 20px 24px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
}
.card-title {
font-size: 0.9375rem;
font-weight: 600;
}
.card-body {
padding: 24px;
}
/* Products Table */
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: 14px 20px;
text-align: left;
}
.table th {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-subtle);
background: var(--bg-card);
border-bottom: 1px solid var(--border);
}
.table td {
border-bottom: 1px solid var(--border);
font-size: 0.875rem;
}
.table tr:hover td {
background: var(--bg-hover);
}
.table tr:last-child td {
border-bottom: none;
}
.product-title {
font-weight: 500;
}
.product-slug {
color: var(--text-muted);
font-size: 0.75rem;
font-family: ui-monospace, monospace;
}
.product-date {
color: var(--text-muted);
font-size: 0.8125rem;
}
.product-actions {
display: flex;
gap: 8px;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 64px 24px;
color: var(--text-muted);
}
.empty-state-icon {
width: 48px;
height: 48px;
margin: 0 auto 16px;
opacity: 0.3;
}
.empty-state h3 {
font-size: 1rem;
margin-bottom: 8px;
color: var(--text);
}
.empty-state p {
font-size: 0.875rem;
margin-bottom: 24px;
}
/* Block Editor */
.editor-wrapper {
background: var(--bg-elevated);
border-radius: var(--radius);
border: 1px solid var(--border);
}
.editor-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
background: var(--bg-card);
border-radius: var(--radius) var(--radius) 0 0;
flex-wrap: wrap;
gap: 12px;
}
.editor-toolbar-left {
display: flex;
align-items: center;
gap: 12px;
}
.editor-toolbar-right {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.blocks-container {
padding: 24px;
min-height: 400px;
}
.block-item {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
margin-bottom: 12px;
transition: all 0.15s;
position: relative;
}
.block-item:hover {
border-color: var(--border-focus);
}
.block-item.dragging {
opacity: 0.5;
border-color: var(--blue);
}
.block-item.drag-over {
border-color: var(--blue);
background: rgba(59, 130, 246, 0.05);
}
.block-item.expanded {
border-color: var(--blue);
}
.block-header {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid transparent;
cursor: pointer;
user-select: none;
}
.block-item.expanded .block-header {
border-bottom-color: var(--border);
}
.block-drag {
cursor: grab;
color: var(--text-subtle);
padding: 4px;
display: flex;
align-items: center;
}
.block-drag:active {
cursor: grabbing;
}
.block-type {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
background: var(--bg);
padding: 4px 8px;
border-radius: 4px;
}
.block-title {
flex: 1;
font-size: 0.875rem;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.block-id-input {
background: var(--bg);
border: 1px solid var(--border);
color: var(--text-muted);
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
transition: all 0.15s;
}
.block-id-input:focus {
outline: none;
border-color: var(--blue);
color: var(--text);
background: var(--bg-card);
}
.block-id-input::placeholder {
color: var(--text-subtle);
}
.block-actions {
display: flex;
gap: 4px;
opacity: 0;
transition: opacity 0.15s;
}
.block-item:hover .block-actions {
opacity: 1;
}
.block-toggle {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 4px;
transition: color 0.15s;
display: flex;
align-items: center;
}
.block-toggle:hover {
color: var(--text);
}
.block-toggle svg {
width: 18px;
height: 18px;
}
.block-content {
padding: 16px;
display: none;
background: var(--bg);
}
.block-item.expanded .block-content {
display: block;
}
.block-item.expanded .block-toggle-arrow svg {
transform: rotate(180deg);
}
/* Block Form Fields */
.block-field {
margin-bottom: 16px;
}
.block-field:last-child {
margin-bottom: 0;
}
.block-field-label {
font-size: 0.75rem;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 6px;
display: flex;
align-items: center;
gap: 8px;
}
.block-field-input {
width: 100%;
padding: 10px 12px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
font-size: 0.875rem;
font-family: inherit;
}
.block-field-input:focus {
outline: none;
border-color: var(--border-focus);
}
.block-field-textarea {
min-height: 80px;
resize: vertical;
}
/* Link Input with page selector */
.link-input-wrapper {
position: relative;
}
.link-input-wrapper .form-input {
padding-right: 40px;
}
.link-page-btn {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
background: var(--bg-hover);
border: none;
padding: 6px 8px;
border-radius: 4px;
cursor: pointer;
color: var(--text-muted);
display: flex;
align-items: center;
}
.link-page-btn:hover {
color: var(--text);
background: var(--border);
}
/* Repeater Items */
.repeater-items {
margin-top: 12px;
}
.repeater-item {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
margin-bottom: 8px;
overflow: hidden;
}
.repeater-item-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid transparent;
cursor: pointer;
}
.repeater-item.expanded .repeater-item-header {
border-bottom-color: var(--border);
}
.repeater-item-title {
font-size: 0.8125rem;
font-weight: 500;
}
.repeater-item-actions {
display: flex;
gap: 4px;
}
.repeater-item-content {
padding: 12px;
display: none;
}
.repeater-item.expanded .repeater-item-content {
display: block;
}
.repeater-add {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
width: 100%;
padding: 10px;
background: transparent;
border: 1px dashed var(--border);
border-radius: 6px;
color: var(--text-muted);
font-size: 0.8125rem;
cursor: pointer;
transition: all 0.15s;
margin-top: 8px;
}
.repeater-add:hover {
border-color: var(--border-focus);
color: var(--text);
background: var(--bg-hover);
}
/* Add Block Button */
.add-block-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 16px;
background: transparent;
border: 2px dashed var(--border);
border-radius: var(--radius-sm);
color: var(--text-muted);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.add-block-btn:hover {
border-color: var(--border-focus);
color: var(--text);
background: var(--bg-hover);
}
/* Block Type Selector Modal */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 20px;
}
.modal-overlay.active {
display: flex;
}
.modal {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
width: 100%;
max-width: 700px;
max-height: 85vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.modal-title {
font-size: 1rem;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 4px;
display: flex;
}
.modal-close:hover {
color: var(--text);
}
.modal-body {
padding: 24px;
overflow-y: auto;
flex: 1;
scrollbar-width: thin;
scrollbar-color: var(--border-focus) transparent;
}
.modal-body::-webkit-scrollbar {
width: 6px;
}
.modal-body::-webkit-scrollbar-track {
background: transparent;
margin-block: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
background-color: var(--border);
border-radius: 10px;
transition: background-color 0.2s;
}
.modal-body::-webkit-scrollbar-thumb:hover {
background-color: var(--text-muted);
}
.block-types-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.block-type-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 20px;
text-align: center;
cursor: pointer;
transition: all 0.15s;
}
.block-type-card:hover {
border-color: var(--border-focus);
background: var(--bg-hover);
transform: translateY(-2px);
}
.block-type-card svg {
width: 32px;
height: 32px;
margin-bottom: 12px;
color: var(--text-muted);
}
.block-type-card h4 {
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 4px;
}
.block-type-card p {
font-size: 0.75rem;
color: var(--text-muted);
}
/* Delete Confirmation Modal */
.modal-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
margin-top: 24px;
}
/* Icon Select */
.icon-select {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 8px;
}
.icon-option {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
transition: all 0.15s;
}
.icon-option:hover {
border-color: var(--border-focus);
}
.icon-option.selected {
border-color: var(--blue);
background: rgba(59, 130, 246, 0.1);
}
.icon-option svg {
width: 18px;
height: 18px;
color: var(--text-muted);
}
/* Page/Link Selector Dropdown */
.page-selector {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
z-index: 100;
display: none;
max-height: 200px;
overflow-y: auto;
}
.page-selector.active {
display: block;
}
.page-selector-item {
padding: 10px 12px;
cursor: pointer;
font-size: 0.875rem;
border-bottom: 1px solid var(--border);
}
.page-selector-item:last-child {
border-bottom: none;
}
.page-selector-item:hover {
background: var(--bg-hover);
}
.page-selector-item small {
color: var(--text-muted);
display: block;
font-size: 0.75rem;
}
/* Settings Tabs */
.settings-tabs {
display: flex;
gap: 4px;
margin-bottom: 24px;
background: var(--bg-card);
padding: 4px;
border-radius: var(--radius-sm);
}
.settings-tab {
flex: 1;
padding: 10px 16px;
background: transparent;
border: none;
color: var(--text-muted);
font-size: 0.875rem;
font-weight: 500;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s;
}
.settings-tab:hover {
color: var(--text);
}
.settings-tab.active {
background: var(--bg-elevated);
color: var(--text);
}
.settings-panel {
display: none;
}
.settings-panel.active {
display: block;
}
/* Responsive */
@media (max-width: 1024px) {
.sidebar {
width: 220px;
}
.main {
margin-left: 220px;
}
.block-types-grid {
grid-template-columns: repeat(2, 1fr);
}
.main-content {
padding: 24px;
}
}
@media (max-width: 768px) {
/* Sidebar - slide out with overlay */
.sidebar {
transform: translateX(-100%);
width: 85%;
max-width: 320px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: none;
}
.sidebar.open {
transform: translateX(0);
box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}
/* Sidebar overlay backdrop */
.sidebar::before {
content: '';
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
z-index: -1;
left: 100%;
width: 100vw;
}
.sidebar.open::before {
opacity: 1;
visibility: visible;
}
/* Nav items - larger touch targets */
.nav-item {
padding: 14px 16px;
font-size: 0.9375rem;
margin-bottom: 4px;
}
.nav-item svg {
width: 20px;
height: 20px;
}
.nav-label {
font-size: 0.75rem;
padding: 0 16px;
margin-bottom: 12px;
}
.sidebar-nav {
padding: 20px 16px;
}
.sidebar-header {
padding: 24px 20px 20px;
}
.sidebar-footer {
padding: 20px;
}
.user-menu {
padding: 14px 16px;
}
.user-avatar {
width: 40px;
height: 40px;
font-size: 0.875rem;
}
.user-name {
font-size: 0.9375rem;
}
/* Main content */
.main {
margin-left: 0;
}
.main-header {
padding: 0 16px;
}
.main-header-inner {
height: 60px;
}
.main-header h1 {
font-size: 0.9375rem;
}
.header-actions {
gap: 8px;
}
.main-content {
padding: 20px 16px;
}
/* Buttons - better touch targets */
.btn {
padding: 12px 20px;
font-size: 0.9375rem;
min-height: 44px;
}
.btn-sm {
padding: 10px 14px;
font-size: 0.875rem;
min-height: 40px;
}
.btn-icon {
padding: 10px;
min-width: 44px;
min-height: 44px;
}
/* Forms - larger inputs for touch */
.form-row,
.form-row-3 {
grid-template-columns: 1fr;
gap: 0;
}
.form-group {
margin-bottom: 24px;
}
.form-label {
font-size: 0.875rem;
margin-bottom: 10px;
}
.form-input,
.form-textarea,
.form-select {
padding: 14px 16px;
font-size: 1rem;
min-height: 48px;
border-radius: var(--radius);
}
.form-textarea {
min-height: 120px;
}
.form-hint {
font-size: 0.8125rem;
margin-top: 8px;
}
/* Cards */
.card {
border-radius: var(--radius);
}
.card-header {
padding: 16px 20px;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.card-title {
font-size: 1rem;
}
.card-body {
padding: 20px;
}
/* Table - responsive card layout */
.table {
display: block;
}
.table thead {
display: none;
}
.table tbody {
display: flex;
flex-direction: column;
gap: 12px;
}
.table tr {
display: flex;
flex-direction: column;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 16px;
}
.table tr:hover td {
background: transparent;
}
.table td {
padding: 8px 0;
border-bottom: none;
display: flex;
justify-content: space-between;
align-items: center;
}
.table td::before {
content: attr(data-label);
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-subtle);
}
.product-actions {
justify-content: flex-end;
padding-top: 12px;
border-top: 1px solid var(--border);
margin-top: 8px;
}
.product-title {
font-size: 1rem;
}
/* Block editor */
.editor-toolbar {
padding: 16px;
flex-direction: column;
align-items: stretch;
}
.editor-toolbar-left,
.editor-toolbar-right {
width: 100%;
justify-content: space-between;
}
.editor-toolbar-right {
flex-wrap: wrap;
gap: 8px;
}
.blocks-container {
padding: 16px;
min-height: 300px;
}
/* Block items */
.block-header {
padding: 14px 16px;
gap: 10px;
flex-wrap: wrap;
}
.block-type {
font-size: 0.625rem;
padding: 3px 6px;
}
.block-title {
flex: 1 1 100%;
order: 3;
margin-top: 8px;
white-space: normal;
}
.block-id-input {
display: none;
}
.block-actions {
opacity: 1;
}
.block-content {
padding: 16px;
}
.block-field {
margin-bottom: 20px;
}
.block-field-input {
padding: 12px 14px;
font-size: 1rem;
min-height: 48px;
}
.block-field-textarea {
min-height: 100px;
}
/* Block types grid */
.block-types-grid {
grid-template-columns: 1fr;
gap: 10px;
}
.block-type-card {
padding: 16px;
display: flex;
align-items: center;
text-align: left;
gap: 16px;
}
.block-type-card svg {
margin-bottom: 0;
width: 28px;
height: 28px;
flex-shrink: 0;
}
.block-type-card h4 {
margin-bottom: 2px;
}
/* Modal - full screen on mobile */
.modal-overlay {
padding: 0;
align-items: flex-end;
}
.modal {
max-width: 100%;
max-height: 90vh;
border-radius: var(--radius) var(--radius) 0 0;
border-bottom: none;
}
.modal-header {
padding: 20px;
}
.modal-title {
font-size: 1.125rem;
}
.modal-close {
padding: 8px;
}
.modal-body {
padding: 20px;
}
.modal-actions {
flex-direction: column;
gap: 10px;
}
.modal-actions .btn {
width: 100%;
}
/* Add block button */
.add-block-btn {
padding: 20px;
font-size: 0.9375rem;
}
/* Repeater items */
.repeater-item-header {
padding: 14px 16px;
}
.repeater-item-title {
font-size: 0.875rem;
}
.repeater-item-content {
padding: 16px;
}
.repeater-add {
padding: 14px;
font-size: 0.875rem;
}
/* Settings tabs - scrollable */
.settings-tabs {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding: 6px;
}
.settings-tabs::-webkit-scrollbar {
display: none;
}
.settings-tab {
padding: 12px 16px;
white-space: nowrap;
flex: none;
}
/* Messages */
.message {
padding: 16px;
font-size: 0.9375rem;
flex-direction: column;
text-align: center;
gap: 8px;
}
/* Empty state */
.empty-state {
padding: 48px 20px;
}
.empty-state-icon {
width: 56px;
height: 56px;
}
.empty-state h3 {
font-size: 1.125rem;
}
.empty-state p {
font-size: 0.9375rem;
}
/* Icon select - larger touch targets */
.icon-option {
width: 44px;
height: 44px;
}
.icon-option svg {
width: 20px;
height: 20px;
}
/* Page selector */
.page-selector-item {
padding: 14px 16px;
font-size: 0.9375rem;
}
.page-selector-item small {
font-size: 0.8125rem;
margin-top: 4px;
}
/* Link input */
.link-page-btn {
padding: 10px 12px;
}
}
/* Extra small devices */
@media (max-width: 380px) {
.main-content {
padding: 16px 12px;
}
.card-header,
.card-body {
padding: 16px;
}
.block-header {
padding: 12px 14px;
}
.blocks-container {
padding: 12px;
}
.modal-header,
.modal-body {
padding: 16px;
}
.btn {
padding: 12px 16px;
}
}
/* Frontend Styles for New Blocks */
/* Image + Text Block */
.image-text {
padding: 60px 0;
}
.image-text-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}
.image-text-grid.image-text-right {
grid-template-columns: 1fr 1fr;
direction: rtl;
}
.image-text-grid.image-text-right>* {
direction: ltr;
}
.image-text-image img {
width: 100%;
height: auto;
border-radius: 12px;
display: block;
}
.image-text-content h2 {
font-size: 2.5rem;
font-weight: 700;
margin: 16px 0 12px;
line-height: 1.2;
}
.image-text-content .text-content {
font-size: 1rem;
line-height: 1.6;
color: var(--text-muted);
margin: 20px 0 24px;
}
.image-text-content .btn {
display: inline-block;
margin-top: 12px;
}
@media (max-width: 768px) {
.image-text {
padding: 40px 0;
}
.image-text-grid,
.image-text-grid.image-text-right {
grid-template-columns: 1fr;
gap: 32px;
}
.image-text-grid.image-text-right {
direction: ltr;
}
.image-text-content h2 {
font-size: 1.75rem;
margin: 12px 0 8px;
}
.image-text-content .text-content {
font-size: 0.9375rem;
margin: 16px 0 20px;
}
.image-text-image img {
border-radius: 10px;
}
}
/* Product Cards Block */
.product-cards {
padding: 60px 0;
}
.product-cards .section-header {
margin-bottom: 48px;
text-align: center;
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 32px;
}
.product-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 32px 24px;
text-align: center;
transition: all 0.3s;
}
.product-card:hover {
border-color: var(--blue);
box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
transform: translateY(-4px);
}
.product-image {
margin-bottom: 20px;
display: flex;
justify-content: center;
height: 48px;
}
.product-image img {
width: 48px;
height: 48px;
object-fit: contain;
}
.product-card h3 {
font-size: 1.125rem;
font-weight: 600;
margin: 16px 0 8px;
}
.product-description {
font-size: 0.875rem;
color: var(--text-muted);
line-height: 1.5;
margin: 12px 0 16px;
}
.product-features {
list-style: none;
padding: 0;
margin: 16px 0 24px;
text-align: left;
}
.product-features li {
font-size: 0.875rem;
color: var(--text-muted);
padding: 6px 0 6px 24px;
position: relative;
}
.product-features li::before {
content: "✓";
position: absolute;
left: 0;
color: var(--success);
font-weight: 600;
}
.product-card .btn-sm {
font-size: 0.8125rem;
padding: 8px 16px;
}
@media (max-width: 768px) {
.product-cards {
padding: 40px 0;
}
.product-cards .section-header {
margin-bottom: 32px;
}
.products-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.product-card {
padding: 24px 20px;
}
.product-card:hover {
transform: none;
}
.product-card h3 {
font-size: 1.0625rem;
}
.product-description {
font-size: 0.9375rem;
}
.product-features li {
font-size: 0.9375rem;
padding: 8px 0 8px 28px;
}
.product-card .btn-sm {
width: 100%;
justify-content: center;
padding: 12px 16px;
font-size: 0.9375rem;
}
}