/* styles for product detail page */
.product-detail-wrapper {
    background: #f4f6fb;
    min-height: 100vh;
    padding: 2.5rem 0 2rem 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 2.5rem;
    padding: 1.1rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    font-weight: 500;
}
.breadcrumb-modern a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-modern a:hover {
    color: #0d47a1;
    text-decoration: underline;
}
.breadcrumb-modern .current {
    color: #6c757d;
    font-weight: 600;
}
.breadcrumb-separator {
    color: #bdbdbd;
    font-size: 1.1em;
}
.product-detail-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.08);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    margin-bottom: 3.5rem;
}
.product-detail-flex {
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.product-images-modern {
    flex: 1 1 350px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.main-image-modern {
    width: 100%;
    max-width: 400px;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
}
.main-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    z-index: 1;
}
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #272948 ;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    opacity: 0.92;
}
.arrow-btn:hover {
    background: #272948;
    color: #fff;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.13);
}
.left-arrow {
    left: 12px;
}
.right-arrow {
    right: 12px;
}
.thumbnail-images-modern {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0;
}
.thumbnail {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    border: 2.5px solid transparent;
    cursor: pointer;
    object-fit: cover;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    background: #f8f9fa;
}
.thumbnail:hover,
.thumbnail.active {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}
.product-info-modern {
    flex: 2 1 350px;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    min-width: 280px;
}
.product-title-modern {
    font-size: 2.1rem;
    font-weight: 500;
    color: #222;
    margin: 0 0 0.5rem 0;
    line-height: 1.18;
    letter-spacing: -0.5px;
}
.product-meta-modern {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.product-meta-modern span {
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 0.92rem;
    font-weight: 600;
}
.category-badge {
    background: #e3f2fd;
    color: #1976d2;
}
.condition-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}
.status-badge.available {
    background: #e8f5e8;
    color: #2e7d32;
}
.status-badge.unavailable {
    background: #ffebee;
    color: #c62828;
}
.product-price-modern {
    font-size: 2.1rem;
    font-weight: 600;
    color: #272948;
    padding: 1.1rem 0 1.1rem 0;
    border-top: 1.5px solid #e0e0e0;
    border-bottom: 1.5px solid #e0e0e0;
    margin-bottom: 0.5rem;
}
.product-price-modern .no-price {
    color: #888;
    font-size: 1.1rem;
    font-weight: 500;
}
.product-description-modern h3,
.product-specifications-modern h3 {
    font-size: 1.13rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}
