.page-content{
    width: 100%;
}
main {
    width: 100%;
    display: flex;
    flex-direction: column; /* Horizontální rozložení pro nav-bar a hlavní obsah */
    flex: 1; /* Zabírá zbývající prostor */
    background: transparent;
    position: relative; /* Umožňuje absolutní pozicování v rámci hlavního obsahu */
    background: transparent; /* Zajistěte průhledné pozadí */
}

/* Desktop: main layout řídí navBar.css (.main-with-category-nav) */
body.page-with-category-nav main.main-with-category-nav {
    flex-direction: row;
    align-items: stretch;
}

.product-list {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--secondaryGlass2-color);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeIn 1.3s ease-in-out forwards;
    opacity: 0;
    margin-bottom: 0;
    border-radius: 0;
    padding: 16px clamp(32px, 5vw, 72px) 40px;
    box-sizing: border-box;
}

body.page-with-category-nav .product-list {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    flex: 1;
    min-height: 0;
}

body.page-product.page-with-category-nav .product-list {
    padding-left: clamp(32px, 5vw, 72px);
    padding-right: clamp(32px, 5vw, 72px);
}

body.page-product .page-content,
body.page-product .master {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-product .master {
    align-items: stretch;
}

body.page-product main.main-with-category-nav {
    flex: 1 1 auto;
    align-items: stretch;
    width: 100%;
}

.product-list h3,
.product-title {
    width: 100%;
    color: var(--text2-color);
    text-align: center;
    font-size: clamp(22px, 3vw, 34px);
    margin: 8px 0 6px;
    padding: 0 0 8px;
    border-bottom: 3px solid var(--secondary-color);
    text-shadow: 2px var(--secondary-color);
    box-sizing: border-box;
}

.product-subtitle {
    width: 100%;
    margin: 0 0 12px;
    text-align: center;
    color: var(--text2-color);
    font-weight: 500;
    font-size: 1.05rem;
    box-sizing: border-box;
}

.product-gallery {
    width: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 4px;
    border-bottom: 3px solid var(--secondary-color);
    box-sizing: border-box;
}

.product-gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.product-gallery-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.product-gallery-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(var(--gallery-total, 1) * (100% / var(--gallery-visible, 5)));
    transition: transform 0.35s ease;
    box-sizing: border-box;
}

.product-gallery-track .gallery-item {
    flex: 0 0 calc(100% / var(--gallery-total, 1));
    width: calc(100% / var(--gallery-total, 1));
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 2px;
}

/* Celá fotka, poměr ze souboru, max 400×300 — políčko = fotka */
.product-gallery-track img,
.product-gallery > img,
.product-gallery .gallery-item-solo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(400px, 100%);
    max-height: 300px;
    border-radius: 16px 8px 28px 8px;
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* Jedna fotka */
.product-gallery.gallery-single {
    align-items: center;
    min-height: 0;
}
.product-gallery.gallery-single .gallery-item-solo {
    margin: 0 auto;
    padding: 0;
    display: block;
    width: fit-content;
    max-width: min(400px, 100%);
    box-sizing: border-box;
    background: transparent;
}
.product-gallery.gallery-single .gallery-item-solo img {
    width: auto !important;
    height: auto !important;
    max-width: min(400px, 100%);
    max-height: 300px;
    margin: 0 auto;
    object-fit: contain;
}

/* Málo fotek: políčko sedí na fotce, skupina na střed (ne kraje u 2 fotek) */
.product-gallery.gallery-few .product-gallery-track {
    width: 100% !important;
    transform: none !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.product-gallery.gallery-few .gallery-item {
    flex: 0 1 auto !important;
    width: fit-content !important;
    max-width: min(400px, 100%);
    min-width: 0;
    height: auto !important;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}
.product-gallery.gallery-few .product-gallery-track img {
    width: auto !important;
    height: auto !important;
    max-width: min(400px, 100%);
    max-height: 300px;
    object-fit: contain;
}

/* Hodně fotek: šipky, v každém slotu celá fotka */
.product-gallery.gallery-many .gallery-item {
    min-width: 0;
    height: 300px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    padding: 0 4px;
    box-sizing: border-box;
}
.product-gallery.gallery-many .product-gallery-track img {
    width: auto !important;
    height: auto !important;
    max-width: min(400px, 100%);
    max-height: 300px;
    object-fit: contain;
}

.gallery-nav {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    background: var(--background-yellow);
    color: var(--text2-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-nav svg {
    width: 22px;
    height: 22px;
    display: block;
}

.gallery-nav:hover:not([hidden]) {
    transform: scale(1.08);
    box-shadow: 0 0 8px var(--primary-color);
}

.gallery-nav[hidden] {
    display: none;
}

.product-gallery img:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}




/* Overlay styl */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: none;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.image-overlay.visible {
    opacity: 1;
}

.image-overlay img#enlarged-image {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 30px 10px 60px 10px;
    transition: transform 0.3s, opacity 0.2s;
    transform: scale(0.8);
    box-shadow: 0 0 15px white;
    background: rgba(255, 255, 255, 0.92);
}

.image-overlay.visible img#enlarged-image {
    transform: scale(1);
}

.overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    background: var(--background-yellow);
    color: var(--text2-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.overlay-nav svg {
    width: 26px;
    height: 26px;
    display: block;
}

.overlay-nav:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 10px var(--primary-color);
}

.overlay-nav[hidden] {
    display: none;
}

.overlay-nav-prev {
    left: max(12px, 2vw);
}

.overlay-nav-next {
    right: max(12px, 2vw);
}

.overlay-close {
    position: absolute;
    top: 14px;
    right: max(12px, 2vw);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    background: var(--background-yellow);
    color: var(--text2-color);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.overlay-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    z-index: 2;
}

.overlay-counter[hidden] {
    display: none;
}

/* Rozmazání pozadí */
.page-content.blur {
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

@media (max-width: 768px) {
    .overlay-nav {
        width: 40px;
        height: 40px;
    }
    .overlay-nav svg {
        width: 22px;
        height: 22px;
    }
    .image-overlay img#enlarged-image {
        max-width: 92vw;
        max-height: 78vh;
        border-radius: 20px 5px 30px 5px;
    }
    .overlay-counter {
        bottom: 12px;
        font-size: 14px;
    }
}



.option-section-a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--secondary-color);
    gap: 16px 24px;
    padding: 12px 0 16px;
    box-sizing: border-box;
}

.option-section-b {
    flex: 1 1 280px;
    max-width: 640px;
    min-width: 0;
}

.option-section-c {
    max-width: 360px;
    margin-left: auto;
    align-self: flex-start;
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    box-sizing: border-box;
}

/*  color & size-section -------------------------- */
.color-selection {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    margin-bottom: 20px;
}
.size-selection {
    display: block;
    margin-bottom: 20px;
}

.color-selection h4,
.size-selection h4 {
    color: var(--text2-color);
    font-size: 20px;
    margin: 0;
}

