/**
 * Yukco Product Detail Page Styles
 * Styling for product gallery, tabs, variations, and custom sections
 */

/* ==========================================================================
   Variables & Base
   ========================================================================== */

: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;
}

/* ==========================================================================
   Product Detail Container
   ========================================================================== */

.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;
}

/* Override parent theme float layouts */
.yukco-product-detail .productLeft,
.yukco-product-detail .yukco-product-gallery {
    width: 100% !important;
    float: none !important;
    display: block;
}

/* ==========================================================================
   Product Gallery
   ========================================================================== */

.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);
}

/* Zoom Icon */
.yukco-zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--yukco-transition);
    box-shadow: var(--yukco-shadow);
}

.yukco-main-image-container:hover .yukco-zoom-icon {
    opacity: 1;
}

.yukco-zoom-icon svg {
    color: var(--yukco-accent);
}

/* Gallery Navigation */
.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;
}

/* Thumbnail Gallery */
.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;
}

/* ==========================================================================
   Product Info Section
   ========================================================================== */

.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;
}

/* Ensure grid child takes full width */
.yukco-product-main>.yukco-product-gallery,
.yukco-product-main>.yukco-product-info {
    min-width: 0;
    width: 100%;
}

/* Brand */
.yukco-product-brand {
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-label {
    color: var(--yukco-text-light);
    margin-right: 5px;
}

.brand-name {
    font-size: 12px;
    color: var(--yukco-accent);
    font-weight: 600;
}

/* Title */
.yukco-product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--yukco-text);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* SKU */
.yukco-product-sku {
    font-size: 13px;
    color: var(--yukco-text-light);
    margin-bottom: 15px;
}

.sku-label {
    margin-right: 5px;
}

.sku-value {
    font-family: monospace;
    background: var(--yukco-background);
    padding: 2px 8px;
    border-radius: var(--yukco-radius-sm);
}

/* Price */
.yukco-product-price {
    margin-bottom: 20px;
}

.yukco-product-price .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--yukco-accent);
}

.yukco-product-price del {
    color: var(--yukco-text-light);
    font-size: 18px;
}

.yukco-product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Excerpt */
.yukco-product-excerpt {
    margin-bottom: 25px;
    color: var(--yukco-text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Compliance Badges
   ========================================================================== */

.yukco-compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--yukco-primary);
    color: var(--yukco-accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    transition: var(--yukco-transition);
}

.compliance-badge:hover {
    background: var(--yukco-primary-dark);
}

/* ==========================================================================
   Variation Selector
   ========================================================================== */

.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);
}

/* Single Variation Price & Stock */
.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;
}

/* Add to Cart Button */
.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;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.yukco-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.yukco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--yukco-radius-sm);
    transition: var(--yukco-transition);
    text-align: center;
}

.yukco-btn-primary {
    background: var(--yukco-primary);
    color: var(--yukco-accent);
    border: 2px solid var(--yukco-primary);
}

.yukco-btn-primary:hover {
    background: var(--yukco-primary-dark);
    border-color: var(--yukco-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--yukco-shadow);
}

.yukco-btn-secondary {
    background: transparent;
    color: var(--yukco-accent);
    border: 2px solid var(--yukco-border);
}

.yukco-btn-secondary:hover {
    border-color: var(--yukco-accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Product Meta
   ========================================================================== */

.yukco-product-meta {
    padding-top: 20px;
    border-top: 1px solid var(--yukco-border);
    font-size: 14px;
    color: var(--yukco-text-light);
}

.yukco-product-meta .posted_in,
.yukco-product-meta .tagged_as {
    display: block;
    margin-bottom: 8px;
}

.yukco-product-meta a {
    color: var(--yukco-accent);
    text-decoration: none;
    transition: var(--yukco-transition);
}

.yukco-product-meta a:hover {
    color: var(--yukco-primary-dark);
}

/* ==========================================================================
   Product Details Tabs
   ========================================================================== */

.yukco-product-details {
    margin-top: 50px;
}

.yukco-tabs {
    background: var(--yukco-white);
}

/* Tab Navigation */
.yukco-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--yukco-background);
    border-bottom: 2px solid var(--yukco-border);
}

.yukco-tabs-nav li {
    margin: 0;
}

.yukco-tabs-nav a {
    display: block;
    padding: 18px 25px;
    color: var(--yukco-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--yukco-transition);
    position: relative;
}

.yukco-tabs-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--yukco-transition);
}

