/*
 * iparfumy.css – Hlavný stylesheet pre iParfumy.sk
 * Verzia: 1.0
 * Závisí od: Bootstrap 5.3+, Bootstrap Icons 1.11+
 * Font: Inter (Google Fonts)
 *
 * Sekcie:
 *  1. CSS Premenné (design tokeny)
 *  2. Základ (reset, body, links)
 *  3. Top strip
 *  4. Navigácia
 *  5. Tlačidlá
 *  6. Formuláre
 *  7. Karty – zdieľané základy
 *  8. Produktová karta
 *  9. Kategoriálna karta
 * 10. Brandová karta
 * 11. Článková karta
 * 12. Benefit karta
 * 13. Sekcie – nadpisy a odsadenie
 * 14. Hero – úvodná stránka
 * 15. Vizuál parfumovej fľaše
 * 16. Search panel (homepage)
 * 17. Deal band (akcie, homepage)
 * 18. Newsletter box
 * 19. Page hero – katalóg / kategória
 * 20. Catalog layout – filtre, toolbar, paginácia
 * 21. SEO karta a related links
 * 22. Produkt – detail
 * 23. Galéria produktu
 * 24. Súhrn produktu (summary card)
 * 25. Price box a parametre
 * 26. Offer card (viac ponúk)
 * 27. Článok – layout
 * 28. Obsah článku (typography)
 * 29. Sidebar
 * 30. Footer
 * 31. Back-to-top tlačidlo
 * 32. Dostupnosť a badges
 * 33. Paginácia
 * 34. Responzívne úpravy
 */

/* =============================================================
   1. CSS PREMENNÉ
   ============================================================= */
:root {
    --ip-bg:           #fff7f5;
    --ip-bg-soft:      #fffaf8;
    --ip-primary:      #7c2d4f;
    --ip-primary-dark: #4c1630;
    --ip-secondary:    #d9a441;
    --ip-accent:       #f4d7d0;
    --ip-text:         #24151b;
    --ip-muted:        #78646d;
    --ip-border:       rgba(124, 45, 79, .13);
    --ip-card:         rgba(255, 255, 255, .9);
    --ip-shadow:       0 24px 70px rgba(76, 22, 48, .12);
    --ip-radius:       24px;
}

/* =============================================================
   2. ZÁKLAD
   ============================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ip-text);
    background:
        radial-gradient(circle at top left,  rgba(217, 164, 65, .17), transparent 34%),
        radial-gradient(circle at top right, rgba(124, 45, 79,  .12), transparent 36%),
        linear-gradient(180deg, #fff7f5 0%, #fff 45%, #fffaf8 100%);
    min-height: 100vh;
}

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

/* =============================================================
   3. TOP STRIP
   ============================================================= */
.top-strip {
    background: var(--ip-primary-dark);
    color: rgba(255, 255, 255, .86);
    font-size: .875rem;
}

/* =============================================================
   4. NAVIGÁCIA
   ============================================================= */
.navbar {
    backdrop-filter: blur(16px);
    background: rgba(255, 250, 248, .9) !important;
    border-bottom: 1px solid var(--ip-border);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ip-primary-dark) !important;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ip-primary), var(--ip-secondary));
    color: #fff;
    box-shadow: 0 12px 28px rgba(124, 45, 79, .24);
}

.nav-link {
    font-weight: 600;
    color: var(--ip-muted) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ip-primary) !important;
}

/* =============================================================
   5. TLAČIDLÁ
   ============================================================= */
