/* ===== NEAT & CLEAN - CATEGORY CAROUSEL ===== */
.qtp-category-carousel-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px;
}

.qtp-category-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Category Intro Card - WHITE background */
.qtp-category-intro {
    position: sticky;
    top: 20px;
    background: #ffffff;
    border-radius: var(--nac-radius-lg);
    padding: 30px 25px;
    border: 1px solid var(--nac-border);
    box-shadow: var(--nac-shadow-sm);
    transition: var(--nac-transition);
}

.qtp-category-intro:hover {
    box-shadow: var(--nac-shadow-md);
    transform: translateY(-5px);
}

/* Category Icon - DARK BLUE background, WHITE icon */
.qtp-cat-icon {
    width: 60px;
    height: 60px;
    background: #132d4e;
    border-radius: var(--nac-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.qtp-cat-icon::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: qtp-icon-spin 6s linear infinite;
}

@keyframes qtp-icon-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.qtp-cat-icon i {
    position: relative;
    z-index: 1;
}

/* Category Title - DARK BLUE */
.qtp-cat-title {
    font-family: var(--nac-font-heading);
    font-size: 1.4rem;
    font-weight: bold;
    color: #132d4e;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.qtp-cat-desc {
    font-family: var(--nac-font-body);
    font-size: 0.9rem;
    color: var(--nac-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.qtp-cat-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--nac-border);
    border-bottom: 1px solid var(--nac-border);
}

.qtp-cat-stat {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.qtp-cat-stat-number {
    font-family: var(--nac-font-heading);
    font-size: 1.3rem;
    font-weight: bold;
    color: #132d4e;
    display: block;
}

.qtp-cat-stat-label {
    font-family: var(--nac-font-body);
    font-size: 0.7rem;
    color: var(--nac-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* Shop All Button - DARK BLUE background, WHITE text */
.qtp-cat-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #132d4e;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    font-family: var(--nac-font-button);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--nac-transition);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* Shop All Button Hover - GOLD background, WHITE text */
.qtp-cat-shop-btn:hover {
    background: #c8a86b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--nac-shadow-md);
}

/* Product Carousel */
.qtp-products-area {
    min-width: 0;
    position: relative;
}

.qtp-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--nac-radius-lg);
    padding: 10px 0;
}

.qtp-carousel-track {
    display: flex;
    gap: 20px;
    transition: var(--nac-transition-slow);
    will-change: transform;
}

/* Product Card - WHITE background - FIXED */
.qtp-product-card {
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    background: #ffffff;
    border-radius: var(--nac-radius-md);
    overflow: hidden;
    border: 1px solid var(--nac-border);
    transition: var(--nac-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0 !important;
}

.qtp-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nac-shadow-lg);
    border-color: #132d4e;
}

.qtp-product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--nac-cream);
}

.qtp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--nac-transition-slow);
}

.qtp-product-card:hover .qtp-product-image img {
    transform: scale(1.1);
}

.qtp-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
}

.qtp-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--nac-font-button);
}

.qtp-badge-sale {
    background: #dc4c4c;
    color: #ffffff;
}

.qtp-badge-new {
    background: #4caf7d;
    color: #ffffff;
}

.qtp-badge-bestseller {
    background: #e6a23c;
    color: #0f1a2e;
}

/* Product Info - FIXED with min-width: 0 */
.qtp-product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.qtp-product-category {
    font-family: var(--nac-font-body);
    font-size: 0.7rem;
    color: var(--nac-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* Product Name - DARK BLUE - FIXED */
.qtp-product-name {
    font-family: var(--nac-font-heading);
    font-size: 0.95rem;
    font-weight: bold;
    color: #132d4e;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.qtp-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    color: var(--nac-muted);
    font-family: var(--nac-font-body);
    flex-wrap: wrap;
}

.qtp-stars {
    color: #e6a23c;
    font-size: 0.75rem;
}

.qtp-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    min-width: 0;
}

/* Price - DARK BLUE */
.qtp-price-current {
    font-family: var(--nac-font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    color: #132d4e;
}

.qtp-price-original {
    font-family: var(--nac-font-body);
    font-size: 0.85rem;
    color: var(--nac-muted);
    text-decoration: line-through;
}

.qtp-price-discount {
    background: #dc4c4c;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--nac-font-button);
}

/* Add to Cart - DARK BLUE background, WHITE text */
.qtp-add-cart-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: var(--nac-radius-sm);
    background: #132d4e;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--nac-font-button);
    transition: var(--nac-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* Add to Cart Hover - GOLD background, WHITE text */
.qtp-add-cart-btn:hover {
    background: #c8a86b;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Navigation Arrows - WHITE background, DARK BLUE icon */
.qtp-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--nac-border);
    box-shadow: var(--nac-shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #132d4e;
    transition: var(--nac-transition);
    z-index: 10;
}

/* Arrow Hover - DARK BLUE background, WHITE icon */
.qtp-nav-arrow:hover {
    background: #132d4e;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--nac-shadow-xl);
}

.qtp-nav-arrow.qtp-disabled {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

.qtp-nav-prev {
    left: 10px;
}

.qtp-nav-next {
    right: 10px;
}

/* Divider */
.qtp-section-divider {
    max-width: 100%;
    margin: 0 auto;
}

.qtp-divider-line {
    border-top: 1px solid var(--nac-border);
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .qtp-category-carousel-wrapper {
        padding: 30px 20px;
    }

    .qtp-category-row {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .qtp-product-card {
        min-width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 1024px) {
    .qtp-category-row {
        grid-template-columns: 1fr;
    }

    .qtp-category-intro {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
        padding: 20px;
    }

    .qtp-cat-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .qtp-cat-desc {
        display: none;
    }

    .qtp-cat-stats {
        margin-bottom: 0;
        padding: 10px 15px;
        border: none;
        border-left: 1px solid var(--nac-border);
    }

    .qtp-cat-shop-btn {
        width: auto;
        padding: 12px 20px;
    }

    .qtp-product-card {
        min-width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .qtp-category-carousel-wrapper {
        padding: 20px 15px;
    }

    .qtp-cat-title {
        font-size: 1.2rem;
    }

    .qtp-cat-stats {
        gap: 10px;
    }

    .qtp-cat-stat-number {
        font-size: 1rem;
    }

    .qtp-product-card {
        min-width: calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
        width: calc((100% - 10px) / 2);
    }

    .qtp-product-image {
        height: 180px;
    }

    .qtp-nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .qtp-product-card {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .qtp-product-image {
        height: 220px;
    }

    .qtp-category-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .qtp-cat-stats {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--nac-border);
        justify-content: space-around;
    }

    .qtp-cat-shop-btn {
        width: 100%;
    }
}