.obojek .p-image-wrapper {
    align-content: center;
}
.obojek .p-image:after {
    background-color: transparent !important;
}
.obojek .variant-list {
    padding-top: 0px;
}

.obojek .variant-list td {
    margin-top: 10px;
}

.obojek .p-image-wrapper {
    height: inherit !important;
    align-content: center;
}

.obojek .mousetrap {
    display: none !important;
}

.obojek .p-image {
    text-align: center;
    position: relative;
    display: inline-block;
}

/* Základní obrázek - musí být viditelný pod overlay */
.obojek .p-image .p-main-image img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Univerzální styly pro overlay */
.obojek .own-design-overlay {
    position: absolute;
    top: 5px;
    left: 0;
    width: 86%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

@media (min-width: 1440px) 
{
    .obojek .own-design-overlay {
        left: 44px !important;
    }
}

.obojek .own-design-overlay svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    /* Přesné napasování na základní obrázek */
    transform: translate(0, 0);
}

/* Zajisti plnou neprůhlednost pro obarvené elementy */
.obojek .own-design-overlay svg path.od-recolorable,
.obojek .own-design-overlay svg path.od-bambule {
    fill-opacity: 1;
    stroke-opacity: 1;
}

.obojek .own-design-overlay svg path[data-od-line],
.obojek .own-design-overlay svg path[data-od-bambule] {
    fill-opacity: 1;
    stroke-opacity: 1;
}

.obojek .product-top .p-image svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Styly pro navigační taby */
.obojek .own-design__colors-nav {
    display: flex;
    list-style: none;
    padding-left: 0px !important;
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.obojek .own-design__colors-nav li {
    margin-right: 20px;
    float: left;
    margin-bottom: -1px;
    border-radius: 5px 5px 0 0px;
}

.obojek .own-design__colors-nav>li>a {
    position: relative;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    color: black;
    font-size: 16px;
}

.obojek .own-design__colors-nav .active {
    color: #555555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    cursor: default;
    padding-bottom: 0px !important;
    z-index: 9;
}

/* Styly pro tabulku s parametry */
.obojek .detail-parameters {
    overflow:visible;
}

.obojek .detail-parameters tbody {
    display: grid;
}

.obojek .detail-parameters tr:last-child td,
.obojek .detail-parameters tr:last-child th {
    padding-bottom: 15px;
}

.obojek .variant-list {
    order: 1;
}

.obojek .surcharge-list {
    border-bottom: 1px solid rgb(240, 240, 240) !important;
}

.obojek #simple-variants {
    margin-bottom: 10px;
}

/* Moderní styly pro tabulku s parametry */
.obojek .detail-parameters {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.obojek .detail-parameters tbody {
    border: none;
}

.obojek .detail-parameters tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    animation: fadeInUp 0.3s ease-out;
}

.obojek .detail-parameters tr:last-child {
    border-bottom: none;
}

.obojek .detail-parameters tr:hover {
    background-color: transparent;
}

.obojek .detail-parameters th {
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
    min-width: 150px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.obojek .detail-parameters td {
    padding: 14px 20px;
    background: white;
    vertical-align: middle;
}

/* Styly pro select elementy */
.obojek .detail-parameters select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.obojek .detail-parameters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.obojek .detail-parameters select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Styly pro custom color options */
.obojek .custom-color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Sjednocené styly pro color-button */
.obojek .color-button {
    position: relative;
    border: 1px solid #e1e5e9;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    max-width: 40px;
    max-height: 40px;
}

.obojek .color-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #ccc;
}

