/* Gallery Layout */
.product-gallery-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Reset and simplify gallery wrapper for mobile */
    .product-gallery-wrapper {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Thumbnails - show second on mobile as horizontal strip */
    .gallery-thumbnails-sidebar {
        width: 100% !important;
        height: auto !important;
        min-height: 90px !important;
        max-height: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 10px 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        clear: both !important;
        float: none !important;
        margin: 15px 0 0 0 !important;
        z-index: 1 !important;
        flex-shrink: 1 !important;
    }

    .gallery-thumbnails-sidebar::-webkit-scrollbar {
        height: 4px;
    }

    .gallery-thumbnails-sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .gallery-thumbnails-sidebar::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    .gallery-thumbnails-sidebar .wd-carousel-container {
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 90px !important;
    }

    .gallery-thumbnails-sidebar .wd-carousel-inner {
        width: 100% !important;
        height: auto !important;
        min-height: 70px !important;
        overflow: visible !important;
        display: block !important;
        visibility: visible !important;
    }

    .gallery-thumbnails-sidebar .wd-carousel-wrap {
        flex-direction: row !important;
        width: auto !important;
        min-width: max-content !important;
        gap: 10px !important;
        padding: 0 10px !important;
        transform: none !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gallery-thumbnails-sidebar .wd-carousel-item {
        width: 70px !important;
        height: 70px !important;
        flex-shrink: 0 !important;
        min-width: 70px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gallery-thumbnails-sidebar .wd-carousel-item img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .gallery-thumbnails-sidebar .wd-thumb-nav {
        display: none !important;
    }

    /* Override inline styles on mobile */
    .gallery-thumbnails-sidebar[style*="width: 100px"] {
        width: 100% !important;
        flex-shrink: 1 !important;
    }

    .gallery-thumbnails-sidebar[style*="flex-shrink: 0"] {
        flex-shrink: 1 !important;
    }

    /* Force visibility - override any theme CSS */
    .gallery-thumbnails-sidebar,
    .gallery-thumbnails-sidebar * {
        visibility: visible !important;
    }

    /* Override inline flex-direction */
    .gallery-thumbnails-sidebar .wd-carousel-wrap[style*="flex-direction: column"] {
        flex-direction: row !important;
    }

    /* Main gallery - show first on mobile */
    .wd-carousel-container.wd-gallery-images {
        width: 100% !important;
        display: block !important;
        position: relative !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        clear: both !important;
        float: none !important;
    }

    .woocommerce-product-gallery__wrapper {
        height: 350px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .woocommerce-product-gallery__wrapper .wd-carousel-wrap {
        height: 350px !important;
        width: 100% !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .woocommerce-product-gallery__wrapper .wd-carousel-item {
        height: 350px !important;
        width: 100% !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .woocommerce-product-gallery__wrapper .wd-carousel-item.wd-active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }

    .woocommerce-product-gallery__image {
        height: 350px !important;
        width: 100% !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .woocommerce-product-gallery__image a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }

    .wd-carousel-container.wd-gallery-images .wd-carousel-inner {
        height: 350px !important;
        width: 100% !important;
    }

    .wd-single-gallery {
        margin-bottom: 20px !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .wd-single-gallery .wd-carousel-container {
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .wd-single-gallery .woocommerce-product-gallery {
        width: 100% !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    .gallery-thumbnails-sidebar .wd-carousel-inner {
        overflow: visible !important;
    }

    /* Fix container overflow and overlapping */
    .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .product-gallery-wrapper > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Prevent overlapping - clear floats and positioning */
    .woocommerce-product-gallery__wrapper {
        clear: both !important;
        margin: 0 !important;
    }

    .wd-carousel-container.wd-gallery-images {
        clear: both !important;
        float: none !important;
        margin: 0 !important;
    }

    .gallery-thumbnails-sidebar {
        clear: both !important;
        float: none !important;
        margin: 0 !important;
    }

    /* Ensure proper container boundaries */
    .wd-carousel-container.wd-gallery-images .wd-carousel-inner {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove any negative margins or transforms */
    .product-gallery-wrapper * {
        max-width: 100% !important;
    }
}

/* Thumbnail Sidebar - Sol */
.gallery-thumbnails-sidebar {
    flex-shrink: 0;
    width: 100px;
    height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.gallery-thumbnails-sidebar .wd-carousel-container {
    width: 100px;
    max-width: 100px;
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.gallery-thumbnails-sidebar .wd-carousel-inner {
    width: 100px;
    max-width: 100px;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.gallery-thumbnails-sidebar .wd-carousel-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;
    max-width: 100px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Thumbnail Navigation Buttons - Always visible */
.gallery-thumbnails-sidebar .wd-thumb-nav.wd-nav-arrows {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}

.gallery-thumbnails-sidebar .wd-thumb-nav .wd-btn-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gallery-thumbnails-sidebar .wd-thumb-nav .wd-btn-arrow:hover:not(.wd-disabled) {
    background-color: transparent;
    opacity: 0.8;
}

.gallery-thumbnails-sidebar .wd-thumb-nav .wd-btn-arrow.wd-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-thumbnails-sidebar .wd-carousel-item {
    width: 100px !important;
    max-width: 100px !important;
    height: 80px !important;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gallery-thumbnails-sidebar .wd-carousel-item:hover {
    opacity: 1;
}

.gallery-thumbnails-sidebar .wd-carousel-item.wd-thumb-active {
    border-color: #1c61e7 !important;
    opacity: 1 !important;
}

.gallery-thumbnails-sidebar .wd-carousel-item.wd-thumb-active:hover {
    opacity: 1 !important;
}

.gallery-thumbnails-sidebar .wd-carousel-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 6px;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Main Gallery - Sağ */
.wd-carousel-container.wd-gallery-images {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.wd-carousel-container.wd-gallery-images .wd-carousel-inner {
    height: 500px;
}

/* Sticky Gallery Container - Follows user while scrolling */
.woodmart-sticky-column {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    z-index: 10;
}

.woodmart-sticky-column .wd-single-gallery {
    position: relative;
}

@media (max-width: 991px) {
    .woodmart-sticky-column {
        position: relative;
        top: auto;
    }

    .wd-rs-63c9614087a6e .vc_column-inner {
        padding-left: 15px;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .wd-rs-63c9614087a6e .vc_column-inner {
        padding-left: 0;
        padding-top: 20px;
    }

    .wd-single-short-description {
        margin: 15px 0;
    }

    .product-short-description {
        font-size: 14px;
        padding: 12px 0;
    }

    .woocommerce-product-attributes-item__label {
        width: 40%;
        padding: 10px 12px;
        font-size: 13px;
    }

    .woocommerce-product-attributes-item__value {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.woocommerce-product-gallery__wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.woocommerce-product-gallery__wrapper .wd-carousel-wrap {
    position: relative;
    width: 100%;
    height: 500px;
}

/* Gallery Items - Sadece aktif olan görünür */
.woocommerce-product-gallery__wrapper {
    height: 500px;
}

.woocommerce-product-gallery__wrapper .wd-carousel-item {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: relative;
    width: 100%;
    height: 500px;
}

.woocommerce-product-gallery__wrapper .wd-carousel-item.wd-active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-product-gallery__wrapper .wd-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.woocommerce-product-gallery__wrapper .wd-carousel-item.wd-active img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 500px;
    display: block;
}

.woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce-product-gallery__image img {
    cursor: zoom-in;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
}

/* Disable zoom on mobile */
@media (max-width: 768px) {
    .woocommerce-product-gallery__image img {
        cursor: pointer;
        transition: none;
    }
}

/* Navigation Buttons - Use theme default styles */
.wd-btn-arrow {
    cursor: pointer;
    user-select: none;
    outline: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.wd-btn-arrow:focus {
    outline: none;
}

.wd-btn-arrow:focus-visible {
    outline: 2px solid #1c61e7;
    outline-offset: 2px;
}

.wd-btn-arrow.wd-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Thumbnail Navigation Buttons - Thumbnail Sidebar */
.gallery-thumbnails-sidebar .wd-thumb-nav.wd-nav-arrows {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .gallery-thumbnails-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 10px;
    }

    .gallery-thumbnails-sidebar .wd-carousel-container {
        width: 100%;
        overflow: visible;
    }

    .gallery-thumbnails-sidebar .wd-carousel-inner {
        width: 100%;
        overflow: visible;
    }

    .gallery-thumbnails-sidebar .wd-carousel-wrap {
        flex-direction: row !important;
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        width: max-content;
        min-width: 100%;
    }

    .gallery-thumbnails-sidebar .wd-carousel-item {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        cursor: pointer;
        touch-action: pan-y;
    }

    .gallery-thumbnails-sidebar .wd-carousel-item img,
    .gallery-thumbnails-sidebar .wd-carousel-item video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        pointer-events: none;
    }

    /* Hide thumbnail navigation buttons on mobile (swipe is better) */
    .gallery-thumbnails-sidebar .wd-thumb-nav {
        display: none !important;
    }
}

/* Lightbox */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wd-product-lightbox {
    animation: fadeIn 0.3s ease;
}

/* Product Details Section Improvements */
.wd-single-title {
    margin-bottom: 20px;
}

/* Product Title - Large and Bold */
.wd-single-title h1,
.wd-single-title .product_title,
.product_title.entry-title,
h1.product_title.entry-title.wd-entities-title,
.wd-single-title h1.product_title,
.wd-single-title .wd-entities-title,
.wd-single-title .entry-title {
    
    font-size: 60px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    color: #333 !important;
    letter-spacing: -0.5px !important;
}

@media (max-width: 991px) {
    .wd-single-title h1,
    .wd-single-title .product_title,
    .product_title.entry-title,
    h1.product_title.entry-title.wd-entities-title,
    .wd-single-title h1.product_title,
    .wd-single-title .wd-entities-title,
    .wd-single-title .entry-title {
        font-size: 32px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 768px) {
    .wd-single-title h1,
    .wd-single-title .product_title,
    .product_title.entry-title,
    h1.product_title.entry-title.wd-entities-title,
    .wd-single-title h1.product_title,
    .wd-single-title .wd-entities-title,
    .wd-single-title .entry-title {
        font-size: 28px !important;
        line-height: 1.4 !important;
    }
}

.wd-single-price {
    margin: 20px 0;
}

.wd-single-price .price {
    font-size: 28px;
    font-weight: 600;
    color: #1c61e7;
    margin: 0;
}

@media (max-width: 768px) {
    .wd-single-price .price {
        font-size: 24px;
    }
}

.wd-single-price .woocommerce-Price-amount {
    color: #1c61e7;
}

/* Product Short Description */
.wd-single-short-description {
    margin: 20px 0;
}

.product-short-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    padding: 15px 0;
    border-top: 1px solid #e8e8e8;
}

.product-short-description p {
    margin: 0 0 10px 0;
}

.product-short-description p:last-child {
    margin-bottom: 0;
}

.wd-single-stock-status {
    margin: 15px 0;
}

.wd-single-stock-status .wd-product-stock {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.wd-single-stock-status .wd-product-stock.stokta-var {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.wd-single-stock-status .wd-product-stock.stokta-yok {
    background-color: #ffebee;
    color: #c62828;
}

/* Custom Product Info - Modern Design */
.custom-product-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.custom-info-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.custom-info-row:first-child {
    padding-top: 0;
}

.custom-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.custom-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 140px;
    flex-shrink: 0;
}

.custom-info-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .custom-product-info {
        padding: 16px;
        border-radius: 8px;
    }

    .custom-info-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
        gap: 8px;
    }

    .custom-info-label {
        min-width: auto;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .custom-info-value {
        width: 100%;
        font-size: 14px;
    }

    .custom-category-tag,
    .custom-stock-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}

.custom-info-value.custom-category-tag {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.custom-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1c61e7;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(28, 97, 231, 0.15);
    width: auto !important;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.custom-category-tag:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    box-shadow: 0 2px 4px rgba(28, 97, 231, 0.25);
}

.custom-stock-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.custom-stock-badge.custom-stock-in {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.15);
}

.custom-stock-badge.custom-stock-out {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    box-shadow: 0 2px 4px rgba(198, 40, 40, 0.15);
}

.custom-sku-value {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #555;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Product Specifications Table */
.product-specifications-wrapper {
    margin-top: 30px;
}

.product-specifications-table-wrapper {
    margin-top: 15px;
}

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

.woocommerce-product-attributes-item {
    border-bottom: 1px solid #e8e8e8;
}

.woocommerce-product-attributes-item:last-child {
    border-bottom: none;
}

.woocommerce-product-attributes-item__label {
    padding: 12px 15px;
    width: 35%;
    font-weight: 600;
    color: #333;
    vertical-align: top;
}

.woocommerce-product-attributes-item__value {
    padding: 12px 15px;
    color: #666;
    vertical-align: top;
}

.woocommerce-product-attributes-item__value .wd-attr-term {
    display: block;
    line-height: 1.6;
}

/* First Section Layout Improvements */
.vc_row.vc_row-o-equal-height {
    align-items: flex-start;
}

.wd-single-gallery {
    margin-bottom: 30px;
    width: 100%;
}

.wd-single-gallery .wd-carousel-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .wd-single-gallery {
        width: 100%;
        margin-bottom: 20px;
    }

    .wd-single-gallery .wd-carousel-container {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .wd-single-gallery .woocommerce-product-gallery {
        width: 100%;
    }
}

.wd-single-gallery .woocommerce-product-gallery__image {
    border-radius: 6px;
    overflow: hidden;
}

.wd-single-gallery .wd-gallery-thumb {
    margin-top: 15px;
    margin-bottom: 10px;
}

.wd-single-gallery .wd-gallery-thumb .wd-carousel-item {
    border-radius: 4px;
    overflow: hidden;
    margin: 0 5px;
}

/* Navigation buttons - theme default positioning */

/* Product Info Section */
.wd-rs-63c9614087a6e .vc_column-inner {
    padding-left: 30px;
}

@media (max-width: 991px) {
    .wd-rs-63c9614087a6e .vc_column-inner {
        padding-left: 15px;
        padding-top: 30px;
    }
}

/* Better spacing for product meta and actions */
.product_meta {
    margin: 15px 0;
}

.product_meta .sku_wrapper {
    font-size: 14px;
    color: #666;
}

.product_meta .meta-label {
    font-weight: 600;
    color: #333;
}

/* Action buttons spacing */
.wd-single-action-btn {
    margin-bottom: 10px;
}

/* Social share section */
.wd-social-icons {
    margin-top: 20px;
}

/* Product Action Buttons */
.product-action-buttons {
    margin: 25px 0;
}

.product-contact-btn,
.product-contact-list-btn {
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-contact-btn:hover {
    background-color: #1554c4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 97, 231, 0.3);
}

.product-contact-list-btn:hover {
    background-color: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.product-contact-btn:active,
.product-contact-list-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .product-action-buttons {
        flex-direction: column;
    }

    .product-contact-btn,
    .product-contact-list-btn {
        width: 100%;
        min-width: 100%;
    }
}

/* Product Category Badge */
.product-category-badge {
    margin-bottom: 10px;
}

.product-category-badge a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-category-badge a:hover {
    background-color: #1c61e7;
    color: #ffffff;
}

/* How to Buy Section */
.how-to-buy-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.how-to-buy-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.how-to-buy-header svg {
    color: #1c61e7;
    flex-shrink: 0;
}

.how-to-buy-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.how-to-buy-section p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.how-to-buy-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.how-to-buy-btn {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.how-to-buy-contact {
    background-color: #1c61e7;
    color: #ffffff;
}

.how-to-buy-contact:hover {
    background-color: #1554c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 97, 231, 0.3);
    color: #ffffff;
}

.how-to-buy-browse {
    background-color: #f0f0f0;
    color: #333;
}

.how-to-buy-browse:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.how-to-buy-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .how-to-buy-actions {
        flex-direction: column;
    }

    .how-to-buy-btn {
        width: 100%;
        min-width: 100%;
    }

    .how-to-buy-section {
        padding: 20px;
        margin-top: 20px;
    }

    .how-to-buy-header h3 {
        font-size: 18px;
    }

    .how-to-buy-section p {
        font-size: 14px;
    }
}

/* Modern Video Player Styles - Clean & Minimal */
.woocommerce-product-gallery__video {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-product-gallery__video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-product-gallery__video video,
.woocommerce-product-gallery__video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
    display: block;
}

/* Custom Video Controls Styling - Modern & Clean */
.woocommerce-product-gallery__video video::-webkit-media-controls-panel,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    padding: 12px 16px;
    border-radius: 0 0 12px 12px;
}

/* Use default browser play button - remove custom styling */
.woocommerce-product-gallery__video video::-webkit-media-controls-play-button,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-play-button {
    /* Reset to default browser styling */
    background-color: initial;
    border-radius: initial;
    width: initial;
    height: initial;
    transition: initial;
    margin-right: initial;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-play-button:hover,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-play-button:hover {
    background-color: initial;
    transform: initial;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-current-time-display,
.woocommerce-product-gallery__video video::-webkit-media-controls-time-remaining-display,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-current-time-display,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-time-remaining-display {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.3px;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-timeline,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    height: 4px;
    margin: 0 12px;
    transition: background-color 0.2s ease;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-timeline:hover,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-timeline:hover {
    background-color: rgba(255, 255, 255, 0.3);
    height: 5px;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-timeline::-webkit-slider-thumb,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-timeline::-webkit-slider-thumb {
    background-color: #fff;
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: -4px;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-timeline::-webkit-slider-thumb:hover,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-timeline::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.woocommerce-product-gallery__video video::-webkit-media-controls-volume-slider,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-volume-slider {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    height: 4px;
    transition: background-color 0.2s ease;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-volume-slider:hover,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-volume-slider:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.woocommerce-product-gallery__video video::-webkit-media-controls-volume-slider::-webkit-slider-thumb,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-volume-slider::-webkit-slider-thumb {
    background-color: #fff;
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-mute-button,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-mute-button {
    background-color: transparent;
    border-radius: 4px;
    padding: 6px;
    transition: opacity 0.2s ease;
    opacity: 0.9;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-mute-button:hover,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-mute-button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

.woocommerce-product-gallery__video video::-webkit-media-controls-fullscreen-button,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-fullscreen-button {
    background-color: transparent;
    border-radius: 4px;
    padding: 6px;
    transition: opacity 0.2s ease;
    opacity: 0.9;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-fullscreen-button:hover,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-fullscreen-button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Video Thumbnail in Sidebar - Clean Design */
.gallery-thumbnails-sidebar .video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    cursor: pointer;
    min-height: 80px;
}

.gallery-thumbnails-sidebar .video-thumbnail,
.gallery-thumbnails-sidebar .video-thumbnail-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumbnails-sidebar .video-thumbnail-container:hover .video-thumbnail,
.gallery-thumbnails-sidebar .video-thumbnail-container:hover .video-thumbnail-image {
    opacity: 0.9;
    transform: scale(1.02);
}

.gallery-thumbnails-sidebar .video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: background 0.2s ease;
}

.gallery-thumbnails-sidebar .video-thumbnail-container:hover .video-thumbnail-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
}

.gallery-thumbnails-sidebar .video-play-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.gallery-thumbnails-sidebar .video-thumbnail-container:hover .video-play-icon {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 1);
}

.gallery-thumbnails-sidebar .video-play-icon i {
    color: #1c61e7;
    font-size: 20px !important;
    margin-left: 3px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.gallery-thumbnails-sidebar .video-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(28, 97, 231, 0.9);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.2s ease;
}

.gallery-thumbnails-sidebar .video-thumbnail-container:hover .video-badge {
    background: rgba(28, 97, 231, 1);
    transform: scale(1.05);
}

/* Video Player Container Enhancements */
.woocommerce-product-gallery__wrapper .wd-carousel-item video {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.woocommerce-product-gallery__wrapper .wd-carousel-item:hover video {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Video Loading State */
.woocommerce-product-gallery__video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 97, 231, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.woocommerce-product-gallery__video video[poster]::before {
    opacity: 1;
}

/* Video Play Button Overlay (when paused) */
.woocommerce-product-gallery__video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(28, 97, 231, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(28, 97, 231, 0.4);
}

.woocommerce-product-gallery__video video[poster]::after {
    opacity: 1;
}

/* Modern Video Player Class */
.modern-video-player {
    border-radius: 12px;
    overflow: hidden;
}

/* Video Controls Container */
.woocommerce-product-gallery__video video::-webkit-media-controls-enclosure,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-enclosure {
    background: transparent;
    border-radius: 0 0 12px 12px;
}

/* Modern Video Progress Bar */
.woocommerce-product-gallery__video video::-webkit-media-controls-timeline-container,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-timeline-container {
    background: transparent;
}

/* Video Playback Speed Indicator (if browser supports it) */
.woocommerce-product-gallery__video video::-webkit-media-controls-playback-rate-button,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-playback-rate-button {
    background-color: transparent;
    border-radius: 6px;
    padding: 4px;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery__video video::-webkit-media-controls-playback-rate-button:hover,
.woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-playback-rate-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Video Styles */
@media (max-width: 768px) {
    .woocommerce-product-gallery__video video,
    .woocommerce-product-gallery__video-wrapper video {
        max-height: 350px;
        border-radius: 6px;
    }
    
    .woocommerce-product-gallery__video-wrapper {
        border-radius: 6px;
    }
    
    .gallery-thumbnails-sidebar .wd-carousel-item .dz-video-indicator {
        width: 35px;
        height: 35px;
    }
    
    .gallery-thumbnails-sidebar .wd-carousel-item .dz-video-indicator i {
        font-size: 16px;
    }
    
    .woocommerce-product-gallery__video video::-webkit-media-controls-play-button,
    .woocommerce-product-gallery__video-wrapper video::-webkit-media-controls-play-button {
        width: 56px;
        height: 56px;
    }
}

/* Video Player Focus States */
.woocommerce-product-gallery__video video:focus,
.woocommerce-product-gallery__video-wrapper video:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Video Controls Container */
.woocommerce-product-gallery__video video::-webkit-media-controls-enclosure {
    background: transparent;
    border-radius: 0 0 8px 8px;
}

/* Modern Video Progress Bar */
.woocommerce-product-gallery__video video::-webkit-media-controls-timeline-container {
    background: transparent;
}

/* Video Playback Speed Indicator (if browser supports it) */
.woocommerce-product-gallery__video video::-webkit-media-controls-playback-rate-button {
    background-color: transparent;
    border-radius: 4px;
}