/* =====================================
 ROOT
 ===================================== */
:root {
    --reda: #dc2a1f;
    --reda-dark: #b82218;
    --reda-light: #fff5f5;

    --bg: #f5f6f8;
    --bg-card: #ffffff;

    --border: #e5e7eb;

    --text: #222222;
    --text-light: #6b7280;

    --radius: 16px;

    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =====================================
GLOBAL
===================================== */

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;

    background:
            linear-gradient(
                    180deg,
                    #f8fafc 0%,
                    #eef2f7 100%
            );

    color: var(--text);

    font-family:
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
}

a {
    color: var(--reda);
    text-decoration: none;
}

.cb,
.old,
#topWindow.old {
    display: none !important;
}

/* =====================================
LAYOUT
===================================== */

#main {
    width: 100%;
}

#middle {
    width: 100% !important;
    max-width: 1440px;

    margin: 0 auto;

    padding: 32px 24px 48px;

    box-sizing: border-box;
}

#cont {
    width: 100% !important;
    max-width: 100% !important;

    float: none !important;

    padding: 0 !important;
}

.ds-container {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    padding: 0 32px;

    box-sizing: border-box;
}

/* =====================================
LEGACY RESET
===================================== */

.container {
    width: 100% !important;
    max-width: 100% !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

#middle .row {
    width: 100% !important;

    margin: 0 !important;
}

#left {
    display: none !important;
}


/* =====================================
HEADER
===================================== */

.ds-header {
    position: sticky;
    top: 0;
    z-index: 999;

    background: rgba(255,255,255,.92);

    backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--border);

    box-shadow: 0 4px 24px rgba(0,0,0,.04);
}

/* =====================================
TOPBAR
===================================== */

.ds-topbar {
    padding: 10px 0 0;
}

.ds-topbar-inner {
    min-height: 42px;

    padding: 0 20px;

    border-radius: 14px;

    background: rgba(255,255,255,.7);

    border: 1px solid rgba(0,0,0,.04);
}

/* =====================================
HEADER MAIN
===================================== */

.ds-header-main-inner {
    display: grid !important;

    grid-template-columns:
        220px
        minmax(500px, 1fr)
        auto;

    align-items: center !important;

    gap: 40px !important;

    min-height: 110px;

    width: 100%;
}

/* =====================================
LOGO
===================================== */

html body #logo,
html body .ds-logo {
    background-image: url('/img/logo.png?v=99') !important;

    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;

    width: 220px !important;
    height: 72px !important;

    display: block !important;

    text-indent: -9999px !important;

    overflow: hidden !important;
}

/* =====================================
SEARCH
===================================== */

#search,
.ds-search-form {
    display: flex !important;

    align-items: center !important;

    width: 100%;

    gap: 0 !important;
}

.ds-search-input {
    flex: 1;

    height: 56px !important;

    padding: 0 24px !important;

    border: 1px solid var(--border) !important;

    border-right: none !important;

    border-radius: 18px 0 0 18px !important;

    background: #fff !important;
}

.ds-search-button {
    height: 56px !important;

    padding: 0 30px !important;

    border: none !important;

    border-radius: 0 18px 18px 0 !important;

    background: var(--reda) !important;

    color: #fff !important;
}

/* =====================================
CART
===================================== */

#kosik a {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 10px !important;

    height: 56px !important;

    padding: 0 22px !important;

    border-radius: 18px !important;

    background: #fff !important;

    border: 1px solid var(--border) !important;

    color: var(--text) !important;

    font-weight: 700 !important;
}

/* =====================================
CATEGORY MENU
===================================== */

#tree1 {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex-wrap: wrap !important;

    gap: 16px !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

#tree1 > li > a {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 44px !important;

    padding: 0 20px !important;

    border: 1px solid var(--border) !important;
    border-radius: 999px !important;

    background: #fff !important;

    color: var(--text) !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}

/* =====================================
PRODUCT GRID
===================================== */

.ds-products-grid {
    display: flex;
    flex-wrap: wrap;

    gap: 24px;

    align-items: stretch;
}