.btn-ip-primary {
    background: linear-gradient(135deg, var(--ip-primary), var(--ip-primary-dark));
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: .78rem 1.18rem;
    box-shadow: 0 16px 34px rgba(124, 45, 79, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-ip-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(124, 45, 79, .31);
}

.btn-ip-light {
    background: #fff;
    border: 1px solid var(--ip-border);
    color: var(--ip-primary-dark);
    font-weight: 700;
    border-radius: 999px;
    padding: .78rem 1.18rem;
    transition: background .2s ease, border-color .2s ease;
}

.btn-ip-light:hover {
    background: #fff7f5;
    border-color: rgba(124, 45, 79, .25);
}

/* =============================================================
   6. FORMULÁRE
   ============================================================= */
.form-control,
.form-select {
    border-radius: 16px;
    border-color: rgba(124, 45, 79, .15);
    min-height: 48px;
    font-weight: 600;
    color: var(--ip-text);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(124, 45, 79, .45);
    box-shadow: 0 0 0 .22rem rgba(124, 45, 79, .1);
}

.form-check-label {
    color: var(--ip-muted);
    font-weight: 600;
    font-size: .94rem;
}

.form-check-input:checked {
    background-color: var(--ip-primary);
    border-color: var(--ip-primary);
}

/* =============================================================
   7. KARTY – ZDIEĽANÉ ZÁKLADY
   ============================================================= */
.category-card,
.product-card,
.brand-card,
.article-card,
.benefit-card,
.filter-card,
.toolbar-card,
.seo-card,
.related-card,
.gallery-card,
.summary-card,
.content-card,
.offer-card,
.sidebar-card {
    background: var(--ip-card);
    border: 1px solid var(--ip-border);
    border-radius: var(--ip-radius);
    box-shadow: 0 16px 45px rgba(76, 22, 48, .07);
}

/* =============================================================
   8. PRODUKTOVÁ KARTA
   ============================================================= */
.product-card {
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 45, 79, .27);
    box-shadow: 0 24px 58px rgba(76, 22, 48, .12);
}

.product-img {
    height: 220px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .95), rgba(244, 215, 208, .62)),
        linear-gradient(135deg, #fff, #fff7f5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-img img {
    max-width: 78%;
    max-height: 190px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-img .no-image {
    font-size: 3.5rem;
    color: rgba(124, 45, 79, .18);
}

.product-card h2,
.product-card h3 {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
    color: var(--ip-primary-dark);
    min-height: 44px;
    margin-bottom: 7px;
}

.product-meta {
    color: var(--ip-muted);
    font-size: .86rem;
}

.price {
    color: var(--ip-primary);
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.old-price {
    color: #a7979e;
    text-decoration: line-through;
    font-size: .9rem;
}

.shop-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .62rem;
    border-radius: 999px;
    background: #fff7f5;
    color: var(--ip-muted);
    font-size: .78rem;
    font-weight: 700;
}

/* =============================================================
   9. KATEGORIÁLNA KARTA
   ============================================================= */
.category-card {
    padding: 22px;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -50px;
    top: -50px;
    border-radius: 50%;
    background: rgba(244, 215, 208, .58);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 45, 79, .27);
    box-shadow: 0 24px 58px rgba(76, 22, 48, .12);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff7f5;
    color: var(--ip-primary);
    font-size: 1.42rem;
    margin-bottom: 18px;
}

.category-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ip-primary-dark);
}

.category-card p {
    color: var(--ip-muted);
    margin-bottom: 0;
    font-size: .93rem;
}

/* =============================================================
   10. BRANDOVÁ KARTA
   ============================================================= */
.brand-card {
    padding: 18px 16px;
    text-align: center;
    font-weight: 800;
    color: var(--ip-primary-dark);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: block;
}

.brand-card span {
    display: block;
    color: var(--ip-muted);
    font-size: .82rem;
    font-weight: 600;
    margin-top: 4px;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 45, 79, .27);
    box-shadow: 0 24px 58px rgba(76, 22, 48, .12);
    color: var(--ip-primary-dark);
}

/* =============================================================
   11. ČLÁNKOVÁ KARTA (zoznam)
   ============================================================= */
.article-card-list {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
    overflow: hidden;
}

.article-card-list:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 45, 79, .27);
    box-shadow: 0 24px 58px rgba(76, 22, 48, .12);
}

