﻿@import url('fonts.css');

:root {
    color-scheme: light;
    --sage-green: #1b4d3e;
    --sage-dark: #113329;
    --sage-light: #fbf9f5;
    --gold: #d4af37;
    --gold-hover: #b59228;
    --ink: #1c2826;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #fcfbfa;
    --surface: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(27, 77, 62, 0.05);
    --shadow-md: 0 12px 28px -4px rgba(27, 77, 62, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(27, 77, 62, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

/* Site Header */
.site-header {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(24px, 5vw, 64px);
    height: 86px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(27, 77, 62, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.3) 50%, transparent 100%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover {
    transform: scale(1.02);
}

.brand-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--gold) 100%);
    border-radius: 12px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
}

.brand-mark::after {
    content: 'NŞ';
    color: white;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
}

.brand-logo {
    max-height: 65px;
    max-width: 280px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--sage-green);
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.brand-sub {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0 10%, transparent 12%),
                linear-gradient(135deg, var(--gold), var(--sage-green));
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .2), 0 4px 8px rgba(27, 77, 62, 0.15);
    flex-shrink: 0;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.top-actions a {
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.top-actions a:hover {
    color: var(--sage-green);
    background: rgba(27, 77, 62, 0.06);
    transform: translateY(-1px);
}

.btn-header-admin {
    border: 1.5px solid var(--sage-green) !important;
    color: var(--sage-green) !important;
    padding: 8px 18px !important;
    border-radius: 24px !important;
    font-size: 12px;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease !important;
    background: transparent;
}

.btn-header-admin:hover {
    background-color: var(--sage-green) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.25);
    transform: translateY(-2px) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 110;
}

.hamburger:hover {
    background: rgba(27, 77, 62, 0.08);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--sage-green);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 16px;
        height: 64px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-logo {
        height: 36px;
    }

    .hamburger {
        display: flex;
    }

    .top-actions {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        background: rgba(251, 249, 245, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        overflow-y: auto;
    }

    .top-actions.is-open {
        transform: translateX(0);
    }

    .top-actions a {
        padding: 16px 20px;
        font-size: 16px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .top-actions a:last-child {
        border-bottom: none;
        margin-top: 12px;
        text-align: center;
    }

    .btn-header-admin {
        border-radius: 12px !important;
        text-align: center;
        padding: 14px 20px !important;
    }
}

/* Hero Section */
.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    min-height: 480px;
    padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
    background: linear-gradient(115deg, rgba(27, 77, 62, 0.08) 0%, transparent 60%),
                linear-gradient(15deg, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0;
    letter-spacing: -0.02em;
}

h1 {
    max-width: 760px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 700;
    color: var(--sage-green);
    margin-bottom: 16px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 4vw, 36px);
    color: var(--sage-green);
}

h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sage-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.intro-copy {
    max-width: 580px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.intro-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(244, 239, 231, 0.8) 100%);
    box-shadow: var(--shadow-md);
}

/* Base Spherical Decorative Beads (pure CSS, no image) */
.intro-preview span,
.slot-filled {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--stone);
    border: 1px solid rgba(0, 0, 0, .25);
    position: relative;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.6),
                inset 3px 3px 5px rgba(255, 255, 255, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Container for actual Natural Stone images (clears colored halos) */
.stone-dot {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Light glare reflection overlay for pure CSS decorative beads */
.intro-preview span::after,
.slot-filled::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* Very subtle highlight glare overlay for loaded realistic stone beads */
.bead-glare {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 25%;
    height: 25%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 80%);
    pointer-events: none;
    z-index: 5;
}

.stone-dot {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    background: transparent;
}

.stone-dot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.product-band,
.designer-shell {
    padding: 15px clamp(18px, 4vw, 56px);
}

.product-band {
    background-color: var(--sage-light);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

/* Product Selection Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    display: grid;
    grid-template-rows: 150px 1fr auto;
    min-height: 300px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.product-card.is-active {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.12), var(--shadow-md);
}

.product-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(27, 77, 62, 0.05)), #faf7f2;
}

.product-visual span {
    width: 18px;
    height: 18px;
    margin-left: -3px;
    border-radius: 50%;
    background-color: var(--stone);
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.6),
                inset 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.product-visual span::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
}

.product-thumb-tesbih .product-visual {
    flex-wrap: wrap;
    padding: 30px 50px;
}

.product-thumb-roleks-kesim-bileklik .product-visual span,
.product-thumb-kare-kesim-obsidyen .product-visual span {
    border-radius: 5px;
}

.product-body {
    padding: 20px;
}

.product-body strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--ink);
    font-weight: 700;
}

.product-body span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.product-card .card-action {
    padding: 14px 20px;
    color: var(--sage-green);
    font-weight: 700;
    border-top: 1px solid var(--line);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
    transition: background 0.2s;
}

.product-card:hover .card-action {
    background-color: var(--sage-light);
}

/* Designer Layout */
.designer-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(280px, 340px);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .designer-layout {
        grid-template-columns: 1fr;
    }
    .panel {
        position: static !important;
        max-height: none !important;
    }
}

.panel,
.workspace {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.panel {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stones-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for scrolling flex children */
}

.stone-library {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Panel Scrollbar for sleek look */
.panel::-webkit-scrollbar,
.stone-library::-webkit-scrollbar {
    width: 6px;
}
.panel::-webkit-scrollbar-track,
.stone-library::-webkit-scrollbar-track {
    background: transparent;
}
.panel::-webkit-scrollbar-thumb,
.stone-library::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}
.panel::-webkit-scrollbar-thumb:hover,
.stone-library::-webkit-scrollbar-thumb:hover {
    background: var(--sage-green);
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.choice,
.swatch-choice {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s;
}

.choice:hover,
.swatch-choice:hover {
    border-color: var(--sage-green);
    background-color: var(--sage-light);
}

.choice.is-selected,
.swatch-choice.is-selected {
    color: #fff;
    background: var(--sage-green);
    border-color: var(--sage-green);
}

.swatch-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .2);
    background-color: var(--swatch);
}

/* Healing Stone Benefits Tabs */
.benefit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px; 
    margin-bottom: 16px;
}

.benefit-tab {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 14px;
    background-color: #f1f5f9;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.benefit-tab:hover {
    background-color: var(--sage-light);
    color: var(--sage-green);
}

.benefit-tab.is-active {
    background-color: var(--sage-green);
    color: white;
    border-color: var(--sage-green);
}

/* Natural Stones Section */
.stone-search {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stone-search input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.stone-search input:focus {
    border-color: var(--sage-green);
}

.stone-list {
    display: flex;
    flex-direction: column;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: #fafbfc;
}

.stone-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.stone-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.stone-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    cursor: grab;
    transition: background-color 0.2s;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.stone-item > * {
    pointer-events: none;
}

.stone-item:last-child {
    border-bottom: 0;
}

.stone-item:hover {
    background-color: var(--sage-light);
}

.stone-item.is-selected {
    box-shadow: inset 4px 0 0 var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.stone-item:active {
    cursor: grabbing;
}

.stone-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.stone-copy strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.stone-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stone-item .stone-dot {
    width: 44px;
    height: 44px;
    justify-self: end;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.stone-dot::after {
    top: 4px;
    left: 4px;
    width: 11px;
    height: 11px;
}

/* Interactive Floating Info Tooltip */
.stone-info-card {
    background: var(--ink);
    color: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    max-width: 240px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #374151;
    z-index: 1000;
    pointer-events: none;
    position: fixed;
    display: none;
    animation: fadeIn 0.15s ease-out;
}

.stone-info-card h4 {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.stone-info-card .chakra-badge {
    display: inline-block;
    background-color: var(--sage-green);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* Workspace Canvas Area */
.workspace {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toolbar-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 6px;
}

.icon-button:hover {
    border-color: var(--sage-green);
    background-color: var(--sage-light);
    color: var(--sage-green);
}

.slot-counter {
    background-color: var(--sage-light);
    color: var(--sage-green);
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(27, 77, 62, 0.08);
}

/* Model Tab Bar (matching osmanlidogaltas.com top nav) */
.model-nav-bar {
    margin-bottom: 20px;
    background: #1b4d3e;
    border-radius: 8px;
    padding: 6px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.model-nav-tabs {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.model-tab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.model-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.model-tab.is-active {
    background: #fff;
    color: var(--sage-green);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Warm off-white canvas matching osmanlidogaltas.com */
.design-board {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: visible;
    border-radius: 12px;
    background: #faf8f5;
    border: 1px solid #e5e0d8;
    box-shadow: var(--shadow-sm);
    min-height: 0;
}

.design-board.design-kolye,
.design-board.design-tesbih {
    aspect-ratio: 1 / 1;
}

.design-board::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background-image: radial-gradient(rgba(27, 77, 62, 0.02) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* SVG canvas overlay */
.board-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}


/* 3D Pearl Sphere Default Slot State (matching osmanlidogaltas.com) */
.slot {
    position: absolute;
    display: grid;
    place-items: center;
    left: var(--x);
    top: var(--y);
    z-index: 4;
    width: var(--s);
    aspect-ratio: 1;          /* height = width always â†’ perfect sphere */
    padding: 0;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
    border: 1.5px solid rgba(200, 190, 170, 0.45);
    border-radius: 50%;
    background: radial-gradient(
        circle at 32% 28%,
        #ffffff        0%,
        #f5ede0       22%,
        #dccfb4       52%,
        #bfac8e       78%,
        #9e8f77      100%
    );
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22),
        inset -4px -4px 10px rgba(0, 0, 0, 0.18),
        inset 3px  3px  7px rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s;
}

.slot:hover {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.18);
    z-index: 20;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30), 0 0 0 3px var(--gold), inset -4px -4px 10px rgba(0, 0, 0, 0.18), inset 3px 3px 7px rgba(255,255,255,0.55);
}

/* Custom stone populated slot */
.slot.is-filled {
    border: none;
    background: transparent;
    box-shadow: none;
}

.slot:not(.square-bead) img {
    border-radius: 50%;
}

.slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.32));
}

.slot.is-over {
    border-color: var(--gold);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.25);
}

.slot.is-active-slot {
    border-color: #3b82f6; /* Blue highlight */
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.5), inset 0 0 10px rgba(59, 130, 246, 0.5);
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.2);
    z-index: 30;
}
.slot.is-filled.is-active-slot img {
    border: 3px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

/* Roleks Kesim Tile Model (Image 1) */
.slot.roleks-tile img { border-radius: 22% !important; }
.slot.roleks-tile {
    width: var(--s);
    aspect-ratio: 0.72; /* taller than wide tile like Image 1 */
    border-radius: 22% !important;
    overflow: hidden !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
}

.slot.roleks-tile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 22% !important;
}

.slot.roleks-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22%;
    background: 
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.25) 100%);
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.25), inset 2px 2px 4px rgba(255, 255, 255, 0.45);
    pointer-events: none;
}


