.old-carousel-wrapper {
    position: relative;
    padding-bottom: 70px;
    width: 100%;
    overflow: hidden;
}

.old-swiper-container {
    width: 100%;
    overflow: hidden;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 100% !important;
}

.product-image-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.product-image-link:hover {
    text-decoration: none;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.product-image .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-image.has-hover-image .hover-image {
    opacity: 1;
}

.product-card:hover .product-image.has-hover-image .primary-image {
    opacity: 0;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    text-decoration: underline;
}

.product-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.product-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background-color: var(--theme-color, #154e8d);
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15);
    padding: 6px 6px 10px 15px;
}

.product-price {
    color: var(--price-color, #fff);
    font-weight: 800;
    font-size: 18px;
    padding-right: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price *, .product-price .amount {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
}

.product-price del {
    opacity: 0.7;
    font-size: 0.8em;
    text-decoration: line-through;
}

.product-btn {
    background-color: var(--btn-bg-color, #fff);
    color: var(--theme-color, #154e8d);
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 1;
    white-space: nowrap !important;
}

.product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.old-carousel-wrapper .swiper-pagination {
    bottom: 15px !important;
    left: 0 !important;
    width: auto !important;
    text-align: left;
    display: flex;
    align-items: center;
}

.old-carousel-wrapper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 4px;
    background: #d4d4d4;
    opacity: 1;
    margin: 0 3px !important;
    transition: all 0.3s ease;
}

.old-carousel-wrapper .swiper-pagination-bullet-active {
    width: 24px;
    background: #888;
}

.old-carousel-wrapper .swiper-button-nav-container {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.old-carousel-wrapper .swiper-button-prev-custom,
.old-carousel-wrapper .swiper-button-next-custom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #5b79d6; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.1);
}

.old-carousel-wrapper .swiper-button-prev-custom:hover,
.old-carousel-wrapper .swiper-button-next-custom:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.old-carousel-wrapper .swiper-button-prev-custom:active,
.old-carousel-wrapper .swiper-button-next-custom:active {
    transform: translateY(1px);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1);
    padding-top: 2px;
}

.old-carousel-wrapper .swiper-button-prev-custom:after,
.old-carousel-wrapper .swiper-button-next-custom:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.old-carousel-wrapper .swiper-button-prev-custom:after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.old-carousel-wrapper .swiper-button-next-custom:after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* ================================================
   Hover Actions (Quick View / Wishlist)
   ================================================ */
.product-hover-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.product-card:hover .product-hover-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Base button (Quick View & Wishlist share this) */
.action-item {
    background: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #444;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    line-height: 1;
}
.action-item svg {
    display: block;
    transition: fill 0.2s ease;
}
.action-item:hover {
    background: #154e8d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Wishlist active state */
.wishlist-btn.is-wishlisted {
    background: #e74c3c;
    color: #fff;
}
.wishlist-btn.is-wishlisted:hover {
    background: #c0392b;
}

/* Pulse animation on toggle */
@keyframes oldQvPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.wishlist-btn.pulse {
    animation: oldQvPulse 0.35s ease;
}

/* Loading state (disable interaction, subtle fade) */
.action-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ================================================
   Quick View Modal
   ================================================ */
.old-qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.old-qv-open {
    overflow: hidden;
}

.old-qv-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    animation: oldQvSlideIn 0.3s ease;
}

@keyframes oldQvSlideIn {
    from { opacity:0; transform: translateY(30px) scale(0.96); }
    to   { opacity:1; transform: translateY(0)   scale(1); }
}

.old-qv-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}
.old-qv-close:hover {
    background: #e74c3c;
    color: #fff;
}

/* Content area */
.old-qv-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 36px 32px;
    min-height: 320px;
}

/* Image column */
.qv-image-col {
    flex: 0 0 320px;
    max-width: 320px;
}

.qv-main-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 12px;
}
.qv-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

.qv-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.qv-gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background: #f2f2f2;
}
.qv-gallery-thumb:hover,
.qv-thumb-active {
    border-color: #154e8d;
}

/* Info column */
.qv-info-col {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qv-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin: 0;
    letter-spacing: 0.08em;
}
.qv-category a { color: inherit; text-decoration: none; }

.qv-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.qv-price {
    font-size: 20px;
    font-weight: 700;
    color: #154e8d;
}
.qv-price ins { text-decoration: none; }
.qv-price del { font-size: 14px; color: #aaa; font-weight: 400; margin-right: 6px; }

.qv-in-stock  { font-size: 13px; font-weight: 600; color: #27ae60; }
.qv-out-stock { font-size: 13px; font-weight: 600; color: #e74c3c; }

.qv-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
}
.qv-desc p { margin: 0 0 6px; }

.qv-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}

.qv-add-to-cart {
    flex: 1 1 auto;
    background: #154e8d;
    color: #fff;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.qv-add-to-cart:hover {
    background: #0d3a6e;
    transform: translateY(-1px);
    color: #fff;
}

.qv-view-full {
    flex: 0 0 auto;
    border: 2px solid #ddd;
    color: #555;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}
.qv-view-full:hover {
    border-color: #154e8d;
    color: #154e8d;
}

/* Spinner */
.old-qv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
}
.old-qv-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #154e8d;
    border-radius: 50%;
    animation: oldQvSpin 0.7s linear infinite;
}
@keyframes oldQvSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 680px) {
    .old-qv-content {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
    }
    .qv-image-col {
        flex: none;
        max-width: 100%;
    }
    .qv-title { font-size: 18px; }
}