.article-thumb {
    height: 190px;
    background: linear-gradient(135deg, rgba(76, 22, 48, .88), rgba(124, 45, 79, .8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .38);
    font-size: 3.5rem;
    border-radius: var(--ip-radius) var(--ip-radius) 0 0;
}

.article-card-body {
    padding: 22px;
}

.article-card-body h3 {
    font-weight: 800;
    color: var(--ip-primary-dark);
    font-size: 1.08rem;
    line-height: 1.42;
    margin-bottom: 9px;
}

.article-card-body h3 a:hover {
    color: var(--ip-primary);
}

.article-card-body p {
    color: var(--ip-muted);
    font-size: .94rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* =============================================================
   12. BENEFIT KARTA
   ============================================================= */
.benefit-card {
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 45, 79, .27);
    box-shadow: 0 24px 58px rgba(76, 22, 48, .12);
}

.benefit-card i {
    font-size: 2rem;
    color: var(--ip-primary);
    display: block;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ip-primary-dark);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--ip-muted);
    font-size: .94rem;
    line-height: 1.68;
    margin-bottom: 0;
}

/* =============================================================
   13. SEKCIE – NADPISY A ODSADENIE
   ============================================================= */
.section-pad {
    padding: 54px 0;
}

.section-title {
    font-weight: 800;
    letter-spacing: -.045em;
    color: var(--ip-primary-dark);
}

.section-subtitle {
    color: var(--ip-muted);
    max-width: 680px;
}

/* Drobčeková navigácia */
.breadcrumb-wrap {
    color: var(--ip-muted);
    font-size: .92rem;
    padding-top: 28px;
}

.breadcrumb-wrap a {
    color: var(--ip-primary);
    font-weight: 700;
}

/* =============================================================
   14. HERO – ÚVODNÁ STRÁNKA
   ============================================================= */
.hero {
    position: relative;
    padding: 72px 0 44px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 164, 65, .24), rgba(124, 45, 79, .06), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .78rem;
    border: 1px solid var(--ip-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: var(--ip-primary);
    font-weight: 800;
    font-size: .84rem;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4.9rem);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.07em;
    color: var(--ip-primary-dark);
    margin: 1.15rem 0;
}

.hero-title span {
    color: var(--ip-primary);
}

.hero-text {
    color: var(--ip-muted);
    font-size: 1.13rem;
    line-height: 1.75;
    max-width: 620px;
}

/* =============================================================
   15. VIZUÁL PARFUMOVEJ FĽAŠE (hero karta, úvodná stránka)
   ============================================================= */
.hero-card {
    border: 1px solid var(--ip-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 247, 245, .78));
    border-radius: 34px;
    padding: 26px;
    box-shadow: var(--ip-shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -90px -110px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(217, 164, 65, .22);
    pointer-events: none;
}

.perfume-visual {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottle {
    width: 185px;
    height: 280px;
    border-radius: 34px 34px 48px 48px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(244, 215, 208, .55));
    border: 1px solid rgba(124, 45, 79, .12);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, .75), 0 35px 80px rgba(76, 22, 48, .18);
    position: relative;
    z-index: 2;
}

.bottle::before {
    content: "";
    position: absolute;
    width: 76px;
    height: 42px;
    border-radius: 16px 16px 8px 8px;
    background: linear-gradient(135deg, var(--ip-primary), var(--ip-secondary));
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 12px 24px rgba(124, 45, 79, .22);
}

.bottle::after {
    content: "iParfumy";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 112px;
    height: 84px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(124, 45, 79, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ip-primary-dark);
    font-weight: 800;
    letter-spacing: -.04em;
}

.floating-note {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ip-border);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: 0 18px 44px rgba(76, 22, 48, .12);
    max-width: 190px;
}

.floating-note strong {
    display: block;
    color: var(--ip-primary-dark);
    font-size: .95rem;
}

.floating-note span {
    color: var(--ip-muted);
    font-size: .82rem;
}

.floating-note.one {
    left: 2px;
    top: 62px;
}

.floating-note.two {
    right: 0;
    bottom: 58px;
}

/* =============================================================
   16. SEARCH PANEL (homepage)
   ============================================================= */