.color-button,
.size-button {
    border: none;
    padding: 10px;
    margin: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-button {
    width: 70px;
    height: 70px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transform: rotate(20deg);
}

.size-button {
    background: var(--background-yellow);
    color: var(--text2-color);
    font-size: 20px;
    font-weight: 500;
    width: 80px;
    height: 60px;
}

.size-button:hover,
.color-button:hover {
    transform: scale(1.15);
}
.color-button.active-color,
.size-button.active-size {
    box-shadow: 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
    animation: shadowChoice 1s alternate infinite;
}
/*  color & size-section -------------------------- */

/*  price-section --------------------------------- */
.price-section {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.price-section p {
    font-size: 24px;
    color: var(--text2-color);
    margin: 0;
    padding: 0;
    text-align: right;
    line-height: 1.3;
}

.old-price {
    text-decoration: line-through;
    color: #999;
}

.new-price {
    color: #d9534f;
    font-weight: bold;
}

.sale-animation {
    font-size: 20px;
    color: #ff4500;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.sale-percentage {
    font-size: 24px;
    color: #d9534f;
    font-weight: bold;
}


.price {
    font-weight: bold;
    color: var(--text2-color);
}

.vip-price-badge {
    font-size: 18px;
    font-weight: 700;
    color: var(--link-color);
    margin: 0;
    text-align: right;
    width: 100%;
}
/*  price-section --------------------------------- */



/*  cart-section ---------------------------------- */
.product-unavailable-notice {
    margin-top: 0;
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--staging-feed-missing-color, #c00);
    border: 2px solid var(--staging-feed-missing-color, #c00);
    border-radius: 6px;
    background: var(--secondary-background-color, #f5f5f5);
    width: 100%;
    box-sizing: border-box;
    text-align: right;
}

.payper-gallery-hint,
.payper-size-hint {
    color: var(--text2-color, #151515);
    font-style: italic;
    padding: 0.5rem 0;
    margin: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.cart-section {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    text-align: right;
}

.cart-qty-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cart-section label {
    font-size: 16px;
    margin: 0;
}

.cart-section input[type="number"] {
    width: 70px;
    height: 40px;
    padding: 5px;
    background: var(--input-background);
    color: var(--text2-color);
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: center;
    -moz-appearance: textfield;
}

.cart-section input[type="number"]::-webkit-inner-spin-button,
.cart-section input[type="number"]::-webkit-outer-spin-button {
    opacity: 1; /* Šipky budou stále viditelné */
    color: var(--primary-color); /* Barva šipek */
    width: 26px; /* Nastavení šířky šipek */
    padding: 3px;
    height: 26px; /* Nastavení výšky šipek */
    border-radius: 13px;
}

/* Úprava pro šipky při najetí myši nebo v aktivním stavu */
.cart-section input[type="number"]::-webkit-inner-spin-button:hover,
.cart-section input[type="number"]::-webkit-outer-spin-button:hover {
    background-color: var(--secondaryGlass-color); /* Barva pozadí šipek při hoveru */
}


.add-to-cart-button {
    background: var(--background-yellow);
    color: var(--text2-color);
    font-size: 20px;
    font-weight: 500;
    padding: 15px 25px;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
}

.add-to-cart-button:hover {
    animation: shadow 1s alternate infinite;
}

.variant-warning {
    margin: 0;
    color: #d9534f;
    font-size: 22px;
    font-weight: 600;
    text-decoration: underline;
    text-align: right;
    width: 100%;
}

.variant-warning[hidden] {
    display: none !important;
}

.cart-message {
    margin: 0;
    color: #28a745;
    font-size: 25px;
    font-weight: bold;
    text-align: right;
    width: 100%;
}
/*  cart-section ---------------------------------- */
#complete-code {
    text-align: right;
    font-size: 14px;
    color: var(--text2-color);
    margin: 0;
    padding: 0;
    width: 100%;
}
#complete-code p {
    margin: 0;
}
.description-section{
    width: 92%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    font-size: 22px;
    box-sizing: border-box;
}
.description-section h4{
    margin: 10px;
}
.description-section p{
margin-top: 5px;
padding-top: 5px;
}

.info-section-a{
    width: 92%;
    max-width: 1100px;
    margin: 0 auto 12px;
    padding: 0 0 24px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px 48px;
    font-size: 22px;
    box-sizing: border-box;
    border-top: 3px solid var(--secondary-color);
}
.information-section a {
    background: var(--background-yellow);
    color: var(--text2-color);
    font-size: 20px;
    font-weight: 500;
    padding: 5px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
}
.information-section a:hover {
    animation: shadow 1s alternate infinite;
}

/*  download-section ------------------------------ */
.download-section {
    flex: 1 1 260px;
    max-width: 420px;
    padding-left: 0;
    min-width: 0;
    text-align: center;
}

.download-section h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--text2-color);
    font-size: 23px;
}
.download-section p {
    margin-bottom: 10px;
    color: var(--text2-color);
    font-size: 18px;
}

.download-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: start;
    flex-wrap: wrap;
    gap: 16px;
}

.download-section li {
    margin-bottom: 5px;
}

.download-section a {
    background: var(--background-yellow);
    color: var(--text2-color);
    font-size: 20px;
    font-weight: 500;
    padding: 5px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
}
.download-section a:hover {
    animation: shadow 1s alternate infinite;
}
/*  download-section ------------------------------ */


/*  information-section ------------------------------ */
.information-section {
    flex: 1 1 260px;
    max-width: 420px;
    border-right: 3px solid var(--secondary-color);
    padding-right: 24px;
    min-width: 0;
    text-align: center;
}

.information-section h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--text2-color);
    font-size: 23px;
}

.information-section ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.information-section li {
    margin-bottom: 5px;
    color: var(--text2-color);
    font-size: 18px;
}
/*  information-section ------------------------------ */



/* Administrátorská sekce — kompaktní, mezi barvami a cenou */
.admin-edit-price {
    flex: 0 1 280px;
    max-width: 300px;
    width: auto;
    margin: 0;
    padding: 10px 12px 12px;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px dashed var(--secondary-color);
    border-radius: 8px;
    box-shadow: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
    align-self: flex-start;
}
.admin-edit-heading {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text2-color);
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--secondary-color);
}