.yukco-tabs-nav a:hover {
    color: var(--yukco-accent);
    background: rgba(255, 255, 255, 0.5);
}

.yukco-tabs-nav li.active a {
    color: var(--yukco-accent);
    background: var(--yukco-white);
}

.yukco-tabs-nav li.active a::after {
    background: var(--yukco-primary-dark);
}

/* Tab Content */
.yukco-tabs-content {
    padding: 30px;
}

.yukco-tab-panel {
    display: none;
}

.yukco-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yukco-tab-panel .tab-content {
    color: var(--yukco-text);
    line-height: 1.8;
}

.yukco-tab-panel .tab-content h2,
.yukco-tab-panel .tab-content h3,
.yukco-tab-panel .tab-content h4 {
    color: var(--yukco-accent);
    margin-top: 0;
}

.yukco-tab-panel .tab-content p {
    margin-bottom: 1em;
}

.yukco-tab-panel .tab-content ul,
.yukco-tab-panel .tab-content ol {
    margin-bottom: 1em;
    padding-left: 25px;
}

.yukco-tab-panel .tab-content li {
    margin-bottom: 0.5em;
}

/* Technical Specifications Table */
.yukco-technical-spec table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.yukco-technical-spec th,
.yukco-technical-spec td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--yukco-border);
}

.yukco-technical-spec th {
    background: var(--yukco-background);
    font-weight: 600;
    color: var(--yukco-accent);
    width: 35%;
}

.yukco-technical-spec tr:hover td {
    background: rgba(191, 232, 246, 0.1);
}

/* Attributes Table (Additional Information) */
.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%;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@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;
    }

    .yukco-tabs-nav {
        flex-direction: column;
    }

    .yukco-tabs-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--yukco-border);
    }

    .yukco-tabs-nav li.active a::after {
        display: none;
    }

    .yukco-tabs-nav li.active a {
        background: var(--yukco-primary);
    }
}

@media (max-width: 768px) {
    .yukco-product-detail {
        padding: 20px 15px;
    }

    .yukco-product-main {
        gap: 25px;
    }

    .yukco-product-title {
        font-size: 22px;
    }

    .yukco-product-price .price {
        font-size: 20px;
    }

    .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;
    }

    .yukco-product-actions {
        flex-direction: column;
    }

    .yukco-btn {
        width: 100%;
    }

    .yukco-tabs-content {
        padding: 20px;
    }

    .yukco-technical-spec th {
        width: 40%;
    }
}

@media (max-width: 480px) {
    .yukco-product-title {
        font-size: 20px;
    }

    .yukco-compliance-badges {
        gap: 8px;
    }

    .compliance-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .yukco-thumbnail {
        width: 50px;
        height: 50px;
    }

    .yukco-tabs-nav a {
        font-size: 13px;
        padding: 12px 15px;
    }

    .yukco-technical-spec th,
    .yukco-technical-spec td {
        padding: 10px;
        font-size: 14px;
    }
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */

/* Hide default WooCommerce tabs on yukco product pages */
.yukco-product-detail .woocommerce-tabs {
    display: none !important;
}

/* Product gallery specific overrides */
.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;
}

/* Summary section overrides - High specificity to override parent theme */
.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;
}

/* Override productLeft class from parent theme */
.yukco-product-detail .productLeft {
    width: 100% !important;
    float: none !important;
}

/* Hide duplicate price if shown through hook */
.yukco-product-detail .entry-summary>.price:first-of-type:not(.yukco-product-price .price) {
    display: none;
}

/* Ensure product images container doesn't restrict width */
.yukco-product-detail .woocommerce-product-gallery,
.yukco-product-detail div.images {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Related products spacing */
.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);
}

/* Upsells spacing */
.yukco-product-detail .upsells.products {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--yukco-border);
}

/* ==========================================================================
   Animation & Effects
   ========================================================================== */

/* Image loading placeholder */
.yukco-main-img.loading {
    opacity: 0.5;
}

/* Smooth image transitions */
.yukco-main-img {
    transition: opacity 0.15s ease;
}

/* Thumbnail hover effect */
.yukco-thumbnail:hover img {
    transform: scale(1.05);
}

.yukco-thumbnail img {
    transition: transform 0.3s ease;
}

/* Button press effect */
.yukco-btn:active,
.yukco-gallery-nav:active {
    transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   Variation Swatches (Color/Size buttons)
   ========================================================================== */

/* Color Swatches */
.yukco-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.yukco-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 15px;
    border: 2px solid var(--yukco-border);
    border-radius: var(--yukco-radius-sm);
    cursor: pointer;
    transition: var(--yukco-transition);
    font-size: 14px;
    font-weight: 500;
    background: var(--yukco-white);
    color: var(--yukco-text);
}