.search-panel {
    background: var(--ip-card);
    border: 1px solid var(--ip-border);
    border-radius: var(--ip-radius);
    padding: 18px;
    box-shadow: var(--ip-shadow);
    backdrop-filter: blur(18px);
}

.search-panel .form-control,
.search-panel .form-select {
    border-radius: 16px;
    min-height: 52px;
    border-color: rgba(124, 45, 79, .15);
    color: var(--ip-text);
    font-weight: 600;
}

.search-panel .form-control:focus,
.search-panel .form-select:focus {
    border-color: rgba(124, 45, 79, .45);
    box-shadow: 0 0 0 .22rem rgba(124, 45, 79, .1);
}

/* =============================================================
   17. DEAL BAND (akcie, homepage)
   ============================================================= */
.deal-band {
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(76, 22, 48, .96), rgba(124, 45, 79, .9)),
        radial-gradient(circle at top right, rgba(217, 164, 65, .5), transparent 42%);
    color: #fff;
    padding: 34px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--ip-shadow);
}

.deal-band::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(217, 164, 65, .2);
    right: -100px;
    top: -80px;
    pointer-events: none;
}

.deal-band .price {
    color: var(--ip-secondary);
    font-size: 2.4rem;
    font-weight: 900;
}

.deal-band .old-price {
    color: rgba(255, 255, 255, .54);
}

/* =============================================================
   18. NEWSLETTER BOX
   ============================================================= */
.newsletter-box {
    background:
        linear-gradient(135deg, rgba(255, 247, 245, .95), rgba(255, 255, 255, .92)),
        radial-gradient(circle at bottom right, rgba(217, 164, 65, .22), transparent 44%);
    border: 1px solid var(--ip-border);
    border-radius: 34px;
    padding: 38px;
    box-shadow: var(--ip-shadow);
}

/* =============================================================
   19. PAGE HERO – KATALÓG / KATEGÓRIA
   ============================================================= */
.page-hero {
    padding: 44px 0 24px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -140px;
    top: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 164, 65, .22), rgba(124, 45, 79, .05), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2.1rem, 4vw, 4.1rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.065em;
    color: var(--ip-primary-dark);
    margin: 16px 0 12px;
}

.page-text {
    color: var(--ip-muted);
    font-size: 1.06rem;
    line-height: 1.75;
    max-width: 760px;
}

.quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.stat-pill {
    background: rgba(255, 255, 255, .84);
    border: 1px solid var(--ip-border);
    border-radius: 999px;
    padding: .62rem .9rem;
    color: var(--ip-muted);
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(76, 22, 48, .06);
}

.stat-pill strong {
    color: var(--ip-primary-dark);
}

/* =============================================================
   20. CATALOG LAYOUT – FILTRE, TOOLBAR, PAGINÁCIA
   ============================================================= */
.catalog-layout {
    padding: 26px 0 58px;
}

.filter-card {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.filter-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ip-primary-dark);
    margin-bottom: 16px;
}

.filter-section {
    padding: 18px 0;
    border-top: 1px solid var(--ip-border);
}

.filter-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.filter-section h3 {
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ip-primary-dark);
    font-weight: 800;
    margin-bottom: 12px;
}

.toolbar-card {
    padding: 16px;
    margin-bottom: 20px;
}

.result-count {
    color: var(--ip-muted);
    font-weight: 700;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7f5;
    border: 1px solid rgba(124, 45, 79, .14);
    border-radius: 999px;
    padding: .38rem .68rem;
    color: var(--ip-primary-dark);
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
}

.active-filter i {
    color: var(--ip-primary);
}

.mobile-filter-btn {
    display: none;
}

.discount-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--ip-secondary);
    color: var(--ip-primary-dark);
    border-radius: 999px;
    padding: .32rem .62rem;
    font-size: .74rem;
    font-weight: 900;
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--ip-primary-dark);
    color: #fff;
    border-radius: 999px;
    padding: .32rem .62rem;
    font-size: .74rem;
    font-weight: 800;
    z-index: 2;
}

