/* ==========================================================================
   ZÁKLAD / RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: #f3f4f6;
    color: #111827;
}

.body-light {
    background: #f3f4f6;
    color: #111827;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   HLAVIČKA
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-light {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #2563eb;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.logo-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.9rem;
}

.main-nav a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    color: #4b5563;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.main-nav a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1f2937;
    text-decoration: none;
}

.main-nav .btn-link {
    border-color: #2563eb;
    color: #1d4ed8;
}

/* ==========================================================================
   BUTTONY
   ========================================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    text-decoration: none;
}

.btn-primary.full-width {
    width: 100%;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    padding: 3.5rem 0 3.1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    border: 1px solid #bfdbfe;
    margin-bottom: 0.8rem;
}

.hero-badge span:first-child {
    font-size: 1rem;
}

.hero h1,
.page-title {
    margin: 0 0 0.9rem;
    font-size: clamp(2.1rem, 3.1vw, 2.6rem);
    letter-spacing: -0.02em;
    color: #111827;
}

.hero p {
    margin: 0 0 1.2rem;
    color: #4b5563;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.hero-note {
    font-size: 0.85rem;
    color: #6b7280;
}

.hero-right {
    display: flex;
    justify-content: center;
}

/* karta s tričkom na indexe */
.mockup-card {
    width: 100%;
    max-width: 320px;
    border-radius: 1.1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 1.4rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.mockup-shirt {
    height: 240px;
    border-radius: 1rem;
    background: radial-gradient(circle at 20% 0, #e5e7eb, #9ca3af);
    position: relative;
    overflow: hidden;
}

.mockup-print {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.35rem 0.8rem;
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.92);
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px dashed rgba(148, 163, 184, 0.9);
}

.mockup-caption {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.mockup-caption strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #111827;
}

/* ==========================================================================
   SEKCIE / NADPISY
   ========================================================================== */

.section {
    padding: 3.2rem 0;
}

.section-alt {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.section h2 {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    color: #111827;
}

.section-intro {
    margin: 0 0 1.6rem;
    color: #4b5563;
    font-size: 0.95rem;
}

/* ==========================================================================
   KARTY – PRODUKTY
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 1.3rem 1.2rem;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.04);
}

.card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    color: #111827;
}

.card p {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #6b7280;
}

.card-list li {
    margin-bottom: 0.2rem;
}

.card-list li::before {
    content: "• ";
    color: #2563eb;
}

/* ==========================================================================
   KROKY – AKO TO FUNGUJE
   ========================================================================== */

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

.step {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 1.3rem 1.2rem;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.step h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #111827;
}

.step p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* ==========================================================================
   KONTAKT / FORMULÁRE
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    color: #374151;
}

.contact-list li {
    margin-bottom: 0.3rem;
}

.contact-note {
    font-size: 0.85rem;
    color: #6b7280;
}

.contact-small {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.7rem;
}

/* univerzálne form prvky */
.contact-form label,
.designer-controls label,
.field-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: #374151;
}

.contact-form input,
.contact-form textarea,
.designer-controls input[type="text"],
.designer-controls input[type="email"],
.designer-controls textarea,
select,
input[type="file"],
input[type="range"] {
    width: 100%;
    border-radius: 0.55rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0.45rem 0.6rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: #111827;
    margin-bottom: 0.8rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.designer-controls input[type="text"]:focus,
.designer-controls input[type="email"]:focus,
.designer-controls textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.contact-form textarea,
.designer-controls textarea {
    resize: vertical;
}

/* alerty (stav formulára) */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* ==========================================================================
   DESIGNER – NÁVRH TRIČKA
   ========================================================================== */

.designer-main {
    padding: 3rem 0 3.5rem;
}

.designer-layout {
    margin-top: 1.5rem;
    border-radius: 1.2rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 1.8rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

/* náhľad */
.designer-preview {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.shirt-frame {
    position: relative;
    border-radius: 1rem;
    background: #e5e7eb;
    padding: 1.1rem 1rem 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.shirt-image {
    width: 100%;
    height: auto;
    display: block;
}

/* motív na tričku */
.design-preview {
    position: absolute;
    top: 45%; /* mení sa sliderom */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%; /* mení sa sliderom */
    max-height: 55%;
    object-fit: contain;
    pointer-events: none;
}

/* text pod náhľadom */
.preview-hint {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ovládacia časť */
.designer-controls {
    max-width: 440px;
    margin: 0 auto;
}

.small-badge {
    margin-bottom: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* farby trička */
.color-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.color-picker {
    display: inline-flex;
    gap: 0.4rem;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--dot-color, #e5e7eb);
    cursor: pointer;
    padding: 0;
}

.color-dot.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.select-inline {
    min-width: 150px;
}

.field-group {
    margin-bottom: 0.8rem;
}

.form-subtitle {
    font-size: 1.05rem;
    margin: 0.4rem 0 0.8rem;
    color: #111827;
}

.section-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.2rem 0 1rem;
}

.hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

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

.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    font-size: 0.8rem;
}

.footer-light {
    background: #ffffff;
    color: #6b7280;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

/* ==========================================================================
   ADMIN – využíva karty, sekcie atď.
   ========================================================================== */

/* nič špeciálne netreba – admin index už vyzerá pekne na kartách */

/* ==========================================================================
   RESPONSIVITA
   ========================================================================== */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        order: -1;
    }

    .cards-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .designer-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cards-grid,
    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2.6rem;
    }
}
/* Produkt taby (tričko / hrnček) */
.product-switch {
    display: inline-flex;
    padding: 0.15rem;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    gap: 0.15rem;
}

.product-tab {
    border: none;
    background: transparent;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
}

.product-tab.is-active {
    background: #2563eb;
    color: #ffffff;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.admin-table-wrapper {
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

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

.admin-table th,
.admin-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f9fafb;
}

.admin-table tbody tr:hover {
    background: #f3f4f6;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-new {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.status-done {
    background: #ecfdf3;
    color: #166534;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.detail-image {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
/* Malý náhľad v zozname objednávok */
.admin-thumb {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.admin-thumb img {
    max-width: 64px;
    max-height: 48px;
    border-radius: 0.4rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.admin-thumb-download {
    font-size: 0.75rem;
    text-decoration: none;
    color: #2563eb;
}

.admin-thumb-download:hover {
    text-decoration: underline;
}

/* Admin náhľad na produkte + logo vedľa seba */
.admin-preview-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

/* menší rám na admin náhľad */
.admin-shirt-frame {
    max-width: 260px;
    margin-bottom: 0;
}

/* jemné zmenšenie motívu pre admin */
.admin-design-preview {
    /* top a width prepisujeme inline zo servera */
}

/* blok so samotným logom */
.admin-logo-block {
    max-width: 320px;
}