.ds-products-grid > .produkt,
.ds-products-grid > .produkt[class*="col-"] {
    width: calc((100% - 48px) / 3) !important;
    max-width: calc((100% - 48px) / 3) !important;

    flex: 0 0 calc((100% - 48px) / 3) !important;

    float: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================
PRODUCT CARD
===================================== */

.ds-products-grid .product-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    min-height: 420px;

    padding: 24px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow-sm);

    transition: 0.2s ease;
}

.ds-products-grid .product-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}

/* =====================================
PRODUCT DETAIL
===================================== */

.ds-product-detail {
    display: flex;
    align-items: flex-start;

    gap: 64px;

    padding: 48px;

    background: #fff;

    border-radius: 28px;

    box-shadow: var(--shadow-sm);
}

/* =====================================
LOGIN PAGE
===================================== */

.ds-login-page {
    display: flex;

    justify-content: center;

    width: 100%;

    padding: 40px 20px 100px;
}

.ds-login-card {
    width: 100%;

    max-width: 520px !important;

    padding: 56px 48px;

    border-radius: 32px;

    border: 1px solid rgba(255,255,255,.7);

    background: #ffffff;

    backdrop-filter: blur(10px);

    box-shadow:
            0 20px 60px rgba(15, 23, 42, 0.08);
}

/* =====================================
FOOTER
===================================== */

.ds-footer {
    margin-top: 80px;

    background: #071224;

    color: rgba(255,255,255,.72);
}

.ds-footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr .7fr;

    gap: 32px;
}

/* =====================================
PRODUCT CARD POLISH
===================================== */

.ds-products-grid .product-card {
    position: relative;

    padding: 20px 20px 18px;

    border-radius: 24px;

    background: #fff;

    border: 1px solid #e7eaf0;

    box-shadow:
            0 1px 2px rgba(16,24,40,.04),
            0 1px 3px rgba(16,24,40,.06);

    transition:
            transform .18s ease,
            box-shadow .18s ease,
            border-color .18s ease;
}

.ds-products-grid .product-card:hover {
    transform: translateY(-2px);

    border-color: #d8dee8;

    box-shadow:
            0 10px 28px rgba(16,24,40,.08);
}

/* =====================================
TITLE
===================================== */

.ds-products-grid h3 {
    display: flex;

    align-items: flex-start;
    justify-content: center;

    min-height: 48px;

    margin:
            0
            0
            18px;

    padding: 0 10px;

    color: #111827;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;

    text-align: center;

    letter-spacing: -.01em;
}

/* =====================================
IMAGE
===================================== */

.ds-products-grid .detail-odkaz {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 220px;

    margin-bottom: 18px;

    padding: 12px;
}

.ds-products-grid .detail-odkaz img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transition:
            transform .2s ease;
}

.ds-products-grid .product-card:hover .detail-odkaz img {
    transform: scale(1.015);
}

/* =====================================
INFO
===================================== */

.ds-products-grid .info {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-top: auto;
}

/* oblíbené */

.ds-products-grid .favorite {
    color: var(--reda);

    font-size: 13px;

    line-height: 1.4;
}

/* sklad */

.ds-products-grid .sklad {
    color: #6b7280;

    font-size: 13px;
}

/* =====================================
BOTTOM
===================================== */

.ds-products-grid .bottom {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 14px;

    margin-top: 18px;
}

/* =====================================
PRICE
===================================== */

.ds-products-grid .price {
    color: #111827;

    font-size: 24px;
    font-weight: 700;

    line-height: 1;
}

/* =====================================
BUTTON
===================================== */

.ds-buy-button,
.btn-buy {
    min-width: 104px;
    min-height: 44px;

    padding: 0 18px;

    border-radius: 14px;

    background: var(--reda);

    font-size: 14px;
    font-weight: 700;

    box-shadow:
            0 4px 12px rgba(220,42,31,.18);

    transition:
            transform .15s ease,
            box-shadow .18s ease,
            background .18s ease;
}