/* =============================================================
   21. SEO KARTA A RELATED LINKS
   ============================================================= */
.seo-card {
    padding: 28px;
    margin-top: 30px;
}

.seo-card h2,
.related-card h2 {
    color: var(--ip-primary-dark);
    font-weight: 800;
    letter-spacing: -.04em;
}

.seo-card p,
.seo-card li {
    color: var(--ip-muted);
    line-height: 1.72;
}

.related-card {
    padding: 24px;
    margin-top: 22px;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .58rem .78rem;
    background: #fff7f5;
    border: 1px solid rgba(124, 45, 79, .13);
    border-radius: 999px;
    color: var(--ip-primary-dark);
    font-weight: 800;
    margin: 4px;
    font-size: .9rem;
    transition: background .2s ease, border-color .2s ease;
}

.related-link:hover {
    background: #fff;
    border-color: rgba(124, 45, 79, .27);
    color: var(--ip-primary-dark);
}

/* =============================================================
   22. PRODUKT – DETAIL
   ============================================================= */
.product-detail {
    padding: 28px 0 58px;
}

/* =============================================================
   23. GALÉRIA PRODUKTU
   ============================================================= */
.gallery-card {
    padding: 20px;
    position: sticky;
    top: 96px;
}

.main-image {
    min-height: 480px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .98), rgba(244, 215, 208, .68)),
        linear-gradient(135deg, #fff, #fff7f5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-image img {
    max-width: 78%;
    max-height: 420px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.main-image .no-image {
    font-size: 6rem;
    color: rgba(124, 45, 79, .12);
}

.badge-floating {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--ip-primary-dark);
    color: #fff;
    border-radius: 999px;
    padding: .42rem .72rem;
    font-size: .78rem;
    font-weight: 900;
    z-index: 2;
}

.thumb-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.thumb {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    border: 1px solid var(--ip-border);
    background: #fff7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
    overflow: hidden;
}

.thumb:hover,
.thumb.active {
    border-color: rgba(124, 45, 79, .45);
    transform: translateY(-2px);
}

.thumb img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
}

/* =============================================================
   24. SÚHRN PRODUKTU (SUMMARY CARD)
   ============================================================= */
.summary-card {
    padding: 30px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--ip-primary);
    font-weight: 900;
    margin-bottom: 12px;
    transition: opacity .2s ease;
}

.brand-link:hover {
    opacity: .75;
    color: var(--ip-primary);
}

.product-title {
    color: var(--ip-primary-dark);
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.065em;
    margin-bottom: 16px;
}