/* Curved thread SVG under beads */
.thread-svg {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgba(27, 77, 62, 0.24);
    stroke-width: 0.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-fixture {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* Decorative fixtures for bracelet ends and tassels */
.design-makrome-bileklik .product-fixture::before {
    content: "";
    position: absolute;
    left: 40%;
    top: 32%;
    width: 20%;
    height: 28px;
    border-radius: 8px;
    background: repeating-linear-gradient(90deg, #121817 0 5px, #263331 6px 10px), #171717;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.design-makrome-bileklik .product-fixture::after {
    content: "";
    position: absolute;
    left: 35%;
    top: 34%;
    width: 30%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0 12%, #171717 13% 28%, transparent 29% 71%, #171717 72% 87%, transparent 88%);
}

.design-kare-kesim-obsidyen .product-fixture::before,
.design-roleks-kesim-bileklik .product-fixture::before {
    content: "";
    position: absolute;
    left: 41%;
    top: 33%;
    width: 18%;
    height: 10px;
    border-radius: 999px;
    background: rgba(27, 77, 62, 0.85);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.design-kolye .product-fixture::before,
.design-elastik-misineli .product-fixture::before {
    content: "";
    position: absolute;
    left: 47%;
    top: 17%;
    width: 6%;
    height: 12px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, #b59228 0 3px, #e8d89a 4px 6px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Pattern Wizard Panel */
.pattern-wizard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.btn-pattern {
    background-color: var(--sage-light);
    color: var(--sage-green);
    border: 1px solid rgba(27, 77, 62, 0.12);
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-pattern:hover {
    background-color: var(--sage-green);
    color: white;
    border-color: var(--sage-green);
}

/* Right Sidebar: Order Checkout Summary */
.cart-panel {
    box-shadow: var(--shadow-sm);
}

.summary-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 20px;
}

.summary-lines div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.summary-lines strong {
    color: var(--ink);
    font-weight: 700;
}

.summary-lines .total {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 18px;
}

.summary-lines .total strong {
    color: var(--sage-green);
    font-size: 20px;
    font-weight: 800;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.order-form input,
.order-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.order-form input:focus,
.order-form textarea:focus {
    border-color: var(--sage-green);
}

.primary-button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--sage-green);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-button:hover {
    background-color: var(--sage-dark);
}

.primary-button:active {
    transform: scale(0.98);
}

.form-message {
    min-height: 22px;
    color: var(--sage-green);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.form-message .wa-fallback-link {
    margin-left: 6px;
    color: #0b6b4f;
    text-decoration: underline;
}

.loading-row {
    padding: 30px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
    .designer-layout {
        grid-template-columns: 1fr 1fr;
    }

    
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* --------------------------------------------------------------------------
   Kişisel Taş & Çakra Analiz Sihirbazı Styles
   -------------------------------------------------------------------------- */
.analysis-promo-card {
    background: linear-gradient(135deg, #1b4d3e 0%, #0d2e24 100%);
    color: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 10px 25px rgba(27, 77, 62, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.analysis-promo-card .promo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gold);
    color: #1b4d3e;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.analysis-promo-card .promo-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 6px;
}

.analysis-promo-card p {
    font-size: 12px;
    color: #d1fae5;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.btn-analysis-promo {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), #bda230);
    color: #1b4d3e;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-analysis-promo:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-analysis-magic {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-analysis-magic:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.45);
}

/* Modal Overlay Backdrop */
.analysis-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.analysis-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.analysis-modal-card {
    background: white;
    width: 100%;
    max-width: 640px;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
    border: 1px solid rgba(212, 175, 55, 0.28);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.analysis-modal-backdrop.is-open .analysis-modal-card {
    transform: scale(1);
}

.analysis-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: #f8faf8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: grid;
    place-items: center;
    z-index: 10;
}

.analysis-close-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

.analysis-header {
    background: linear-gradient(145deg, #1b4d3e 0%, #143d32 55%, #0f2f27 100%);
    color: white;
    padding: 26px 32px 22px;
    text-align: center;
}

.analysis-header .analysis-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.analysis-header .analysis-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin: 0 auto 4px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.analysis-header h2 {
    font-family: 'Fraunces', 'Plus Jakarta Sans', serif;
    font-optical-sizing: auto;
    margin: 0 0 8px 0;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #f6e7a8;
}

.analysis-header p {
    margin: 0 auto;
    max-width: 36em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(232, 244, 238, 0.88);
}

.analysis-steps-body {
    padding: 24px 28px 22px;
    max-height: min(72vh, 640px);
    overflow-y: auto;
}

.analysis-step-page {
    display: none;
}

.analysis-step-page.is-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.analysis-step-page h3 {
    margin: 0 0 8px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1f3d34;
    text-align: center;
}

.analysis-step-help {
    margin: 0 auto 18px;
    max-width: 34em;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.analysis-date-wrap {
    display: grid;
    place-items: center;
    padding: 18px 0 8px;
}

.analysis-date-field {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    text-align: left;
}

.analysis-date-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7c76;
}

.analysis-date-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d5e0db;
    border-radius: 10px;
    background: #fbfcfb;
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.analysis-date-input:hover {
    border-color: #b7c9c1;
    background: #fff;
}

.analysis-date-input:focus {
    outline: none;
    border-color: var(--sage-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.12);
}

/* Zodiac Grid */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.zodiac-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.zodiac-item:hover {
    background: #f0fdf4;
    border-color: #1b4d3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 77, 62, 0.12);
}

.zodiac-item.active {
    background: #f1f7f4;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 2px rgba(27, 77, 62, 0.14);
}

.zodiac-item .z-icon {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1;
}

.zodiac-item strong {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.zodiac-item small {
    font-size: 9px;
    color: #64748b;
    margin-top: 2px;
}

/* Chakra Grid */
.chakra-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chakra-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.chakra-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #ccc;
    border-radius: 14px 0 0 14px;
    transition: width 0.2s ease;
}

.chakra-item:hover::before, .chakra-item.active::before {
    width: 8px;
}

.chakra-item.root::before { background: #ef4444; }
.chakra-item.sacral::before { background: #f97316; }
.chakra-item.solar::before { background: #eab308; }
.chakra-item.heart::before { background: #22c55e; }
.chakra-item.throat::before { background: #3b82f6; }
.chakra-item.third-eye::before { background: #8b5cf6; }
.chakra-item.crown::before { background: #d946ef; }

.chakra-item:hover, .chakra-item.active {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chakra-item .c-icon {
    font-size: 30px;
    flex-shrink: 0;
    margin-left: 4px;
}

.chakra-item .c-text strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 2px;
}

.chakra-item .c-text p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* State Grid */
.state-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.state-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.state-item:hover, .state-item.active {
    background: #f0fdf4;
    border-color: #1b4d3e;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(27, 77, 62, 0.12);
}

.state-item .s-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.state-item .s-text strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 2px;
}

.state-item .s-text p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Analysis Nav Footer */
.analysis-nav-footer {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e5ece8;
}

.btn-nav-prev,
.btn-nav-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    background: #1b4d3e;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 9px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-nav-skip {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #d0dcd6;
    border-radius: 9px;
    background: #ffffff;
    color: #52645f;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn-nav-skip:hover,
.btn-nav-skip:focus-visible {
    border-color: var(--sage-green);
    background: var(--sage-light);
    color: var(--sage-green);
}

.btn-nav-prev {
    background: #eef2f0;
    color: #3f524c;
}

.btn-nav-prev:hover { background: #e2e8e5; }

.btn-nav-next:hover:not(:disabled) {
    background: #133a2e;
    box-shadow: 0 6px 14px rgba(19, 58, 46, 0.22);
}

.btn-nav-next:disabled {
    background: #c5d0cb;
    color: #f8faf8;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.analysis-progress {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.analysis-progress .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5ded9;
    transition: background 0.25s, transform 0.25s;
}

.analysis-progress .dot.active {
    background: var(--gold);
    transform: scale(1.15);
}

/* Intention Grid */
.intention-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intention-item, .chakra-item, .state-item, .usage-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.intention-item:hover, .chakra-item:hover, .state-item:hover, .usage-item:hover,
.intention-item.active, .chakra-item.active, .state-item.active, .usage-item.active {
    background: #f0fdf4;
    border-color: #1b4d3e;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(27, 77, 62, 0.12);
}

.intention-item .i-icon, .chakra-item .i-icon, .state-item .i-icon, .usage-item .i-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.intention-item .i-text, .chakra-item .i-text, .state-item .i-text, .usage-item .i-text strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 2px;
}

.intention-item .i-text, .chakra-item .i-text, .state-item .i-text, .usage-item .i-text p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Result Recipe Box */
.analysis-result-box {
    text-align: center;
    background: linear-gradient(135deg, #fbf9f5 0%, #f0fdf4 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 16px;
    padding: 28px 24px;
}

.result-badge {
    display: inline-block;
    background: var(--gold);
    color: #1b4d3e;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.analysis-result-box h4 {
    font-family: 'Fraunces', 'Plus Jakarta Sans', serif;
    font-optical-sizing: auto;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b4d3e;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.analysis-result-box p {
    font-size: 13px;
    color: #475569;
    margin: 0 0 24px 0;
}

.recipe-stones-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.recipe-stone-card {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px 18px;
    width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-stone-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    background: var(--stone);
}

.recipe-stone-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-stone-card strong {
    font-size: 13px;
    color: #0f172a;
    text-align: center;
    margin-bottom: 4px;
}

.recipe-stone-card small {
    font-size: 10px;
    color: #166534;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.recipe-match-reasons {
    margin: 7px 0 0;
    color: #52645f;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

.analysis-disclaimer {
    margin: 18px auto 0;
    max-width: 620px;
    color: #667570;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.analysis-disclaimer a {
    color: var(--sage-green);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.recipe-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-apply-recipe {
    background: linear-gradient(135deg, #1b4d3e, #123329);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.35);
}

.btn-apply-recipe:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(27, 77, 62, 0.5);
}

.btn-retry-analysis {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-retry-analysis:hover {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 20px;
        align-items: center;
        text-align: center;
    }
    
    .top-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
        margin-top: 4px;
    }

    .brand-name {
        font-size: 20px;
    }

    .intro {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 32px 20px;
        gap: 32px;
        text-align: center;
    }

    .intro h1 {
        font-size: 32px;
    }

    .intro-copy {
        margin: 0 auto 24px;
    }

    .intro-preview {
        flex-wrap: wrap;
        padding: 24px;
        min-height: auto;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .designer-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        max-width: 100vw;
        align-items: stretch;
    }

    
    
    .panel-section {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
        padding: 16px;
        order: 4;
        width: 100%;
    }

    .stones-section {
        order: 2;
        border: none;
        position: relative;
        z-index: 10;
        background: var(--surface);
        box-shadow: 0 -10px 30px rgba(27, 77, 62, 0.08);
        border-radius: 24px 24px 0 0;
        padding-top: 24px;
        margin-top: -10px;
    }
    
    .stones-header-mobile {
        text-align: center;
        margin-bottom: 12px;
    }
    
    .stones-header-mobile h3 {
        font-size: 15px;
        color: #0f172a;
        margin: 0 0 4px 0;
    }
    
    .drag-hint {
        color: #ef4444;
        font-size: 11px;
        margin: 0;
    }

    .workspace {
        min-height: auto;
        padding: 0;
        min-width: 0;
        width: 100%;
        order: 1;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow-x: hidden;
    }

    .cart-panel {
        order: 5;
    }
    
    .stone-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        max-height: none;
        padding: 4px;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        border: none;
    }

    .stone-item {
        flex: 0 0 100px; /* fixed width for carousel */
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        border: none;
        padding: 4px;
        background: transparent;
        touch-action: pan-x; /* Allow horizontal scroll natively */
    }
    
    .stone-item .stone-copy strong {
        font-size: 11px;
    }
    
    .stone-item .stone-copy small {
        font-size: 9px;
    }
    
    .stone-item .stone-dot {
        width: 48px;
        height: 48px;
    }
    
    .board-scroll-area {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Legacy stretch caused horizontal overflow; keep board within viewport */
    .design-board {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: relative;
        left: auto !important;
        transform: none !important;
        margin-top: 0;
        margin-bottom: 0 !important;
    }
    
    .design-board.design-tesbih {
        margin-bottom: 0 !important;
    }
    
    .workspace-toolbar {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .toolbar-group {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .icon-button {
        flex: 1 1 auto;
        padding: 8px 10px;
        font-size: 11px;
    }

    .btn-analysis-magic {
        width: 100%;
        justify-content: center;
    }

    .stone-list {
        max-height: none;
    }

    .benefit-tabs {
        display: none;
    }
    
    .stone-info-card {
        display: none !important;
    }
    
    .stone-search span {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .pattern-wizard-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-modal-card {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }
}

.hero-slider { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slide.active { opacity: 1; z-index: 2; }



.model-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    aspect-ratio: 1 / 1;
}
.model-tab-btn i {
    font-size: 24px;
    color: var(--sage-green);
    opacity: 0.8;
}
.model-tab-btn:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.model-tab-btn.is-active i {
    color: white;
    opacity: 1;
}
.model-tab-btn:hover {
    background: var(--slate-100);
    color: var(--slate-800);
}
.model-tab-btn.is-active {
    background: var(--sage-green, #14532d);
    color: white;
    border-color: var(--sage-green, #14532d);
}

.site-footer {
    background: var(--sage-green);
    color: #f8fafc;
    padding: 26px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.42);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.footer-copy {
    margin: 0;
    color: #dce9e4;
    font-size: 13px;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 16px;
    min-width: 0;
}

.footer-contact .footer-copy {
    flex-basis: 100%;
}

.footer-contact span,
.footer-contact a {
    color: #dce9e4;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-agency {
    display: grid;
    gap: 3px;
    text-align: center;
    font-size: 12px;
    line-height: 1.25;
}

.footer-agency span {
    color: #f8fafc;
}

.footer-agency a {
    color: #f4d35e;
    font-weight: 800;
    transition: color 0.2s ease;
}

.footer-agency a:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .site-footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }
}

/* 2026 visual refresh: presentation only, existing interactions stay intact. */
:root {
    --sage-green: #185846;
    --sage-dark: #103d31;
    --sage-light: #f0f5f2;
    --gold: #c89a32;
    --gold-hover: #a97b1d;
    --ink: #17211f;
    --muted: #687572;
    --line: #dce4e0;
    --paper: #f6f8f7;
    --surface: #ffffff;
    --border-light: var(--line);
    --slate-gray: var(--muted);
    --slate-100: #f1f5f3;
    --slate-600: #53615e;
    --slate-700: #3e4b48;
    --slate-800: #26322f;
    --emerald: var(--sage-green);
    --shadow-sm: 0 1px 2px rgba(18, 56, 45, 0.04), 0 6px 18px rgba(18, 56, 45, 0.05);
    --shadow-md: 0 2px 4px rgba(18, 56, 45, 0.04), 0 16px 38px rgba(18, 56, 45, 0.09);
    --shadow-lg: 0 24px 64px rgba(18, 56, 45, 0.18);
}

html {
    scroll-padding-top: 92px;
}

body {
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.eyebrow,
.brand-name,
.brand-sub,
.option-label,
.order-form label,
.model-tab {
    letter-spacing: 0;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(200, 154, 50, 0.34);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    height: 78px;
    padding: 0 max(24px, calc((100vw - 1480px) / 2));
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(24, 88, 70, 0.12);
    box-shadow: 0 8px 30px rgba(18, 56, 45, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header::after {
    display: none;
}

.brand {
    min-width: 0;
    gap: 12px;
}

.brand:hover {
    transform: none;
}

.brand-logo {
    max-width: 230px;
    max-height: 58px;
    filter: none;
}

.top-actions {
    gap: 4px;
    font-size: 13px;
}

.top-actions a {
    border-radius: 6px;
    padding: 9px 14px;
    color: #42504d;
}

.top-actions a:hover {
    color: var(--sage-green);
    background: var(--sage-light);
    transform: none;
}

.intro {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(620px, calc(100svh - 130px));
    padding: 72px max(28px, calc((100vw - 1400px) / 2));
    overflow: hidden;
    background: #edf2ef;
}

.intro > div:first-child {
    position: relative;
    z-index: 3;
    width: min(590px, 52%);
}

.intro .eyebrow {
    color: var(--sage-green);
    font-size: 11px;
    letter-spacing: 0 !important;
}

.intro h1 {
    max-width: 580px;
    margin: 0 0 18px !important;
    color: #123d32;
    font-size: 56px !important;
    line-height: 1.04 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.intro .intro-copy {
    max-width: 530px;
    margin: 0 0 26px;
    color: #40504c !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

.intro .primary-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 0 !important;
    padding: 0 24px !important;
    border: 1px solid var(--sage-green);
    border-radius: 7px !important;
    box-shadow: 0 10px 24px rgba(24, 88, 70, 0.18);
}

.intro-preview {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    opacity: 0.62;
}

.intro-preview .hero-swiper,
.intro-preview .swiper-wrapper,
.intro-preview .swiper-slide {
    width: 100% !important;
    height: 100% !important;
}

.intro-preview .swiper-slide img {
    object-fit: cover !important;
    object-position: center 58%;
}

.intro-preview .swiper-button-prev,
.intro-preview .swiper-button-next {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(24, 88, 70, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: var(--sage-green) !important;
    text-shadow: none !important;
}

.intro-preview .swiper-button-prev::after,
.intro-preview .swiper-button-next::after {
    font-size: 14px;
    font-weight: 800;
}

.product-band,
.designer-shell {
    padding: 15px max(24px, calc((100vw - 1480px) / 2));
}

.product-band {
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.designer-shell {
    background: #f5f7f6;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 5px 24px;
    margin-bottom: 28px;
}

.section-heading .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--gold-hover);
}

.section-heading h2 {
    grid-column: 1;
    grid-row: 2;
    font-size: 34px;
    line-height: 1.15;
}

.product-band .section-heading [data-open-analysis-modal] {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid rgba(24, 88, 70, 0.22) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: var(--sage-green) !important;
    box-shadow: none !important;
}

.product-band .section-heading [data-open-analysis-modal]:hover {
    background: var(--sage-light) !important;
    border-color: var(--sage-green) !important;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.product-card {
    grid-template-rows: 128px 1fr auto;
    min-height: 264px;
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: none;
    border-color: rgba(200, 154, 50, 0.8);
    box-shadow: var(--shadow-md);
}

.product-card.is-active {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 2px rgba(24, 88, 70, 0.14), var(--shadow-md);
}

.product-visual {
    background: #f1f4f2;
}

.product-visual img {
    transition: transform 0.35s ease;
}

.product-card:hover .product-visual img {
    transform: scale(1.025);
}

.product-body {
    padding: 16px;
}

.product-body strong {
    font-size: 15px;
}

.product-card .card-action {
    min-height: 42px;
    padding: 10px 16px;
    background: #fbfcfb;
    font-size: 12px;
}

.model-tabs-wrapper {
    margin: 0 0 18px !important;
    padding: 12px !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    background: #ffffff;
}

.model-tabs-wrapper > p {
    margin: 0 0 8px !important;
    color: var(--muted) !important;
}

[data-model-tabs] {
    display: flex !important;
    gap: 7px !important;
    overflow-x: auto !important;
    scrollbar-width: thin;
}

.model-tab-btn {
    width: auto;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

.designer-layout {
    grid-template-columns: minmax(270px, 310px) minmax(0, 1fr) minmax(270px, 300px);
    gap: 16px;
}

.panel,
.workspace {
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.panel {
    top: 94px;
    max-height: calc(100vh - 112px);
    padding: 18px;
    gap: 18px;
}

.panel h3 {
    padding-bottom: 9px;
    font-size: 13px;
    color: #27473e;
}

.choice,
.swatch-choice,
.stone-search input,
.order-form input,
.order-form textarea {
    border-radius: 6px;
}

.choice,
.swatch-choice {
    min-height: 36px;
    padding: 7px 12px;
}

.stone-search input,
.order-form input,
.order-form textarea {
    border-color: #d6dfdb;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(16, 61, 49, 0.03);
}

.stone-search input:focus,
.order-form input:focus,
.order-form textarea:focus {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(24, 88, 70, 0.1);
}

.stone-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
    margin-bottom: 10px !important;
    overflow-x: hidden !important;
    overflow-y: visible;
    padding-bottom: 0 !important;
}

.benefit-tab {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #eef2f0;
}

.stone-list {
    max-height: 480px;
    border-radius: 7px;
    background: #ffffff;
}

.stone-item {
    min-height: 64px;
    padding: 9px 10px;
}

.stone-item:hover {
    background: #f3f7f5;
}

.stone-item.is-selected {
    background: #f4f7ee;
    box-shadow: inset 3px 0 0 var(--gold);
}

.stone-item .stone-dot {
    width: 42px;
    height: 42px;
}

.workspace {
    gap: 12px;
    padding: 16px;
}

.pattern-toolbar {
    gap: 6px !important;
    margin: 0 !important;
    padding: 8px !important;
    border-color: var(--line) !important;
    border-radius: 7px !important;
    background: #f5f7f6 !important;
    scrollbar-width: thin;
}

.pattern-toolbar .btn-pattern {
    min-height: 30px;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}

.pattern-toolbar .btn-pattern:hover {
    background: var(--sage-green) !important;
}

.workspace-toolbar {
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

.workspace-toolbar .icon-button {
    min-width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 11px;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.workspace-toolbar [data-open-analysis-modal] {
    background: var(--sage-green) !important;
    color: #ffffff !important;
    border-color: var(--sage-green) !important;
}

.workspace-toolbar [data-fill-empty] {
    background: var(--sage-light) !important;
    color: var(--sage-green) !important;
}

.slot-counter {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 6px;
}

.board-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
}

.board-zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: 34px;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(24, 88, 70, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(18, 56, 45, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.board-zoom-controls button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--sage-green);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.board-zoom-controls button:hover:not(:disabled) {
    border-color: var(--sage-green);
    background: var(--sage-light);
}

.board-zoom-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.board-zoom-controls span {
    display: grid;
    place-items: center;
    min-height: 24px;
    color: #40504c;
    font-size: 9px;
    font-weight: 800;
}

.design-board,
.design-board::after {
    border-radius: 8px;
}

.design-board {
    border-color: #dde3df;
    background: #fbfaf8;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 8px 22px rgba(18, 56, 45, 0.05);
}

.summary-lines {
    gap: 10px;
    margin-top: 0;
}

.summary-lines .total {
    margin-top: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.primary-button {
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(24, 88, 70, 0.14);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(24, 88, 70, 0.2);
}

.analysis-modal-backdrop {
    padding: 18px;
    background: rgba(14, 25, 22, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.analysis-modal-card,
.analysis-result-box,
.recipe-stone-card,
.zodiac-item,
.chakra-item,
.state-item,
.intention-item,
.usage-item {
    border-radius: 8px;
}

.analysis-modal-card {
    box-shadow: var(--shadow-lg);
}

.analysis-header {
    background: var(--sage-green);
}

.site-footer {
    padding: 30px 24px;
    background: #123d32;
    border-top: 3px solid var(--gold);
}

.site-footer-inner {
    width: min(1400px, 100%);
}

@media (max-width: 1120px) {
    .designer-layout {
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    }

    

    .cart-panel {
        grid-column: 1 / -1;
        position: static;
        max-height: none;
    }

    .cart-panel .order-form {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

    .cart-panel .order-form .primary-button,
    .cart-panel .form-message {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 112px;
    }

    .site-header {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        height: 68px;
        min-height: 68px;
        padding: 8px 12px;
        text-align: left;
    }

    .brand-logo {
        width: auto;
        max-width: 132px;
        height: auto;
        max-height: 48px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-sub {
        display: none;
    }

    .top-actions {
        position: static;
        inset: auto;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 2px;
        width: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        transform: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .top-actions a {
        min-width: 0;
        padding: 7px 6px;
        border: 0;
        border-radius: 5px;
        font-size: 10px;
        text-align: center;
        white-space: nowrap;
    }

    .intro {
        min-height: min(540px, calc(100svh - 96px));
        padding: 48px 20px 54px;
        text-align: left;
    }

    .intro > div:first-child {
        width: 100%;
    }

    .intro h1 {
        max-width: 350px;
        font-size: 36px !important;
        line-height: 1.08 !important;
    }

    .intro .intro-copy {
        max-width: 340px;
        margin: 0 0 22px;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .intro-preview {
        min-height: 100% !important;
        opacity: 0.34;
    }

    .intro-preview .swiper-slide img {
        object-position: center 62%;
    }

    .intro-preview .swiper-button-prev,
    .intro-preview .swiper-button-next {
        display: none;
    }

    .product-band,
    .designer-shell {
        padding: 42px 14px;
    }

    .section-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        margin-bottom: 22px;
    }

    .section-heading h2 {
        grid-column: 1;
        grid-row: 2;
        font-size: 27px;
    }

    .product-band .section-heading [data-open-analysis-modal] {
        grid-column: 1;
        grid-row: 3;
        justify-self: stretch;
        margin-top: 12px !important;
    }

    .product-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(230px, 82vw);
        gap: 12px;
        margin: 0 -14px;
        padding: 0 14px 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .product-card {
        min-height: 250px;
        scroll-snap-align: start;
    }

    .model-tabs-wrapper {
        margin-bottom: 12px !important;
        padding: 10px !important;
    }

    [data-model-tabs] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px !important;
        overflow: visible !important;
    }

    .model-tab-btn {
        width: 100%;
        min-height: 38px;
        padding: 7px 8px;
        font-size: 10px;
        white-space: normal;
    }

    .designer-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .workspace {
        position: relative !important;
        top: auto;
        z-index: auto;
        order: 1;
        width: 100%;
        padding: 10px;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
    }

    .options-panel {
        display: flex;
        order: 2;
        width: 100%;
        padding: 14px;
        background: #ffffff;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
    }

    .options-panel > h3:nth-of-type(2) {
        order: -5;
    }

    .options-panel > .stone-search {
        order: -4;
    }

    .options-panel > .stone-filters {
        order: -3;
    }

    .cart-panel {
        order: 3;
        width: 100%;
        padding: 16px;
    }

    .panel-section.stones-section {
        order: -2;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .stones-header-mobile {
        display: none;
    }

    .drag-hint {
        color: var(--muted);
    }

    .stone-filters {
        display: flex !important;
        overflow-x: auto;
    }

    .stone-list {
        gap: 8px;
        padding: 4px 0 8px;
    }

    .stone-item {
        flex: 0 0 94px;
        min-height: 106px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
    }

    .stone-item.is-selected {
        border-color: var(--gold);
        box-shadow: 0 0 0 2px rgba(200, 154, 50, 0.14);
    }

    .stone-item .stone-copy {
        width: 100%;
    }

    .stone-item .stone-copy strong {
        display: -webkit-box;
        overflow: hidden;
        line-height: 1.25;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .stone-item .stone-copy small {
        display: none;
    }

    .stone-item .stone-dot {
        width: 52px;
        height: 52px;
    }

    .pattern-toolbar {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        overflow: visible !important;
    }

    .pattern-toolbar > span {
        grid-column: 1 / -1;
        margin: 0 !important;
    }

    .pattern-toolbar .btn-pattern {
        width: 100%;
        min-width: 0;
        padding-inline: 4px !important;
    }

    .workspace-toolbar {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: repeat(2, 40px);
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        gap: 6px;
        padding: 0;
        overflow: visible;
    }

    .workspace-toolbar .icon-button {
        width: 100%;
        height: 40px;
        min-height: 40px;
        padding: 5px 4px;
        font-size: 9px;
        line-height: 1.2;
        white-space: normal;
        overflow: hidden;
    }

    .workspace-toolbar [data-open-analysis-modal] {
        grid-column: 1 / 8;
        grid-row: 1;
    }

    .workspace-toolbar [data-undo] {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .workspace-toolbar [data-redo] {
        grid-column: 3 / 5;
        grid-row: 2;
    }

    .workspace-toolbar [data-clear-design] {
        grid-column: 5 / 7;
        grid-row: 2;
    }

    .workspace-toolbar [data-fill-empty] {
        grid-column: 7 / 10;
        grid-row: 2;
    }

    .workspace-toolbar [data-randomize] {
        grid-column: 10 / 13;
        grid-row: 2;
    }

    .workspace-toolbar .slot-counter {
        grid-column: 8 / 13;
        grid-row: 1;
        justify-content: center;
        margin: 0;
        min-width: 0;
        height: 40px;
        padding: 4px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
    }

    .design-board {
        left: auto;
        width: 100%;
        min-width: 0;
        margin: 6px auto 0;
        transform: none;
    }

    .design-board.design-tesbih,
    .design-board.design-kolye {
        width: min(100%, 360px);
    }

    .board-zoom-controls {
        top: 8px;
        right: 8px;
        grid-template-columns: 30px;
        padding: 4px;
    }

    .board-zoom-controls button {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .design-board.design-tesbih {
        margin-bottom: 0;
    }

    .cart-panel .order-form {
        display: flex;
    }

    .analysis-modal-backdrop {
        padding: 10px;
    }

    .analysis-modal-card {
        max-height: calc(100svh - 20px);
        border-radius: 8px;
    }

    .analysis-header {
        padding: 22px 44px 18px 20px;
        text-align: left;
    }

    .analysis-steps-body {
        padding: 20px 16px;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .zodiac-item {
        min-width: 0;
        padding: 10px 4px;
    }

    .intention-item,
    .chakra-item,
    .state-item,
    .usage-item {
        padding: 13px 14px;
    }

    .site-footer {
        padding: 26px 18px;
    }
}

@media (max-width: 420px) {
    .site-header {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .brand-logo {
        max-width: 104px;
    }

    .top-actions a {
        padding-inline: 4px;
        font-size: 9px;
    }

    .intro h1 {
        font-size: 33px !important;
    }

    .design-board {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .analysis-nav-footer {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px 8px;
    }

    .analysis-progress {
        justify-self: center;
    }

    .btn-nav-skip {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .recipe-stone-card {
        width: min(100%, 170px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header and checkout refinement */
.site-header {
    min-height: 82px;
    height: 82px;
    padding-inline: max(28px, calc((100vw - 1480px) / 2));
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid rgba(24, 88, 70, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(18, 56, 45, 0.08);
}

.site-header::after {
    display: block;
    bottom: 0;
    height: 2px;
    background: var(--sage-green);
    opacity: 0.9;
}

.brand-logo {
    max-width: 255px;
    max-height: 64px;
}

.top-actions {
    gap: 2px;
    padding: 4px;
    border: 1px solid #dce5e1;
    border-radius: 8px;
    background: #f4f7f5;
}

.top-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 6px;
    color: #40504c;
}

.top-actions a:last-child {
    color: #ffffff;
    background: var(--sage-green);
    box-shadow: 0 5px 12px rgba(24, 88, 70, 0.18);
}

.top-actions a:last-child:hover {
    color: #ffffff;
    background: var(--sage-dark);
}

.top-actions a:not(:last-child):hover,
.top-actions a:not(:last-child):focus-visible {
    color: #ffffff;
    background: var(--sage-green);
    box-shadow: 0 5px 12px rgba(24, 88, 70, 0.16);
}

/* Horizontal hero slider */
.intro {
    min-height: clamp(470px, 58vh, 540px);
    padding-block: 58px;
    background: #f3f6f4;
}

.intro::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: 51%;
    background: rgba(247, 249, 248, 0.92);
    box-shadow: 80px 0 90px rgba(247, 249, 248, 0.92);
    pointer-events: none;
}

.intro-content {
    width: min(560px, 44%) !important;
}

.intro-preview {
    inset: 0 0 0 auto !important;
    width: 68% !important;
    min-height: 100% !important;
    opacity: 1;
    overflow: hidden;
    background: #eef2ef;
}

.intro-preview .hero-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro-preview .swiper-slide {
    overflow: hidden;
    background: #eef2ef;
}

.intro-preview .hero-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
    transform: scale(1.035) translateX(0.5%);
    filter: saturate(0.96) contrast(1.02);
}

.intro-preview .swiper-slide-active .hero-slide-image {
    animation: hero-image-drift 6.4s ease-out both;
}

@keyframes hero-image-drift {
    from {
        transform: scale(1.075) translateX(1.5%);
    }
    to {
        transform: scale(1.025) translateX(0);
    }
}

.intro-preview .swiper-pagination {
    right: 26px !important;
    bottom: 22px !important;
    left: auto !important;
    width: auto !important;
    padding: 5px 7px;
    border: 1px solid rgba(24, 88, 70, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.intro-preview .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 4px !important;
    background: #8b9994;
    opacity: 0.72;
}

.intro-preview .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 4px;
    background: var(--sage-green);
    opacity: 1;
}

.intro-preview .swiper-button-prev,
.intro-preview .swiper-button-next {
    top: auto;
    bottom: 18px;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 8px;
}

.intro-preview .swiper-button-prev {
    right: 118px;
    left: auto;
}

.intro-preview .swiper-button-next {
    right: 72px;
}

.cart-panel {
    gap: 16px;
    scroll-margin-top: 104px;
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.cart-panel-header h3 {
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    color: #183f34;
    font-size: 18px;
    line-height: 1.2;
}

.cart-kicker {
    display: block;
    color: #7a6650;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-status {
    padding: 6px 8px;
    border: 1px solid #cfe0d9;
    border-radius: 6px;
    color: var(--sage-green);
    background: #f1f7f4;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.cart-panel .summary-lines {
    gap: 0;
    margin: 0;
}

.cart-panel .summary-lines > div {
    min-height: 38px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1ef;
}

.cart-panel .summary-lines > div:last-child {
    border-bottom-color: var(--line);
}

.cart-panel .summary-lines .total {
    min-height: 52px;
    margin: 2px 0 0;
    padding: 12px 0;
    border-top: 0;
    font-size: 17px;
}

.cart-panel .summary-lines .total strong {
    font-size: 22px;
}

.order-form {
    align-items: stretch;
    gap: 12px;
}

.order-form-title {
    margin: 0 0 2px;
    color: #27473e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-form label {
    width: 100%;
    gap: 7px;
    color: #60706b;
    font-size: 11px;
}

.order-form input,
.order-form textarea {
    min-height: 44px;
    padding: 11px 12px;
}

.order-form textarea {
    min-height: 92px;
    resize: vertical;
}

.whatsapp-float {
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 148px;
    height: 58px;
    padding: 0 20px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: #1f9d55;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(10, 84, 54, 0.28);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #167d43;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(10, 84, 54, 0.36);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

@media (max-width: 640px) {
    .whatsapp-float {
        left: max(14px, env(safe-area-inset-left));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 58px;
        min-width: 58px;
        padding: 0;
    }

    .whatsapp-float span {
        display: none;
    }
}

.order-form input::placeholder,
.order-form textarea::placeholder {
    color: #9aa6a2;
}

.cart-panel .order-form .primary-button {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
}

@media (max-width: 1120px) {
    .cart-panel .order-form-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 84px;
    }

    .site-header {
        grid-template-columns: minmax(128px, 1fr) auto;
        gap: 8px;
        min-height: 74px;
        height: 74px;
        padding: 7px 12px;
        border-top-width: 2px;
    }

    .brand-logo {
        max-width: 145px;
        max-height: 54px;
    }

    .top-actions {
        gap: 1px;
        padding: 3px;
    }

    .top-actions a {
        min-height: 34px;
        padding: 6px 7px;
        font-size: 10px;
    }

    .intro {
        min-height: min(530px, calc(100svh - 86px));
        padding: 46px 20px 52px;
    }

    .intro::before {
        width: 100%;
        background: rgba(247, 249, 248, 0.66);
        box-shadow: none;
    }

    .intro-content {
        width: 100% !important;
    }

    .intro-preview {
        width: 100% !important;
        opacity: 0.42;
    }

    .intro-preview .hero-slide-image {
        object-position: 58% center;
    }

    .intro-preview .swiper-pagination {
        right: 14px !important;
        bottom: 14px !important;
    }

    .cart-panel {
        padding: 18px;
        gap: 14px;
        scroll-margin-top: 90px;
    }

    .cart-panel .order-form {
        display: flex;
        align-items: stretch;
        width: 100%;
    }

    .cart-panel .order-form label,
    .cart-panel .order-form input,
    .cart-panel .order-form textarea,
    .cart-panel .order-form .primary-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .site-header {
        grid-template-columns: minmax(112px, 1fr) auto;
        padding-inline: 10px;
    }

    .brand-logo {
        max-width: 118px;
    }

    .top-actions a {
        padding-inline: 5px;
        font-size: 9px;
    }
}

/* Header navigation states */
.top-actions a,
.top-actions a:last-child {
    color: #40504c;
    background: transparent;
    box-shadow: none;
}

.top-actions a:hover,
.top-actions a:focus-visible,
.top-actions a:last-child:hover,
.top-actions a:last-child:focus-visible,
.top-actions a:active {
    color: #ffffff;
    background: var(--sage-green);
    box-shadow: 0 5px 12px rgba(24, 88, 70, 0.18);
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 108px;
    }

    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 54px 38px;
        gap: 2px;
        min-height: 100px;
        height: 100px;
        padding: 4px 12px 7px;
    }

    .brand {
        justify-self: center;
        min-width: 0;
        max-width: 100%;
    }

    .brand-logo {
        max-width: 168px;
        max-height: 52px;
    }

    .top-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
        width: min(100%, 390px);
        margin: 0 auto;
        padding: 2px;
    }

    .top-actions a,
    .top-actions a:last-child {
        width: 100%;
        min-height: 32px;
        padding: 6px 8px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr);
        padding-inline: 9px;
    }

    .brand-logo {
        max-width: 154px;
    }

    .top-actions a,
    .top-actions a:last-child {
        padding-inline: 5px;
        font-size: 10px;
    }

}

/* Standalone brand and agency credit */
.standalone-logo {
    display: grid;
    place-items: center;
    padding: 0;
}

.minimal-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 64px;
}

.minimal-brand img {
    display: block;
    width: auto;
    max-width: 230px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.minimal-brand strong {
    color: var(--sage-green);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
}

.back-to-landing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(24, 88, 70, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--sage-green);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-to-landing:hover {
    background: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-landing {
        margin-top: 4px;
        padding: 7px 11px;
        font-size: 12px;
    }
}

.designer-only .section-heading .standalone-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}



.designer-only .section-heading {
    position: relative;
    min-height: 72px;
}

.designer-only .section-heading .standalone-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.model-categories {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.model-categories > h3 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-categories [data-model-tabs] {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    width: 100%;
    align-items: stretch;
}

.model-categories .model-tab-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    height: 100%;
    padding: 8px 7px;
    border: 1px solid #cfddd8;
    border-radius: 7px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.model-categories .model-tab-btn:hover,
.model-categories .model-tab-btn:focus-visible,
.model-categories .model-tab-btn.is-active {
    border-color: var(--sage-green);
}

.designer-stage {
    display: grid;
    gap: 14px;
    align-items: start;
}

.designer-stage .options-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
}

.designer-stage .model-categories { grid-area: models; }
.designer-stage .cart-panel { grid-area: cart; }
.designer-stage .options-panel { grid-area: options; }
.designer-stage .workspace { grid-area: workspace; }










@media (min-width: 1121px) {
    .designer-only .designer-shell {
        padding-right: 24px;
        padding-left: 24px;
    }

    .designer-only .designer-stage {
        grid-template-columns: minmax(280px, 24%) minmax(0, 1fr) minmax(380px, 0.9fr);
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "models models cart"
            "options workspace workspace";
        gap: 14px;
        align-items: stretch;
    }

    .designer-stage .options-panel,
    .designer-stage .workspace {
        align-self: stretch;
        min-height: 0;
    }

    .designer-stage .options-panel {
        grid-area: options;
        position: static;
        contain: size;
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }

    .designer-stage .options-panel .stones-section,
    .designer-stage .options-panel .stone-list {
        min-height: 0;
    }

    .designer-stage .options-panel .stone-list {
        flex: 1;
        height: 0;
        max-height: none;
    }

    .designer-only .design-board.design-tesbih {
        width: min(100%, 100%);
        max-width: 100%;
    }

    .designer-stage .cart-panel-header {
        min-width: 0;
        padding: 0 16px 0 0;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .designer-stage .cart-panel-header h3 {
        white-space: nowrap;
    }

    .designer-stage .cart-panel .summary-lines {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-width: 0;
    }

    .designer-stage .cart-panel .summary-lines > div,
    .designer-stage .cart-panel .summary-lines .total {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 3px;
        min-height: 52px;
        margin: 0;
        padding: 5px 14px;
        border-top: 0;
        border-right: 1px solid #e5ece8;
        border-bottom: 0;
        font-size: 12px;
    }

    .designer-stage .cart-panel .summary-lines > div:last-child {
        border-right: 0;
        border-bottom: 0;
    }

    .designer-stage .cart-panel .summary-lines strong,
    .designer-stage .cart-panel .summary-lines .total strong {
        font-size: 17px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .designer-stage .cart-panel .summary-lines .total strong {
        font-size: 21px;
    }

    .designer-stage .cart-order-button {
        min-height: 50px;
        margin: 0;
    }
}

.cart-order-button {
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 10px 22px rgba(24, 88, 70, 0.16);
}

.agency-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 20px 12px;
    color: #60706b;
    background: transparent;
    font-size: 12px;
}

.agency-credit a {
    color: var(--sage-green);
    font-weight: 800;
}

.agency-credit a:hover,
.agency-credit a:focus-visible {
    color: #0f493a;
    text-decoration: underline;
}

body.has-open-modal {
    overflow: hidden;
}

.order-modal-backdrop {
    z-index: 10020;
}

.order-modal-card {
    width: min(620px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 8px;
}

.order-modal-header {
    padding: 28px 28px 0;
}

.order-modal-header h2 {
    margin: 3px 42px 18px 0;
    color: #183f34;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.2;
}

.order-modal-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    color: #31574d;
    background: #f1f7f4;
    border: 1px solid #cfe0d9;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.order-modal-total strong {
    color: var(--sage-green);
    font-size: 22px;
}

.order-modal-card .order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 28px 28px;
}

.order-modal-card .order-form-wide {
    grid-column: 1 / -1;
}

.order-modal-card .form-message {
    min-height: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .designer-only .section-heading {
        min-height: 0;
        padding-top: 0;
    }

    .designer-only .section-heading .standalone-logo {
        position: static;
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 12px;
        transform: none;
    }

    .designer-only .section-heading .eyebrow {
        grid-row: 2;
    }

    .designer-only .section-heading h2 {
        grid-row: 3;
    }

    .minimal-brand {
        min-height: 54px;
    }

    .designer-stage .options-panel {
        overflow: hidden;
    }

    .designer-stage .options-panel .stones-section,
    .designer-stage .options-panel .stone-list {
        min-height: 0;
    }

    .designer-stage .options-panel .stone-list {
        flex: 1;
        height: 0;
        max-height: none;
    }

    .designer-only .design-board.design-tesbih {
        width: min(100%, 1180px);
    }

    

    .designer-stage .cart-panel-header {
          min-width: 0;
          padding: 0 16px 0 0;
          border-right: 1px solid var(--line);
          border-bottom: 0;
      }

    .designer-stage .cart-panel-header h3 {
        white-space: nowrap;
    }

    .designer-stage .cart-panel .summary-lines {
          display: grid;
          grid-template-columns: repeat(4, minmax(0, 1fr));
          min-width: 0;
      }

    .designer-stage .cart-panel .summary-lines > div,
      .designer-stage .cart-panel .summary-lines .total {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: center;
          gap: 3px;
          min-height: 52px;
          margin: 0;
          padding: 5px 14px;
          border-top: 0;
          border-right: 1px solid #e5ece8;
          border-bottom: 0;
          font-size: 12px;
      }

    .designer-stage .cart-panel .summary-lines > div:last-child {
        border-right: 0;
        border-bottom: 0;
    }

    .designer-stage .cart-panel .summary-lines strong,
    .designer-stage .cart-panel .summary-lines .total strong {
        font-size: 17px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .designer-stage .cart-panel .summary-lines .total strong {
        font-size: 21px;
    }

    .designer-stage .cart-order-button {
        min-height: 50px;
        margin: 0;
    }
}

.cart-order-button {
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 10px 22px rgba(24, 88, 70, 0.16);
}

.agency-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 20px 24px;
    color: #60706b;
    background: transparent;
    font-size: 12px;
}

.agency-credit a {
    color: var(--sage-green);
    font-weight: 800;
}

.agency-credit a:hover,
.agency-credit a:focus-visible {
    color: #0f493a;
    text-decoration: underline;
}

body.has-open-modal {
    overflow: hidden;
}

.order-modal-backdrop {
    z-index: 10020;
}

.order-modal-card {
    width: min(620px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 8px;
}

.order-modal-header {
    padding: 28px 28px 0;
}

.order-modal-header h2 {
    margin: 3px 42px 18px 0;
    color: #183f34;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.2;
}

.order-modal-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    color: #31574d;
    background: #f1f7f4;
    border: 1px solid #cfe0d9;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.order-modal-total strong {
    color: var(--sage-green);
    font-size: 22px;
}

.order-modal-card .order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 28px 28px;
}

.order-modal-card .order-form-wide {
    grid-column: 1 / -1;
}

.order-modal-card .form-message {
    min-height: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .designer-only .section-heading {
        min-height: 0;
        padding-top: 0;
    }

    .designer-only .section-heading .standalone-logo {
        position: static;
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 12px;
        transform: none;
    }

    .designer-only .section-heading .eyebrow {
        grid-row: 2;
    }

    .designer-only .section-heading h2 {
        grid-row: 3;
    }

    .minimal-brand {
        min-height: 54px;
    }

    .minimal-brand img {
        max-width: 190px;
        max-height: 58px;
    }

    .designer-only .designer-shell { padding: 24px; }

    .designer-stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "models"
            "workspace"
            "options"
            "cart";
        gap: 12px;
    }

    .model-categories {
        padding: 10px;
        margin-bottom: 8px;
    }

    .model-categories [data-model-tabs] {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        overflow: visible !important;
        width: 100%;
    }
    .model-categories .model-tab-btn {
        flex: 0 0 calc(25% - 5px) !important;
        width: calc(25% - 5px) !important;
        min-height: 58px !important;
        height: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 9px !important;
        padding: 6px 4px !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }

    .order-modal-backdrop {
        align-items: end;
        padding: 10px;
    }

    .order-modal-card {
        max-height: calc(100vh - 20px);
    }

    .order-modal-header {
        padding: 22px 18px 0;
    }

    .order-modal-header h2 {
        font-size: 24px;
    }

    .order-modal-card .order-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    .order-modal-card .order-form-wide {
        grid-column: 1;
    }
}


[data-model-tabs] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
}


/* =========================================================
   Landing — viewport fit, aligned 4-col grid, refined cards
   ========================================================= */
body.landing-fit {
    overflow: hidden;
    height: 100%;
}

html:has(body.landing-fit) {
    height: 100%;
    overflow: hidden;
}

body.landing-fit .agency-credit {
    display: none;
}

body.landing-fit > main {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    height: 100dvh;
}

.landing-container {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    margin: 0;
    padding:
        clamp(12px, 2vh, 24px)
        clamp(24px, 2.8vw, 40px)
        clamp(16px, 2vh, 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(14px, 2vh, 22px);
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 60%),
        linear-gradient(180deg, #f8f4ec 0%, #fcfbf8 50%, #f5f0e8 100%);
    overflow: hidden;
}

.landing-header {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.landing-brand img {
    display: block;
    width: auto;
    height: clamp(44px, 6.5vh, 68px);
    object-fit: contain;
}

.landing-brand strong {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 2.2vh, 1.55rem);
    color: var(--sage-green);
}

.landing-header h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.2vh, 2.15rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage-green);
    line-height: 1.1;
}

.landing-header p {
    margin: 0;
    color: #6b7672;
    font-size: clamp(0.8rem, 1.45vh, 0.95rem);
    line-height: 1.35;
}

.landing-grid {
    --landing-gap: clamp(14px, 1.4vw, 22px);
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: var(--landing-gap);
    align-content: stretch;
}

.landing-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(27, 77, 62, 0.11);
    box-shadow: 0 10px 24px -14px rgba(27, 77, 62, 0.22);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-card:hover,
.landing-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 16px 32px -14px rgba(27, 77, 62, 0.28);
    outline: none;
}

.landing-card-media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #ece8e1;
}

.landing-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.landing-card:hover .landing-card-img,
.landing-card:focus-visible .landing-card-img {
    transform: scale(1.04);
}

.landing-card-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(17, 51, 41, 0.1));
    pointer-events: none;
}

.landing-card-content {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid rgba(27, 77, 62, 0.08);
}

.landing-card-title {
    margin: 0;
    font-size: clamp(0.75rem, 0.85vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sage-dark, #113329);
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 1100px) {
    .landing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    html:has(body.landing-fit),
    body.landing-fit {
        height: auto;
        overflow: auto;
    }

    body.landing-fit > main {
        height: auto;
        min-height: 100dvh;
    }

    .landing-container {
        height: auto;
        min-height: 100dvh;
        justify-content: flex-start;
        padding: 16px 14px 24px;
        overflow: visible;
    }

    .landing-grid {
        flex: 0 0 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 12px;
    }

    .landing-card {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .landing-card-media {
        min-height: 0;
        aspect-ratio: 1 / 1;
        flex: 0 0 auto;
    }

    .landing-card-title {
        font-size: 0.7rem;
    }
}

@media (max-height: 780px) and (min-width: 761px) {
    .landing-brand img {
        height: clamp(36px, 5.5vh, 52px);
    }

    .landing-header h1 {
        font-size: clamp(1.2rem, 2.8vh, 1.7rem);
    }

    .landing-header p {
        font-size: 0.8rem;
    }

    .landing-card-content {
        padding: 8px 10px;
    }
}
@media (min-width: 1121px) {
    .designer-stage .model-categories {
        grid-area: models;
        background: white;
        padding: 20px;
        border-radius: 16px;
        border: 1px solid var(--border-light);
        height: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .designer-stage .cart-panel {
        grid-area: cart;
        position: static;
        display: grid;
        grid-template-columns: 270px minmax(0, 1fr) minmax(150px, 190px);
        align-items: center;
        gap: 16px;
        max-height: none;
        padding: 13px 16px;
        height: 100%;
        margin-bottom: 0;
        border-radius: 16px;
        border: 1px solid var(--border-light);
        background: white;
    }
    .designer-stage .options-panel { grid-area: options; position: static; contain: size; }
    .designer-stage .workspace { grid-area: workspace; align-self: stretch; }
}
@media (max-width: 768px) {
    .designer-stage {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "models"
            "workspace"
            "options"
            "cart" !important;
    }
    .designer-stage .options-panel {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }
    .designer-stage .workspace {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* =========================================================
   Designer fit — header categories, bottom cart, side gutters
   ========================================================= */
body.designer-fit {
    overflow: hidden;
    background: #f5f7f6;
}

body.designer-fit .agency-credit { display: none; }

body.designer-fit #designer-view,
body.designer-fit #designer-view.is-open {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block !important;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #f5f7f6;
}

body.designer-fit .designer-shell {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 12px 36px !important; /* sağ/sol boşluk */
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    background: #f5f7f6;
}

/* Header: categories left (1 row) | product name center | logo right */
body.designer-fit .section-heading {
    flex: 0 0 auto;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    column-gap: 16px !important;
    row-gap: 0 !important;
    min-height: 56px;
    max-height: 64px;
}

body.designer-fit .section-heading .eyebrow {
    display: none !important;
}

body.designer-fit .section-heading .standalone-logo {
    grid-column: 1;
    grid-row: 1;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    justify-self: start;
    align-self: center;
}

body.designer-fit .section-heading .standalone-logo img {
    height: 36px;
    display: block;
}

body.designer-fit .section-heading h2 {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    font-size: 1.35rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

body.designer-fit .section-heading .model-categories {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: 56px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    overflow: hidden;
}

body.designer-fit .section-heading .model-categories > h3 {
    display: none !important;
}

body.designer-fit .section-heading .model-categories [data-model-tabs] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

body.designer-fit .section-heading .model-categories .model-tab-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 88px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    aspect-ratio: auto !important;
    padding: 4px 4px !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(18, 56, 45, 0.06);
    white-space: normal !important;
}

body.designer-fit .section-heading .model-categories .model-tab-btn i {
    font-size: 13px;
    flex: 0 0 auto;
}

body.designer-fit .section-heading .model-categories .model-tab-btn span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
    white-space: normal;
    max-height: 2.2em;
}

body.designer-fit .section-heading .model-categories .model-tab-btn.is-active {
    background: var(--sage-green) !important;
    color: #fff !important;
    border-color: var(--sage-green) !important;
}

/* Stage: options | workspace, cart full width bottom */
body.designer-fit .designer-stage {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(320px, 32%) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    grid-template-areas:
        "options workspace"
        "cart cart" !important;
    gap: 12px !important;
    align-items: stretch !important;
}

body.designer-fit .designer-stage .model-categories { display: none; } /* moved to header */

body.designer-fit .designer-stage .options-panel { grid-area: options; }
body.designer-fit .designer-stage .workspace { grid-area: workspace; }
body.designer-fit .designer-stage .cart-panel { grid-area: cart; }

/* Cart bottom bar */
body.designer-fit .cart-panel {
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 10px 16px !important;
    display: grid !important;
    grid-template-columns: 160px minmax(0, 1fr) 160px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 12px !important;
    height: auto !important;
    max-height: none;
    background: #fff;
}

body.designer-fit .cart-panel-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 12px 0 0 !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    min-width: 0 !important;
}

body.designer-fit .cart-panel-header > div {
    min-width: 0;
    width: 100%;
}

body.designer-fit .cart-panel-header h3 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.designer-fit .cart-status {
    display: none !important;
}

body.designer-fit .cart-order-button {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
}

body.designer-fit .cart-panel .summary-lines {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border-top: 0;
    padding-top: 0;
}

body.designer-fit .cart-panel .summary-lines > div,
body.designer-fit .cart-panel .summary-lines .total {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 2px 12px !important;
    border: 0 !important;
    border-right: 1px solid #e5ece8 !important;
    font-size: 11px !important;
    overflow: hidden !important;
}

body.designer-fit .cart-panel .summary-lines > div:first-child {
    padding-left: 0 !important;
}

body.designer-fit .cart-panel .summary-lines > div:last-child {
    border-right: 0 !important;
    padding-right: 0 !important;
}

body.designer-fit .cart-panel .summary-lines span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
}

body.designer-fit .cart-panel .summary-lines strong {
    font-size: 15px !important;
    white-space: nowrap !important;
}

body.designer-fit .cart-panel .summary-lines .total strong {
    font-size: 18px !important;
}

/* Options: no horizontal scroll, vertical list scroll only */
body.designer-fit .options-panel {
    min-height: 0 !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

body.designer-fit .options-panel .stones-header-mobile { display: none !important; }

body.designer-fit .options-panel .stone-search,
body.designer-fit .options-panel .stone-filters,
body.designer-fit .options-panel > h3,
body.designer-fit .options-panel > [data-options] {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
}

body.designer-fit .options-panel .stone-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    overflow: visible !important;
    overflow-x: hidden !important;
}

body.designer-fit .options-panel .benefit-tab {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: nowrap;
}

body.designer-fit .options-panel .stones-section {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.designer-fit .options-panel .stone-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    align-content: start !important;
    padding: 4px 2px 8px !important;
    background: transparent !important;
    border: 0 !important;
    scrollbar-width: thin;
}

body.designer-fit .options-panel .stone-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 88px;
    margin: 0 !important;
    padding: 8px 4px 7px !important;
    overflow: hidden;
    border: 1px solid #e4ece8 !important;
    border-bottom: 1px solid #e4ece8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(18, 56, 45, 0.04);
    text-align: center !important;
    cursor: grab;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

body.designer-fit .options-panel .stone-item:hover {
    border-color: rgba(24, 88, 70, 0.35) !important;
    background: #f7faf8 !important;
    box-shadow: 0 4px 12px rgba(18, 56, 45, 0.08);
    transform: translateY(-1px);
}

body.designer-fit .options-panel .stone-item.is-selected {
    border-color: var(--sage-green) !important;
    background: #f1f7f4 !important;
    box-shadow: 0 0 0 2px rgba(24, 88, 70, 0.14), 0 4px 12px rgba(18, 56, 45, 0.08);
}

body.designer-fit .options-panel .stone-item .stone-dot {
    order: 1;
    position: relative !important;
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    justify-self: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

body.designer-fit .options-panel .stone-item .stone-copy {
    order: 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    min-width: 0 !important;
    width: 100%;
    min-height: 2.3em;
}

body.designer-fit .options-panel .stone-item .stone-copy strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    color: #1f3d34;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center;
}

/* Hover'da taş görseli üstüne yazı basma; açıklama floating kartta */
body.designer-fit .options-panel .stone-item .stone-dot-tip,
body.designer-fit .options-panel .stone-item .stone-copy small {
    display: none !important;
}

body.designer-fit .stone-info-card {
    z-index: 1200;
    max-width: 260px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #183f34;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(18, 56, 45, 0.28);
}

body.designer-fit .stone-info-card .stone-info-body {
    margin-top: 4px;
    color: #e8f0ec;
    font-size: 12px;
    line-height: 1.4;
}

body.designer-fit .stone-info-card small {
    display: block;
    margin-top: 8px;
    color: #b7c9c1;
    font-size: 11px;
    line-height: 1.35;
}

/* Workspace */
body.designer-fit .workspace {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
}

body.designer-fit .workspace .pattern-toolbar,
body.designer-fit .workspace .workspace-toolbar {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f5f7f6;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 8px;
}

body.designer-fit .workspace .board-frame {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;
    align-self: stretch;
    position: relative;
    container-type: size;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #f7f8f7;
}

/* Tesbih & Kolye: kare tahta alanı doldurur, sağda boş kenar kalmaz */
body.designer-fit .workspace .design-board.design-tesbih,
body.designer-fit .workspace .design-board.design-kolye {
    width: min(100cqw, 100cqh) !important;
    height: min(100cqw, 100cqh) !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    position: relative;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
}

body.designer-fit .workspace .board-frame:has(.design-tesbih) .board-zoom-controls,
body.designer-fit .workspace .board-frame:has(.design-kolye) .board-zoom-controls {
    top: calc(50% - min(50cqw, 50cqh) + 10px);
    right: calc(50% - min(50cqw, 50cqh) + 10px);
}

body.designer-fit .workspace .design-board:not(.design-tesbih):not(.design-kolye) {
    width: min(100cqw, calc(100cqh * 16 / 10)) !important;
    height: auto !important;
    max-height: 100cqh !important;
    aspect-ratio: 16 / 10 !important;
    left: auto !important;
    transform: none !important;
}

body.designer-fit .workspace .board-frame:has(.design-board:not(.design-tesbih):not(.design-kolye)) {
    width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: auto;
    place-items: center;
    background: transparent;
}

@media (max-width: 1120px) {
    html:has(body.designer-fit),
    body.designer-fit {
        height: 100%;
        height: 100dvh;
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    body.designer-fit #designer-view,
    body.designer-fit #designer-view.is-open {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    body.designer-fit .designer-shell {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100vw !important;
        height: 100% !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 6px !important;
    }

    body.designer-fit .section-heading {
        grid-template-columns: auto minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        max-height: none !important;
        min-height: 0 !important;
        row-gap: 4px !important;
        column-gap: 8px !important;
        flex: 0 0 auto !important;
    }

    body.designer-fit .section-heading .standalone-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    body.designer-fit .section-heading .standalone-logo img {
        height: 26px !important;
    }

    body.designer-fit .section-heading h2 {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        text-align: right;
        font-size: 0.95rem !important;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.designer-fit .section-heading .model-categories {
        grid-column: 1 / -1;
        grid-row: 2;
        max-height: none !important;
        justify-self: stretch;
        justify-content: flex-start;
        overflow: visible !important;
    }

    body.designer-fit .section-heading .model-categories [data-model-tabs] {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    body.designer-fit .section-heading .model-categories [data-model-tabs]::-webkit-scrollbar {
        display: none;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn {
        flex: 0 0 auto !important;
        width: 76px !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 2px 4px !important;
        font-size: 7.5px !important;
        border-radius: 6px !important;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn i {
        font-size: 11px !important;
    }

    /* Workspace first, then stones-heavy options, sticky cart */
    body.designer-fit .designer-stage {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(140px, 0.9fr) minmax(220px, 1.45fr) auto !important;
        grid-template-areas:
            "workspace"
            "options"
            "cart" !important;
        gap: 6px !important;
    }

    body.designer-fit .workspace {
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 5px !important;
        gap: 4px !important;
    }

    body.designer-fit .workspace .pattern-toolbar,
    body.designer-fit .workspace .workspace-toolbar {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        flex-wrap: nowrap !important;
    }

    body.designer-fit .workspace .pattern-toolbar {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 3px 5px !important;
        margin: 0 !important;
    }

    body.designer-fit .workspace .pattern-toolbar > span {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 10px !important;
    }

    body.designer-fit .workspace .pattern-toolbar .btn-pattern {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        padding: 4px 8px !important;
        font-size: 11px !important;
    }

    body.designer-fit .workspace .workspace-toolbar {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 3px 5px !important;
    }

    body.designer-fit .workspace .workspace-toolbar .icon-button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 6px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-open-analysis-modal] {
        max-width: none !important;
        width: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        gap: 0 !important;
        justify-content: center !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        margin-right: 0 !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-open-analysis-modal] i {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-fill-empty],
    body.designer-fit .workspace .workspace-toolbar [data-randomize] {
        width: auto !important;
        max-width: 28vw;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-left: 0 !important;
    }

    body.designer-fit .workspace .workspace-toolbar .slot-counter {
        margin-left: auto !important;
        height: 30px !important;
        font-size: 10px !important;
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0 7px !important;
    }

    body.designer-fit .workspace .board-frame {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 110px !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        overflow: hidden !important;
        display: grid !important;
        place-items: center !important;
    }

    body.designer-fit .workspace .design-board,
    body.designer-fit .workspace .design-board.design-tesbih,
    body.designer-fit .workspace .design-board.design-kolye,
    body.designer-fit .workspace .design-board:not(.design-tesbih):not(.design-kolye) {
        width: min(100cqw, 100cqh, 100%) !important;
        height: min(100cqw, 100cqh, 100%) !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 1 / 1 !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    body.designer-fit .workspace .board-frame:has(.design-tesbih) .board-zoom-controls,
    body.designer-fit .workspace .board-frame:has(.design-kolye) .board-zoom-controls,
    body.designer-fit .workspace .board-zoom-controls {
        top: 4px !important;
        right: 4px !important;
    }

    body.designer-fit .options-panel {
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
        padding: 6px 8px !important;
        gap: 4px !important;
    }

    body.designer-fit .options-panel > h3:first-of-type {
        display: none !important;
    }

    /* Compact product options at TOP so stone grid keeps vertical room */
    body.designer-fit .options-panel > [data-options] {
        flex: 0 0 auto !important;
        order: -20 !important;
        max-height: 52px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        border-bottom: 1px solid rgba(27, 77, 62, 0.08);
        margin-bottom: 2px;
    }

    body.designer-fit .options-panel > [data-options]::-webkit-scrollbar {
        display: none;
    }

    body.designer-fit .options-panel > [data-options] .option-group {
        flex: 0 0 auto;
        min-width: min(68vw, 200px);
        margin: 0 !important;
    }

    body.designer-fit .options-panel > [data-options] .option-label {
        display: block;
        font-size: 9px !important;
        margin-bottom: 2px !important;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        opacity: 0.75;
    }

    body.designer-fit .options-panel > [data-options] .segmented {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        overflow-x: auto;
    }

    body.designer-fit .options-panel > [data-options] .choice {
        flex: 0 0 auto;
        padding: 4px 8px !important;
        font-size: 11px !important;
        white-space: nowrap;
    }

    body.designer-fit .options-panel .stone-search {
        gap: 2px !important;
        margin: 0 !important;
        order: -10 !important;
    }

    body.designer-fit .options-panel .stone-search span {
        font-size: 10px !important;
    }

    body.designer-fit .options-panel .stone-search input {
        min-height: 30px !important;
        padding: 5px 10px !important;
        font-size: 13px !important;
    }

    body.designer-fit .options-panel .stone-filters {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 2px !important;
        padding-bottom: 2px;
        order: -5 !important;
    }

    body.designer-fit .options-panel .stone-filters::-webkit-scrollbar {
        display: none;
    }

    body.designer-fit .options-panel .benefit-tab {
        flex: 0 0 auto !important;
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    body.designer-fit .options-panel > h3:nth-of-type(2) {
        order: -8 !important;
        font-size: 11px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.designer-fit .options-panel .stones-section {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        order: 0 !important;
    }

    body.designer-fit .options-panel .stone-list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 120px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        flex-direction: unset !important;
        padding: 2px 1px 6px !important;
    }

    body.designer-fit .options-panel .stone-item {
        flex: unset !important;
        min-height: 62px !important;
        padding: 4px 2px 3px !important;
        touch-action: manipulation !important;
    }

    body.designer-fit .options-panel .stone-item .stone-dot {
        width: 30px !important;
        height: 30px !important;
    }

    body.designer-fit .options-panel .stone-item .stone-copy strong {
        font-size: 9px !important;
        line-height: 1.1 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.designer-fit .options-panel .stone-item .stone-copy small {
        display: none !important;
    }

    body.designer-fit .cart-panel {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        flex: 0 0 auto !important;
        min-height: 56px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: 0 -6px 18px rgba(18, 56, 45, 0.08);
        z-index: 5;
    }

    body.designer-fit .cart-panel-header {
        display: none !important;
    }

    body.designer-fit .cart-panel .summary-lines {
        grid-column: 1;
        grid-row: 1;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        align-items: center;
        min-width: 0;
        margin: 0 !important;
    }

    body.designer-fit .cart-panel .summary-lines > div {
        display: none !important;
    }

    body.designer-fit .cart-panel .summary-lines .total {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 0 !important;
        border: 0 !important;
        margin: 0 !important;
        font-size: 15px !important;
        background: transparent !important;
    }

    body.designer-fit .cart-order-button {
        grid-column: 2;
        grid-row: 1;
        align-self: center !important;
        width: auto !important;
        min-width: 108px !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 12px !important;
        white-space: nowrap;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    body.designer-fit .designer-stage {
        grid-template-rows: minmax(130px, 0.85fr) minmax(230px, 1.5fr) auto !important;
    }

    /* Kill legacy mobile board stretch that caused horizontal overflow */
    body.designer-fit .design-board,
    body.designer-fit .board-scroll-area,
    body.designer-fit .workspace .design-board {
        width: min(100cqw, 100cqh, 100%) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        left: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body.designer-fit .stone-list {
        flex-direction: unset !important;
        max-height: 100% !important;
    }

    body.designer-fit .stone-item {
        flex: unset !important;
        width: 100% !important;
    }

    body.designer-fit .pattern-toolbar .btn-pattern {
        width: auto !important;
    }
}

@media (max-width: 420px) {
    body.designer-fit .designer-shell {
        padding: 4px 5px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 4px !important;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn {
        width: 70px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        font-size: 7px !important;
    }

    body.designer-fit .options-panel .stone-list {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        min-height: 140px !important;
    }

    body.designer-fit .cart-order-button {
        min-width: 96px !important;
        font-size: 13px !important;
    }
}

/* Short phones (SE / small Android): prioritize stone picking */
@media (max-width: 1120px) and (max-height: 740px) {
    body.designer-fit .designer-stage {
        grid-template-rows: minmax(110px, 0.7fr) minmax(240px, 1.7fr) auto !important;
    }

    body.designer-fit .workspace .pattern-toolbar {
        display: none !important;
    }

    body.designer-fit .options-panel > [data-options] {
        max-height: 46px;
    }

    body.designer-fit .options-panel .stone-list {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        min-height: 150px !important;
    }
}

/* Landscape phones */
@media (max-width: 960px) and (max-height: 480px) and (orientation: landscape) {
    body.designer-fit .designer-shell {
        padding: 4px 6px !important;
        gap: 4px !important;
    }

    body.designer-fit .section-heading {
        display: none !important;
    }

    body.designer-fit .designer-stage {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "workspace options"
            "cart cart" !important;
    }

    body.designer-fit .workspace .pattern-toolbar {
        display: none !important;
    }

    body.designer-fit .options-panel .stone-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.designer-fit .cart-panel {
        min-height: 48px !important;
        padding: 6px 10px !important;
    }
}

/* Order / analysis modals — mobile safe */
@media (max-width: 768px) {
    .order-modal-backdrop,
    .analysis-modal-backdrop {
        align-items: flex-end !important;
        justify-items: stretch !important;
        place-items: end stretch !important;
        padding: 0 !important;
    }

    .order-modal-card,
    .analysis-modal-card {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(92dvh, 100%) !important;
        margin: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        transform: none !important;
    }

    .order-modal-card .order-form {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .order-modal-card .order-form-wide {
        grid-column: 1 !important;
    }

    .analysis-header {
        padding: 16px 48px 14px 16px !important;
        text-align: left !important;
    }

    .analysis-header h2 {
        font-size: 1.05rem !important;
    }

    .analysis-steps-body {
        padding: 14px 14px 8px !important;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .zodiac-item,
    .chakra-item,
    .state-item,
    .intention-item,
    .usage-item {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .analysis-nav-footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid rgba(27, 77, 62, 0.08);
        z-index: 2;
    }
}
@media (max-width: 760px) {
    body.landing-fit,
    html:has(body.landing-fit) {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        max-width: 100vw !important;
    }

    body.landing-fit > main,
    .landing-container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .landing-container {
        padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .landing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .landing-card {
        min-width: 0 !important;
        max-width: 100% !important;
        aspect-ratio: 3 / 4.1 !important;
    }

    .landing-card-media {
        aspect-ratio: 1 / 1 !important;
    }

    .landing-card-title {
        font-size: 0.68rem !important;
        letter-spacing: 0.03em !important;
        padding: 0 2px;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .landing-card-content {
        min-height: 40px !important;
        padding: 8px 6px !important;
    }

    .landing-brand img {
        height: clamp(40px, 8vw, 56px) !important;
        max-width: min(220px, 70vw);
    }

    .landing-header h1 {
        font-size: clamp(1.25rem, 6.5vw, 1.7rem) !important;
        padding: 0 4px;
    }

    .landing-header p {
        font-size: clamp(0.78rem, 3.4vw, 0.9rem) !important;
        padding: 0 8px;
    }
}

@media (max-width: 360px) {
    .landing-card-title {
        font-size: 0.62rem !important;
    }

    body.designer-fit .options-panel .stone-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   Mobile enrichment — feedback, progress, landing motion
   ========================================================= */
.mobile-design-hint {
    display: none;
}

.mobile-stone-chip,
.cart-progress {
    display: none;
}

.landing-subhint {
    display: none;
}

.landing-card-cta {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17, 51, 41, 0.82);
    color: #f7f1df;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.landing-card:hover .landing-card-cta,
.landing-card:focus-visible .landing-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.slot.is-just-placed {
    animation: slotPlacePop 0.48s cubic-bezier(.2, .9, .2, 1);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.85), 0 8px 18px rgba(17, 51, 41, 0.18);
    z-index: 3;
}

.design-board.is-board-full-flash {
    animation: boardFullShake 0.4s ease;
}

@keyframes slotPlacePop {
    0% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.72); }
    58% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.12); }
    100% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); }
}

@keyframes boardFullShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes pricePulse {
    0% { transform: scale(1); color: inherit; }
    40% { transform: scale(1.06); color: var(--sage-green, #1b4d3e); }
    100% { transform: scale(1); color: inherit; }
}

[data-total-price].is-price-pulse {
    display: inline-block;
    animation: pricePulse 0.45s ease;
}

@media (max-width: 1120px) {
    body.designer-fit .designer-stage {
        grid-template-rows: minmax(168px, 1.05fr) minmax(210px, 1.35fr) auto !important;
    }

    body.designer-fit .workspace .board-frame {
        min-height: clamp(150px, 26vh, 280px) !important;
    }

    body.designer-fit .section-heading .model-categories [data-model-tabs] {
        scroll-snap-type: x proximity;
        gap: 6px !important;
        padding: 2px 2px 4px !important;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn {
        scroll-snap-align: start;
        width: 82px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        font-size: 8px !important;
        border: 1px solid rgba(27, 77, 62, 0.1) !important;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn.is-active {
        box-shadow: 0 4px 12px rgba(27, 77, 62, 0.22);
    }

    body.designer-fit .options-panel .stone-filters {
        scroll-snap-type: x proximity;
    }

    body.designer-fit .options-panel .benefit-tab {
        scroll-snap-align: start;
        border-radius: 999px !important;
        background: #fff;
        border: 1px solid rgba(27, 77, 62, 0.12);
    }

    body.designer-fit .options-panel .benefit-tab.is-active {
        background: var(--sage-green) !important;
        color: #fff !important;
        border-color: var(--sage-green) !important;
    }

    body.designer-fit .mobile-design-hint {
        display: none;
        order: -15 !important;
        align-items: center;
        gap: 8px;
        margin: 0 0 4px;
        padding: 7px 10px;
        border-radius: 10px;
        background: linear-gradient(90deg, rgba(27, 77, 62, 0.08), rgba(212, 175, 55, 0.12));
        color: #23483d;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
    }

    body.designer-fit .mobile-design-hint.is-visible {
        display: flex !important;
        animation: hintIn 0.35s ease;
    }

    body.designer-fit .mobile-design-hint i {
        color: var(--sage-green);
        flex: 0 0 auto;
    }

    @keyframes hintIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    body.designer-fit .cart-panel {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        gap: 6px 8px !important;
        padding: 8px 10px 10px !important;
        min-height: 0 !important;
        align-items: center !important;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.96), #fff),
            #fff !important;
        border-top: 1px solid rgba(27, 77, 62, 0.08);
    }

    body.designer-fit .cart-progress {
        display: flex !important;
        grid-column: 1 / -1;
        grid-row: 1;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    body.designer-fit .cart-progress[hidden] {
        display: none !important;
    }

    body.designer-fit .cart-progress-track {
        flex: 1 1 auto;
        height: 5px;
        border-radius: 999px;
        background: rgba(27, 77, 62, 0.1);
        overflow: hidden;
    }

    body.designer-fit .cart-progress-bar {
        display: block;
        height: 100%;
        width: 0;
        border-radius: inherit;
        background: linear-gradient(90deg, #1b4d3e, #c6a24a);
        transition: width 0.35s ease;
    }

    body.designer-fit .cart-progress.is-complete .cart-progress-bar {
        background: linear-gradient(90deg, #157a4b, #d4af37);
    }

    body.designer-fit .cart-progress-label {
        flex: 0 0 auto;
        font-size: 10px;
        font-weight: 700;
        color: #4d625a;
        letter-spacing: 0.02em;
        min-width: 2.6em;
        text-align: right;
    }

    body.designer-fit .mobile-stone-chip {
        display: none !important;
    }

    body.designer-fit .mobile-stone-chip:not([hidden]) {
        display: none !important;
    }

    body.designer-fit .cart-panel .summary-lines {
        grid-column: 1;
        grid-row: 2;
    }

    body.designer-fit .cart-order-button {
        grid-column: 2;
        grid-row: 2;
        border-radius: 12px !important;
        box-shadow: 0 8px 18px rgba(27, 77, 62, 0.18);
    }

    body.designer-fit .options-panel .stone-item.is-selected {
        outline: 2px solid rgba(212, 175, 55, 0.9);
        outline-offset: 0;
        background: rgba(27, 77, 62, 0.06) !important;
        transform: translateY(-1px);
    }

    body.designer-fit .options-panel .stone-item:active {
        transform: scale(0.96);
    }

    body.designer-fit .workspace .board-zoom-controls {
        display: flex !important;
        gap: 2px;
        padding: 3px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 14px rgba(17, 51, 41, 0.12);
        backdrop-filter: blur(6px);
    }

    body.designer-fit .slot.is-active-slot {
        box-shadow: 0 0 0 2px #1b4d3e, 0 0 0 5px rgba(212, 175, 55, 0.35);
    }
}

/* Show selected-stone chip on roomier phones */
@media (max-width: 1120px) and (min-height: 740px) {
    body.designer-fit .cart-panel {
        grid-template-rows: auto auto auto !important;
    }

    body.designer-fit .mobile-stone-chip:not([hidden]) {
        display: flex !important;
        grid-column: 1 / -1;
        grid-row: 2;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding: 6px 8px;
        border-radius: 10px;
        background: rgba(27, 77, 62, 0.05);
        border: 1px solid rgba(27, 77, 62, 0.08);
    }

    body.designer-fit .mobile-stone-chip-dot {
        flex: 0 0 auto;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--stone, #d8cfc0);
        box-shadow: inset -2px -2px 4px rgba(0,0,0,0.25), inset 2px 2px 3px rgba(255,255,255,0.35);
    }

    body.designer-fit .mobile-stone-chip-dot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    body.designer-fit .mobile-stone-chip-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    body.designer-fit .mobile-stone-chip-copy small {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #6a7a74;
    }

    body.designer-fit .mobile-stone-chip-copy strong {
        font-size: 12px;
        color: #16372d;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.designer-fit .cart-panel .summary-lines {
        grid-row: 3;
    }

    body.designer-fit .cart-order-button {
        grid-row: 3;
    }
}

@media (max-width: 760px) {
    .landing-subhint {
        display: block;
        margin: 4px 0 0;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: rgba(27, 77, 62, 0.62);
    }

    .landing-card {
        animation: landingCardIn 0.45s ease both;
        animation-delay: calc(var(--card-i, 0) * 45ms);
    }

    .landing-card-cta {
        opacity: 0.92;
        transform: none;
        font-size: 0.62rem;
        padding: 4px 8px;
        background: rgba(17, 51, 41, 0.78);
    }

    .landing-card:active {
        transform: scale(0.985);
    }

    .landing-card-media {
        background:
            radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.12), transparent 45%),
            #ece8e1;
    }

    @keyframes landingCardIn {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 768px) {
    .order-modal-card .primary-button,
    .order-modal-card button[type="submit"] {
        min-height: 48px;
        border-radius: 12px;
        font-size: 15px;
    }

    .order-modal-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(145deg, #1b4d3e 0%, #143d32 100%);
    }

    .analysis-step-page .zodiac-item.active,
    .analysis-step-page .chakra-item.active,
    .analysis-step-page .state-item.active,
    .analysis-step-page .intention-item.active,
    .analysis-step-page .usage-item.active {
        box-shadow: 0 0 0 2px var(--sage-green), 0 8px 16px rgba(27, 77, 62, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-card,
    .slot.is-just-placed,
    .design-board.is-board-full-flash,
    [data-total-price].is-price-pulse,
    .mobile-design-hint.is-visible {
        animation: none !important;
    }

    .landing-card-cta {
        transition: none;
    }
}


/* =========================================================
   Mobile QA polish — readability, scroll cues, compact chrome
   ========================================================= */
@media (max-width: 1120px) {
    body.designer-fit .section-heading {
        row-gap: 2px !important;
    }

    body.designer-fit .section-heading .standalone-logo img {
        height: 24px !important;
    }

    body.designer-fit .section-heading h2 {
        font-size: 0.9rem !important;
    }

    body.designer-fit .section-heading .model-categories {
        position: relative;
    }

    body.designer-fit .section-heading .model-categories::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 2px;
        width: 28px;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, #f5f7f6 88%);
        z-index: 2;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn {
        width: 86px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        font-size: 8.5px !important;
        line-height: 1.1 !important;
        padding: 3px 5px !important;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn i {
        font-size: 13px !important;
    }

    body.designer-fit .options-panel > [data-options],
    body.designer-fit .options-panel .stone-filters {
        mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 22px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 22px), transparent 100%);
        padding-right: 12px !important;
    }

    body.designer-fit .options-panel > [data-options] .choice {
        min-height: 32px;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    body.designer-fit .options-panel .stone-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        min-height: 160px !important;
    }

    body.designer-fit .options-panel .stone-item {
        min-height: 74px !important;
        padding: 6px 3px 5px !important;
        border-radius: 10px !important;
    }

    body.designer-fit .options-panel .stone-item .stone-dot {
        width: 36px !important;
        height: 36px !important;
    }

    body.designer-fit .options-panel .stone-item .stone-copy strong {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 2;
    }

    body.designer-fit .workspace .workspace-toolbar [data-fill-empty],
    body.designer-fit .workspace .workspace-toolbar [data-randomize] {
        max-width: none !important;
        font-size: 0 !important;
        width: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-fill-empty] i,
    body.designer-fit .workspace .workspace-toolbar [data-randomize] i {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    body.designer-fit .workspace .workspace-toolbar .slot-counter {
        max-width: 72px;
        overflow: hidden;
        text-overflow: clip;
        font-variant-numeric: tabular-nums;
    }

    body.designer-fit .workspace .workspace-toolbar .slot-counter-suffix {
        display: none !important;
    }

    body.designer-fit .workspace .board-frame {
        min-height: clamp(160px, 28vh, 300px) !important;
    }

    body.designer-fit .designer-stage {
        grid-template-rows: minmax(175px, 1.1fr) minmax(200px, 1.3fr) auto !important;
    }
}

@media (max-width: 1120px) and (max-height: 740px) {
    body.designer-fit .designer-stage {
        grid-template-rows: minmax(130px, 0.85fr) minmax(230px, 1.55fr) auto !important;
    }

    body.designer-fit .section-heading .model-categories .model-tab-btn {
        width: 78px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }

    body.designer-fit .options-panel .stone-list {
        min-height: 140px !important;
    }
}

@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .stat-card,
    .stats-grid > * {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .orders-layout,
    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    .order-row-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .admin-tab {
        font-size: 10.5px !important;
        min-height: 50px;
    }

    .header .brand-title {
        font-size: 18px;
    }

    .header .brand-subtitle {
        font-size: 11px;
    }

    .main-container {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .product-list-card input,
    .product-list-card textarea,
    .settings-form input,
    .settings-form textarea,
    .settings-form select {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Ultra-narrow phones & final mobile completion */
@media (max-width: 360px) {
    body.designer-fit .section-heading .model-categories .model-tab-btn {
        width: 72px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        font-size: 7.5px !important;
    }

    body.designer-fit .cart-order-button {
        min-width: 92px !important;
        padding: 0 10px !important;
        font-size: 12.5px !important;
    }

    body.designer-fit .options-panel .stone-item .stone-copy strong {
        font-size: 10px !important;
    }

    .landing-card-title {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 1120px) {
    body.designer-fit,
    body.designer-fit * {
        -webkit-tap-highlight-color: rgba(27, 77, 62, 0.12);
    }

    body.designer-fit .options-panel .stone-search input,
    body.designer-fit .options-panel .choice,
    body.designer-fit .cart-order-button,
    body.designer-fit .workspace-toolbar .icon-button {
        touch-action: manipulation;
    }

    body.designer-fit .workspace .board-frame {
        border-radius: 14px;
        background:
            radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.08), transparent 55%),
            #fff;
    }
}


/* =========================================================
   Mobile designer — restored board + usable stones
   ========================================================= */
@media (max-width: 768px) {
    html:has(body.designer-fit),
    body.designer-fit {
        background: linear-gradient(180deg, #e8eee9 0%, #dce6e1 100%) !important;
    }

    body.designer-fit #designer-view,
    body.designer-fit #designer-view.is-open {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background: #f4f7f5 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.designer-fit .designer-shell {
        height: 100% !important;
        max-height: 100% !important;
        padding: 8px 10px calc(0px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 6px !important;
        background: transparent !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Header */
    body.designer-fit .section-heading {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        gap: 4px !important;
        flex: 0 0 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 2px !important;
        margin: 0 !important;
    }

    body.designer-fit .section-heading .standalone-logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.designer-fit .section-heading .standalone-logo img {
        height: 24px !important;
    }

    body.designer-fit .section-heading .back-to-landing {
        margin: 0 !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        background: #fff !important;
        border: 1px solid rgba(27, 77, 62, 0.12) !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    body.designer-fit .section-heading h2 {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #16372d !important;
        text-align: left !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        position: static !important;
        transform: none !important;
    }

    body.designer-fit .section-heading .model-categories,
    body.designer-fit .section-heading .eyebrow {
        display: none !important;
    }

    /* Stage stack */
    body.designer-fit .designer-stage {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        overflow: hidden !important;
        padding: 0 !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-template-areas: none !important;
    }

    body.designer-fit .designer-stage .workspace,
    body.designer-fit .designer-stage .options-panel,
    body.designer-fit .designer-stage .cart-panel {
        width: 100% !important;
        max-width: 100% !important;
        grid-area: auto !important;
        top: auto !important;
        bottom: auto !important;
        max-height: none !important;
        position: relative !important;
    }

    /* WORKSPACE: toolbar then FULL board */
    body.designer-fit .workspace {
        flex: 0 0 auto !important;
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding: 8px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(27, 77, 62, 0.08) !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(18, 56, 45, 0.05) !important;
        overflow: hidden !important;
    }

    body.designer-fit .workspace .pattern-toolbar {
        display: none !important;
    }

    body.designer-fit .workspace .workspace-toolbar {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 4px !important;
        margin: 0 !important;
        border-radius: 10px !important;
        background: #f5f8f6 !important;
        border: 1px solid rgba(27, 77, 62, 0.07) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
    }

    body.designer-fit .workspace .workspace-toolbar::-webkit-scrollbar {
        display: none;
    }

    body.designer-fit .workspace .workspace-toolbar .icon-button {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        background: #fff !important;
        border: 1px solid rgba(27, 77, 62, 0.1) !important;
        font-size: 14px !important;
        touch-action: manipulation !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-open-analysis-modal] {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        border-radius: 10px !important;
        background: #1b4d3e !important;
        color: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        font-size: 0 !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-open-analysis-modal] i {
        font-size: 14px !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-fill-empty],
    body.designer-fit .workspace .workspace-toolbar [data-randomize] {
        width: 40px !important;
        min-width: 40px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.designer-fit .workspace .workspace-toolbar [data-fill-empty] i,
    body.designer-fit .workspace .workspace-toolbar [data-randomize] i {
        font-size: 14px !important;
    }

    body.designer-fit .workspace .workspace-toolbar .slot-counter {
        height: 40px !important;
        margin-left: auto !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        background: #fff !important;
        border: 1px solid rgba(27, 77, 62, 0.1) !important;
        white-space: nowrap !important;
    }

    body.designer-fit .workspace .workspace-toolbar .slot-counter-suffix {
        display: none !important;
    }

    /* Proper full-width design board */
    body.designer-fit .workspace .board-frame {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: min(30vh, 240px) !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        display: grid !important;
        place-items: center !important;
        container-type: size !important;
        background:
            radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.1), transparent 58%),
            #fbfbfa !important;
        border: 1px solid rgba(27, 77, 62, 0.08) !important;
    }

    body.designer-fit .workspace .design-board,
    body.designer-fit .workspace .design-board.design-tesbih,
    body.designer-fit .workspace .design-board.design-kolye,
    body.designer-fit .workspace .design-board:not(.design-tesbih):not(.design-kolye) {
        width: min(100cqw, 100cqh) !important;
        height: min(100cqw, 100cqh) !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 1 / 1 !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
    }

    body.designer-fit .workspace .board-zoom-controls {
        display: flex !important;
        top: 8px !important;
        right: 8px !important;
        transform: none !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 4px 12px rgba(18, 56, 45, 0.12) !important;
        z-index: 2 !important;
    }

    /* Options + stones */
    body.designer-fit .options-panel {
        flex: 1 1 auto !important;
        order: 2 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 14px !important;
        border: 1px solid rgba(27, 77, 62, 0.08) !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(18, 56, 45, 0.05) !important;
        overflow: hidden !important;
    }

    body.designer-fit .options-panel > h3 {
        display: none !important;
    }

    body.designer-fit .options-panel > [data-options] {
        flex: 0 0 auto !important;
        order: -20 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 !important;
        padding: 0 0 2px !important;
        border: 0 !important;
        max-height: none !important;
    }

    body.designer-fit .options-panel > [data-options]::-webkit-scrollbar {
        display: none;
    }

    body.designer-fit .options-panel > [data-options] .option-group {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.designer-fit .options-panel > [data-options] .option-label {
        display: none !important;
    }

    body.designer-fit .options-panel > [data-options] .segmented {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    body.designer-fit .options-panel > [data-options] .choice {
        flex: 0 0 auto !important;
        min-height: 40px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        touch-action: manipulation !important;
    }

    body.designer-fit .mobile-design-hint,
    body.designer-fit .mobile-design-hint.is-visible {
        display: none !important;
    }

    body.designer-fit .options-panel .stone-search {
        flex: 0 0 auto !important;
        order: -10 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    body.designer-fit .options-panel .stone-search span {
        display: none !important;
    }

    body.designer-fit .options-panel .stone-search input {
        width: 100% !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        background: #f5f8f6 !important;
        border: 1px solid rgba(27, 77, 62, 0.12) !important;
    }

    body.designer-fit .options-panel .stone-filters {
        flex: 0 0 auto !important;
        order: -5 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.designer-fit .options-panel .stone-filters::-webkit-scrollbar {
        display: none;
    }

    body.designer-fit .options-panel .benefit-tab {
        flex: 0 0 auto !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 999px !important;
        touch-action: manipulation !important;
    }

    body.designer-fit .options-panel .stones-section {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.designer-fit .options-panel .stones-header-mobile {
        display: none !important;
    }

    body.designer-fit .options-panel .stone-list {
        flex: 1 1 auto !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        min-height: 0 !important;
        height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 2px 1px 6px !important;
        align-content: start !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.designer-fit .options-panel .stone-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        min-height: 92px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 6px 8px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(27, 77, 62, 0.1) !important;
        background: #fbfcfc !important;
        text-align: center !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    body.designer-fit .options-panel .stone-item.is-selected {
        border-color: var(--sage-green) !important;
        background: #eef5f1 !important;
        box-shadow: 0 0 0 2px rgba(27, 77, 62, 0.16) !important;
    }

    body.designer-fit .options-panel .stone-item .stone-dot {
        order: 0 !important;
        width: 48px !important;
        height: 48px !important;
        flex: 0 0 48px !important;
        border-radius: 50% !important;
    }

    body.designer-fit .options-panel .stone-item .stone-copy {
        order: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    body.designer-fit .options-panel .stone-item .stone-copy strong {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        color: #16372d !important;
        white-space: normal !important;
        text-align: center !important;
    }

    body.designer-fit .options-panel .stone-item .stone-copy small,
    body.designer-fit .options-panel .stone-item .stone-dot-tip {
        display: none !important;
    }

    /* Cart */
    body.designer-fit .cart-panel {
        order: 3 !important;
        flex: 0 0 auto !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        gap: 6px 10px !important;
        margin: 0 !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 14px !important;
        border: 1px solid rgba(27, 77, 62, 0.1) !important;
        background: #fff !important;
        box-shadow: 0 -6px 18px rgba(18, 56, 45, 0.08) !important;
        z-index: 5 !important;
    }

    body.designer-fit .cart-panel-header {
        display: none !important;
    }

    body.designer-fit .cart-progress {
        display: flex !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        align-items: center !important;
        gap: 8px !important;
    }

    body.designer-fit .cart-progress[hidden] {
        display: none !important;
    }

    body.designer-fit .cart-progress-track {
        height: 5px !important;
    }

    body.designer-fit .mobile-stone-chip,
    body.designer-fit .mobile-stone-chip:not([hidden]) {
        display: none !important;
    }

    body.designer-fit .cart-panel .summary-lines {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin: 0 !important;
    }

    body.designer-fit .cart-panel .summary-lines > div {
        display: none !important;
    }

    body.designer-fit .cart-panel .summary-lines .total {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1px !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12px !important;
    }

    body.designer-fit .cart-panel .summary-lines .total strong {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        color: var(--sage-green) !important;
    }

    body.designer-fit .cart-order-button {
        grid-column: 2 !important;
        grid-row: 2 !important;
        min-width: 120px !important;
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        touch-action: manipulation !important;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    body.designer-fit .workspace .board-frame {
        max-height: min(26vh, 200px) !important;
    }

    body.designer-fit .options-panel .stone-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.designer-fit .options-panel .stone-item {
        min-height: 82px !important;
        padding: 8px 4px 6px !important;
    }

    body.designer-fit .options-panel .stone-item .stone-dot {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }
}

@media (max-width: 360px) {
    body.designer-fit .options-panel .stone-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.designer-fit .cart-order-button {
        min-width: 108px !important;
    }
}