html,

body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', Arial, sans-serif !important;
    font-family: 'Open Sans', sans-serif;
    background: #f4f6f9;
    color: #07152f;
}

.designer-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.store-header {
    height: 72px;
    min-height: 72px;
    background: #fff;
    display: grid;
    grid-template-columns: 90px 250px 1fr 300px;
    align-items: center;
    gap: 18px;
    padding: 0 28px;
    border-top: 6px solid #a0144f;
    border-bottom: 1px solid #e5e7eb;
}

.back-link {
    color: #07152f;
    font-weight: 600;
    text-decoration: none;
}

.store-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-mark {
    color: #00aa7a;
    margin-right: 8px;
}

.store-search {
    justify-self: end;
    width: 360px;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.store-search input {
    flex: 1;
    border: 0;
    padding: 0 15px;
    outline: none;
}

.store-search button {
    width: 48px;
    border: 0;
    background: #fff;
}

.store-product {
    display: none;
}

/* BLACK NAV */
.store-nav {
    height: 52px;
    min-height: 52px;
    background: #212529;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
}

.category-btn {
    width: 260px;
    height: 52px;
    border: 0;
    background: #00aa7a;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
}

.offer-btn {
    margin-left: auto;
    margin-right: 30px;
    background: #f21f45;
    color: #fff;
    border: 0;
    padding: 11px 22px;
    border-radius: 4px;
    font-weight: 800;
}

/* MAIN LAYOUT */
.designer-workspace {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 76px 250px 1fr;
    overflow: hidden;
}

/* DARK TOOLBAR */
.tool-sidebar {
    background: #212529;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tool-item,
.tool-bottom button {
    height: 72px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.tool-item strong,
.tool-bottom strong {
    display: block;
    font-size: 17px;
    line-height: 1;
}

.tool-item span,
.tool-bottom span {
    display: block;
    margin-top: 7px;
    font-size: 11px;
}

/* .tool-item.active {
    background: #00aa7a;
} */

.tool-bottom {
    margin-top: auto;
}

/* OPTIONS PANEL */
.options-panel {
    position: relative;
    width: 250px;
    background: #fff;
    border-right: 1px solid #dce3ec;
    box-shadow: 5px 0 18px rgba(15, 23, 42, .08);
    transition: width .25s ease;
    overflow: visible;
}

.options-panel.collapsed {
    width: 0;
}

.options-panel.collapsed .option-panel {
    display: none;
}

.collapse-btn {
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 52px;
    border: 0;
    background: #111827;
    color: #fff;
    border-radius: 0 8px 8px 0;
    z-index: 20;
    cursor: pointer;
}

.option-panel {
    display: none;
    height: 100%;
    padding: 18px;
    box-sizing: border-box;
    overflow-y: auto;
}

.option-panel.active {
    display: block;
}

.panel-title {
    height: 44px;
    margin: -18px -18px 18px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title h3 {
    margin: 0;
    font-size: 15px;
}

.close-panel {
    border: 0;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

label {
    display: block;
    margin: 14px 0 7px;
    font-size: 12px;
    font-weight: 800;
}

textarea,
input,
select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd5df;
    border-radius: 5px;
    padding: 10px 12px;
    outline: none;
    background: #fff;
}

textarea {
    height: 70px;
    resize: none;
}

input[type="color"] {
    height: 38px;
    padding: 3px;
}

.button-group,
.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.button-group button,
.normal-btn {
    border: 1px solid #dce3ec;
    background: #f8fafc;
    padding: 10px;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
}

.green-btn {
    background: #00aa7a !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 5px;
    font-weight: 900;
    padding: 12px 18px;
}

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
    border: 0;
    border-radius: 5px;
    padding: 11px;
    font-weight: 800;
}

.full-btn {
    width: 100%;
    margin-top: 12px;
}

/* CENTER */
.editor-main {
    min-width: 0;
    height: 100%;
    background: #f5f8fc;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.editor-toolbar {
    height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 18px;
}

.left-actions,
.mode-toggle,
.right-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.right-actions {
    justify-content: flex-end;
}

.editor-toolbar button,
.mode-btn {
    height: 42px;
    border: 1px solid #d5dee9;
    background: #fff;
    padding: 0 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

.mode-btn.active {
    color: #00aa7a;
    border-color: #00aa7a;
    font-weight: 900;
}

/* CANVAS AREA */
.canvas-stage {
    height: calc(100% - 66px);
    background: #fff;
    border: 1px solid #dce3ec;
    overflow: auto;
    position: relative;
}

.editor-panel {
    display: none;
    min-width: 100%;
    min-height: 100%;
}

.editor-panel.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-container {
    margin: auto !important;
}

#fabricCanvas {
    background-color: #fff;
    background-image:
        linear-gradient(#edf0f4 1px, transparent 1px),
        linear-gradient(90deg, #edf0f4 1px, transparent 1px);
    background-size: 40px 40px;
}

#threeCanvas {
    width: 100%;
    height: 100%;
}

.layer-list {
    display: grid;
    gap: 8px;
}

.layer-list button {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 11px;
    text-align: left;
    border-radius: 5px;
    font-weight: 800;
}
#viewer3dPanel {
    width: 100%;
    height: 100%;
    display: none;
}

#viewer3dPanel.active {
    display: flex !important;
}

#threeCanvas {
    width: 100%;
    height: 100%;
    min-height: 650px;
    background: #eef3f9;
}

#threeCanvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.logo-search {
    margin-bottom: 14px;
}

.logo-search input {
    width: 100%;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.logo-item {
    height: 110px;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: .2s ease;
    padding: 10px;
}

.logo-item:hover {
    border-color: #00aa7a;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.toolbar-btn.delete-btn {
    color: #ef4444;
}

.toolbar-btn.delete-btn:hover {
    background: #ef4444;
    color: #fff;
}
.word-art-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.word-art-item {
    height: 54px;
    border: 1px solid #d5dee9;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    transition: .2s ease;
}

.word-art-item:hover,
.word-art-item.active {
    border-color: #00aa7a;
    background: #ecfdf5;
    color: #00aa7a;
}

.word-art-item span {
    display: block;
    pointer-events: none;
}

.word-art.classic {
    color: #111827;
}

.word-art.outline {
    color: #fff;
    -webkit-text-stroke: 1px #111827;
}

.word-art.shadow {
    color: #2563eb;
    text-shadow: 2px 2px 0 #cbd5e1;
}

.word-art.sports {
    color: #b91c1c;
    -webkit-text-stroke: 1px #111827;
}

.word-art.arc {
    color: #1d4ed8;
    letter-spacing: 2px;
}

.word-art.bold3d {
    color: #00aa7a;
    text-shadow: 2px 2px 0 #07152f;
}
.option-panel {
    height: calc(100vh);
    overflow-y: auto;
    overflow-x: hidden;
}
