@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Sora', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
}

:root {
    --bg: #f7f3ee;
    --paper: #fffdf9;
    --panel: rgba(255, 255, 255, 0.84);
    --text: #1f1a17;
    --muted: #73655d;
    --line: rgba(96, 72, 56, 0.14);
    --accent: #f26b2c;
    --accent-strong: #d95418;
    --accent-soft: #fff0e7;
    --success: #1d8f5e;
    --shadow: 0 24px 60px rgba(94, 56, 26, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    background:
        radial-gradient(circle at top left, rgba(242, 107, 44, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 194, 91, 0.24), transparent 22%),
        linear-gradient(180deg, #fff9f2 0%, #f4efe8 100%);
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-sans);
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.hero {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero-card,
.panel,
.stat-card,
.product-card,
.cart-card,
.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto -120px -120px auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(242, 107, 44, 0.18), transparent 65%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1,
.panel-title {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p,
.muted,
.empty-state {
    color: var(--muted);
    line-height: 1.65;
}

.hero-grid,
.stats-grid,
.catalog-grid,
.admin-grid {
    display: grid;
    gap: 18px;
}

.hero-grid,
.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.catalog-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    align-items: start;
}

.panel {
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 20px;
}

.stat-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.stat-value {
    font-size: clamp(1.6rem, 2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-top: 10px;
}

.category-block + .category-block {
    margin-top: 24px;
}

.category-title {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}

.product-list {
    display: grid;
    gap: 14px;
}

.product-card {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: start;
}

.product-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent-strong);
}

.tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: #f0f7f3;
    color: var(--success);
    font-weight: 700;
}

.cart-card,
.auth-card {
    padding: 24px;
    position: sticky;
    top: 20px;
}

.cart-items {
    display: grid;
    gap: 14px;
    margin: 18px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 0.88rem;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(96, 72, 56, 0.16);
    background: rgba(255, 255, 255, 0.9);
}

.button,
.ghost-button {
    appearance: none;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button {
    background: linear-gradient(135deg, var(--accent) 0%, #ffb547 100%);
    color: white;
    box-shadow: 0 14px 30px rgba(242, 107, 44, 0.28);
}

.ghost-button {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-banner {
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.status-banner.success {
    background: #eef8f2;
    color: #156342;
}

.status-banner.error {
    background: #fff1f0;
    color: #b9382d;
}

.status-banner.warning {
    background: #fff6e4;
    color: #8a5b08;
}

@media (max-width: 1024px) {
    .hero,
    .admin-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 20px;
    }

    .hero-card,
    .panel,
    .cart-card,
    .auth-card {
        border-radius: 22px;
        padding: 20px;
    }

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