/* Root */

:root {
    --Primary-0: #F2E8F0;
    --Primary-1: #E0D0DC;
    --Primary-2: #e0bac9;
    --Primary-3: #D794AF;
    --Primary-4: #b0708b;
    --Primary-5: #8b4e68;
    --Primary-6: #672d47;
    --Primary-7: #440c29;
}

@font-face {
    font-family: Raleway;
    src: url('fonts/Raleway.ttf');
}

@font-face {
    font-family: Poppins;
    font-weight: 400;
    /* normal */
    src: url('fonts/Poppins-Regular.ttf');
}

@font-face {
    font-family: Poppins;
    font-weight: 700;
    /* bold */
    src: url('fonts/Poppins-Bold.ttf');
}

@font-face {
    font-family: Poppins;
    font-weight: 800;
    /* extra bold */
    src: url('fonts/Poppins-ExtraBold.ttf');
}

html {
    position: relative;
    min-height: 100vh;
    padding-bottom: 209px;
}

body {
    margin: 0;
    background-color: var(--Primary-0);
    height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

main {
    height: 100%;
}

h1 {
    font-family: Raleway;
    color: var(--Primary-4);
    margin: 0;
}

h2 {
    font-family: Raleway;
    color: var(--Primary-4);
}

p {
    font-family: Raleway;
    color: var(--Primary-4);
    margin: 0;
}

li {
    font-family: Raleway;
    color: var(--Primary-4);
}

a {
    font-family: Raleway;
    text-decoration: none;
}

input {
    width: 100%;
    border: none;
    height: 35.2px;
    padding: 7px;
    border: solid 1px var(--Primary-2);
    box-sizing: border-box;
    color: var(--Primary-6);
}

select {
    border: solid 1px var(--Primary-2);
    background-color: white;
    padding: 5px;
}

/* Header */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 181px;
    background-color: var(--Primary-5);
    flex-direction: column;
    flex-shrink: 0;
}

header h1 {
    font-size: 50px;
    color: var(--Primary-1);
    font-family: Raleway;
    margin: 10px;
}

header p {
    font-size: small;
    color: white;
}

.header-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.header-nav a {
    border-radius: 10px;
    color: var(--Primary-1);
    background-color: transparent;
    font-size: 19px;
    padding: 6px;
    transition: all 0.3s;
}

.header-nav a:hover {
    color: var(--Primary-1);
    background-color: var(--Primary-4);
}

/* Intro */

.intro {
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    background-color: var(--Primary-0);
}

.intro-info {
    display: block;
    padding-top: 20px;
    max-width: 800px;
}

.intro-info h1 {
    font-size: 40px;
    margin: 20px;
}

.intro-info p {
    font-size: 20px;
    margin: 10px;
}

/* Categories */

.categories {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.categories a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 150px;
    border-radius: 10px;
    border: solid 2px var(--Primary-2);
    background-color: transparent;
    color: #D794AF;
    transition: all 0.3s;
    font-weight: bold;
}

.categories a:hover {
    color: white;
    background-color: var(--Primary-2);
}

/* Active category / subcategory */
.categories a.active {
    color: white;
    background-color: var(--Primary-4);
}

/* Podkategorie styling (slightly smaller) */
#podkategorie a {
    width: 120px;
    height: 36px;
    font-size: 14px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    color: var(--Primary-5);
}

.breadcrumb a {
    color: var(--Primary-6);
    text-decoration: underline;
}

/* Products */

