/* ============================================================
   QUICK VIEW BOTTOM SHEET - SHOPEE/TEMU STYLE (FULLY FIXED)
   ============================================================ */

/* ===== OVERLAY ===== */
.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   MOBILE: BOTTOM SHEET (DEFAULT) - TINAASAN ANG HEIGHT
   ============================================================ */
.quick-view-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 75vh; /* TINAASAN: 55vh → 75vh */
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quick-view-sheet.active {
    transform: translateY(0);
}

/* Mobile small screens - mas mataas */
@media (max-width: 480px) {
    .quick-view-sheet {
        max-height: 78vh; /* 60vh → 78vh */
    }
}

/* Mobile medium screens */
@media (min-width: 481px) and (max-width: 767px) {
    .quick-view-sheet {
        max-height: 72vh;
    }
}

/* Tall screens (like iPhone 14 Pro Max, etc.) */
@media (min-height: 800px) and (max-width: 767px) {
    .quick-view-sheet {
        max-height: 70vh;
    }
}

/* ===== HANDLE BAR ===== */
.quick-view-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px 0;
    flex-shrink: 0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
    background: white;
}

.quick-view-handle:active {
    cursor: grabbing;
}

.quick-view-handle-bar {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    transition: background 0.2s;
}

.quick-view-handle:hover .quick-view-handle-bar {
    background: #bbb;
}

/* ===== HEADER ===== */
.quick-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px 8px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid #f5f5f5;
    background: white;
    position: relative;
    z-index: 10;
}

.quick-view-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
}

.quick-view-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f2f5;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.quick-view-close-btn:hover {
    background: #e0e2e5;
    color: #333;
}

.quick-view-close-btn:active {
    transform: scale(0.92);
}

/* ===== BODY (Scrollable) ===== */
.quick-view-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px 16px 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.quick-view-body::-webkit-scrollbar {
    width: 3px;
}

.quick-view-body::-webkit-scrollbar-track {
    background: transparent;
}

.quick-view-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* ===== IMAGE SLIDER ===== */
.quick-view-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 12px;
    touch-action: pan-y;
    flex-shrink: 0;
}

