/* Loupik Obchod — marketplace (Allegro / Kaufland style layout) */

.page-obchod-public {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

/* Hlavička v main-container — obsah stránky a footer mimo, aby se footer neořezával */
.page-obchod-public > .main-container {
    flex: 0 0 auto;
    padding-bottom: 0.5rem;
}

.page-obchod-public > .obchod-page-main {
    flex: 1 0 auto;
    width: 100%;
}

.page-obchod-public > .site-footer {
    flex-shrink: 0;
    width: 100%;
}

.obchod-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.obchod-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 45%, #fdf2f8 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    margin: 1rem 0 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.obchod-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.obchod-hero__lead {
    margin: 0 0 1rem;
    color: #4b5563;
    font-size: 0.95rem;
    max-width: 42rem;
}

.obchod-search {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.obchod-search__input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 0.95rem;
    background: #fff;
}

.obchod-search__input:focus {
    outline: none;
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.obchod-search__btn {
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.obchod-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.obchod-side {
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.obchod-side__title {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.obchod-cat-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.obchod-cat-link {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.obchod-cat-link:hover {
    background: #f9fafb;
    color: #111827;
}

.obchod-cat-link.is-active {
    background: #fdf2f8;
    color: var(--accent-700);
    font-weight: 700;
}

.obchod-main-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.obchod-main-head h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.obchod-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.obchod-sort select {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    background: #fff;
}

.obchod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.obchod-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.obchod-card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.obchod-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    overflow: hidden;
}

.obchod-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.obchod-card__body {
    padding: 0.75rem 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}

.obchod-card__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.obchod-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1f2937;
}

.obchod-card__title a {
    color: inherit;
    text-decoration: none;
}

.obchod-card__title a:hover {
    color: var(--accent-600);
}

.obchod-card__meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
}

.obchod-card__seller {
    color: var(--accent-600);
    font-weight: 600;
    text-decoration: none;
}

.obchod-card__seller:hover {
    text-decoration: underline;
}

a.obchod-card__seller {
    display: inline;
}

.obchod-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    background: #fff;
    border-radius: 1rem;
    border: 1px dashed #d1d5db;
}

.obchod-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.obchod-pagination a,
.obchod-pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #fff;
}

.obchod-pagination a:hover {
    border-color: var(--accent-400);
    color: var(--accent-700);
}

.obchod-pagination .is-active {
    background: var(--accent-500);
    border-color: var(--accent-500);
    color: #fff;
    font-weight: 700;
}

/* ——— Detail produktu (PDP, Allegro-style) ——— */
.obchod-wrap--pdp {
    padding-bottom: 2.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.obchod-bc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.75rem 0 1rem;
    line-height: 1.4;
}

.obchod-bc a {
    color: #374151;
    text-decoration: none;
}

.obchod-bc a:hover {
    color: var(--accent-600);
    text-decoration: underline;
}

.obchod-bc__sep {
    color: #9ca3af;
    user-select: none;
}

.obchod-bc__current {
    color: #111827;
    font-weight: 500;
}

.obchod-pdp {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.obchod-pdp__top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 400px);
    gap: 1.5rem 2rem;
    align-items: start;
}

.obchod-pdp__gallery {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.obchod-pdp__thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.obchod-pdp__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 0.35rem;
    background: #fff;
    overflow: hidden;
    cursor: default;
}

.obchod-pdp__thumb.is-active {
    border-color: var(--accent-500);
}

.obchod-pdp__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.obchod-pdp__hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 0.35rem;
}

.obchod-pdp__hero img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.obchod-pdp__hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    opacity: 0.35;
}

.obchod-pdp__teaser {
    margin: 1rem 0 0.35rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #374151;
}

.obchod-pdp__more-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-600);
    text-decoration: none;
}

.obchod-pdp__more-link:hover {
    text-decoration: underline;
}