.product-description-modern p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 1.01rem;
}
.specs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f8f9fa;
    border-radius: 7px;
    border-left: 3px solid #1976d2;
    font-size: 0.98rem;
}
.spec-key {
    font-weight: 700;
    color: #222;
}
.spec-value {
    color: #555;
}
.product-actions-modern {
    display: flex;
    gap: 16px;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.btn-whatsapp-modern,
.btn-back-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
    border: none;
    outline: none;
    cursor: pointer;
}
.btn-whatsapp-modern {
    background: linear-gradient(90deg, #25d366 60%, #128c7e 100%);
    color: #fff;
    flex: 1 1 180px;
    justify-content: center;
}
.btn-whatsapp-modern:hover {
    background: linear-gradient(90deg, #20b759 60%, #0b5c4a 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.10);
}
.btn-back-modern {
    background: #f1f3f6;
    color: #272948;
    border: 1.5px solid #272948;
    flex: 1 1 160px;
    justify-content: center;
}
.btn-back-modern:hover {
    background: #272948;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.10);
}
.related-products {
    background: linear-gradient(120deg, #fafdff 60%, #f3f6fa 100%);
    padding: 3rem 0 2.5rem 0;
    margin-top: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(30, 60, 120, 0.07);
}
.related-products h2 {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a2340;
    margin-bottom: 2.2rem;
    letter-spacing: -0.5px;
}
.related-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
}
.related-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    width: 100%;
}
.related-card {
    background: linear-gradient(120deg, #fff 70%, #f3f7fb 100%);
    border-radius: 16px;
    padding: 1.5rem 1.1rem 1.7rem 1.1rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(30, 60, 120, 0.07);
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    border: 1.5px solid rgba(25, 118, 210, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 230px;
    max-width: 230px;
    min-height: 320px;
    flex: 0 0 230px;
    position: relative;
}
.related-card:hover {
    transform: translateY(-7px) scale(1.045);
    box-shadow: 0 12px 32px rgba(25, 118, 210, 0.13);
    border-color: #1976d2;
    background: linear-gradient(120deg, #fafdff 60%, #e3f0ff 100%);
}
.related-card img {
    width: 100%;
    max-width: 170px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1.1rem;
    background: #fafdff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 8px rgba(25, 118, 210, 0.04);
}
.related-card h3 {
    font-size: 1.09rem;
    font-weight: 500;
    color: #1a2340;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-price {
    font-size: 1.13rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 1.1rem;
    letter-spacing: -0.5px;
}
.btn-view {
    display: inline-block;
    background: linear-gradient(90deg, #1976d2 60%, #3a8dde 100%);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    font-size: 1.01rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    border: none;
    outline: none;
}
.btn-view:hover {
    background: linear-gradient(90deg, #3a8dde 60%, #1976d2 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.13);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25, 118, 210, 0.08);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1976d2;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    opacity: 0.93;
    border: 1.5px solid rgba(25, 118, 210, 0.13);
}
.carousel-arrow:hover {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.13);
}
.carousel-arrow-left {
    left: -18px;
}
.carousel-arrow-right {
    right: -18px;
}
@media (max-width: 600px) {
    .related-card {
        min-width: 150px;
        max-width: 150px;
        flex: 0 0 150px;
        padding: 1rem 0.5rem 1.2rem 0.5rem;
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .carousel-arrow-left {
        left: -10px;
    }
    .carousel-arrow-right {
        right: -10px;
    }
    .related-card img {
        max-width: 100px;
        height: 70px;
    }
}
@media (max-width: 600px) {
    .related-card {
        min-width: 160px;
        max-width: 160px;
        flex: 0 0 160px;
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .carousel-arrow-left {
        left: -10px;
    }
    .carousel-arrow-right {
        right: -10px;
    }
}
@media (max-width: 1024px) {
    .product-detail-card {
        padding: 1.5rem 0.7rem 1.5rem 0.7rem;
    }
    .product-detail-flex {
        gap: 2rem;
    }
}
@media (max-width: 900px) {
    .product-detail-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .product-images-modern {
        max-width: 100%;
        align-items: stretch;
    }
    .main-image-modern {
        max-width: 100%;
        height: 320px;
    }
}
@media (max-width: 600px) {
    .product-detail-wrapper {
        padding: 1rem 0;
    }
    .product-detail-card {
        padding: 0.7rem 0.2rem 1.2rem 0.2rem;
    }
    .main-image-modern {
        height: 200px;
    }
    .thumbnail {
        width: 44px;
        height: 44px;
    }
    .product-title-modern {
        font-size: 1.25rem;
    }
    .product-price-modern {
        font-size: 1.1rem;
    }
    .product-actions-modern {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: stretch;
    }
    .btn-whatsapp-modern,
    .btn-back-modern {
        width: 48%;
        max-width: none;
        margin: 0;
        padding: 10px 0;
        font-size: 0.75rem;
        border-radius: 9px;
        min-width: 0;
        box-sizing: border-box;
        justify-content: center;
    }
    .btn-whatsapp-modern i,
    .btn-back-modern i {
        font-size: 1.1em;
    }
    .related-products {
        padding: 1.2rem 0 1.2rem 0;
        border-radius: 10px;
    }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .container {
        padding: 0 0.3rem;
    }
}
