:root {
    --yukco-primary: #bfe8f6;
    --yukco-primary-dark: #97bdca;
    --yukco-accent: #2c3e50;
    --yukco-text: #333333;
    --yukco-text-light: #666666;
    --yukco-border: #e0e0e0;
    --yukco-background: #f9f9f9;
    --yukco-white: #ffffff;
    --yukco-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --yukco-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --yukco-radius: 8px;
    --yukco-radius-sm: 4px;
    --yukco-transition: all 0.3s ease;
}

.yukco-product-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100% !important;
    box-sizing: border-box;
}

.yukco-product-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    width: 100% !important;
    max-width: 100% !important;
}

.yukco-product-detail .yukco-product-gallery {
    width: 100% !important;
    float: none !important;
    display: block;
}

.yukco-product-gallery {
    position: relative;
}

.yukco-product-gallery-wrapper {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.yukco-main-image-container {
    position: relative;
    background: var(--yukco-white);
    border-radius: var(--yukco-radius);
    overflow: hidden;
    box-shadow: var(--yukco-shadow);
    margin-bottom: 15px;
}

.yukco-main-image {
    margin: 0;
}

.yukco-main-image a {
    display: block;
    position: relative;
}

.yukco-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    background: var(--yukco-white);
}

.yukco-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--yukco-shadow);
    transition: var(--yukco-transition);
    z-index: 10;
    opacity: 0;
}

.yukco-main-image-container:hover .yukco-gallery-nav {
    opacity: 1;
}

.yukco-gallery-nav:hover {
    background: var(--yukco-primary);
    box-shadow: var(--yukco-shadow-hover);
}

.yukco-gallery-nav svg {
    color: var(--yukco-accent);
}

.yukco-gallery-prev {
    left: 15px;
}

.yukco-gallery-next {
    right: 15px;
}

.yukco-thumbnail-gallery {
    margin-top: 15px;
}

.yukco-thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.yukco-thumbnails-wrapper::-webkit-scrollbar {
    height: 6px;
}

.yukco-thumbnails-wrapper::-webkit-scrollbar-track {
    background: var(--yukco-background);
    border-radius: 3px;
}

.yukco-thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: var(--yukco-primary-dark);
    border-radius: 3px;
}

.yukco-thumbnail {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--yukco-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--yukco-transition);
    background: var(--yukco-white);
}

.yukco-thumbnail:hover {
    border-color: var(--yukco-primary-dark);
}

.yukco-thumbnail.active {
    border-color: var(--yukco-accent);
    box-shadow: var(--yukco-shadow);
}

.yukco-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yukco-product-info {
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block;
    box-sizing: border-box;
}

.yukco-product-info.summary.entry-summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.yukco-product-main>.yukco-product-gallery,
.yukco-product-main>.yukco-product-info {
    min-width: 0;
    width: 100%;
}

.yukco-product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--yukco-text);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.yukco-product-sku {
    font-size: 13px;
    color: var(--yukco-text-light);
    margin-bottom: 15px;
}

.sku-value {
    font-family: monospace;
    background: var(--yukco-background);
    padding: 2px 8px;
    border-radius: var(--yukco-radius-sm);
}

.yukco-product-excerpt {
    margin-bottom: 25px;
    color: var(--yukco-text-light);
    line-height: 1.7;
}

.yukco-product-variations {
    margin-bottom: 25px;
}

.yukco-product-variations .variations {
    margin-bottom: 20px;
}

.yukco-product-variations .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.yukco-product-variations .variations td.label {
    padding-bottom: 5px;
}

.yukco-product-variations .variations td.label label {
    font-weight: 600;
    color: var(--yukco-text);
    font-size: 14px;
}

.yukco-product-variations .variations td.value select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--yukco-border);
    border-radius: var(--yukco-radius-sm);
    font-size: 15px;
    color: var(--yukco-text);
    background: var(--yukco-white);
    cursor: pointer;
    transition: var(--yukco-transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.yukco-product-variations .variations td.value select:focus {
    outline: none;
    border-color: var(--yukco-primary-dark);
    box-shadow: 0 0 0 3px rgba(191, 232, 246, 0.5);
}

.yukco-product-variations .reset_variations {
    display: inline-block;
    margin-top: 10px;
    color: var(--yukco-text-light);
    font-size: 13px;
    text-decoration: none;
    transition: var(--yukco-transition);
}

.yukco-product-variations .reset_variations:hover {
    color: var(--yukco-accent);
}

.yukco-product-variations .woocommerce-variation-price {
    margin-bottom: 15px;
}

.yukco-product-variations .woocommerce-variation-availability {
    margin-bottom: 15px;
}

.yukco-product-variations .stock {
    font-size: 13px;
    font-weight: 600;
}

.yukco-product-variations .in-stock {
    color: #27ae60;
}

.yukco-product-variations .out-of-stock {
    color: #e74c3c;
}

.yukco-product-variations .single_add_to_cart_button,
.yukco-product-variations .button {
    width: 100%;
    padding: 15px 30px;
    background: var(--yukco-accent);
    color: var(--yukco-white);
    border: none;
    border-radius: var(--yukco-radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--yukco-transition);
}

.yukco-product-variations .single_add_to_cart_button:hover,
.yukco-product-variations .button:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: var(--yukco-shadow-hover);
}

.yukco-product-variations .quantity {
    margin-right: 10px;
}

.yukco-product-variations .quantity input {
    width: 80px;
    padding: 12px;
    border: 2px solid var(--yukco-border);
    border-radius: var(--yukco-radius-sm);
    text-align: center;
    font-size: 16px;
}

.yukco-product-details {
    margin-top: 50px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--yukco-border);
}