.lead-text {
    color: var(--ip-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7f5;
    border: 1px solid rgba(124, 45, 79, .14);
    border-radius: 999px;
    padding: .44rem .72rem;
    color: var(--ip-primary-dark);
    font-weight: 800;
    font-size: .86rem;
}

/* =============================================================
   25. PRICE BOX A PARAMETRE
   ============================================================= */
.price-box {
    background: linear-gradient(135deg, rgba(255, 247, 245, .9), rgba(255, 255, 255, .94));
    border: 1px solid var(--ip-border);
    border-radius: 24px;
    padding: 22px;
    margin-top: 22px;
}

.price-label {
    color: var(--ip-muted);
    font-weight: 800;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Na detaile produktu väčšia cena */
.price-box .price {
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
}

.partner-note {
    color: var(--ip-muted);
    font-size: .88rem;
    line-height: 1.55;
}

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

.param-item {
    background: #fff;
    border: 1px solid var(--ip-border);
    border-radius: 18px;
    padding: 14px;
}

.param-item span {
    display: block;
    color: var(--ip-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 4px;
}

.param-item strong {
    color: var(--ip-primary-dark);
    font-weight: 900;
}

.content-card {
    padding: 28px;
    margin-top: 24px;
}

.content-card h2,
.content-card h3 {
    color: var(--ip-primary-dark);
    font-weight: 800;
    letter-spacing: -.04em;
}

.content-card p,
.content-card li {
    color: var(--ip-muted);
    line-height: 1.74;
}

.note-box {
    background: #fff7f5;
    border: 1px solid rgba(124, 45, 79, .13);
    border-radius: 20px;
    padding: 18px;
    color: var(--ip-muted);
}

/* =============================================================
   26. OFFER CARD (viac ponúk od partnerov)
   ============================================================= */
.offer-card {
    padding: 18px;
    margin-bottom: 14px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.offer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 45, 79, .27);
    box-shadow: 0 20px 48px rgba(76, 22, 48, .1);
}

.shop-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7f5, #fff);
    border: 1px solid var(--ip-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ip-primary);
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.shop-title {
    color: var(--ip-primary-dark);
    font-weight: 900;
    margin-bottom: 2px;
}

.shop-subtitle {
    color: var(--ip-muted);
    font-size: .86rem;
    font-weight: 600;
}

.mini-price {
    color: var(--ip-primary);
    font-weight: 900;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* =============================================================
   27. ČLÁNOK – LAYOUT
   ============================================================= */
.article-hero {
    padding: 28px 0 30px;
    position: relative;
    overflow: hidden;
}

.article-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 164, 65, .22), rgba(124, 45, 79, .05), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .78rem;
    border: 1px solid var(--ip-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: var(--ip-primary);
    font-weight: 900;
    font-size: .84rem;
}

.article-title {
    color: var(--ip-primary-dark);
    font-size: clamp(2.25rem, 5vw, 4.7rem);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.07em;
    margin: 16px 0;
    max-width: 1000px;
}

.article-lead {
    color: var(--ip-muted);
    font-size: 1.14rem;
    line-height: 1.75;
    max-width: 820px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.meta-pill {
    background: rgba(255, 255, 255, .84);
    border: 1px solid var(--ip-border);
    border-radius: 999px;
    padding: .58rem .85rem;
    color: var(--ip-muted);
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 10px 26px rgba(76, 22, 48, .06);
}

.meta-pill i {
    color: var(--ip-primary);
    margin-right: 5px;
}

/* Hero vizuál na stránke článku */
.hero-visual {
    min-height: 330px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(76, 22, 48, .92), rgba(124, 45, 79, .84)),
        radial-gradient(circle at top right, rgba(217, 164, 65, .5), transparent 44%);
    box-shadow: var(--ip-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: rgba(217, 164, 65, .24);
    pointer-events: none;
}

.visual-bottle {
    width: 150px;
    height: 220px;
    border-radius: 28px 28px 42px 42px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(244, 215, 208, .45));
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 0 38px rgba(255, 255, 255, .6), 0 35px 80px rgba(0, 0, 0, .18);
    position: relative;
    z-index: 2;
}

.visual-bottle::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 36px;
    border-radius: 14px 14px 8px 8px;
    background: var(--ip-secondary);
    top: -37px;
    left: 50%;
    transform: translateX(-50%);
}

.visual-bottle::after {
    content: "Guide";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 86px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ip-primary-dark);
    font-weight: 900;
    letter-spacing: -.04em;
}

.article-layout {
    padding: 28px 0 62px;
}

/* =============================================================
   28. OBSAH ČLÁNKU (TYPOGRAPHY)
   ============================================================= */
.article-card {
    padding: 34px;
}

.article-content {
    font-size: 1.03rem;
    color: var(--ip-muted);
    line-height: 1.84;
}

.article-content h2,
.article-content h3 {
    color: var(--ip-primary-dark);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.15;
}

.article-content h2 {
    margin-top: 42px;
    margin-bottom: 16px;
    font-size: 2rem;
}

.article-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content a {
    color: var(--ip-primary);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
    padding-left: 1.2rem;
    margin-bottom: 22px;
}

.article-content li {
    margin-bottom: 9px;
}

.intro-box,
.tip-box,
.cta-box {
    border-radius: 24px;
    padding: 24px;
    margin: 28px 0;
}

.intro-box {
    background: #fff7f5;
    border: 1px solid rgba(124, 45, 79, .13);
}