.ds-buy-button:hover,
.btn-buy:hover {
    transform: translateY(-1px);

    box-shadow:
            0 10px 20px rgba(220,42,31,.22);
}

/* =====================================
PRODUCT CARD
===================================== */

.prod.product-card {
    display: flex;

    flex-direction: column;

    height: 100%;
}

/* =====================================
INFO
===================================== */

.prod.product-card .info {
    display: flex;

    flex-direction: column;

    flex: 1;
}

/* =====================================
BOTTOM
===================================== */

.prod.product-card .bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-top: auto;

    padding-top: 20px;
}

/* =====================================
PRICE
===================================== */

.prod.product-card .price {
    font-size: 30px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: -.03em;

    color: #111827;
}

/* =====================================
FORM
===================================== */

.prod.product-card .bottom form {
    margin: 0;
}

/* =====================================
BUTTON
===================================== */

.prod.product-card .btn-buy {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 112px;
    height: 46px;

    padding: 0 22px;

    border-radius: 14px;

    white-space: nowrap;
}

/* =====================================
INFO AREA
===================================== */

.prod.product-card .info {
    display: flex;

    flex-direction: column;

    flex: 1;

    align-items: center;

    text-align: center;
}

/* =====================================
FAVOURITES
===================================== */

.prod.product-card .fav {
    margin-bottom: 6px;

    line-height: 1.4;
}

.prod.product-card .fav a {
    color: var(--reda);

    font-size: 13px;

    text-decoration: none;
}

/* =====================================
META
===================================== */

.prod.product-card .meta {
    display: flex;

    justify-content: center;

    width: 100%;
}

.prod.product-card .stock {
    display: flex;

    align-items: center;

    gap: 4px;

    color: #6b7280;

    font-size: 13px;
}

/* =====================================
BOTTOM
===================================== */

.prod.product-card .bottom {
    width: 100%;
}

/* =====================================
FAVOURITES
===================================== */

.prod.product-card .fav {
    display: flex;

    justify-content: center;

    width: 100%;

    margin-bottom: 8px;
}

/* link */

.prod.product-card .fav a {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    font-size: 0;

    text-decoration: none;

    border-radius: 50%;

    transition:
            background .18s ease,
            transform .18s ease,
            opacity .18s ease;
}

/* default = outline */

.prod.product-card .fav a::before {
    content: "♡";

    font-size: 18px;

    color: var(--reda);

    line-height: 1;
}

/* active */

.prod.product-card .fav a.old + a::before,
.prod.product-card .fav a.active::before {
    content: "♥";
}

/* hover */

.prod.product-card .fav a:hover {
    background: rgba(220,42,31,.08);

    transform: scale(1.06);
}

/* =====================================
META ROW
===================================== */

.prod.product-card .meta {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;
}

/* stock */

.prod.product-card .stock {
    display: flex;

    align-items: center;

    gap: 4px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1;
}

/* =====================================
FAVOURITES
===================================== */

.prod.product-card .fav {
    display: flex;

    align-items: center;
}

/* heart */

.prod.product-card .fav a {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    font-size: 0;

    border-radius: 50%;

    transition:
            background .18s ease,
            transform .18s ease;
}

/* default */

.prod.product-card .fav a::before {
    content: "♡";

    font-size: 18px;

    color: var(--reda);

    line-height: 1;
}

/* active */

.prod.product-card .fav a.old + a::before,
.prod.product-card .fav a.active::before {
    content: "♥";
}


/* =====================================
BUTTON
===================================== */

.prod.product-card .btn-buy {
    flex: 0 0 auto;

    min-width: 96px;

    height: 44px;

    padding: 0 18px;

    border-radius: 14px;

    white-space: nowrap;
}

/* =====================================
INFO
===================================== */

.prod.product-card .info {
    display: flex;

    flex-direction: column;

    flex: 1;
}

/* =====================================
META ROW
===================================== */

.prod.product-card .meta {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    margin-top: 2px;
}

/* =====================================
FAVOURITES
===================================== */

.prod.product-card .fav {
    display: flex;

    justify-content: center;

    margin-bottom: -18px;
}