.admin-edit-price .edit-price-btn {
    text-decoration: none;
    background: var(--background-yellow);
    color: var(--text2-color);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.admin-edit-price .edit-price-btn:hover {
    background-color: var(--background-yellow);
}

#color-edit-container {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

#color-edit-container h4 {
    font-size: 0.9rem;
    margin: 2px 0 6px;
    color: var(--text2-color);
    font-weight: 600;
}

#color-edit-dropdowns {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    margin: 0 0 6px;
}

#color-edit-dropdowns select {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 5px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

.admin-availability-box {
    width: 100%;
    margin: 4px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--secondary-color);
    text-align: left;
}

.admin-availability-box h4 {
    font-size: 0.9rem;
    margin: 0 0 6px;
    color: var(--text2-color);
    font-weight: 600;
}

.admin-availability-status {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
}

.admin-availability-status.is-on {
    color: #0d7d0d;
}

.admin-availability-status.is-off {
    color: var(--staging-feed-missing-color, #c00);
}

.admin-unavailable-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.admin-unavailable-btn.is-unpublish {
    background: #f5e6e6;
    color: var(--text2-color);
}

.admin-unavailable-btn.is-publish {
    background: var(--background-yellow);
    color: var(--text2-color);
}

.admin-unavailable-btn:hover:not(:disabled) {
    filter: brightness(0.97);
}

.admin-unavailable-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

#save-color-btn {
    text-decoration: none;
    background: var(--background-yellow);
    color: var(--text2-color);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

#save-color-btn.is-saving,
#save-color-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.color-save-status {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2-color);
    min-height: 1.2em;
}

.color-save-status[hidden] {
    display: none;
}

.color-save-status.is-loading {
    color: var(--link-color);
    animation: colorSavePulse 1s ease-in-out infinite;
}

.color-save-status.is-loading::before {
    content: '';
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    margin-right: 0.4em;
    border: 2px solid var(--secondary-color);
    border-top-color: var(--link-color);
    border-radius: 50%;
    vertical-align: -0.1em;
    animation: colorSaveSpin 0.7s linear infinite;
}

.color-save-status.is-success {
    color: #0d7d0d;
}

.color-save-status.is-error {
    color: var(--staging-feed-missing-color, #c00);
}

@keyframes colorSaveSpin {
    to { transform: rotate(360deg); }
}

@keyframes colorSavePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}





/* Responzivní úpravy */
@media screen and (max-width: 1420px) {
    .info-section-a{
        width: 92%;
        max-width: 1100px;
        margin: 0 auto 12px;
        padding: 0 0 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        font-size: 22px;
        border-top: 3px solid var(--secondary-color);
    }

    .information-section {
        flex: 1 1 auto;
        width: 100%;
        max-width: 420px;
        border-right: none;
        border-bottom: 3px solid var(--secondary-color);
        padding-right: 0;
        min-width: 0;
        text-align: center;
    }
    .download-section {
        flex: 1 1 auto;
        width: 100%;
        max-width: 420px;
        padding-left: 0;
        min-width: 0;
        border-bottom: 3px solid var(--secondary-color);
        text-align: center;
    }
}

/* Tablet / úzký desktop: barvy a cena pod sebou */
@media screen and (max-width: 900px) {
    .option-section-a {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .option-section-b,
    .option-section-c {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        margin-left: 0;
    }
    .admin-edit-price {
        flex: 1 1 auto;
        max-width: 280px;
        width: 100%;
        order: 2;
        align-self: stretch;
    }
    .option-section-c {
        order: 3;
        align-items: flex-start;
    }
    .option-section-b {
        order: 1;
    }
    .price-section {
        align-items: flex-start;
    }
    .price-section p,
    .vip-price-badge {
        text-align: left;
    }
    .cart-section {
        align-items: flex-start;
        text-align: left;
    }
    .cart-qty-row {
        justify-content: flex-start;
    }
    .cart-message {
        text-align: left;
    }
    .variant-warning {
        text-align: left;
        font-size: 18px;
    }
    #complete-code {
        text-align: left;
    }
    .product-unavailable-notice {
        text-align: left;
    }
}