.tip-box {
    background: linear-gradient(135deg, rgba(255, 247, 245, .92), rgba(255, 255, 255, .94));
    border: 1px solid var(--ip-border);
}

.tip-box strong,
.intro-box strong {
    color: var(--ip-primary-dark);
}

.cta-box {
    background:
        linear-gradient(135deg, rgba(76, 22, 48, .96), rgba(124, 45, 79, .9)),
        radial-gradient(circle at top right, rgba(217, 164, 65, .5), transparent 42%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.cta-box h2,
.cta-box p {
    color: #fff;
}

.cta-box p {
    opacity: .82;
}

/* =============================================================
   29. SIDEBAR
   ============================================================= */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    border-bottom: 1px solid var(--ip-border);
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--ip-muted);
    font-weight: 800;
    transition: color .2s ease;
}

.toc-list a:hover {
    color: var(--ip-primary);
}

.sidebar-card {
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card.sticky-side {
    position: sticky;
    top: 96px;
}

.sidebar-card h2,
.sidebar-card h3,
.sidebar-card h4 {
    color: var(--ip-primary-dark);
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 16px;
}

/* =============================================================
   30. FOOTER
   ============================================================= */
footer {
    background: #24151b;
    color: rgba(255, 255, 255, .74);
    padding: 46px 0 22px;
    margin-top: 40px;
}

footer h4,
footer h5 {
    color: #fff;
    font-weight: 800;
}

footer a {
    color: rgba(255, 255, 255, .72);
    display: inline-block;
    margin-bottom: 8px;
    transition: color .2s ease;
}

footer a:hover {
    color: #fff;
}

/* =============================================================
   31. BACK-TO-TOP TLAČIDLO
   ============================================================= */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--ip-primary);
    color: #fff;
    border: none;
    z-index: 999;
    box-shadow: 0 16px 38px rgba(124, 45, 79, .32);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}

.back-to-top:hover {
    background: var(--ip-primary-dark);
    box-shadow: 0 20px 44px rgba(76, 22, 48, .36);
}

/* =============================================================
   32. DOSTUPNOSŤ A BADGES
   ============================================================= */
.availability {
    color: #247a45;
    font-weight: 800;
    font-size: .84rem;
}

.availability.out {
    color: #a04b3a;
}

/* =============================================================
   33. PAGINÁCIA
   ============================================================= */
.pagination .page-link {
    border-radius: 14px;
    margin: 0 4px;
    color: var(--ip-primary-dark);
    border-color: var(--ip-border);
    font-weight: 800;
    transition: background .2s ease, color .2s ease;
}

.pagination .page-item.active .page-link {
    background: var(--ip-primary);
    border-color: var(--ip-primary);
    color: #fff;
}

.pagination .page-link:hover {
    background: #fff7f5;
    color: var(--ip-primary);
}

/* =============================================================
   34. RESPONZÍVNE ÚPRAVY
   ============================================================= */

/* Mobilný filter toggle */
@media (max-width: 991px) {
    .filter-card {
        position: static;
        display: none;
        margin-bottom: 20px;
    }

    .filter-card.is-open {
        display: block;
    }

    .mobile-filter-btn {
        display: inline-flex;
    }

    .gallery-card {
        position: static;
    }

    .sidebar-card.sticky-side {
        position: static;
    }
}

/* Malé obrazovky */
@media (max-width: 575px) {
    .hero {
        padding: 40px 0 28px;
    }

    .page-hero {
        padding-top: 30px;
    }

    .article-hero {
        padding-top: 20px;
    }

    .toolbar-card,
    .seo-card,
    .related-card {
        border-radius: 20px;
    }

    .product-img {
        height: 190px;
    }

    .main-image {
        min-height: 320px;
    }

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

    .newsletter-box {
        padding: 24px;
    }

    .deal-band {
        padding: 24px;
    }
}

/* Veľké obrazovky */
@media (min-width: 1400px) {
    .hero {
        padding: 90px 0 60px;
    }
}