/* heart */

.prod.product-card .fav a {
    position: relative;

    top: 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    font-size: 0;

    text-decoration: none;
}

/* default */

.prod.product-card .fav a::before {
    content: "♡";

    font-size: 17px;

    color: var(--reda);

    line-height: 1;
}

/* active */

.prod.product-card .fav a.old + a::before,
.prod.product-card .fav a.active::before {
    content: "♥";
}

/* =====================================
BOTTOM
===================================== */

.prod.product-card .bottom {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: center;

    gap: 14px;

    width: 100%;

    margin-top: auto;

    padding-top: 18px;
}

/* =====================================
PRICE
===================================== */

.prod.product-card .price {
    color: #111827;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -.01em;

    white-space: nowrap;
}

/* =====================================
BUTTON
===================================== */

.prod.product-card .btn-buy {
    min-width: 92px;

    height: 42px;

    padding: 0 18px;

    border-radius: 14px;

    white-space: nowrap;
}

/* =====================================
CARD HOVER
===================================== */

.prod.product-card {
    transition:
            transform .18s ease,
            box-shadow .22s ease,
            border-color .22s ease;
}

.prod.product-card:hover {
    transform: translateY(-3px);

    border-color: #d9dee7;

    box-shadow:
            0 12px 28px rgba(15,23,42,.07);
}

/* =====================================
IMAGE
===================================== */

.prod.product-card .detail-odkaz img {
    transition:
            transform .25s ease;
}

.prod.product-card:hover .detail-odkaz img {
    transform: scale(1.02);
}

/* =====================================
TITLE
===================================== */

.prod.product-card h3 a {
    transition:
            color .18s ease;
}

.prod.product-card:hover h3 a {
    color: var(--reda);
}

/* =====================================
DETAIL LAYOUT
===================================== */

.ds-product-detail {
    display: grid;

    grid-template-columns:
        minmax(420px, 720px)
        minmax(320px, 440px);

    align-items: start;

    gap: 56px;

    padding: 40px;

    border-radius: 32px;

    background: #fff;

    border: 1px solid #e7eaf0;

    box-shadow:
            0 10px 30px rgba(15,23,42,.05);
}

/* =====================================
IMAGE
===================================== */

.ds-product-image {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 32px;

    border-radius: 28px;

    background:
            linear-gradient(
                    180deg,
                    #fafbfd 0%,
                    #f4f6f9 100%
            );

    border: 1px solid #edf1f5;
}

.ds-product-image img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 620px;

    object-fit: contain;
}

/* =====================================
INFO
===================================== */

.ds-product-info {
    display: flex;

    flex-direction: column;

    gap: 28px;

    padding-top: 8px;
}

/* =====================================
TITLE
===================================== */

.ds-product-title {
    margin: 0;

    color: var(--reda);

    font-size: 52px;
    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -.04em;
}

/* =====================================
TOP META
===================================== */

.ds-product-top {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.ds-product-code,
.ds-product-stock {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #6b7280;

    font-size: 14px;
}

.ds-product-code strong,
.ds-product-stock strong {
    color: #111827;
}

/* =====================================
PRICE
===================================== */

.ds-product-price-wrap {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.ds-product-price-main {
    color: #111827;

    font-size: 54px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: -.05em;
}

.ds-product-price-meta {
    display: flex;

    flex-direction: column;

    gap: 4px;

    color: #6b7280;

    font-size: 14px;
}

/* =====================================
DESCRIPTION
===================================== */

.ds-product-description {
    max-width: 560px;

    color: #374151;

    font-size: 15px;

    line-height: 1.75;
}

/* =====================================
ACTIONS
===================================== */

.ds-product-actions {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 18px;

    padding-top: 10px;
}



/* =====================================
BUY ROW
===================================== */

.ds-product-buy {
    display: flex;

    align-items: center;

    gap: 10px;
}

/* qty */

.ds-qty-input {
    width: 72px;
    height: 48px;

    padding: 0 12px;

    border: 1px solid #dbe2ea;

    border-radius: 14px;

    background: #fff;

    text-align: center;

    font-size: 15px;
    font-weight: 700;
}

/* button */

.ds-buy-button {
    min-width: 120px;
    height: 48px;

    border-radius: 16px;

    font-weight: 700;

    text-transform: none;
}



/* =====================================
FAVOURITE BUTTON
===================================== */

#favourite .button {
    min-height: 48px;

    padding: 0 22px;

    border-radius: 16px;

    background: var(--reda-light);

    color: var(--reda);

    border: 1px solid rgba(220,42,31,.14);

    font-weight: 700;

    transition:
            background .18s ease,
            border-color .18s ease,
            transform .18s ease;
}

#favourite .button:hover {
    background: rgba(220,42,31,.10);

    border-color: rgba(220,42,31,.22);

    transform: translateY(-1px);
}

