/* ============================================================
   TIMDARA SOLVISTA — product-list.css
   Brand palette applied throughout
   ============================================================ */

.product-details {
    background-image: url('../images/product-bj.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.product-details .section-des {
    margin-bottom: 0;
}

/* ── Carousel Wrapper ───────────────────────────────────────── */
.product-carousel {
    position: relative;
    width: 100%;
    height: 560px;
    perspective: 1500px;
    margin: 10px auto;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.320, 1);
}

/* ── Carousel Items — base (hidden until position class added) */
.carousel-item {
    position: absolute;
    width: 500px;
    height: 480px;
    left: 50%;
    top: 50%;
    margin-left: -250px;
    margin-top: -240px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(13, 31, 60, 0.1);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7);
    filter: blur(2px);
    z-index: 1;
}

/* ── Active (centre, fully visible) ────────────────────────── */
.carousel-item.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    z-index: 5;
    box-shadow: 0 8px 30px rgba(13, 31, 60, 0.15);
    filter: blur(0);
    pointer-events: all;
}

.carousel-item.active:hover {
    transform: scale(1.03);
}

/* ── Prev / Next ────────────────────────────────────────────── */
.carousel-item.prev {
    opacity: 0.75;
    transform: scale(0.9) translateX(-280px) translateZ(-100px);
    z-index: 4;
    filter: blur(0.5px);
    pointer-events: all;
}

.carousel-item.next {
    opacity: 0.75;
    transform: scale(0.9) translateX(280px) translateZ(-100px);
    z-index: 4;
    filter: blur(0.5px);
    pointer-events: all;
}

/* ── Far Prev / Far Next ────────────────────────────────────── */
.carousel-item.far-prev {
    opacity: 0.35;
    transform: scale(0.8) translateX(-500px) translateZ(-200px);
    z-index: 3;
    filter: blur(1px);
    pointer-events: none;
}

.carousel-item.far-next {
    opacity: 0.35;
    transform: scale(0.8) translateX(500px) translateZ(-200px);
    z-index: 3;
    filter: blur(1px);
    pointer-events: none;
}

/* ── Product Image ──────────────────────────────────────────── */
.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0D1F3C;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.carousel-item.active .product-image img {
    transform: scale(1.05);
}

/* ── Product Content ────────────────────────────────────────── */
.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0D1F3C;
    position: relative;
    padding-bottom: 10px;
}

.product-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #E8540A, #C8860A);
    border-radius: 2px;
}

.product-content p {
    color: #4A3F35;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* ── Product Footer & Button ────────────────────────────────── */
.product-detail-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.product-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #E8540A, #FF6B1A);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #E8540A;
    font-size: 0.9rem;
    width: fit-content;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.product-detail-btn a {
    color: white;
    text-decoration: none;
}

.product-detail-btn:hover {
    background: transparent;
    color: #E8540A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(232, 84, 10, 0.25);
}

.product-detail-btn:hover a { color: #E8540A; }

/* ── Carousel Nav Dots ──────────────────────────────────────── */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.carousel-dot {
    width: 25px;
    height: 8px;
    border-radius: 10px;
    background: rgba(13, 31, 60, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: linear-gradient(90deg, #E8540A, #C8860A);
    transform: scale(1.2);
    width: 35px;
}

/* ── Carousel Arrows ────────────────────────────────────────── */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(13, 31, 60, 0.12);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #0D1F3C;
    border: 2px solid rgba(13, 31, 60, 0.1);
}

.carousel-arrow:hover {
    background: #0D1F3C;
    color: white;
    box-shadow: 0 8px 20px rgba(13, 31, 60, 0.3);
    border-color: #0D1F3C;
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .product-carousel  { height: 480px; }

    .carousel-item {
        width: 280px;
        height: 430px;
        margin-left: -140px;
        margin-top: -215px;
    }

    .carousel-item.prev     { transform: scale(0.9) translateX(-180px) translateZ(-100px); }
    .carousel-item.next     { transform: scale(0.9) translateX(180px)  translateZ(-100px); }
    .carousel-item.far-prev { transform: scale(0.8) translateX(-300px) translateZ(-200px); }
    .carousel-item.far-next { transform: scale(0.8) translateX(300px)  translateZ(-200px); }

    .product-content p { line-height: 1.3; }
    .carousel-arrow    { width: 40px; height: 40px; }
    .carousel-arrow.prev { left: 10px; }
    .carousel-arrow.next { right: 10px; }
    .product-image     { height: 140px; }
    .section-title     { font-size: 2rem; }
}