/* Picasso by Codeso - Storefront & Designer Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+Sinhala:wght@400;500;600;700&display=swap');

:root {
    --p-bg: #f8fafc;
    --p-surface: #ffffff;
    --p-navy: #0f172a;
    --p-primary: #1e293b;
    --p-accent: #f59e0b;
    --p-accent-dark: #d97706;
    --p-border: #e2e8f0;
    --p-text: #334155;
    --p-text-muted: #64748b;
    --p-radius: 12px;
    --p-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.picasso-platform-root {
    font-family: 'Outfit', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--p-text);
    background-color: var(--p-bg);
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
}

.picasso-platform-root * {
    box-sizing: border-box;
}

/* Header & Language Switcher */
.picasso-header {
    background: var(--p-surface);
    border-bottom: 1px solid var(--p-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.picasso-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.picasso-brand-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--p-navy);
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
}
.picasso-endorsement {
    font-size: 11px;
    font-weight: 500;
    color: var(--p-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.picasso-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lang-switcher {
    display: flex;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 3px;
}
.lang-btn {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--p-text-muted);
    transition: all 0.2s;
}
.lang-btn.active {
    background: var(--p-navy);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* Hero Section */
.picasso-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 70px 24px 60px;
    text-align: center;
}
.picasso-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}
.picasso-hero-headline {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    color: #f8fafc;
}
.picasso-hero-subhead {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #cbd5e1;
    margin-bottom: 32px;
    font-weight: 300;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.btn-p-primary {
    background: var(--p-accent);
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--p-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    border: none;
    cursor: pointer;
}
.btn-p-primary:hover {
    background: var(--p-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}
.btn-p-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--p-radius);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}
.btn-p-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Pricing Bar Banner */
.picasso-price-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--p-border);
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 14px;
}
.price-tag {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-tag strong {
    font-size: 20px;
    color: var(--p-navy);
}
.delivery-badge {
    color: #059669;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

/* Container */
.picasso-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
}

/* Section Titles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--p-navy);
    margin-bottom: 10px;
}
.section-desc {
    color: var(--p-text-muted);
    font-size: 15px;
}

/* Curated Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}
.gallery-card {
    background: var(--p-surface);
    border-radius: var(--p-radius);
    overflow: hidden;
    box-shadow: var(--p-shadow);
    border: 1px solid var(--p-border);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12);
}
.gallery-thumb {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #1e293b;
}
.gallery-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gallery-artwork-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--p-navy);
    margin-bottom: 8px;
}
.gallery-artwork-desc {
    font-size: 14px;
    color: var(--p-text-muted);
    margin-bottom: 18px;
    flex: 1;
}
.gallery-card-btn {
    align-self: flex-start;
    padding: 10px 20px;
    background: #f1f5f9;
    color: var(--p-navy);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--p-border);
    transition: all 0.2s;
    cursor: pointer;
}
.gallery-card-btn:hover {
    background: var(--p-navy);
    color: #ffffff;
}

/* Designer Workspace */
.designer-box {
    background: var(--p-surface);
    border-radius: var(--p-radius);
    box-shadow: var(--p-shadow);
    border: 1px solid var(--p-border);
    padding: 32px;
    margin-bottom: 60px;
}
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--p-radius);
    padding: 40px 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 30px;
}
.upload-dropzone:hover, .upload-dropzone.drag-over {
    border-color: var(--p-accent);
    background: #fffbeb;
}
.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.upload-dropzone strong {
    display: block;
    font-size: 16px;
    color: var(--p-navy);
    margin-bottom: 6px;
}
.upload-dropzone span {
    font-size: 13px;
    color: var(--p-text-muted);
}

/* Dual Canvas Preview Grid */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .workspace-grid { grid-template-columns: 1fr; }
}

.canvas-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.canvas-panel-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.panel-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--p-navy);
}

.canvas-viewport {
    width: 100%;
    max-width: 480px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}
.canvas-viewport canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Controls under crop canvas */
.crop-controls {
    width: 100%;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--p-text-muted);
}
.crop-controls input[type="range"] {
    flex: 1;
}

/* View Switcher Toggle Buttons */
.view-toggle-group {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}
.view-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--p-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.view-btn.active {
    background: #ffffff;
    color: var(--p-navy);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Processing spinner */
.processing-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
    font-weight: 600;
    color: var(--p-navy);
    gap: 10px;
}

/* Palette Swatches List */
.palette-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.palette-swatch-item {
    background: #f8fafc;
    border: 1px solid var(--p-border);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.swatch-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.swatch-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.swatch-name {
    font-size: 12px;
    color: var(--p-navy);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.swatch-code {
    font-size: 10px;
    color: var(--p-text-muted);
}

/* Approval Card & Checkout CTA */
.approval-card {
    margin-top: 32px;
    background: #f1f5f9;
    border-radius: var(--p-radius);
    padding: 24px;
    border: 1px solid var(--p-border);
}
.approval-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--p-navy);
    font-weight: 500;
}
.approval-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--p-accent);
}

.checkout-action-bar {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.checkout-price-summary {
    display: flex;
    flex-direction: column;
}
.checkout-total-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--p-navy);
}
.checkout-delivery-note {
    font-size: 12px;
    color: var(--p-text-muted);
}

/* Kit Contents Grid */
.kit-contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.kit-content-card {
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 24px;
    box-shadow: var(--p-shadow);
}
.kit-content-icon {
    font-size: 30px;
    margin-bottom: 12px;
}
.kit-content-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--p-navy);
    margin-bottom: 6px;
}
.kit-content-desc {
    font-size: 13px;
    color: var(--p-text-muted);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto 60px;
}
.faq-item {
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    margin-bottom: 14px;
    padding: 20px 24px;
}
.faq-q {
    font-size: 16px;
    font-weight: 700;
    color: var(--p-navy);
    margin-bottom: 8px;
}
.faq-a {
    font-size: 14px;
    color: var(--p-text);
}

/* Contact / Enquiry Form */
.enquiry-box {
    max-width: 700px;
    margin: 0 auto 60px;
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 32px;
    box-shadow: var(--p-shadow);
}
.form-row {
    margin-bottom: 18px;
}
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--p-navy);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--p-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}
.form-control:focus {
    border-color: var(--p-accent);
}
.enquiry-success-alert {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Order Lookup Card */
.order-lookup-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: var(--p-radius);
    padding: 36px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.order-lookup-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.order-lookup-box p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
}
.order-lookup-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.order-lookup-form input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    min-width: 220px;
}

/* Footer & Policies */
.picasso-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 24px 30px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    text-align: center;
}
.footer-policies {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.footer-policies a {
    color: #cbd5e1;
    text-decoration: none;
}
.footer-policies a:hover {
    color: var(--p-accent);
}

/* Floating WhatsApp Button */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s;
}
.whatsapp-floating-btn:hover {
    transform: scale(1.1);
}
.whatsapp-floating-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Color Preset Buttons */
.color-preset-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.color-preset-btn:hover {
    border-color: #0f172a;
}
.color-preset-btn.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}