.obojek .color-button.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.obojek .color-button .colors {
    width: 24px;
    height: 24px;
    margin: 0;
    border: none;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* Styly pro variant-list */
.obojek .variant-list th {
    background: #001024 !important;
    color: white !important;
}

.obojek .variant-list td {
    padding: 8px 20px 0px !important;
}

/* Styly pro surcharge-list */
.obojek .surcharge-list th {
    background: #F5F9FE;
    color: black !important
}


/* Responsivní design */
@media (max-width: 768px) {
    .obojek .detail-parameters {
        margin: 10px 0;
        border-radius: 8px;
    }

    .obojek .detail-parameters th,
    .obojek .detail-parameters td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .obojek .color-button {
        width: 35px;
        height: 35px;
    }

    .obojek .color-button .colors {
        width: 18px;
        height: 18px;
        display: inline-block;
        border-radius: 50%;
        border: 1px solid #ddd;
    }

    .obojek .custom-color-options {
        gap: 8px;
    }
}

/* Animace pro plynulé přechody (zůstává beze změny, protože nedefinuje selektor) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styly pro focus stavy */
.obojek .detail-parameters:focus-within {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

/* Přepis pro add-to-cart quantity label */
.obojek .add-to-cart__quantity-label,
.obojek .detail-parameters th {
    text-align: center !important;
}

@media only screen and (max-width: 758px) {
    .obojek .own-design__colors-nav {
        display: ruby;
    }
}

/* Mobilní override pro SVG barvy - vyšší specificita */
@media (max-width: 768px) {

    .obojek .own-design-overlay svg path[data-od-line][style*="fill"],
    .obojek .own-design-overlay svg path[data-od-bambule][style*="fill"] {
        fill: inherit !important;
    }

    /* Zajisti, že inline styly budou mít přednost */
    .obojek .own-design-overlay svg path[data-od-line],
    .obojek .own-design-overlay svg path[data-od-bambule] {
        fill: inherit;
        opacity: inherit;
    }
}

@media only screen and (max-width: 1440px) {
    .obojek .own-design-overlay {
        width: 105%;
        margin-left: -4px;
    }

    .obojek .p-image .p-main-image img {
        max-width: 105%;

    }
}

@media only screen and (max-width: 1200px) {
    .obojek .own-design-overlay {
        width: 62%;
        margin-left: 175px;
    }

    .obojek .p-image .p-main-image img {
        max-width: 100%;
    }
}

@media only screen and (max-width: 992px) {
    .obojek .own-design-overlay {
        width: 82%;
        margin-left: 60px;
    }
}

@media only screen and (max-width: 768px) {
    .obojek .own-design-overlay {
        width: 100%;
        margin-left: -2px;
        margin-top: -2px;

    }

    .obojek .p-image .p-main-image img {
        object-fit: cover;
        object-position: center;
        max-width: 450px;
        max-height: 400px;
        transform: scale(1.6);
        max-height: 300px;
    }
}

@media only screen and (max-width: 480px) {
    .obojek .own-design-overlay {
        margin-left: 48px;
        margin-top: -2px;
        transform: scale(1.68);
    }

    .obojek .p-image .p-main-image img {

        width: 100% !important;
        max-height: 100px;
        transform: scale(3);

    }

    .obojek .p-image a {
        right: -50px;
        position: relative;
    }

}

/* Variant Slider Styles */
.variant-list
{
    display: none;
}


.variant-slider-container {
    margin-bottom: 0px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px 10px 0px 0px !important;
    border: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.variant-slider-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.variant-slider-wrapper {
    position: relative;
    margin: 20px 0;
}

.variant-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.variant-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.variant-slider::-webkit-slider-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.variant-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.variant-slider::-moz-range-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.variant-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    width: 100%;
    position: relative;
    padding: 0 12px; /* Kompenzace pro slider thumb padding */
    box-sizing: border-box;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(0); /* Reset any transforms */
}

.variant-slider-label {
    text-align: center;
    min-width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-slider-label.active {
    background: #007bff;
    transform: scale(1.2);
}

.slider-min-max-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.slider-min-label {
    text-align: left;
}

.slider-max-label {
    text-align: right;
}

.variant-info {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    gap: 15px;
}

.variant-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-selected {
    font-weight: bold;
    color: #333;
}

.variant-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.size-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-input-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.size-input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.size-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.size-input::placeholder {
    color: #999;
}

.variant-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    transform: translateX(-50%);
    bottom: 70px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.variant-tooltip.show {
    opacity: 1;
}

.variant-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

/* Hide original radio buttons */
.variant-list input[type="radio"] {
    display: none;
}

.variant-list .advanced-parameter {
    display: none;
}

/* Mobile responsive for variant slider */
@media (max-width: 768px) {
    .variant-slider-container {
        margin: 15px 0;
        padding: 15px;
    }
    
    .variant-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .variant-slider-labels {
        font-size: 10px;
    }
    
    .variant-slider-label {
        min-width: 30px;
        padding: 3px;
    }
}