.products-div {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.products {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 90%;
    margin: auto;
}

.product {
    display: flex;
}

.top-products-list {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.product-div {
    display: flex;
    width: 350px;
    height: 341px;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transform: scale(0.95);
    overflow: hidden;
}

.product-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.product-preview-image {
    width: 350px;
    height: 200px;
    flex-shrink: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: all 0.3s;
    --bg-image: none;
    animation: none;
}

.product-preview-image-title {
    display: flex;
    width: 250px;
    height: 100px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-preview-image-theme {
    display: flex;
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-details {
    display: flex;
    height: 100px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    border-bottom: 1.5px solid var(--Primary-2, #392948);
    background: var(--Primary-2, #2E213A);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: all 0.3s;
}

.product-title {
    color: var(--Primary-6, #E6B3F6);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-family: "Raleway";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    text-align: left;
    line-height: 28px;
    letter-spacing: -0.28px;
    margin: 0;
    overflow: hidden;
}

.product-type {
    color: var(--Neutral-Neutral-700, #977AB3);

    /* Caption 1/600 - Semibold */
    font-family: "Raleway";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 142.857% */
    letter-spacing: -0.14px;
    margin: 0;
}

.product-details-a {
    display: flex;
    width: 235px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.product-details-tags {
    display: flex;
    width: 235px;
    justify-content: left;
    align-items: center;
    gap: 5px;
}

.product-details-tags-price {
    display: flex;
    padding: 6px 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    background: var(--Primary-5, #392948);
}

.product-details-tags-price p {
    color: var(--Primary-2, #D680F0);

    /* Caption 2/700 - Bold */
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    /* 133.333% */
    letter-spacing: -0.12px;
    margin: 0;
}

.product-details-tags-type {
    display: flex;
    padding: 6px 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
}

.product-details-tags-type p {
    color: var(--Primary-2, #D680F0);

    /* Caption 2/700 - Bold */
    font-family: "Raleway";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    /* 133.333% */
    letter-spacing: -0.12px;
    margin: 0;
}

.product-details-title {
    display: flex;
    width: 235px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-details-info {
    display: flex;
    width: 284px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.product-details-info-author {
    display: flex;
    width: 235px;
    align-items: flex-start;
    gap: 2px;
}

.product-details-info-author-a {
    color: var(--Neutral-Neutral-700, #977AB3);

    /* Caption 1/500 -Medium */
    font-family: "Raleway";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    /* 142.857% */
    letter-spacing: -0.14px;
    margin: 0;
}

.product-details-info-author-b {
    color: var(--Primary-Primary-800, #E6B3F6);

    /* Caption 1/600 - Semibold */
    font-family: "Raleway";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 142.857% */
    letter-spacing: -0.14px;
    margin: 0;
}

.product-details-info-description {
    color: var(--Primary-4);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    height: 24px;
    /* Body 2/500 - Medium */
    font-family: "Raleway";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    /* 150% */
    letter-spacing: -0.192px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-item-div {
    display: inline-table;
    position: sticky;
    max-width: 200px;
    height: 300px;
    max-height: 350px;
    background-color: var(--Primary-5);
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.418);
    cursor: pointer;
    margin: 10px 10px;
    z-index: 1;
    border-radius: 5px;
    transform: scale(1);
}

.product-div:hover .product-preview-image {
    width: 500px;
    height: 340px;
    animation: product-gradient 0.3s;
    background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 15%), var(--bg-image);
    box-shadow: inset 0 0 20px rgba(215, 148, 175, 0.3), 0 0 15px rgba(215, 148, 175, 0.2);
}

@keyframes product-gradient {
    0% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 0%), var(--bg-image);
    }

    5% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 1%), var(--bg-image);
    }

    10% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 2%), var(--bg-image);
    }

    15% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 3%), var(--bg-image);
    }

    20% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 4%), var(--bg-image);
    }

    25% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 5%), var(--bg-image);
    }

    30% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 6%), var(--bg-image);
    }

    35% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 7%), var(--bg-image);
    }

    40% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 8%), var(--bg-image);
    }

    45% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 9%), var(--bg-image);
    }

    50% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 10%), var(--bg-image);
    }

    55% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 11%), var(--bg-image);
    }

    60% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 12%), var(--bg-image);
    }

    65% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 13%), var(--bg-image);
    }

    70% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 14%), var(--bg-image);
    }

    100% {
        background-image: linear-gradient(to top, var(--Primary-2) 0.5%, transparent 15%), var(--bg-image);
    }
}