.obchod-pdp__buy {
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.obchod-pdp__title {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.obchod-pdp__price {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1.1;
}

.obchod-pdp__price-note {
    margin: 0.35rem 0 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.obchod-pdp__perks {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: #374151;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.85rem 0;
}

.obchod-pdp__perks li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.obchod-pdp__perk-icon {
    flex-shrink: 0;
    width: 1.25rem;
    color: #16a34a;
    font-weight: 700;
    text-align: center;
}

.obchod-pdp__perk-icon--loc {
    color: var(--accent-600);
}

.obchod-pdp__seller-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.obchod-pdp__seller-label {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.obchod-pdp__seller-name {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
}

.obchod-pdp__seller-name a {
    color: #111827;
    text-decoration: none;
}

.obchod-pdp__seller-name a:hover {
    color: var(--accent-600);
}

.obchod-pdp__seller-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.obchod-pdp__seller-meta a {
    color: var(--accent-600);
    text-decoration: none;
}

.obchod-pdp__seller-meta a:hover {
    text-decoration: underline;
}

.obchod-pdp__actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.obchod-pdp__qty select {
    height: 100%;
    min-height: 48px;
    padding: 0 2rem 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    font-size: 0.875rem;
    background: #fff;
    color: #374151;
}

.obchod-pdp__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.25rem;
    border-radius: 0.35rem;
    background: #e11d48;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    transition: background 0.15s, transform 0.15s;
}

.obchod-pdp__cta:hover {
    background: #be123c;
    transform: translateY(-1px);
}

.obchod-pdp__safe {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.45;
}

.obchod-pdp__related {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.obchod-pdp__related-head h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.obchod-pdp__related-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.obchod-card--compact {
    flex: 0 0 180px;
    scroll-snap-align: start;
}

.obchod-card--compact .obchod-card__media {
    aspect-ratio: 1;
}

.obchod-pdp__details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem 1.35rem;
}

.obchod-pdp__details > h2 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.obchod-pdp__details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    gap: 2rem 2.5rem;
    align-items: start;
}

.obchod-pdp__desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
}

.obchod-pdp__desc--muted {
    color: #6b7280;
    font-style: italic;
}

.obchod-pdp__specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.obchod-pdp__specs th,
.obchod-pdp__specs td {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    vertical-align: top;
}

.obchod-pdp__specs th {
    width: 42%;
    color: #6b7280;
    font-weight: 500;
    padding-right: 1rem;
}

.obchod-pdp__specs td {
    color: #111827;
    font-weight: 600;
}

.obchod-pdp__specs a {
    color: var(--accent-600);
    text-decoration: none;
}

.obchod-pdp__specs a:hover {
    text-decoration: underline;
}

/* ——— Profil prodejce (obchod) ——— */
.obchod-seller-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
    margin-top: 0.5rem;
}

.obchod-seller-side {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.obchod-seller-brand {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.obchod-seller-brand__avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, var(--accent-500), var(--accent-700));
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obchod-seller-brand__name {
    margin: 0 0 0.2rem;
    font-weight: 800;
    font-size: 1rem;
    color: #111827;
    line-height: 1.25;
}

.obchod-seller-brand__sub {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.obchod-seller-brand__tlupa {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-600);
    text-decoration: none;
}

.obchod-seller-brand__tlupa:hover {
    text-decoration: underline;
}

.obchod-seller-filter {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.obchod-seller-filter__title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.obchod-seller-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.obchod-seller-filter__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.35rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.obchod-seller-filter__link:hover {
    background: #f9fafb;
    color: #111827;
}

.obchod-seller-filter__link.is-active {
    background: #fdf2f8;
    color: var(--accent-700);
    font-weight: 700;
}

.obchod-seller-filter__count {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

.obchod-seller-filter__link.is-active .obchod-seller-filter__count {
    color: var(--accent-600);
}

.obchod-seller-main {
    min-width: 0;
}

.obchod-seller-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.obchod-seller-head__title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.obchod-seller-head__meta {
    margin: 0;
    font-size: 0.9375rem;
    color: #6b7280;
}

.obchod-seller-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.obchod-seller-pill {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.obchod-seller-pill:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.obchod-seller-pill.is-active {
    border-color: var(--accent-400);
    background: #fdf2f8;
    color: var(--accent-700);
}

.obchod-grid--seller {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.obchod-card--store {
    border-radius: 0.35rem;
}

.obchod-card--store .obchod-card__media {
    aspect-ratio: 1;
    background: #fff;
}

.obchod-card--store .obchod-card__title {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.obchod-card--store .obchod-card__price {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.obchod-card--store .obchod-card__ship {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #16a34a;
}

.obchod-card--store .obchod-card__loc {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.obchod-card--store .obchod-card__store-seller {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 1100px) {
    .obchod-grid--seller {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .obchod-layout {
        grid-template-columns: 1fr;
    }
    .obchod-side {
        position: static;
    }
    .obchod-cat-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .obchod-pdp__top {
        grid-template-columns: 1fr;
    }
    .obchod-pdp__buy {
        position: static;
    }
    .obchod-pdp__details-grid {
        grid-template-columns: 1fr;
    }
    .obchod-pdp__gallery {
        grid-template-columns: 1fr;
    }
    .obchod-pdp__thumbs {
        flex-direction: row;
        order: 2;
    }
    .obchod-pdp__hero {
        min-height: 240px;
        order: 1;
    }
    .obchod-seller-layout {
        grid-template-columns: 1fr;
    }
    .obchod-seller-side {
        position: static;
    }
    .obchod-grid--seller {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .obchod-grid--seller {
        grid-template-columns: 1fr;
    }
}