.woocommerce-product-attributes th {
    background: var(--yukco-background);
    font-weight: 600;
    color: var(--yukco-accent);
    width: 35%;
}

@media (max-width: 992px) {
    .yukco-product-main {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .yukco-product-info.summary.entry-summary {
        width: 100% !important;
        padding-left: 0 !important;
    }

    .yukco-product-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .yukco-product-detail {
        padding: 20px 15px;
    }

    .yukco-product-main {
        gap: 25px;
    }

    .yukco-product-title {
        font-size: 22px;
    }

    .yukco-thumbnail {
        width: 60px;
        height: 60px;
    }

    .yukco-gallery-nav {
        width: 36px;
        height: 36px;
        opacity: 1;
    }

    .yukco-gallery-prev {
        left: 10px;
    }

    .yukco-gallery-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .yukco-product-title {
        font-size: 20px;
    }

    .yukco-thumbnail {
        width: 50px;
        height: 50px;
    }
}

.yukco-product-detail .woocommerce-tabs {
    display: none !important;
}

.yukco-product-detail .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.yukco-product-detail .woocommerce-product-gallery__trigger {
    display: none;
}

.yukco-product-detail .summary.entry-summary,
.woocommerce .yukco-product-detail .summary.entry-summary,
.woocommerce-page .yukco-product-detail .summary.entry-summary,
.woocommerce .single-product-full #content .product .yukco-product-info.summary.entry-summary,
.woocommerce .single-product-full #content .product div.entry-summary.yukco-product-info,
#content .product .yukco-product-info.summary.entry-summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    border: none !important;
    box-sizing: border-box;
}

.yukco-product-detail .entry-summary>.price:first-of-type {
    display: none;
}

.yukco-product-detail .woocommerce-product-gallery,
.yukco-product-detail div.images {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.yukco-product-detail .related.products {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--yukco-border);
}

.yukco-product-detail .related.products h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--yukco-accent);
}

.yukco-product-detail .upsells.products {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--yukco-border);
}

.yukco-main-img.loading {
    opacity: 0.5;
}

.yukco-main-img {
    transition: opacity 0.15s ease;
}

.yukco-thumbnail:hover img {
    transform: scale(1.05);
}

.yukco-thumbnail img {
    transition: transform 0.3s ease;
}

.yukco-gallery-nav:active {
    transform: translateY(0) scale(0.98);
}

.yukco-product-detail.product-type-simple .yukco-product-variations {
    margin-bottom: 20px;
}

.yukco-product-detail.product-type-simple .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.yukco-product-detail.product-type-simple .quantity label {
    margin-right: 10px;
    font-weight: 600;
    color: var(--yukco-text);
}

.yukco-product-detail.product-type-simple .single_add_to_cart_button {
    flex: 1;
}

.yukco-product-variations .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--yukco-border);
    border-radius: var(--yukco-radius-sm);
    overflow: hidden;
    margin-right: 15px;
}

.yukco-product-variations .quantity input.qty {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--yukco-border);
    border-right: 1px solid var(--yukco-border);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.yukco-product-variations .quantity input.qty::-webkit-outer-spin-button,
.yukco-product-variations .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.yukco-product-variations .woocommerce-variation {
    transition: opacity 0.3s ease;
}

.yukco-product-variations .woocommerce-variation.loading {
    opacity: 0.5;
}

.yukco-product-variations .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.yukco-product-variations .woocommerce-variation-add-to-cart-disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
    .yukco-gallery-nav {
        opacity: 1;
    }

    .yukco-thumbnail {
        width: 70px;
        height: 70px;
    }
}

@media print {
    .yukco-gallery-nav,
    .yukco-product-variations {
        display: none !important;
    }

    .yukco-product-main {
        grid-template-columns: 1fr;
    }
}

.yukco-thumbnail:focus,
.yukco-gallery-nav:focus {
    outline: 2px solid var(--yukco-primary-dark);
    outline-offset: 2px;
}

.yukco-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-contrast: high) {
    .yukco-thumbnail.active {
        outline: 3px solid currentColor;
    }
}

body.single-product .yukco-product-detail .yukco-product-main,
.woocommerce.single-product .yukco-product-detail .yukco-product-main,
.woocommerce-page.single-product .yukco-product-detail .yukco-product-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.single-product .yukco-product-info,
body.single-product .yukco-product-info.summary,
body.single-product .yukco-product-info.entry-summary,
body.single-product .yukco-product-info.summary.entry-summary,
.woocommerce div.product .yukco-product-info.summary.entry-summary,
.woocommerce-page div.product .yukco-product-info.summary.entry-summary,
.woocommerce .single-product-full #content .product .yukco-product-info.summary.entry-summary,
.woocommerce .single-product-full #content .product div.yukco-product-info.entry-summary,
.single-product-full #content .product div.yukco-product-info.entry-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

body.single-product .yukco-product-gallery,
body.single-product .yukco-product-detail .yukco-product-gallery,
.woocommerce div.product .yukco-product-gallery,
.woocommerce-page div.product .yukco-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.single-product .yukco-product-detail div.images,
.woocommerce div.product .yukco-product-detail div.images,
.woocommerce .single-product-full #content .product .yukco-product-detail div.images {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

@media only screen and (max-width: 992px) {
    body.single-product .yukco-product-detail .yukco-product-main,
    .woocommerce.single-product .yukco-product-detail .yukco-product-main,
    .woocommerce-page.single-product .yukco-product-detail .yukco-product-main {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    body.single-product .yukco-product-info.summary.entry-summary,
    .woocommerce .single-product-full #content .product .yukco-product-info.summary.entry-summary {
        width: 100% !important;
        padding-left: 0 !important;
        border: 0 !important;
    }
}