/* 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;
}