/* ============================================
   BLÅNAGEL - Complete Stylesheet
   Inspired by Untagged Movement aesthetics
   ============================================ */

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

:root {
    --primary: #1a1a2e;
    --primary-light: #2d2d44;
    --accent: #c9463d;
    --accent-hover: #a83830;
    --text: #222;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fafafa;
    --bg-white: #fff;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --success: #22c55e;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-admin {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-admin:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   FLOATING CTA BAR
   ============================================ */

.floating-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem 2rem;
    z-index: 999;
    transition: bottom 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.floating-cta.visible {
    bottom: 0;
}

.floating-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-cta-content span {
    color: white;
    font-weight: 500;
}

.floating-cta-btn {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}

.floating-cta-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* ============================================
   HERO SECTION - COMPACT
   ============================================ */

.hero {
    padding: 100px 2rem 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.hero.hero-compact {
    min-height: auto;
    padding-bottom: 60px;
}

/* Hero Minimal - Even more compact */
.hero.hero-minimal {
    padding: 90px 2rem 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    display: block;
}

.hero.hero-minimal .hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero.hero-minimal h1 {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
}

.hero.hero-minimal .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-badges .badge {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: var(--accent);
    background: linear-gradient(135deg, #ff6b6b 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-cta-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 70, 61, 0.4);
}

.hero-cta-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 70, 61, 0.5);
}

.hero-cta-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.hero-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.85;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-preview {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-mockup {
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.hero-mockup:hover {
    transform: scale(1.02) rotate(1deg);
}

.hero-preview-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(201, 70, 61, 0.4);
}

/* Old hero styles for backwards compat */
.hero-visual {
    position: relative;
}

.hero-images {
    position: relative;
    height: 500px;
}

.hero-img {
    position: absolute;
    width: 280px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

.hero-img-1 {
    top: 0;
    left: 0;
    z-index: 3;
}

.hero-img-2 {
    top: 60px;
    left: 180px;
    z-index: 2;
}

.hero-img-3 {
    top: 120px;
    left: 80px;
    z-index: 1;
    opacity: 0.8;
}

.hero-img:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* ============================================
   BRAND SECTION
   ============================================ */

.brand-section {
    padding: 100px 2rem;
    background: var(--bg-white);
}

.brand-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.brand-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.brand-badge span {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.brand-intro {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.brand-feature {
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.brand-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.brand-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.brand-feature p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    padding: 100px 2rem;
    background: var(--bg);
}

.hiw-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.hiw-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.hiw-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.hiw-step p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   EDITOR SECTION
   ============================================ */

main#editor {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.editor-header {
    text-align: center;
    margin-bottom: 3rem;
}

.editor-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.editor-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.editor-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

/* Canvas Section */
.canvas-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mockup-wrapper {
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border-radius: var(--radius-md);
    padding: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.mockup-base {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.print-overlay {
    position: absolute;
    top: 80px;
    left: 100px;
    width: 200px;
    height: 240px;
    cursor: move;
}

#printImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.controls {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.controls label {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    font-weight: 500;
}

.controls input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: var(--border);
    border-radius: 3px;
}

.controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Options Section */
.options-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 750px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.option-group {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.option-group:last-of-type {
    border-bottom: none;
}

.option-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(26, 26, 46, 0.03);
}

.upload-area p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.upload-area.has-image {
    border-style: solid;
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.upload-area.has-image p {
    color: var(--success);
    font-weight: 500;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cat-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--bg-white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.cat-tab:hover {
    border-color: var(--primary);
}

.cat-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-card {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-white);
    width: 80px;
    text-align: center;
}

.product-card:hover {
    border-color: var(--primary);
}

.product-card.active {
    border-color: var(--primary);
    background: rgba(26, 26, 46, 0.03);
    box-shadow: 0 0 0 1px var(--primary);
}

.product-thumb {
    width: 56px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
}

.product-info strong {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
}

.product-info span {
    display: none;
}

.product-info .price-mod {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.1rem;
    color: var(--accent);
    font-weight: 600;
}
.product-info .price-mod.discount {
    color: var(--success);
}

/* Color Picker */
.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.color-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.2);
}

.color-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Position Picker */
.position-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.position-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.position-btn:hover {
    border-color: var(--primary);
}

.position-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Size Grid */
.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.size-input {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.size-input label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--text);
}

.qty-btn.minus {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.qty-btn.plus {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.qty-btn:hover {
    background: var(--border);
}

.qty-btn:active {
    background: var(--border);
}

.qty-controls input {
    width: 42px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-controls input::-webkit-outer-spin-button,
.qty-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-controls input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Price Display */
.price-display {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.price-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.price-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.price-table th {
    color: var(--text-light);
    font-weight: 500;
}

.price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Order Button */
.order-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.order-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 70, 61, 0.35);
}

.order-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   QUALITY SECTION
   ============================================ */

.quality-section {
    padding: 100px 2rem;
    background: var(--bg-white);
}

.quality-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quality-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.quality-text > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.quality-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.quality-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

.quality-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.quality-images {
    position: relative;
}

.quality-img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.quality-img-overlay {
    position: absolute;
    top: 60px;
    left: 60px;
    max-width: 300px;
    z-index: 2;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */

.reviews-section {
    padding: 100px 2rem;
    background: var(--primary);
    color: white;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.reviews-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.reviews-section .section-subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: 4rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.review-card {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s, background 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.12);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   SHOWCASE SECTION
   ============================================ */

.showcase-section {
    padding: 100px 2rem;
    background: var(--bg);
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.showcase-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.showcase-item {
    text-align: center;
}

.showcase-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.showcase-item:hover img {
    transform: scale(1.03);
}

.showcase-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.showcase-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--accent);
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--primary);
    color: white;
    padding: 60px 2rem 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-content.success {
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.form-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.order-summary {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.order-summary h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--primary-light);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

/* ============================================
   LAYER SYSTEM
   ============================================ */

.layer-panel {
    margin-top: 1rem;
}

.layer-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.layer-panel-header span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.add-layer-btn {
    padding: 0.35rem 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-layer-btn:hover {
    background: var(--primary-light);
}

.layer-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.85rem;
}

.layer-item:hover {
    background: var(--border-light);
}

.layer-item.active {
    border-color: var(--primary);
    background: rgba(26, 26, 46, 0.04);
}

.layer-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.layer-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-weight: 500;
}

.layer-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.layer-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-white);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--text-light);
    padding: 0;
}

.layer-btn:hover {
    background: var(--border);
    color: var(--text);
}

.layer-btn.danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Layer element in mockup overlay */
.layer-element {
    position: absolute;
    cursor: move;
    user-select: none;
}

.layer-element.active {
    outline: 2px dashed rgba(26, 26, 46, 0.4);
    outline-offset: 4px;
}

/* Layer properties panel */
.layer-properties {
    background: var(--bg);
    border-radius: 8px;
    padding: 0.75rem;
}

.layer-properties:empty {
    display: none;
}

.layer-properties .hint {
    margin: 0;
    text-align: center;
    padding: 0.5rem 0;
}

.prop-group {
    margin-bottom: 0.6rem;
}

.prop-group:last-child {
    margin-bottom: 0;
}

.prop-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.prop-group input[type="text"],
.prop-group input[type="number"],
.prop-group select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.prop-group input[type="text"]:focus,
.prop-group input[type="number"]:focus,
.prop-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.prop-group input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: var(--border);
    border-radius: 3px;
    margin-top: 0.25rem;
}

.prop-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.prop-group input[type="color"] {
    width: 36px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.prop-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.prop-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.prop-row {
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
}

.prop-row .prop-group {
    flex: 1;
}

.toggle-btn {
    width: 32px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--text-light);
}

.toggle-btn:hover {
    border-color: var(--primary);
}

.toggle-btn.on {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Advanced settings collapsible */
.advanced-settings {
    margin-top: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.advanced-settings summary {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    background: var(--bg-white);
    user-select: none;
    list-style: none;
}

.advanced-settings summary::-webkit-details-marker {
    display: none;
}

.advanced-settings summary::before {
    content: '+ ';
}

.advanced-settings[open] summary::before {
    content: '- ';
}

.advanced-settings summary:hover {
    color: var(--primary);
}

.advanced-content {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-light);
}

/* Full window drag-drop highlight */
body.drag-active::before {
    content: 'Släpp bilden här';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.9);
    border: 4px dashed var(--accent);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

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

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 2rem 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 1.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-preview {
        display: none;
    }

    .floating-cta-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .brand-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-container {
        grid-template-columns: 1fr;
    }

    .quality-images {
        order: -1;
        text-align: center;
    }

    .quality-img-overlay {
        position: relative;
        top: 0;
        left: 0;
        display: none;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .nav-links {
    align-items: center;
        display: none;
    }

    .editor-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .options-section {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0 1rem;
    }

    .nav-container {
        height: 60px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 100px 1.5rem 50px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .brand-section,
    .how-it-works,
    .quality-section,
    .reviews-section,
    .showcase-section {
        padding: 60px 1.5rem;
    }

    .brand-features {
        grid-template-columns: 1fr;
    }

    .hiw-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    main#editor {
        padding: 40px 1rem;
    }

    .editor-header h2 {
        font-size: 1.8rem;
    }

    .mockup-container {
        width: 100%;
        max-width: 350px;
    }

    .products-grid {
        gap: 0.4rem;
    }

    .color-btn {
        width: 30px;
        height: 30px;
    }

    .size-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .qty-controls input {
        width: 38px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-cta {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .brand-section h2,
    .how-it-works h2,
    .quality-text h2,
    .reviews-section h2,
    .showcase-section h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 50px 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}