/* Media Queries pro mobilní zařízení */
@media (max-width: 768px) {
    .product-list {
        width: 100%;
        max-width: none;
        margin-bottom: 0;
        padding: 12px clamp(18px, 5vw, 32px) 28px;
        border-radius: 0;
    }

    body.page-with-category-nav .product-list,
    body.page-product.page-with-category-nav .product-list {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(18px, 5vw, 32px);
        padding-right: clamp(18px, 5vw, 32px);
        border-radius: 0;
    }

    .product-list h3,
    .product-title {
        font-size: clamp(18px, 5.2vw, 24px);
        margin-bottom: 4px;
        padding-bottom: 6px;
    }

    .product-subtitle {
        font-size: 0.92rem;
        margin-bottom: 8px;
    }

    .product-gallery {
        min-height: 120px;
        gap: 8px;
        padding-bottom: 12px;
    }

    .product-gallery.gallery-few .product-gallery-track {
        gap: 12px;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }
    .product-gallery.gallery-few .gallery-item {
        flex: 0 1 auto !important;
        width: fit-content !important;
        max-width: min(400px, 48%);
        min-width: 0;
        height: auto !important;
        max-height: none;
        background: transparent;
        overflow: visible;
    }
    .product-gallery.gallery-few .product-gallery-track img {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: 240px;
        object-fit: contain;
    }

    .product-gallery.gallery-single .gallery-item-solo {
        max-width: min(400px, 100%);
        width: fit-content;
        padding: 0;
    }
    .product-gallery.gallery-single .gallery-item-solo img {
        max-height: 240px;
        max-width: min(400px, 100%);
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    .product-gallery.gallery-many .gallery-item {
        height: 240px;
        max-height: 240px;
    }
    .product-gallery.gallery-many .product-gallery-track img {
        max-height: 240px;
    }

    .product-gallery-track img,
    .product-gallery > img {
        border-radius: 12px 6px 20px 6px;
    }

    .color-selection h4,
    .size-selection h4 {
        font-size: 16px;
    }

    .color-button {
        width: 48px;
        height: 48px;
        margin: 4px;
        padding: 0;
    }

    .size-button {
        width: 56px;
        height: 44px;
        font-size: 16px;
        margin: 4px;
        padding: 6px;
    }

    .price-section p {
        font-size: 18px;
        text-align: left;
    }

    .cart-section {
        margin: 0;
        text-align: left;
        gap: 12px;
    }

    .cart-section input[type="number"] {
        width: 64px;
        height: 36px;
        font-size: 17px;
        margin: 0;
    }

    .add-to-cart-button {
        font-size: 17px;
        padding: 12px 18px;
        display: inline-block;
        width: auto;
        max-width: none;
        box-sizing: border-box;
        text-align: center;
    }

    #complete-code {
        text-align: left;
        font-size: 13px;
        margin: 0;
    }

    .description-section {
        width: 92%;
        font-size: 15px;
        line-height: 1.45;
    }
    .description-section h4 {
        margin: 0;
        font-size: 17px;
    }
    .description-section p {
        margin-top: 5px;
        padding-top: 5px;
    }

    .info-section-a {
        width: 92%;
        margin: 0 auto 8px;
        padding-bottom: 16px;
        font-size: 15px;
        gap: 14px;
    }

    .download-section h4,
    .information-section h4 {
        font-size: 16px;
    }
    .download-section p {
        margin-bottom: 8px;
        font-size: 14px;
    }
    .download-section a {
        font-size: 14px;
        padding: 5px 14px;
    }

    .admin-edit-price {
        margin: 0;
        padding: 8px 10px;
        max-width: 100%;
    }
    .admin-edit-price .edit-price-btn,
    #save-color-btn,
    .admin-unavailable-btn {
        font-size: 13px;
        padding: 7px 10px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 500px) {
    .product-list {
        padding: 10px 16px 24px;
        border-radius: 0;
        margin-bottom: 0;
    }

    body.page-product.page-with-category-nav .product-list {
        padding-left: 16px;
        padding-right: 16px;
    }

    .color-button {
        width: 42px;
        height: 42px;
    }

    .size-button {
        width: 48px;
        height: 40px;
        font-size: 15px;
    }

    .product-gallery.gallery-few .gallery-item {
        flex: 0 1 auto !important;
        width: fit-content !important;
        max-width: min(400px, 48%);
        height: auto !important;
    }

    .product-gallery.gallery-few .product-gallery-track img {
        max-height: 200px;
        max-width: 100%;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    .cart-section {
        margin: 0;
        text-align: left;
    }

    .price-section p {
        font-size: 16px;
    }

    .add-to-cart-button {
        font-size: 16px;
        max-width: none;
        width: auto;
    }
}
