/**
 * Coffee Shop V2 - Product Detail Page
 * Luxury design with interactive elements
 */

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-modern {
    background: transparent;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-modern .breadcrumb {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

.breadcrumb-modern .breadcrumb-item {
    font-size: 0.95rem;
    opacity: 1 !important;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #d4a574;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ============================================
   PRODUCT DETAIL SECTION
   ============================================ */

.product-detail-section {
    padding: 3rem 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    background: #F8F8F8;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

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

.product-badge-detail {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #DC3545, #C82333);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 35px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    z-index: 2;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.product-thumbnail {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-thumbnail:hover {
    border-color: #d4a574;
}

.product-thumbnail:hover img {
    transform: scale(1.1);
}

.product-thumbnail.active {
    border-color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(27, 77, 62, 0.3);
}

/* ============================================
   PRODUCT INFO
   ============================================ */

.product-info-section {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    opacity: 1 !important;
}

.product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.1), rgba(45, 111, 95, 0.1));
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-category-tag:hover {
    background: linear-gradient(135deg, #1e3a5f, #2d4f7a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(27, 77, 62, 0.3);
}

.product-price-section {
    padding: 2rem 0;
    border-top: 2px solid #F0F0F0;
    border-bottom: 2px solid #F0F0F0;
    margin-bottom: 2rem;
}

.product-price-large {
    font-size: 3rem;
    font-weight: 700;
    color: #d4a574;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    opacity: 1 !important;
}

.product-price-old-large {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 1rem;
    opacity: 1 !important;
}

.product-save-amount {
    display: inline-block;
    background: linear-gradient(135deg, #DC3545, #C82333);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.75rem;
}

.product-description-box {
    background: #F8F9F8;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border-left: 4px solid #d4a574;
}

.product-description-box h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    opacity: 1 !important;
}

.product-description-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    opacity: 1 !important;
}

/* ============================================
   STOCK STATUS
   ============================================ */

.stock-status-box {
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.stock-status-box.in-stock {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(25, 135, 84, 0.1));
    border: 2px solid rgba(40, 167, 69, 0.3);
    color: #198754;
}

.stock-status-box.out-of-stock {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.1));
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #DC3545;
}

.stock-status-box i {
    font-size: 1.5rem;
}

.stock-status-box span {
    opacity: 1 !important;
}

/* ============================================
   QUANTITY SELECTOR
   ============================================ */

.quantity-section {
    margin-bottom: 2rem;
}

.quantity-section label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    display: block;
    opacity: 1 !important;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 2px solid #E8E8E8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.quantity-btn {
    background: #F8F8F8;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #d4a574;
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    border: none;
    width: 80px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    padding: 0.75rem;
}

.quantity-input:focus {
    outline: none;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.product-actions-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-add-to-cart-large {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #1e3a5f, #2d4f7a);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(27, 77, 62, 0.3);
}

.btn-add-to-cart-large:hover {
    background: linear-gradient(135deg, #2d4f7a, #3a5f8f);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(27, 77, 62, 0.4);
    color: white;
}

.btn-add-to-cart-large:active {
    transform: translateY(-1px);
}

.btn-continue-shopping {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    padding: 1.25rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-continue-shopping:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(27, 77, 62, 0.3);
}

.btn-out-of-stock-large {
    flex: 1;
    min-width: 250px;
    background: #E0E0E0;
    color: #999;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: not-allowed;
}

/* ============================================
   ADDITIONAL INFO
   ============================================ */

.additional-info-section {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05), rgba(45, 111, 95, 0.05));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(27, 77, 62, 0.1);
}

.additional-info-section h6 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    opacity: 1 !important;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    font-size: 1.05rem;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1 !important;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: #28A745;
    font-size: 1.2rem;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.related-products-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 3px solid #F0F0F0;
}

.related-products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-products-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    opacity: 1 !important;
}

.related-products-header p {
    font-size: 1.1rem;
    color: #777;
    opacity: 1 !important;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Reuse product card styles from products-page.css */
.product-card-related {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-related:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(27, 77, 62, 0.15);
}

/* ============================================
   TABS SECTION (Optional for future specs)
   ============================================ */

.product-tabs {
    margin-top: 4rem;
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nav-tabs-custom {
    border-bottom: 3px solid #F0F0F0;
    margin-bottom: 2rem;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.nav-tabs-custom .nav-link:hover {
    color: #d4a574;
    border-bottom-color: #d4a574;
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    background: transparent;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
    .product-detail-title {
        font-size: 2rem;
    }

    .product-price-large {
        font-size: 2.5rem;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 991px) {
    .product-gallery {
        position: static;
        margin-bottom: 3rem;
    }

    .product-info-section {
        padding: 2rem;
    }

    .product-detail-title {
        font-size: 1.75rem;
    }

    .product-price-large {
        font-size: 2.25rem;
    }

    .product-actions-section {
        flex-direction: column;
    }

    .btn-add-to-cart-large,
    .btn-continue-shopping {
        width: 100%;
        min-width: auto;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-price-large {
        font-size: 2rem;
    }

    .product-price-old-large {
        font-size: 1.25rem;
    }

    .product-info-section {
        padding: 1.5rem;
    }

    .product-description-box {
        padding: 1.5rem;
    }

    .btn-add-to-cart-large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .btn-continue-shopping {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .related-products-header h3 {
        font-size: 2rem;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .product-detail-title {
        font-size: 1.35rem;
    }

    .product-price-large {
        font-size: 1.75rem;
    }

    .quantity-selector {
        width: 100%;
    }

    .quantity-input {
        flex: 1;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   ZOOM EFFECT (Optional Enhancement)
   ============================================ */

.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.image-zoom-container.zoomed {
    cursor: zoom-out;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #d4a574;
    width: 150px;
    height: 150px;
    pointer-events: none;
    display: none;
    background: rgba(212, 175, 55, 0.1);
}

.zoom-result {
    position: absolute;
    top: 0;
    right: -110%;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
    background: white;
    overflow: hidden;
}
