/* WooCommerce View Switcher Styles */

/* Header Controls Layout */
.woocommerce-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.woocommerce-header-left {
    flex: 1;
}

.woocommerce-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* View Switcher Controls */
.kings-view-switcher-wrapper {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.kings-view-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-switcher-label {
    font-weight: 500;
    color: #333;
    margin-right: 10px;
    white-space: nowrap;
}

.view-switcher-buttons {
    display: flex;
    gap: 5px;
    /* background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #e0e0e0; */
}

.view-switcher-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #939393;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 37px;
    width: 37px;
}

.view-switcher-btn:hover {
    background: #e9ecef;
    color: #838383;
}

.view-switcher-btn.active {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e9ecef;
    /* box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3); */
}

.view-switcher-btn svg {
    width: 18px;
    height: 18px;
}

/* WooCommerce Result Count Styling */
.woocommerce-result-count {
    margin: 0 !important;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* WooCommerce Ordering Dropdown Styling */
.woocommerce-ordering {
    margin: 0 !important;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce-header-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .woocommerce-header-left {
        text-align: center;
    }
    
    .woocommerce-header-right {
        flex-direction: column;
        gap: 15px;
    }
    
    .kings-view-switcher {
        justify-content: center;
    }
    
    .woocommerce-ordering select {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .view-switcher-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .view-switcher-label {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
    }
    
    .kings-view-switcher {
        flex-direction: column;
        gap: 10px;
    }
}

/* Product Hover Overlay & Actions */
.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Product Image Container */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 8px;
}

.woocommerce ul.products li.product:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

/* Product Actions */
.product-overlay-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.product-overlay-actions .action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.product-overlay-actions .action-btn:hover {
    background: #fff;
    color: #007cba;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
    border-color: #007cba;
}

.product-overlay-actions .action-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.product-overlay-actions .action-btn.kings-wishlist-action {
    padding: 0;
    overflow: hidden;
}

.product-overlay-actions .kings-wishlist-action .kings-wishlist-wrapper,
.product-overlay-actions .kings-wishlist-action .kings-wishlist-wrapper > * {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overlay-actions .kings-wishlist-action .kings-wishlist-wrapper > * > * {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overlay-actions .kings-wishlist-action .kings-wishlist-wrapper a,
.product-overlay-actions .kings-wishlist-action .kings-wishlist-wrapper button {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
    gap: 0;
}

.product-overlay-actions .kings-wishlist-action .kings-wishlist-trigger {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
    gap: 0;
}

.product-overlay-actions .kings-wishlist-action .kings-wishlist-icon svg {
    width: 18px;
    height: 18px;
}

.product-overlay-actions .kings-wishlist-action .kings-wishlist-label,
.product-overlay-actions .kings-wishlist-action .feedback {
    display: none;
}

.product-overlay-actions .action-btn:focus,
.product-overlay-actions .action-btn:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Hide action text by default, show only icons */
.product-overlay-actions .action-text {
    display: none;
}

/* Tooltip Styles */
.product-overlay-actions .action-btn:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.product-overlay-actions .action-btn:after {
    content: '';
    position: absolute;
    bottom: -37px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.product-overlay-actions .action-btn:hover:before,
.product-overlay-actions .action-btn:hover:after {
    opacity: 1;
    visibility: visible;
}

/* Quick View button special styling */
.product-overlay-actions .action-btn.kings-quick-view-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.product-overlay-actions .action-btn.kings-quick-view-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}


/* Add to Cart Button Integration */
.woocommerce-variation-add-to-cart {
    flex-direction: row;
    display: flex;
}

.product-overlay-actions .add-to-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-overlay-actions .add-to-cart-wrapper:hover {
    background: #005a8b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.product-overlay-actions .add-to-cart-wrapper .button {
    background: none !important;
    border: none !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

.product-overlay-actions .add-to-cart-wrapper .button:hover {
    background: none !important;
    color: inherit !important;
}

/* Add cart icon to add to cart button */
.product-overlay-actions .add-to-cart-wrapper .button:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="m1 1 4 4 13 2 4 13H6"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

/* Legacy styles for backward compatibility */
.kings-product-actions a,
.kings-product-actions .button {
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
}

.woocommerce ul.products li.product:hover .kings-product-actions a,
.woocommerce ul.products li.product:hover .kings-product-actions .button {
    transform: translateY(0);
    opacity: 1;
}

.kings-product-actions a:nth-child(1) { transition-delay: 0.1s; }
.kings-product-actions a:nth-child(2) { transition-delay: 0.2s; }
.kings-product-actions a:nth-child(3) { transition-delay: 0.3s; }
.kings-product-actions a:nth-child(4) { transition-delay: 0.4s; }

.kings-product-actions a:hover,
.kings-product-actions .button:hover {
    background: #007cba;
    color: #fff;
    transform: scale(1.1);
}

/* Hide default add to cart in overlay */
.kings-add-to-cart-wrapper .button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    background: #fff;
    color: #333;
    border: none;
    position: relative;
}

.kings-add-to-cart-wrapper .button:before {
    content: "🛒";
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.kings-add-to-cart-wrapper .button:hover {
    background: #007cba;
}

/* Product Color Swatches */
.kings-product-colors {
    display: flex;
    gap: 4px;
    margin: 8px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.color-swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px #007cba;
}

.more-colors {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    margin-left: 4px;
}

/* Enhanced Price Display */
.kings-product-price {
    text-align: center;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kings-product-price .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.kings-product-price .sale-price,
.kings-product-price .current-price {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.kings-product-price .discount-badge {
    background: #ff4444;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    line-height: 1;
}

/* Grid View Layouts */

/* Default WooCommerce products grid reset */
.woocommerce ul.products {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Grid 2 Columns View */
.woocommerce ul.products.view-grid-two {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.woocommerce ul.products.view-grid-two li.product {
    width: 100%;
    margin: 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.woocommerce ul.products.view-grid-two li.product .woocommerce-loop-product__title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
}

/* Grid 3 Columns View (Default) */
.woocommerce ul.products.view-grid-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.woocommerce ul.products.view-grid-three li.product {
    width: 100%;
    margin: 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.woocommerce ul.products.view-grid-three li.product .woocommerce-loop-product__title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: center;
}

/* Grid 4 Columns View */
.woocommerce ul.products.view-grid-four {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.woocommerce ul.products.view-grid-four li.product {
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fff;
}

.woocommerce ul.products.view-grid-four li.product .woocommerce-loop-product__title {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: center;
}

/* List View */
.woocommerce ul.products.view-list {
    grid-template-columns: 1fr;
    gap: 20px;
}

.woocommerce ul.products.view-list li.product {
    width: 100%;
    margin: 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: start;
    transition: all 0.3s ease;
}

.woocommerce ul.products.view-list li.product .woocommerce-loop-product__link {
    display: contents;
}

.woocommerce ul.products.view-list li.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    grid-row: 1 / span 4;
}

.woocommerce ul.products.view-list li.product .woocommerce-loop-product__title {
    font-size: 20px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
    text-align: left;
}

.woocommerce ul.products.view-list li.product .kings-product-price {
    justify-content: flex-start;
    grid-column: 2;
    grid-row: 2;
    margin: 10px 0;
}

.woocommerce ul.products.view-list li.product .kings-product-colors {
    justify-content: flex-start;
    grid-column: 2;
    grid-row: 3;
}

.woocommerce ul.products.view-list li.product .woocommerce-loop-product__excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    grid-column: 2;
    grid-row: 4;
}

/* List view hover overlay adjustments */
.woocommerce ul.products.view-list li.product .kings-product-overlay {
    grid-column: 1;
    grid-row: 1;
    border-radius: 8px;
}

.woocommerce ul.products.view-list li.product .kings-product-actions {
    flex-direction: row;
    gap: 8px;
}

.woocommerce ul.products.view-list li.product .kings-product-actions a,
.woocommerce ul.products.view-list li.product .kings-product-actions .button {
    width: 35px;
    height: 35px;
}

/* Product Title Styling */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    margin-bottom: 8px;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #007cba;
}

/* Product Image Styling */
.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:not(.view-list):hover img {
    transform: scale(1.05);
}

/* Star Rating */
.woocommerce ul.products li.product .star-rating {
    margin: 8px auto;
    display: block;
    text-align: center;
}

/* Quick View Modal Styles */
.kings-quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.kings-quick-view-modal.active {
    display: flex;
}

.kings-quick-view-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.kings-quick-view-content .product-images img {
    width: 100%;
    border-radius: 8px;
}

.kings-quick-view-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.kings-quick-view-content .price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #007cba;
}

.kings-quick-view-content .description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.kings-quick-view-content .actions {
    margin-bottom: 15px;
}

.kings-quick-view-content .view-full-details {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.kings-quick-view-content .view-full-details:hover {
    text-decoration: underline;
}

/* Close button for quick view */
.kings-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kings-quick-view-close:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .woocommerce ul.products.view-grid-four {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .woocommerce ul.products.view-grid-three,
    .woocommerce ul.products.view-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .woocommerce ul.products.view-list li.product {
        grid-template-columns: 150px 1fr;
        grid-template-rows: auto auto auto auto;
    }
    
    .woocommerce ul.products.view-list li.product img {
        grid-row: 1 / span 4;
        height: 150px;
    }
    
    .kings-quick-view-content {
        grid-template-columns: 1fr;
        margin: 20px;
    }
}

@media (max-width: 767px) {
    .kings-view-switcher {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .view-switcher-buttons {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .woocommerce ul.products.view-grid-two,
    .woocommerce ul.products.view-grid-three,
    .woocommerce ul.products.view-grid-four {
        grid-template-columns: 1fr;
    }
    
    .woocommerce ul.products.view-list li.product {
        grid-template-columns: 120px 1fr;
        padding: 15px;
    }
    
    .woocommerce ul.products.view-list li.product img {
        height: 120px;
    }
    
    .woocommerce ul.products.view-list li.product .woocommerce-loop-product__title {
        font-size: 16px;
    }
    
    .kings-product-actions {
        flex-direction: row;
        gap: 8px;
    }
    
    .kings-product-actions a,
    .kings-product-actions .button {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 575px) {
    .view-switcher-btn {
        padding: 6px 10px;
    }
    
    .view-switcher-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .kings-quick-view-content {
        padding: 20px;
    }
}

/* Loading state */
.woocommerce.loading ul.products {
    opacity: 0.6;
    pointer-events: none;
}

.woocommerce.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Modal Styles */
.kings-quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.kings-quick-view-modal.active {
    visibility: visible;
    opacity: 1;
}

.kings-quick-view-modal .kings-quick-view-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    padding: 30px;
}

.kings-quick-view-modal.active .kings-quick-view-content {
    transform: scale(1);
}

.kings-quick-view-modal .kings-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.kings-quick-view-modal .kings-quick-view-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Button Loading and Success States */
.product-overlay-actions .action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.product-overlay-actions .action-btn.loading svg {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.product-overlay-actions .action-btn.added {
    background: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.product-overlay-actions .action-btn.added:hover {
    background: #45a049 !important;
    border-color: #45a049 !important;
}

/* Enhanced Notification Styles */
.kings-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 250px;
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.kings-notification-success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.kings-notification-info {
    background: #17a2b8;
    border-left: 4px solid #138496;
}

.kings-notification-warning {
    background: #f1d16e;
    color: #000;
    border-left: 4px solid #ffbf00;
}

.kings-notification-error {
    background: #dc3545;
    border-left: 4px solid #c82333;
}

/* Enhanced Color Swatches */
.product-color-swatches {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
    background-size: cover;
    background-position: center;
}

.color-swatch:hover {
    transform: scale(1.15);
    border-color: #007cba;
    z-index: 2;
}

.color-swatch.active {
    border-color: #007cba;
    transform: scale(1.15);
    z-index: 2;
}

.color-swatch.active:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    /* background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); */
}

/* Color swatch specific colors */
.color-swatch[data-color="red"] { background-color: #dc3545; }
.color-swatch[data-color="blue"] { background-color: #007bff; }
.color-swatch[data-color="green"] { background-color: #28a745; }
.color-swatch[data-color="yellow"] { background-color: #ffc107; }
.color-swatch[data-color="orange"] { background-color: #fd7e14; }
.color-swatch[data-color="purple"] { background-color: #6f42c1; }
.color-swatch[data-color="pink"] { background-color: #e83e8c; }
.color-swatch[data-color="brown"] { background-color: #8b4513; }
.color-swatch[data-color="black"] { background-color: #000; }
.color-swatch[data-color="white"] { background-color: #fff; border-color: #ccc; }
.color-swatch[data-color="gray"] { background-color: #6c757d; }
.color-swatch[data-color="navy"] { background-color: #001f3f; }
.color-swatch[data-color="teal"] { background-color: #20c997; }
.color-swatch[data-color="indigo"] { background-color: #6610f2; }

/* List View Color Swatches */
.view-list .product-color-swatches {
    margin-top: 12px;
}

.view-list .color-swatch {
    width: 28px;
    height: 28px;
}

/* Quick View Product Content */
.kings-quick-view-modal .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.kings-quick-view-modal .product-images {
    position: relative;
}

.kings-quick-view-modal .product-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.kings-quick-view-modal .product-details h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.3;
}

.kings-quick-view-modal .product-details .price {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.kings-quick-view-modal .product-details .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.kings-quick-view-modal .product-details .cart {
    margin-top: 20px;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .kings-quick-view-modal .kings-quick-view-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
        padding: 20px;
    }
    
    .kings-quick-view-modal .product {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-overlay-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-overlay-actions .action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .view-grid-four .product-color-swatches,
    .view-grid-three .product-color-swatches {
        display: none; /* Hide color swatches on small grid items for mobile */
    }
    
    .kings-notification {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    /* Row Wrapper Mobile Responsive */
    .row {
        flex-direction: column;
        margin: 0;
    }
    
    .row .woocommerce-product-gallery,
    .row .summary.entry-summary {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .row .summary.entry-summary {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .view-switcher {
        gap: 4px;
    }
    
    .view-switcher-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .view-switcher-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .color-swatch {
        width: 20px;
        height: 20px;
    }
    
    .view-list .color-swatch {
        width: 24px;
        height: 24px;
    }
}

/* Single Product Page Essential Styles */
.single-product .kings-single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}
/* 
.single-product .product-gallery-wrapper {
    position: relative;
}

.single-product .product-summary-wrapper {
    padding-left: 20px;
}

.single-product .woocommerce-product-gallery {
    margin-bottom: 20px;
}

.single-product .woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    margin-bottom: 15px;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
}

.single-product .woocommerce-product-gallery__image:hover img {
    transform: none;
} */

.single-product .product_title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.single-product .price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.single-product .price del {
    color: #999;
    font-weight: 400;
    margin-right: 10px;
}

.single-product .price ins {
    text-decoration: none;
    color: #e74c3c;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.single-product .cart {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.single-product .cart .single_add_to_cart_button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single-product .cart .single_add_to_cart_button:hover {
    background: #005a8b;
    transform: translateY(-2px);
}

.single-product .product_meta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

/* Thumbnail gallery */
.kings-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #007cba;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery navigation */
.kings-gallery-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
    max-width: 668px;
}

.gallery-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.gallery-nav:hover {
    background: #fff;
    transform: scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .single-product .kings-single-product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .single-product .product-summary-wrapper {
        padding-left: 0;
    }
    
    .single-product .product_title {
        font-size: 24px;
    }
    
    .single-product .price {
        font-size: 20px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}

/* WooCommerce Pagination Styling */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin: 40px 0;
    clear: both;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 0;
    background: none;
    border: none;
    line-height: 1;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

/* Current/Active page styling */
.woocommerce nav.woocommerce-pagination ul li span.current {
    color: #333;
    font-weight: 600;
    position: relative;
}

.woocommerce nav.woocommerce-pagination ul li span.current:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 1px;
}

/* Previous/Next button styling */
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
    font-size: 18px;
    color: #999;
    padding: 8px;
    font-weight: normal;
}

.woocommerce nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce nav.woocommerce-pagination ul li a.next:hover {
    color: #333;
}

/* Disabled state for prev/next */
.woocommerce nav.woocommerce-pagination ul li .prev:not([href]),
.woocommerce nav.woocommerce-pagination ul li .next:not([href]) {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Clean up default WooCommerce pagination styles */
.woocommerce .woocommerce-pagination {
    text-align: center;
    margin: 40px 0;
    clear: both;
}

.woocommerce .woocommerce-pagination .page-numbers {
    background: none;
    border: none;
    padding: 8px 12px;
    margin: 0 4px;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1;
    border-radius: 0;
}

.woocommerce .woocommerce-pagination .page-numbers:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.woocommerce .woocommerce-pagination .page-numbers.current {
    color: #333;
    font-weight: 600;
    background: none;
}

.woocommerce .woocommerce-pagination .page-numbers.current:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 1px;
}

.woocommerce .woocommerce-pagination .page-numbers.prev,
.woocommerce .woocommerce-pagination .page-numbers.next {
    font-size: 18px;
    color: #999;
    padding: 8px;
    font-weight: normal;
}

.woocommerce .woocommerce-pagination .page-numbers.prev:hover,
.woocommerce .woocommerce-pagination .page-numbers.next:hover {
    color: #333;
}

/* Dots styling */
.woocommerce .woocommerce-pagination .page-numbers.dots {
    background: none;
    border: none;
    color: #999;
    cursor: default;
    pointer-events: none;
}

/* Alternative pagination wrapper styling */
.woocommerce-pagination {
    text-align: center;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Ensure proper spacing in shop pages */
.woocommerce.archive .woocommerce-pagination,
.woocommerce.shop .woocommerce-pagination {
    margin-top: 50px;
}

/* Mobile responsive pagination */
@media (max-width: 767px) {
    .woocommerce nav.woocommerce-pagination {
        margin: 30px 0;
    }
    
    .woocommerce nav.woocommerce-pagination ul {
        gap: 4px;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce .woocommerce-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .woocommerce nav.woocommerce-pagination ul li span.current:after,
    .woocommerce .woocommerce-pagination .page-numbers.current:after {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .woocommerce nav.woocommerce-pagination ul {
        gap: 2px;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce .woocommerce-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Recently Viewed Products */
.recently-viewed-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.recently-viewed-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.recently-viewed-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recently-viewed-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.recently-viewed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #007cba;
}

.recently-viewed-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.recently-viewed-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

.recently-viewed-item h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0 5px;
    color: #333;
    line-height: 1.4;
}

.recently-viewed-item .price {
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
}

.recently-viewed-item .price del {
    color: #999;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .recently-viewed-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .recently-viewed-item img {
        height: 150px;
    }
    
    .recently-viewed-item h4 {
        font-size: 14px;
    }
    
    .recently-viewed-item .price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .recently-viewed-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Product Layout Improvements - Modern Design */
.kings-single-product-wrapper {
    margin: 20px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.single-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Row Wrapper for Gallery and Summary */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: flex-start;
}

.row .woocommerce-product-gallery {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    position: relative;
}

.row .summary.entry-summary {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* Main Product Layout - Gallery + Summary Side by Side */
.kings-single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
    min-height: 600px;
}

.product-gallery-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: fit-content;
}

.product-summary-wrapper {
    padding: 20px 0;
    height: fit-content;
}

/* Standard Product Gallery */

/* Gallery Thumbnails - Bottom positioned */
.woocommerce-product-gallery__thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    padding: 0 20px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: #333;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* .gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

/* Gallery Indicators */

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: #333;
    transform: scale(1.2);
}

/* Sale badge */
.woocommerce div.product .onsale {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255,68,68,0.3);
}

/* Additional Content Below Main Layout */
.product-additional-content {
    margin-top: 60px;
    border-top: 2px solid #f0f0f0;
    padding-top: 40px;
}

.recently-viewed-products {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.product-summary-wrapper .summary {
    max-width: 100%;
}

/* Product Title */
.product-summary-wrapper .summary .product_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Price Styling */
.product-summary-wrapper .summary .price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-summary-wrapper .summary .price .amount {
    color: #1a1a1a;
}

.product-summary-wrapper .summary .price del {
    color: #999;
    font-size: 24px;
    font-weight: 500;
}

/* Viewing count indicator */
.product-viewing-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.product-viewing-count::before {
    font-size: 16px;
}

/* Product SKU styling */
.summary .product-sku {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Product Description */
.product-summary-wrapper .summary .woocommerce-product-details__short-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Stock status */
.product-summary-wrapper .summary .stock {
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    background: #ff4444;
    color: white;
}

.product-summary-wrapper .summary .stock.in-stock {
    background: #28a745;
}

/* Color Options */
.product-color-options {
    margin: 25px 0;
}

.product-color-options .color-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.color-swatches {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch.selected {
    border-color: #333;
    transform: scale(1.1);
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Size Options */
.product-size-options {
    margin: 25px 0;
}

.product-size-options .size-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.size-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.size-option {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.size-option:hover,
.size-option.selected {
    border-color: #333;
    background: #333;
    color: white;
}

/* Cart section */
.product-summary-wrapper .cart {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-summary-wrapper .cart .quantity {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.product-summary-wrapper .cart .quantity input {
    border: none;
    padding: 12px 20px;
    width: 80px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.product-summary-wrapper .cart .quantity .qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.product-summary-wrapper .cart .quantity .qty-btn:hover {
    background: #e9ecef;
}

.product-summary-wrapper .cart .single_add_to_cart_button {
    background: #333;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 200px;
}

.product-summary-wrapper .cart .single_add_to_cart_button:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Buy Now Button */
.buy-now-button {
    background: white;
    color: #333;
    border: 2px solid #333;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.buy-now-button:hover {
    background: #333;
    color: white;
}

/* Payment icons */
.payment-icons {
    margin: 30px 0;
    text-align: center;
}

.payment-icons img {
    height: 30px;
    margin: 0 5px;
    border-radius: 4px;
}

.guaranteed-checkout {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Shipping info */
.shipping-info {
    /* background: #f8f9fa; */
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.shipping-info .shipping-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.shipping-info .shipping-item:last-child {
    margin-bottom: 0;
}

.shipping-info .shipping-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #666;
}

.shipping-info .shipping-item::before {
    display: none;
}

.shipping-info .shipping-item.delivery::before {
    display: none;
}

/* Product Meta */
.product-summary-wrapper .product_meta {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.product-summary-wrapper .product_meta > span {
    display: block;
    margin-bottom: 10px;
}

.product-summary-wrapper .product_meta a {
    color: #007cba;
    text-decoration: none;
}

.product-summary-wrapper .product_meta a:hover {
    text-decoration: underline;
}

/* Enhanced Gallery Slider Functionality */
/* .woocommerce-product-gallery__wrapper {
    position: relative !important;
    height: 500px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
} */

/* Ensure all gallery images are positioned for slider */
/* .woocommerce-product-gallery__image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    z-index: 1 !important;
}

.woocommerce-product-gallery__image:first-child {
    opacity: 1 !important;
}

.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    display: block !important;
    max-width: 100% !important;
} */

/* WooCommerce Default Gallery Support */
/* .woocommerce-product-gallery--with-images .flex-viewport {
    border-radius: 12px;
    overflow: hidden;
} */

/* Enhanced Thumbnails */
.flex-control-thumbs {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    margin-top: 20px !important;
    padding: 0 20px !important;
    list-style: none !important;
}

.flex-control-thumbs li {
    width: 80px !important;
    height: 80px !important;
    border: 3px solid transparent !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    list-style: none !important;
}

.flex-control-thumbs li:hover,
.flex-control-thumbs li.flex-active-slide {
    border-color: #333 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Product Gallery Improvements - Modern Design */
.woocommerce div.product div.images {
    margin-bottom: 0;
    width: 668px;
    position: relative;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.woocommerce div.product div.images img {
    display: block;
    width: 100%;
    /* max-width: 500px !important; */
    height: auto;
    box-shadow: none;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image:hover img {
    transform: none;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.gallery-nav-prev::before {
    content: "←";
    font-size: 20px;
    font-weight: bold;
}

.gallery-nav-next::before {
    content: "→";
    font-size: 20px;
    font-weight: bold;
}

/* Zoom trigger button */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover {
    background: #333;
    color: white;
    transform: scale(1.1);
}

/* .woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
    content: "🔍";
    font-size: 18px;
} */

/* Product thumbnails - Left side layout like in image */
.woocommerce div.product div.images .flex-control-thumbs {
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    list-style: none;
    cursor: pointer;
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.woocommerce div.product div.images .flex-control-thumbs li:hover {
    border-color: #333;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.woocommerce div.product div.images .flex-control-thumbs li.flex-active-slide {
    border-color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Sale badge */
.woocommerce div.product .onsale {
    position: absolute;
    top: 20px;
    left: 120px;
    background: #ff4444;
    color: white;
    padding: 0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    width: 85px;
}

/* Mobile responsive gallery */
@media (max-width: 768px) {
    .woocommerce div.product div.images .flex-control-thumbs {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs li {
        width: 60px;
        height: 60px;
    }
    
    .gallery-nav-prev,
    .gallery-nav-next {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .woocommerce div.product .onsale {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .kings-single-product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-summary-wrapper {
        padding-left: 0;
    }
    
    .product-summary-wrapper .summary .product_title {
        font-size: 24px;
    }
    
    .product-summary-wrapper .summary .price {
        font-size: 20px;
    }
    
    .single-product-container {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .kings-single-product-wrapper {
        background: white;
    }
    
    .color-swatches {
        gap: 8px;
    }
    
    .color-swatch {
        width: 35px;
        height: 35px;
    }
    
    .size-options {
        gap: 8px;
    }
    
    .size-option {
        padding: 10px 15px;
        min-width: 45px;
    }
    
    .product-summary-wrapper .cart {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .product-summary-wrapper .cart .quantity {
        align-self: center;
        width: 160px;
    }
    
    .buy-now-button {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .payment-icons img {
        height: 24px;
        margin: 0 3px;
    }
    
    .shipping-info {
        padding: 15px;
        margin: 20px 0;
    }
    
    .shipping-info .shipping-item {
        font-size: 13px;
    }
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}

/* Mobile responsive gallery */
@media (max-width: 768px) {
    .kings-single-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
    }
    
    .woocommerce-product-gallery__wrapper {
        height: 400px;
    }
    
    .woocommerce-product-gallery__thumbnails {
        flex-wrap: wrap;
        margin-top: 15px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .woocommerce div.product .onsale {
        left: 15px;
        top: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .product-additional-content {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .recently-viewed-products {
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .woocommerce-product-gallery__wrapper {
        height: 300px;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .gallery-indicators {
        margin-top: 10px;
    }
    
    .gallery-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Enhanced Summary Section Styling - Matches Reference Image */

/* Product viewing count indicator */
.product-viewing-count {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
    border-radius: 30px;
}

/* Product Title */
.summary .product_title.entry-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

/* Price Wrapper */
.summary .price-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.summary .price-wrapper .price {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary .price-wrapper .price del {
    color: #999;
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 400;
}

.summary .price-wrapper .price ins {
    text-decoration: none;
    color: #333;
}

/* Product Description */
.summary .woocommerce-product-details__short-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Color Options */
.summary .product-color-options {
    margin-bottom: 20px;
}

.summary .product-color-options .color-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.summary .color-swatches {
    display: flex;
    gap: 8px;
    align-items: center;
}

.summary .color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.summary .color-swatch:hover {
    transform: scale(1.1);
    border-color: #333;
}

.summary .color-swatch.selected {
    border-color: #333;
    border-width: 3px;
}

.summary .color-swatch.selected::after {
    content: '✓';
    position: relative;
    top: auto;
    left: auto;
        width: auto;
    height: auto;

    transform: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Size Options */
.summary .product-size-options {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.summary .product-size-options.shake {
    animation: shake 0.6s ease-in-out;
}

.summary .size-option.shake-out-of-stock {
    animation: shakeOutOfStock 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes shakeOutOfStock {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); border-color: #dc3545; }
    20%, 40%, 60%, 80% { transform: translateX(3px); border-color: #dc3545; }
}

.summary .product-size-options .size-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.summary .size-options {
    display: flex;
    gap: 8px;
    align-items: center;
}

.summary .size-option {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    position: relative;

    border-radius: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    width: 50px;
    justify-content: space-around;

}

/* Stock indicator styling */
.summary .size-option .stock-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}

.summary .size-option .stock-indicator.in {
    background: #28a745;
    color: #fff;
}

.summary .size-option .stock-indicator.low {
    background: #ffc107;
    color: #333;
}

.summary .size-option .stock-indicator.out {
    background: #000000;
    color: #fff;
    font-size: 10px;
    display: none;
}

/* Out of stock size styling */
.summary .size-option.out-of-stock {
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    position: relative;
    /* border-radius: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    width: 50px;
    justify-content: space-around; */
}

.summary .size-option.out-of-stock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    background: #dc3545;
    transform: rotate(-45deg);
    z-index: 1;
}

.summary .size-option.out-of-stock:hover {
    border-color: #dee2e6;
    background: #f8f9fa;
    transform: none;
}

/* Low stock size styling */
.summary .size-option.low-stock {
    border-color: #ffc107;
    background: #fff8e1;
}

.summary .size-option.low-stock:hover {
    border-color: #ffb300;
    background: #fff3c4;
}

/* Enhanced stock status styling */
.summary .stock-status {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Stock pill styling */
.summary .stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
    text-align: center;
    min-width: 120px;
    cursor: default;
    transition: all 0.3s ease;
}

.summary .stock-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.summary .stock-pill.in-stock {
    background-color: #fff;
    color: #28a745;
    border-color: #28a745;
}

.summary .stock-pill.in-stock svg {
    color: #28a745;
}

.summary .stock-pill.out-of-stock {
    background-color: #fff;
    color: #000000;
    border-color: #e0e0e0;
}

.summary .stock-pill.out-of-stock svg {
    color: #000000;
}

/* Hover effects for stock pills */
.summary .stock-pill.in-stock:hover {
    background-color: #28a745;
    color: #fff;
}

.summary .stock-pill.in-stock:hover svg {
    color: #fff;
}

.summary .stock-pill.out-of-stock:hover {
    background-color: #dc3545;
    color: #fff;
}

.summary .stock-pill.out-of-stock:hover svg {
    color: #fff;
}

/* Special styling for numeric sizes */
.summary .size-option[data-size*="0"],
.summary .size-option[data-size*="1"],
.summary .size-option[data-size*="2"],
.summary .size-option[data-size*="3"],
.summary .size-option[data-size*="4"],
.summary .size-option[data-size*="5"],
.summary .size-option[data-size*="6"],
.summary .size-option[data-size*="7"],
.summary .size-option[data-size*="8"],
.summary .size-option[data-size*="9"] {
    min-width: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

/* Responsive size option width */
@media (max-width: 480px) {
    .summary .size-option {
        min-width: 35px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .summary .size-option .stock-indicator {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        top: -5px;
        right: -5px;
    }
    
    .summary .size-option[data-size*="0"],
    .summary .size-option[data-size*="1"],
    .summary .size-option[data-size*="2"],
    .summary .size-option[data-size*="3"],
    .summary .size-option[data-size*="4"],
    .summary .size-option[data-size*="5"],
    .summary .size-option[data-size*="6"],
    .summary .size-option[data-size*="7"],
    .summary .size-option[data-size*="8"],
    .summary .size-option[data-size*="9"] {
        min-width: 45px;
    }
}

.summary .size-option:hover {
    border-color: #333;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary .size-option.selected {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* .summary .size-option.selected .stock-indicator {
    border-color: #333;
} */

/* Tooltip for stock information on hover */
.summary .size-option[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}

.summary .size-option[title]:hover::before {
    content: '';
    position: absolute;
   
  


}

.summary .size-option.unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    position: relative;
}

.summary .size-option.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ccc;
    transform: rotate(-45deg);
}

.summary .size-option.unavailable:hover {
    border-color: #e0e0e0;
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
}

/* Stock Status */
.summary .stock-status {
    margin-bottom: 15px;
}

.summary .stock.in-stock {
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
}

/* Viewing Count Display */
.summary .product-viewing-count-display {
    margin-bottom: 20px;
    padding:  0;
    /* background: #f8f9fa; */
    /* border-radius: 6px; */
    /* border-left: 3px solid #007cba; */
}

.summary .viewing-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary .viewing-count svg {
    width: 20px;
    height: 18px;
    flex-shrink: 0;
}

/* Hide Default WooCommerce Variations */
.summary .variations {
    display: none !important;
}

.summary .woocommerce-variation-description {
    display: none !important;
}

.summary .woocommerce-variation-price {
    display: none !important;
}

.summary .woocommerce-variation-availability {
    display: none !important;
}

.summary .reset_variations {
    display: none !important;
}

.summary .woocommerce-product-attributes {
    display: none !important;
}

.summary .wc-pao-addon-container {
    display: none !important;
}

/* Hide WooCommerce default color/size swatches if present */
.summary .product-attributes .attribute-color,
.summary .product-attributes .attribute-size {
    display: none !important;
}

/* Product Details Section */
.summary .product-details-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.summary .product-details-section.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary .product-details-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.summary .product-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary .product-details-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.summary .product-details-list li:last-child {
    border-bottom: none;
}

.summary .product-details-list strong {
    color: #333;
    font-weight: 500;
    display: inline-block;
    min-width: 80px;
}

/* Add to Cart Section */
.summary .cart-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: column;
}

.summary .cart {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.summary .cart .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    overflow: hidden;
    height: 48px;
    position: relative;
    min-width: 120px;
}

.summary .cart .quantity .qty-btn {
    width: 40px;
    height: 46px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 2;
}

.summary .cart .quantity .qty-btn:hover {
    background: #f8f9fa;
    color: #000;
}

.summary .cart .quantity .qty-btn:active {
    transform: scale(0.95);
}

.summary .cart .quantity .qty-btn.qty-minus {
    order: 1;
    border-radius: 25px 0 0 25px;
}

.summary .cart .quantity .qty-btn.qty-plus {
    order: 3;
    border-radius: 0 25px 25px 0;
}

.summary .cart .quantity input.qty,
.summary .cart .quantity .qty-input-wrapper input.qty {
    border: none;
    padding: 0;
    width: 60px;
    height: 46px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
    order: 2;
    z-index: 1;
}
.qty {
    padding-top: 15px !important;
}

.summary .cart .quantity .qty-input-wrapper {
    display: contents;
}

.summary .cart .quantity input.qty::-webkit-outer-spin-button,
.summary .cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.summary .cart .single_add_to_cart_button {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    height: 48px;
    min-width: 180px;
}

.summary .cart .single_add_to_cart_button:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Wishlist Button */
.summary .kings-single-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary .kings-single-wishlist .kings-wishlist-wrapper {
    display: flex;
    align-items: center;
}

.summary .kings-single-wishlist .kings-wishlist-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 48px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.summary .kings-single-wishlist .kings-wishlist-trigger:hover {
    border-color: #333;
    background: #f8f9fa;
    transform: translateY(-1px);
}

.summary .kings-single-wishlist .kings-wishlist-icon svg {
    width: 18px;
    height: 18px;
}

.summary .kings-single-wishlist .feedback {
    display: none;
}

.summary .kings-single-wishlist .kings-wishlist-label {
    display: inline-flex;
    align-items: center;
}

.summary .kings-single-wishlist .wishlist-browse,
.summary .kings-single-wishlist .tinvwl_added_to_wishlist a,
.summary .kings-single-wishlist .tinvwl-view-wishlist a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 48px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #111;
    text-decoration: none;
}

/* Shipping Information */
.summary .shipping-info {
    margin-bottom: 25px;
    padding: 15px 0;
    /* border-top: 1px solid #e0e0e0; */
    /* border-bottom: 1px solid #e0e0e0; */
}

.summary .shipping-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #000;
    margin-bottom: 0px;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0; 
}

.summary .shipping-item:last-child {
    margin-bottom: 0;
    border: 0;
}

.summary .shipping-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #666;
}

.summary .shipping-link {
    color: #007cba;
    text-decoration: none;
    margin-left: auto;
}

.summary .shipping-link:hover {
    text-decoration: underline;
}

/* Product Categories */
.summary .product-categories {
    font-size: 14px;
    color: #666;
}

.summary .category-label {
    font-weight: 500;
    color: #333;
}

.summary .product-categories a {
    color: #666;
    text-decoration: none;
    margin-right: 8px;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
    transition: all 0.2s ease;
}

.summary .product-categories a:hover {
    background: #000;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .summary .product_title.entry-title {
        font-size: 24px;
    }
    
    .summary .price-wrapper .price {
        font-size: 20px;
    }
    
    .summary .cart-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .summary .cart {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .summary .cart .quantity {
        justify-content: center;
        min-width: 100px;
    }
    
    .summary .cart .single_add_to_cart_button {
        min-width: 140px;
        font-size: 13px;
    }
    
    .summary .kings-single-wishlist {
        align-self: center;
    }
    
    .summary .size-options {
        flex-wrap: wrap;
    }
    
    .summary .color-swatches {
        flex-wrap: wrap;
    }
}

/* Hot Item Badge for Product Loops */
.product-hot-item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b35, #ff8e53);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-hot-item-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #ff8e53, #ff6b35);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
    animation: hotItemGlow 2s ease-in-out infinite alternate;
}

@keyframes hotItemGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Remaining Items Count */
.remaining-items-count {
    margin-bottom: 15px;
    padding: 0;
    background: none;
    border: none;
}

.remaining-items-count .remaining-text {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    background: none;
    text-shadow: none;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 2px;
    display: inline-block;
}

.remaining-items-count strong {
    font-weight: 600;
    color: #dc3545;
}

/* Cart Section Layout */
.cart-section {
    margin-bottom: 15px;
}

.cart-section .cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

/* Quantity Input Styling */
.cart-section .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    height: 50px;
}

.cart-section .quantity .qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-section .quantity .qty-btn:hover {
    background: #e9ecef;
    color: #000;
}

.cart-section .quantity input.qty {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background: white;
    appearance: textfield;
    -moz-appearance: textfield;
}

.cart-section .quantity input.qty::-webkit-outer-spin-button,
.cart-section .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.cart-section .single_add_to_cart_button {
    flex: 1;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    /* font-weight: 600; */
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    text-transform: none;
}

/* ===== PRODUCT OVERLAY RESPONSIVE STYLES ===== */

/* Cart Page - Full Width Layout */
.woocommerce-cart #primary,
.woocommerce-cart .content-area,
.woocommerce-cart .col-lg-12 {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
}

/* WooCommerce Pages - Full Width Layout when no sidebar */
.woocommerce.no-sidebar #primary,
.woocommerce.no-sidebar .content-area,
.woocommerce.no-sidebar .col-lg-12,
.woocommerce-checkout #primary,
.woocommerce-checkout .content-area,
.woocommerce-checkout .col-lg-12,
.woocommerce-account #primary,
.woocommerce-account .content-area,
.woocommerce-account .col-lg-12 {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
}

/* Ensure WooCommerce content spans full container width when no sidebar */
.woocommerce-cart .container .row,
.woocommerce-checkout .container .row,
.woocommerce-account .container .row,
.woocommerce.no-sidebar .container .row {
    justify-content: center;
}

.woocommerce-cart .container .row .col-lg-12,
.woocommerce-checkout .container .row .col-lg-12,
.woocommerce-account .container .row .col-lg-12,
.woocommerce.no-sidebar .container .row .col-lg-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Cart Table Styling */
.woocommerce-cart .woocommerce-cart-form {
    margin-bottom: 30px;
}

.woocommerce-cart .cart-collaterals {
    margin-top: 30px;
}

/* Remove any sidebar spacing on WooCommerce pages without sidebar */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main,
.woocommerce.no-sidebar .site-main {
    width: 100%;
}

/* WooCommerce Sidebar Styling */
.woocommerce .secondary.sidebar {
    margin-top: 0;
}

.woocommerce .secondary.sidebar .widget {
    padding: 20px;
    background: #f8f9fa;
}

.woocommerce .secondary.sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.woocommerce .secondary.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .secondary.sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce .secondary.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.woocommerce .secondary.sidebar .widget ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce .secondary.sidebar .widget ul li a:hover {
    color: #007cba;
}

/* Mobile/Tablet responsiveness for overlay */
@media (max-width: 768px) {
    .product-overlay-actions {
        gap: 12px;
    }
    
    .product-overlay-actions .action-btn,
    .product-overlay-actions .add-to-cart-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .product-overlay-actions .action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Adjust tooltip positioning on mobile */
    .product-overlay-actions .action-btn:before {
        bottom: -40px;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .product-overlay-actions .action-btn:after {
        bottom: -32px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .product-overlay-actions {
        gap: 10px;
    }
    
    .product-overlay-actions .action-btn,
    .product-overlay-actions .add-to-cart-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .product-overlay-actions .action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hide tooltips on very small screens to prevent overflow */
    .product-overlay-actions .action-btn:before,
    .product-overlay-actions .action-btn:after {
        display: none;
    }
}

.cart-section .single_add_to_cart_button:hover {
    background: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Product Action Buttons */
.product-action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.kings-single-compare {
    display: flex;
}

.kings-single-wishlist {
    display: flex;
}

.kings-single-compare .kings-compare-btn,
.kings-single-compare .kings-compare-btn-single {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    padding: 0;
}

.kings-single-compare .kings-compare-btn:hover,
.kings-single-compare .kings-compare-btn-single:hover {
    border-color: #000;
    background: #f8f9fa;
    color: #000;
}

.kings-single-compare .kings-compare-btn.added,
.kings-single-compare .kings-compare-btn-single.added {
    border-color: #dc3545;
    color: #dc3545;
}

.kings-single-compare .kings-compare-btn svg,
.kings-single-compare .kings-compare-btn-single svg {
    width: 20px;
    height: 20px;
}

/* Buy Now Button */
.buy-now-section {
    margin-top: 15px;
    width: 100%;
}

.buy-now-btn {
    width: 100%;
    padding: 12px 25px;
    background: white;
    color: #000;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    min-height: 50px;
}

.buy-now-btn:hover {
    background: #000;
    color: white;
}

/* Main Cart and Actions Container */
.cart-actions-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-section .cart {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-action-buttons {
        margin-left: 0;
        justify-content: center;
        margin-top: 10px;
    }
    
    .kings-single-compare .kings-compare-btn,
    .kings-single-compare .kings-compare-btn-single {
        width: 45px;
        height: 45px;
    }

    .summary .kings-single-wishlist .kings-wishlist-trigger {
        min-width: 45px;
        height: 45px;
        padding: 0 18px;
    }
    
    .buy-now-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .remaining-items-count {
        margin-bottom: 12px;
    }
    
    .remaining-items-count .remaining-text {
        font-size: 13px;
    }
}