/* Mobile: smaller image */
@media (max-width: 480px) {
    .quick-view-slider {
        max-height: 220px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .quick-view-slider {
        max-height: 260px;
    }
}

.quick-view-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.quick-view-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.quick-view-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

/* ===== SLIDER DOTS ===== */
.quick-view-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.quick-view-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view-dot.active {
    background: white;
    width: 18px;
    border-radius: 10px;
}

/* ===== SLIDER ARROWS ===== */
.quick-view-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.quick-view-arrow:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-view-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.quick-view-arrow.prev {
    left: 6px;
}

.quick-view-arrow.next {
    right: 6px;
}

@media (min-width: 768px) {
    .quick-view-slider:hover .quick-view-arrow {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 767px) {
    .quick-view-arrow {
        opacity: 0.5;
        visibility: visible;
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* ===== PRODUCT INFO ===== */
.quick-view-name {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quick-view-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.quick-view-rating .stars {
    color: #ffc107;
    letter-spacing: 1px;
}

.quick-view-rating .stars .far {
    color: #ddd;
}

.quick-view-rating .count {
    color: #888;
    font-size: 0.75rem;
}

.quick-view-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.quick-view-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ee4d2d;
}

.quick-view-price .original {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}

.quick-view-price .discount {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ee4d2d;
    background: #fff0ed;
    padding: 2px 8px;
    border-radius: 4px;
}

.quick-view-tag {
    display: inline-block;
    background: #ffc107;
    color: #333;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ===== DESCRIPTION ===== */
.quick-view-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 6px 0 8px 0;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SELLER INFO ===== */
.quick-view-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #f5f5f5;
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-view-seller:hover {
    background: #fafafa;
}

.quick-view-seller .seller-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    flex-shrink: 0;
}

.quick-view-seller .seller-info {
    flex: 1;
    min-width: 0;
}

.quick-view-seller .seller-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.quick-view-seller .seller-badge {
    font-size: 0.55rem;
    background: #00b894;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-left: 4px;
}

.quick-view-seller .seller-location {
    font-size: 0.65rem;
    color: #999;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== VARIANTS ===== */
.quick-view-variants {
    margin: 6px 0;
}

.quick-view-variant-group {
    margin-bottom: 6px;
}

.quick-view-variant-group:last-child {
    margin-bottom: 0;
}

.quick-view-variant-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.quick-view-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.quick-view-variant-btn {
    padding: 4px 10px;
    border-radius: 16px;
    border: 2px solid #e8e8e8;
    background: white;
    font-size: 0.72rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-view-variant-btn:hover {
    border-color: #ccc;
    background: #fafafa;
}

.quick-view-variant-btn.active {
    border-color: #ee4d2d;
    background: #fff5f3;
    color: #ee4d2d;
}

.quick-view-variant-btn .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.quick-view-variant-btn .variant-image {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #eee;
}

/* ===== QUANTITY ===== */
.quick-view-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.quick-view-quantity-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #555;
}

.quick-view-quantity-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.quick-view-quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-quantity-btn:hover {
    background: #e8e8e8;
}

.quick-view-quantity-btn:active {
    transform: scale(0.92);
}

.quick-view-quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quick-view-quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    padding: 0 2px;
}

/* ===== FOOTER ===== */
.quick-view-footer {
    padding: 10px 16px 14px 16px;
    border-top: 1px solid #f5f5f5;
    flex-shrink: 0;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 10;
}

.quick-view-footer .btn {
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-view-footer .btn:active {
    transform: scale(0.97);
}

.quick-view-footer .btn-add-cart {
    background: #ee4d2d;
    color: white;
}

.quick-view-footer .btn-add-cart:hover {
    background: #d73a1a;
}

.quick-view-footer .btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quick-view-footer .btn-view-details {
    background: transparent;
    color: #555;
    border: 2px solid #ddd;
}

.quick-view-footer .btn-view-details:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* ===== TOAST ===== */
.quick-view-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    pointer-events: none;
}

.quick-view-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== STOCK INDICATOR ===== */
.quick-view-stock {
    font-size: 0.72rem;
    margin: 2px 0 4px 0;
}

.quick-view-stock.in-stock {
    color: #00b894;
}

.quick-view-stock.low-stock {
    color: #f39c12;
}

.quick-view-stock.out-of-stock {
    color: #e74c3c;
}

/* ===== LOADING ===== */
.quick-view-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    height: 100%;
    min-height: 150px;
}

.quick-view-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #ee4d2d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.quick-view-loading .loading-text {
    color: #999;
    font-size: 0.8rem;
}

/* ============================================================
   DESKTOP ENHANCEMENTS (OVERRIDES)
   ============================================================ */
@media (min-width: 768px) {
    
    /* Override: Center modal */
    .quick-view-sheet {
        max-width: 560px;
        max-height: 80vh;
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) scale(0.95) !important;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
    }
    
    .quick-view-sheet.active {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1;
    }
    
    /* Override: Blur overlay */
    .quick-view-overlay {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background: rgba(0, 0, 0, 0.6);
    }
    
    /* Hide handle on desktop */
    .quick-view-handle {
        display: none !important;
    }
    
    /* Desktop header */
    .quick-view-header {
        padding: 16px 20px 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .quick-view-header-title {
        font-size: 0.9rem;
    }
    
    .quick-view-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .quick-view-close-btn:hover {
        background: #e0e2e5;
        transform: rotate(90deg);
    }
    
    /* Desktop body */
    .quick-view-body {
        padding: 16px 20px 20px 20px;
        max-height: calc(80vh - 140px);
    }
    
    .quick-view-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .quick-view-body::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }
    
    .quick-view-body::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }
    
    /* Desktop slider */
    .quick-view-slider {
        max-height: 320px;
        border-radius: 14px;
        margin-bottom: 16px;
        cursor: pointer;
    }
    
    .quick-view-slider:hover .quick-view-arrow {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .quick-view-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }
    
    .quick-view-arrow:hover {
        background: white;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        transform: translateY(-50%) scale(1.08);
    }
    
    .quick-view-arrow.prev {
        left: 10px;
    }
    
    .quick-view-arrow.next {
        right: 10px;
    }
    
    /* Desktop dots */
    .quick-view-dots {
        padding: 6px 14px;
        gap: 8px;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .quick-view-dot {
        width: 8px;
        height: 8px;
    }
    
    .quick-view-dot:hover {
        background: rgba(255, 255, 255, 0.8);
    }
    
    .quick-view-dot.active {
        width: 24px;
        height: 8px;
    }
    
    /* Desktop product info */
    .quick-view-name {
        font-size: 1.15rem;
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    .quick-view-name:hover {
        color: #ee4d2d;
        cursor: pointer;
    }
    
    .quick-view-rating {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .quick-view-rating .stars {
        letter-spacing: 2px;
    }
    
    .quick-view-price .current {
        font-size: 1.4rem;
    }
    
    .quick-view-price .original {
        font-size: 0.9rem;
    }
    
    .quick-view-price .discount {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    /* Desktop description */
    .quick-view-description {
        font-size: 0.85rem;
        padding: 10px 14px;
        margin: 8px 0 10px 0;
        line-height: 1.6;
        -webkit-line-clamp: 3;
    }
    
    /* Desktop seller */
    .quick-view-seller {
        padding: 10px 12px;
        margin: 6px -8px 0 -8px;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .quick-view-seller:hover {
        background: #f8f9fa;
    }
    
    .quick-view-seller .seller-avatar {
        width: 36px;
        height: 36px;
        border-width: 2px;
        transition: transform 0.2s ease;
    }
    
    .quick-view-seller:hover .seller-avatar {
        transform: scale(1.08);
    }
    
    .quick-view-seller .seller-name {
        font-size: 0.85rem;
    }
    
    .quick-view-seller .seller-location {
        font-size: 0.7rem;
    }
    
    /* Desktop variants */
    .quick-view-variant-group {
        margin-bottom: 8px;
    }
    
    .quick-view-variant-label {
        font-size: 0.78rem;
        margin-bottom: 6px;
    }
    
    .quick-view-variant-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
        border-radius: 20px;
    }
    
    .quick-view-variant-btn:hover {
        border-color: #ccc;
        background: #fafafa;
        transform: translateY(-1px);
    }
    
    .quick-view-variant-btn.active {
        border-color: #ee4d2d;
        background: #fff5f3;
        color: #ee4d2d;
        box-shadow: 0 2px 8px rgba(238, 77, 45, 0.15);
    }
    
    .quick-view-variant-btn .color-dot {
        width: 16px;
        height: 16px;
    }
    
    .quick-view-variant-btn .variant-image {
        width: 24px;
        height: 24px;
    }
    
    /* Desktop quantity */
    .quick-view-quantity {
        margin: 10px 0;
        gap: 14px;
    }
    
    .quick-view-quantity-label {
        font-size: 0.78rem;
    }
    
    .quick-view-quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 4px;
    }
    
    .quick-view-quantity-btn:hover {
        background: #e8e8e8;
    }
    
    .quick-view-quantity-value {
        min-width: 36px;
        font-size: 0.95rem;
    }
    
    /* Desktop footer */
    .quick-view-footer {
        padding: 14px 20px 20px 20px;
        border-top: 1px solid #f0f0f0;
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .quick-view-footer .btn {
        flex: 1;
        min-width: 140px;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 12px;
        transition: all 0.25s ease;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    
    .quick-view-footer .btn-add-cart {
        background: #ee4d2d;
        color: white;
        flex: 1.5;
    }
    
    .quick-view-footer .btn-add-cart:hover {
        background: #d73a1a;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(238, 77, 45, 0.35);
    }
    
    .quick-view-footer .btn-add-cart:active {
        transform: translateY(0) scale(0.97);
    }
    
    .quick-view-footer .btn-view-details {
        background: transparent;
        color: #555;
        border: 2px solid #ddd;
        flex: 1;
    }
    
    .quick-view-footer .btn-view-details:hover {
        background: #f5f5f5;
        border-color: #ccc;
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    
    .quick-view-footer .btn-view-details:active {
        transform: translateY(0) scale(0.97);
    }
    
    /* Desktop toast */
    .quick-view-toast {
        bottom: 120px;
        padding: 14px 28px;
        font-size: 0.9rem;
        border-radius: 14px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
    
    /* Desktop stock */
    .quick-view-stock {
        font-size: 0.78rem;
        margin: 4px 0 6px 0;
    }
    
    /* Desktop loading */
    .quick-view-loading {
        padding: 60px 20px;
        min-height: 200px;
    }
    
    .quick-view-loading .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
    
    .quick-view-loading .loading-text {
        font-size: 0.9rem;
    }
    
    /* Keyboard hint */
    .quick-view-footer .keyboard-hint {
        display: inline-block;
        font-size: 0.6rem;
        color: #aaa;
        background: #f5f5f5;
        padding: 2px 8px;
        border-radius: 4px;
        margin-left: 6px;
        font-weight: 400;
    }
    
    /* Fade-in animation for content */
    .quick-view-body > * {
        animation: quickViewFadeIn 0.4s ease both;
    }
    
    .quick-view-body > *:nth-child(1) { animation-delay: 0.05s; }
    .quick-view-body > *:nth-child(2) { animation-delay: 0.08s; }
    .quick-view-body > *:nth-child(3) { animation-delay: 0.11s; }
    .quick-view-body > *:nth-child(4) { animation-delay: 0.14s; }
    .quick-view-body > *:nth-child(5) { animation-delay: 0.17s; }
    .quick-view-body > *:nth-child(6) { animation-delay: 0.20s; }
    .quick-view-body > *:nth-child(7) { animation-delay: 0.23s; }
    .quick-view-body > *:nth-child(8) { animation-delay: 0.26s; }
    .quick-view-body > *:nth-child(9) { animation-delay: 0.29s; }
    
    @keyframes quickViewFadeIn {
        from {
            opacity: 0;
            transform: translateY(6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== DESKTOP: Extra large screens (1200px+) ===== */
@media (min-width: 1200px) {
    .quick-view-sheet {
        max-width: 620px;
        max-height: 85vh;
    }
    
    .quick-view-slider {
        max-height: 360px;
    }
    
    .quick-view-body {
        max-height: calc(85vh - 150px);
    }
    
    .quick-view-footer .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* ===== DESKTOP: Small screens (768-991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .quick-view-sheet {
        max-width: 480px;
        max-height: 75vh;
    }
    
    .quick-view-slider {
        max-height: 280px;
    }
    
    .quick-view-body {
        max-height: calc(75vh - 130px);
    }
}

/* ===== MOBILE: Portrait mode ===== */
@media (max-width: 767px) and (orientation: portrait) {
    .quick-view-sheet {
        max-height: 75vh;
    }
}

/* ===== MOBILE: Landscape mode ===== */
@media (max-width: 767px) and (orientation: landscape) {
    .quick-view-sheet {
        max-height: 85vh;
    }
    
    .quick-view-slider {
        max-height: 160px;
        aspect-ratio: 1 / 1;
    }
}