.product-div:hover .product-details {
    height: 0px;
    overflow: hidden;
    padding: 0px 20px;
    border-bottom: none;
}

.product-div:hover .product-preview {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.store-item-full {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    overflow: auto;
    padding: 30px;
    gap: 50px;
}

.store-item-image {
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.image-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.image-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f8bbd0;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.image-dot.active {
    background: #e75480;
}

.store-item-image img {
    width: 550px;
    border-radius: 35px;
}

.store-item-full-side {
    width: 350px;
    max-width: 350px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.store-item-full-side h1 {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-item-full-side p {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.store-item-full-button {
    margin-top: 10px;
    margin-bottom: 15px;
    width: 300px;
    height: 50px;
    background-color: var(--Primary-5);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--Primary-0);
    font-family: Poppins;
}

.store-item-full-button p {
    margin: 0;
    text-align: center;
}

.store-item-full-button:hover {
    background-color: var(--Primary-6);
}

/* Cart */

.cart {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

.cart-items {
    display: flex;
    flex-direction: column;
    width: 70%;
    color: var(--Primary-5);
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
}

.cart-items-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.cart-items-products {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-items-products a {
    display: flex;
    min-width: 400px;
    background-color: var(--Primary-4);
    border-radius: 20px;
    align-items: center;
}

.cart-items-image {
    height: 100%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    width: 60%;
    background-size: cover;
    background-position: center;
}

.cart-items-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
}

.cart-items-details h1 {
    color: var(--Primary-0);
    font-size: 20px;
}

.cart-items-details p {
    color: var(--Primary-0);
    font-family: Poppins;
    font-weight: 400;
}

.cart-noitems {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cart-summary {
    display: flex;
    width: 30%;
    border-left: solid 1.5px var(--Primary-1);
    padding: 15px;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
}

.cart-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-summary-items a {
    display: flex;
    width: 80%;
    height: 80px;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
}

.cart-summary-items-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cart-summary-items-text h1 {
    font-size: 23px;
}

.cart-summary-items-text p {
    font-family: Poppins;
    font-weight: normal;
}

.cart-summary-items img {
    width: 50px;
}


.cart-summary-subtotal {
    display: flex;
    position: relative;
    bottom: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    margin-top: auto;
}

.order-qr {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    height: 100%;
}

.module {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.module h1 {
    font-size: 25px;
    color: var(--Primary-4);
}

.module-values {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.module-barvy {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--Primary-2);
    border: solid 3px white;
    transition: border 0.2s;
    animation: none;
}

.module-barvy.active {
    border: solid 3px var(--Primary-3);
    animation: module-select 0.2s;
}

.module-variace {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: none;
    border: solid 3px white;
    transition: border 0.2s;
    animation: none;
    background-size: cover;
    background-position: center;
}

.module-variace.active {
    border: solid 3px var(--Primary-3);
    animation: module-select 0.2s;
}

@keyframes module-select {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.9);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.contact {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    flex-direction: row;
    gap: 50px;
    justify-content: center;
}

@media screen and (max-width: 1100px) {

    .top-products-list {
        flex-direction: column;
    }

    .contact {
        flex-direction: column;
        gap: 10px;
        margin-top: 50px;
    }

    .store-item-full {
        flex-direction: column;
        overflow: hidden;
        align-items: center;
    }

    .store-item-full-side {
        width: 100%;
        max-width: 100%;
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .store-item-image {
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
    }

    .store-item-image img {
        width: 100%;
    }

    .store-item-full-side h1,
    .store-item-full-side p,
    .store-item-full-side input,
    .store-item-full-side select,
    .store-item-full-side textarea,
    .store-item-full-side button {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .cart {
        flex-direction: column;
    }

    .cart-items {
        width: 100%;
    }

    .cart-summary {
        width: 100%;
    }

    input,
    select {
        text-align: center;
    }

    .cart-items-products a {
        min-width: 100%;
    }

    .cart-items {
        overflow-y: unset;
    }

    .order-qr {
        padding: 20px;
    }
}

body {
    height: auto;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--Primary-1);
    flex-direction: row;
    flex-shrink: 0;
    gap: 23px;
    padding: 24px;
    flex-wrap: wrap;
    box-sizing: border-box;
    bottom: 0;
    position: absolute;
}

/* Zoom efekt na detailní stránce produktu */
.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-container.zoomed {
    cursor: zoom-out;
}

.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
}

.zoom-container.zoomed .zoom-image {
    transform: scale(2);
    cursor: grab;
}

.zoom-container.zoomed .zoom-image:active {
    cursor: grabbing;
}

.zoom-magnifier {
    position: absolute;
    border: 2px solid var(--Primary-3);
    background-color: rgba(215, 148, 175, 0.1);
    display: none;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px var(--Primary-3);
    transition: opacity 0.2s;
    width: 80px;
    height: 80px;
}

.zoom-container.zoomed .zoom-magnifier {
    display: block;
}
/* ===== Doplňky: objednávka, chyby, souhlas ===== */

.form-error {
    background: #fde8ec;
    border: 1px solid #e3a1b0;
    color: #8a1f3a;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-family: Poppins, sans-serif;
}

.cart-summary textarea {
    width: 100%;
    box-sizing: border-box;
    border: solid 1px var(--Primary-2);
    padding: 7px;
    font-family: inherit;
    font-size: 13.33px;
    resize: vertical;
    background: #fff;
    color: var(--Primary-6);
}

.cart-summary-shipping {
    margin-top: 30px;
    color: var(--Primary-5);
}

.terms-check, .cart-summary-shipping {
    font-family: Poppins, sans-serif;
}

.terms-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    font-size: 14px;
    margin: 12px 0;
    cursor: pointer;
}

.terms-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    accent-color: var(--Primary-5);
}

.terms-check a {
    color: var(--Primary-6);
}

#order-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.order-qr {
    padding: 30px 16px;
    text-align: center;
    box-sizing: border-box;
    gap: 16px;
}

.order-qr img {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 6px 24px rgba(103, 45, 71, .15);
}

.order-qr-details p {
    margin: 4px 0;
    font-family: Poppins, sans-serif;
}

.empty-category {
    flex: 0 0 100%;
    text-align: center;
    color: var(--Primary-5);
    max-width: 520px;
    margin: 30px auto;
    line-height: 1.6;
}

/* ===== Hlavička: počet v košíku ===== */
.cart-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 10px;
    background: var(--Primary-2);
    color: var(--Primary-7);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    font-family: Poppins, sans-serif;
}

/* ===== Patička ===== */
footer {
    flex-direction: column;
    gap: 14px;
    padding: 34px 24px 20px;
    color: var(--Primary-6);
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1000px;
    text-align: left;
}

.footer-cols > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    max-width: 300px;
}

.footer-cols p, .footer-legal {
    margin: 0;
    color: var(--Primary-5);
    font-size: 14px;
    line-height: 1.5;
}

.footer-cols a {
    color: var(--Primary-6);
    font-size: 15px;
}

.footer-cols a:hover { text-decoration: underline; }

.footer-brand {
    font-family: Poppins, sans-serif;
    font-weight: 800;
    font-size: 22px !important;
    color: var(--Primary-6) !important;
}

.footer-head {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    color: var(--Primary-6) !important;
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

.footer-legal {
    border-top: 1px solid var(--Primary-2);
    padding-top: 14px;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    font-size: 13px;
}

/* ===== Cookie lišta ===== */
.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 760px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(68, 12, 41, .25);
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: var(--Primary-7);
}

.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; line-height: 1.5; }
.cookie-bar a { color: var(--Primary-5); text-decoration: underline; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: var(--Primary-5);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.cookie-btn:hover { background: var(--Primary-6); }
.cookie-btn-ghost { background: var(--Primary-0); color: var(--Primary-6); }
.cookie-btn-ghost:hover { background: var(--Primary-1); }

@media (max-width: 640px) {
    .cookie-bar { flex-direction: column; align-items: stretch; }
    .cookie-actions > * { flex: 1; }
}

/* ===== Právní stránky ===== */
.legal {
    max-width: 860px;
    margin: 30px auto 60px;
    padding: 36px 40px;
    background: #fff;
    border-radius: 20px;
    box-sizing: border-box;
    color: #3a2430;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.legal h1 { color: var(--Primary-6); font-size: 30px; line-height: 1.25; margin-top: 0; }
.legal h2 { color: var(--Primary-5); font-size: 19px; margin: 30px 0 8px; }
.legal a { color: var(--Primary-5); text-decoration: underline; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-meta { color: var(--Primary-4); font-size: 13px; margin-top: -8px; }
.legal-form { background: var(--Primary-0); border-radius: 12px; padding: 4px 18px; }
.legal .steps li { margin: 14px 0; }

@media (max-width: 640px) {
    .legal { margin: 0; border-radius: 0; padding: 24px 18px; }
}

/* ===== Kontakt ===== */
.contact {
    align-items: flex-start;
    padding: 30px 20px 50px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.contact-info { max-width: 460px; font-family: Poppins, sans-serif; }
.contact-info h1 { color: var(--Primary-6); }
.contact-info a { color: var(--Primary-5); }

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    margin: 14px 0;
}

.contact-card h2 { font-size: 17px; color: var(--Primary-5); margin: 0 0 6px; }
.contact-card p { margin: 3px 0; }

.map { flex: 1 1 420px; max-width: 640px; }
.map iframe { border-radius: 16px; }

.map-placeholder {
    height: 450px;
    border-radius: 16px;
    background: var(--Primary-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
    font-family: Poppins, sans-serif;
    color: var(--Primary-6);
    padding: 20px;
    box-sizing: border-box;
}

.map-note { font-size: 13px; color: var(--Primary-5); }
.map-note a { color: var(--Primary-6); text-decoration: underline; }

/* ===== Produkt: chybějící volba ===== */
.module-missing {
    outline: 2px solid #000;
    outline-offset: 6px;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .footer-cols { gap: 28px; flex-direction: column; align-items: stretch; }
    .footer-cols > div { max-width: none; min-width: 0; }
}

/* ===== Slevový kód v košíku ===== */
.discount-box { margin-top: 18px; font-family: Poppins, sans-serif; }
.discount-row { display: flex; gap: 8px; }
.discount-row input { flex: 1; text-transform: uppercase; }
.discount-btn {
    border: 1px solid var(--Primary-4);
    background: #fff;
    color: var(--Primary-6);
    padding: 0 16px;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    cursor: pointer;
}
.discount-btn:hover { background: var(--Primary-0); }
.discount-msg { margin: 6px 0 0; font-size: 13px; min-height: 1em; }
.discount-msg.ok { color: #2e7d5b; }
.discount-msg.err { color: #a3203c; }
.discount-msg a { color: inherit; text-decoration: underline; margin-left: 4px; }
.cart-summary-discount { color: #2e7d5b; font-family: Poppins, sans-serif; margin: 4px 0; }
#cart-summary-items-sum { margin-top: 24px; }

#cart-summary-shipping { margin-top: 4px; }

.cart-summary select { max-width: 100%; box-sizing: border-box; }
.cart-summary-items-text { min-width: 0; flex: 1; }

/* ===== Hodnocení a recenze ===== */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .star {
    width: var(--s); height: var(--s); display: inline-block;
    background: linear-gradient(90deg, #e0a100 var(--f), #e6d6de var(--f));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rating-summary { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; color: var(--Primary-5); font-family: Poppins, sans-serif; font-size: 14px; text-decoration: none; }
.rating-summary:hover span { text-decoration: underline; }

.product-rating {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px;
    background: #fff; color: #b07a00; font-family: Poppins, sans-serif; font-size: 12px; font-weight: 700;
}

.reviews { max-width: 800px; margin: 10px auto 50px; padding: 0 20px; font-family: Poppins, sans-serif; color: #3a2430; }
.reviews h2 { color: var(--Primary-6); }
.reviews-empty, .reviews-note { color: var(--Primary-5); font-size: 14px; }
.reviews-note { font-size: 12px; margin-top: 18px; }
.reviews-summary { display: flex; gap: 30px; align-items: center; background: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 16px; flex-wrap: wrap; }
.reviews-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.reviews-score b { font-size: 40px; color: var(--Primary-6); line-height: 1; }
.reviews-score span { font-size: 13px; color: var(--Primary-5); }
.reviews-bars { flex: 1; min-width: 200px; }
.reviews-bars div { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 3px 0; }
.reviews-bars i { flex: 1; height: 8px; background: var(--Primary-0); border-radius: 8px; overflow: hidden; }
.reviews-bars i b { display: block; height: 100%; background: #e0a100; }
.reviews-bars span:first-child { width: 30px; } .reviews-bars span:last-child { width: 24px; text-align: right; color: var(--Primary-5); }
.review { background: #fff; border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.review-top time { margin-left: auto; color: var(--Primary-4); font-size: 12px; }
.review-verified { color: #2e7d5b; font-size: 12px; }
.review p { margin: 8px 0 0; line-height: 1.6; }
.review-answer { margin-top: 10px; background: var(--Primary-0); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* formulář hodnocení */
.review-page .review-item { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--Primary-1); padding: 18px 0; }
.review-page .review-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.review-page .review-item > div { flex: 1; }
.review-page .review-item h2 { margin: 0 0 4px; font-size: 17px; }
.review-page textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--Primary-2); border-radius: 10px; padding: 9px; font: inherit; font-size: 14px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 2px 0 8px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; line-height: 1; color: #e6d6de; cursor: pointer; transition: transform .1s, color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #e0a100; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--Primary-3); border-radius: 4px; }
.review-name { display: block; margin: 16px 0; font-size: 14px; color: var(--Primary-5); }
.review-name input { display: block; margin-top: 4px; max-width: 320px; }
.review-submit { width: 100%; max-width: 320px; border: none; color: #fff; font-weight: 700; cursor: pointer; }
.review-thanks { background: #e7f5ee; color: #1f5e43; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.muted-small { font-size: 12px; color: var(--Primary-4); }
@media (max-width: 600px) { .review-page .review-item img { width: 64px; height: 64px; } }

/* ===== Stránka platby: čekání a potvrzení ===== */
.pay-watch { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 16px; color: var(--Primary-6); font-family: Poppins, sans-serif; font-size: 14px; }
.pay-watch[hidden] { display: none; }
.pay-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0a100; flex-shrink: 0; animation: payPulse 1.4s ease-in-out infinite; }
@keyframes payPulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
.pay-done[hidden], #pay-wait[hidden] { display: none; }
.pay-done { animation: payIn .45s ease-out; }
.pay-check { width: 84px; height: 84px; border-radius: 50%; background: #2e7d5b; color: #fff; font-size: 46px; line-height: 84px; text-align: center; box-shadow: 0 8px 28px rgba(46, 125, 91, .35); animation: payPop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes payIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes payPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pay-dot, .pay-done, .pay-check { animation: none; } }

/* ===== Rozložení stránky: patička vždy pod obsahem (dřív překrývala obsah na užších obrazovkách) ===== */
html { padding-bottom: 0; min-height: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; height: auto; }
body > main { flex: 1 0 auto; height: auto; }
footer { position: static; bottom: auto; margin-top: auto; }
