/* Make It Happen Studio - High-End Artisanal Design System (make.dlos.pl) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
    --bg-primary: #f8f6f2;
    --bg-card: #ffffff;
    --bg-card-hover: #fcfbfa;
    --wood-amber: #c97a2b;
    --wood-amber-hover: #a8621d;
    --wood-gold: #b86e24;
    --wood-warm-bg: #fffbf5;
    --accent-emerald: #059669;
    --text-main: #231c19;
    --text-muted: #6e645e;
    --border-color: #e5ded7;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-warm: 0 12px 32px -6px rgba(44, 34, 30, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-main);
}

/* Header & Nav */
.header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: #231c19;
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.logo-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--wood-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.nav-badge {
    background: #f4efe9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Studio Hero Header */
.hero-studio-header {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.5rem;
    box-shadow: var(--shadow-warm);
}

.hero-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--wood-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.hero-desc {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 1.25rem auto;
    font-size: 0.98rem;
    line-height: 1.55;
}

.hero-capacity-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fbf8f3;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Container & Grid */
.main-container {
    max-width: 1200px;
    width: 100%;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.creator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .creator-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards & Light Panels */
.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-warm);
}

.panel-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Canvas Simulator Stage */
.preview-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f4efe9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    min-height: 380px;
    position: relative;
}

.canvas-wrapper {
    position: relative;
    box-shadow: 0 15px 35px rgba(60, 40, 20, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

canvas#engraveCanvas {
    display: block;
    background: #e8cca4;
    border-radius: 4px;
}

.wood-mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 8px solid transparent;
    transition: all 0.3s ease;
}

.wood-mask-overlay.frame-black { border-color: #1a1a1a; }
.wood-mask-overlay.frame-white { border-color: #f5f5f5; }
.wood-mask-overlay.frame-green { border-color: #7a8b7b; }
.wood-mask-overlay.frame-beige { border-color: #d4b896; }
.wood-mask-overlay.frame-dark  { border-color: #374151; }

/* Drop Zone Upload */
.upload-dropzone {
    border: 2px dashed var(--wood-amber);
    background: rgba(201, 122, 43, 0.04);
    border-radius: var(--radius-md);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover {
    background: rgba(201, 122, 43, 0.08);
    border-color: var(--wood-gold);
}

.dropzone-icon {
    color: var(--wood-amber);
    margin-bottom: 0.75rem;
}

/* Mode & Style Toggles */
.mode-toggle-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: #f4efe9;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.mode-toggle-btn {
    flex: 1;
    padding: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.mode-toggle-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.style-toggle-grid,
.style-toggle-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
    .style-toggle-grid-4 {
        grid-template-columns: 1fr;
    }
}

.style-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-card.active {
    border-color: var(--wood-amber);
    background: #fffbf5;
    box-shadow: 0 0 0 2px rgba(201, 122, 43, 0.2);
}

.style-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.style-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tool Buttons Row */
.tools-btn-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: #f4efe9;
    border-color: #d0c4b8;
}

.btn-secondary.danger {
    color: #dc2626;
    border-color: #fecaca;
}

.btn-secondary.danger:hover {
    background: #fef2f2;
}

/* Editor Blocks */
.editor-options-block {
    margin-top: 1.5rem;
    background: #fbf9f6;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.block-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

/* Form Controls */
.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    color: var(--text-main);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--wood-gold);
    box-shadow: 0 0 0 3px rgba(201, 122, 43, 0.12);
}

.range-slider {
    width: 100%;
    accent-color: var(--wood-amber);
    height: 6px;
    border-radius: 3px;
}

/* Variant Selector */
.variant-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.variant-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.variant-btn:hover {
    border-color: var(--wood-amber);
    background: #fffbf5;
}

.variant-btn.active {
    border-color: var(--wood-gold);
    background: #fffbf5;
    box-shadow: 0 0 0 2px rgba(201, 122, 43, 0.2);
}

.variant-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.variant-price {
    font-size: 1.15rem;
    color: var(--wood-gold);
    font-weight: 700;
}

.variant-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Color Swatches */
.color-picker {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--wood-gold);
}

/* Dedication & Price Box */
.dedication-check-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-checkbox {
    accent-color: var(--wood-amber);
    width: 18px;
    height: 18px;
}

.price-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    background: #fbf8f3;
    padding: 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.price-big {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wood-gold);
}

/* Primary Button */
.btn-primary {
    background: var(--text-main);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #3e322d;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Cart Item List */
.cart-list {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.cart-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.85rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fcfbfa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    margin-bottom: 0.75rem;
}

.cart-item-thumb {
    width: 58px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
}

.cart-item-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 700;
    color: var(--wood-gold);
}

.cart-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.4rem;
    font-size: 1rem;
}

/* Gallery Demo Cards */
.demo-card {
    background: #fbf9f6;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.demo-img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.demo-caption {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0.75rem;
}

/* Modals & Backorder Overlay */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35, 28, 25, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    display: inline-block;
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    background: #ffffff;
}