.yukco-swatch:hover {
    border-color: var(--yukco-primary-dark);
    background: var(--yukco-background);
}

.yukco-swatch.active,
.yukco-swatch.selected {
    border-color: var(--yukco-accent);
    background: var(--yukco-primary);
    color: var(--yukco-accent);
}

.yukco-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Color Swatch (circular) */
.yukco-swatch-color {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.yukco-swatch-color.active::after,
.yukco-swatch-color.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--yukco-white);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Swatch tooltip */
.yukco-swatch[data-tooltip] {
    position: relative;
}

.yukco-swatch[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--yukco-accent);
    color: var(--yukco-white);
    font-size: 12px;
    white-space: nowrap;
    border-radius: var(--yukco-radius-sm);
    z-index: 10;
}

.yukco-swatch[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--yukco-accent);
}

/* ==========================================================================
   Simple Product Styles
   ========================================================================== */

.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;
}

/* ==========================================================================
   Stock Status Indicators
   ========================================================================== */

.yukco-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: var(--yukco-radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.yukco-stock-status.in-stock {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.yukco-stock-status.in-stock::before {
    content: '✓';
}

.yukco-stock-status.out-of-stock {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.yukco-stock-status.out-of-stock::before {
    content: '✗';
}

.yukco-stock-status.on-backorder {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* ==========================================================================
   Quantity Selector Improvements
   ========================================================================== */

.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 .qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--yukco-background);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--yukco-text);
    transition: var(--yukco-transition);
}

.yukco-product-variations .quantity .qty-btn:hover {
    background: var(--yukco-primary);
}

.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;
}

/* ==========================================================================
   Variation Loading State
   ========================================================================== */

.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;
}

/* Hide add to cart when no variation selected */
.yukco-product-variations .woocommerce-variation-add-to-cart-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   Mobile Touch Improvements
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {

    /* Always show navigation on touch devices */
    .yukco-gallery-nav {
        opacity: 1;
    }

    .yukco-zoom-icon {
        opacity: 0.8;
    }

    /* Larger touch targets */
    .yukco-thumbnail {
        width: 70px;
        height: 70px;
    }

    .yukco-swatch {
        min-width: 48px;
        min-height: 48px;
    }

    .yukco-swatch-color {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .yukco-gallery-nav,
    .yukco-zoom-icon,
    .yukco-product-actions,
    .yukco-product-variations {
        display: none !important;
    }

    .yukco-product-main {
        grid-template-columns: 1fr;
    }

    .yukco-tabs-nav {
        display: none;
    }

    .yukco-tab-panel {
        display: block !important;
        border-bottom: 1px solid #ccc;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .yukco-tab-panel::before {
        content: attr(data-panel);
        display: block;
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 10px;
        text-transform: capitalize;
    }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

/* Focus states */
.yukco-thumbnail:focus,
.yukco-swatch:focus,
.yukco-gallery-nav:focus,
.yukco-tabs-nav a:focus {
    outline: 2px solid var(--yukco-primary-dark);
    outline-offset: 2px;
}

/* Skip to content link */
.yukco-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--yukco-accent);
    color: var(--yukco-white);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.yukco-skip-link:focus {
    top: 0;
}

/* Screen reader only text */
.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .yukco-thumbnail.active,
    .yukco-swatch.active {
        outline: 3px solid currentColor;
    }

    .yukco-tabs-nav li.active a {
        text-decoration: underline;
    }
}

/* ==========================================================================
   Critical Layout Overrides - Maximum Specificity
   These rules override parent theme styles that restrict width
   ========================================================================== */

/* Force grid layout on main product container */
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;
}

/* Product info/summary section - full width within its grid cell */
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,
.woocommerce .single-product-full.side-widget-area #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;
}

/* Product gallery section - full width within its grid cell */
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;
}

/* Override any productLeft class restrictions */
body.single-product .yukco-product-detail .productLeft,
.woocommerce .yukco-product-detail .productLeft,
.yukco-product-detail .productLeft {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Ensure images div doesn't restrict gallery */
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;
}

/* Mobile: Single column layout */
@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,
    .woocommerce .single-product-full.side-widget-area #content .product div.yukco-product-info.entry-summary {
        width: 100% !important;
        padding-left: 0 !important;
        border: 0 !important;
    }
}