/* =====================================
DETAIL IMAGE COLUMN
===================================== */

#detailImg.ds-product-image {
    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 100% !important;

    min-width: 0 !important;
}

/* =====================================
IMAGE BOX
===================================== */

#detailImg.ds-product-image img {
    display: block;

    width: 100% !important;

    max-width: 760px !important;

    height: auto !important;

    max-height: none !important;

    object-fit: contain;
}

/* =====================================
DETAIL TOOLBAR
===================================== */

.ds-detail-toolbar {
    margin-bottom: 20px;
}

/* =====================================
BACK BUTTON
===================================== */

.ds-back-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 18px;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    background: #fff;

    color: #374151;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
            0 1px 2px rgba(15,23,42,.04);

    transition:
            background .18s ease,
            border-color .18s ease,
            transform .18s ease,
            box-shadow .18s ease;
}

/* arrow */

.ds-back-button::before {
    content: "←";

    margin-right: 8px;

    font-size: 15px;
}

/* hover */

.ds-back-button:hover {
    background: #f8fafc;

    border-color: #d9dee7;

    transform: translateY(-1px);

    box-shadow:
            0 8px 20px rgba(15,23,42,.06);
}

/* =====================================
INTRO BANNER
===================================== */

#intro-banner {
    position: relative;

    width: 100%;

    min-height: 320px;

    margin: 0 0 40px;

    overflow: hidden;

    border-radius: 28px;

    background:
            linear-gradient(
                    180deg,
                    #f8fafc 0%,
                    #eef2f7 100%
            );
}

/* wrapper */

#intro-banner .detailPan,
#intro-banner #vypisIntro,
#intro-banner #vypisIntro ul,
#intro-banner #vypisIntro li {
    height: 100%;
}

/* image */

#intro-banner img {
    display: block;

    width: 100%;
    height: 320px;

    object-fit: cover;
}

/* =====================================
INTRO BANNER IMAGE
===================================== */

#intro-banner img {
    display: block;

    width: 100%;
    height: 320px;

    object-fit: cover;

    object-position: left center;
}

/* =====================================
LOGIN PAGE ONLY
===================================== */

.ds-login-page #left {
    display: none !important;
}

.ds-login-page #cont {
    width: 100% !important;

    max-width: 100% !important;

    float: none !important;

    margin: 0 auto !important;

    padding: 0 !important;
}

.ds-login-page #middle {
    width: 100% !important;

    max-width: 100% !important;
}

.ds-login-page .container {
    width: 100% !important;

    max-width: 100% !important;

    padding-left: 0 !important;

    padding-right: 0 !important;
}

.ds-login-page #middle .row {
    margin: 0 !important;

    width: 100% !important;
}

/* =====================================
HIDE UNUSED
===================================== */

#loadTree,
#left h2,

#tree1 .bullet,
#left .p0_20,
#left > div:last-child,
#intro-banner h2,
#intro-banner #introZalozky {
    display: none !important;
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 1200px) {

    .ds-products-grid > .produkt,
    .ds-products-grid > .produkt[class*="col-"] {
        width: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
    }

    .ds-product-detail {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .ds-products-grid > .produkt,
    .ds-products-grid > .produkt[class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ds-product-title {
        font-size: 32px;
    }
}

