/* Product Detail Page Styles */

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    background: #f9fafb;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #8B1538;
}

.breadcrumb .separator {
    color: #d1d5db;
}

.breadcrumb .current {
    color: #111827;
    font-weight: 500;
}

/* Product Detail Wrapper */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========== LEFT: IMAGE GALLERY ========== */

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

/* Main Image Slider */
.main-image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.slider-image.active {
    opacity: 1;
    pointer-events: auto;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.slider-arrow:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 16px;
}

.slider-arrow.next {
    right: 16px;
}

.slider-arrow i {
    font-size: 18px;
}

/* Thumbnail Images */
.thumbnail-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

.thumbnail-images::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.thumbnail:hover {
    border-color: #8B1538;
}

.thumbnail.active {
    border-color: #8B1538;
    box-shadow: 0 0 0 1px #8B1538;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Image Counter */
.image-counter {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #6b7280;
}

.current-image {
    font-weight: 600;
    color: #111827;
}

/* ========== RIGHT: PRODUCT INFO ========== */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========== VENDOR SECTION ========== */
.vendor-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 20px;
}

.vendor-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.vendor-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vendor-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.vendor-name:hover {
    color: #8B1538;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.badge i {
    font-size: 12px;
}

.badge-verified {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.badge-verified:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.badge-premium:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}


/* Product Title */
.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    font-size: 18px;
}

.rating-value {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

/* Price Section */
.price-section {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #8B1538;
}

.original-price {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount-badge {
    display: inline-flex;
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Stock Section */
.stock-section {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.stock-available {
    background: #dcfce7;
    color: #16a34a;
}

.stock-warning {
    background: #fef3c7;
    color: #d97706;
    padding: 12px 16px;
    border-radius: 8px;
}

.stock-unavailable {
    background: #fee2e2;
    color: #dc2626;
}

.stock-section i {
    font-size: 18px;
}

/* Product Description */
.product-description {
    padding-top: 8px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.product-description p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ========== CATEGORIES & TAGS ========== */

/* Categories Section */
.categories-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-chip {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #8B1538 0%, #6d0f2a 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.4);
}

/* Tags Section */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-chip {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    color: #8B1538;
    border: 2px solid #8B1538;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.tag-chip:hover {
    background: #8B1538;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

/* Kids Info Section */
.kids-info-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

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

.info-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #92400e;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .category-chip {
        padding: 6px 14px;
        font-size: 13px;
    }

    .tag-chip {
        padding: 5px 12px;
        font-size: 12px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


/* Voucher Validity */
.voucher-validity {
    padding-top: 8px;
}

.validity-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.validity-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.validity-item i {
    color: #8B1538;
    font-size: 18px;
}

.validity-item .label {
    font-weight: 600;
    color: #6b7280;
}

.validity-item .value {
    color: #111827;
    font-weight: 500;
}

/* Product Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: #8B1538;
    color: white;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-selector label {
    font-weight: 600;
    color: #374151;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f3f4f6;
    color: #8B1538;
}

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

.quantity-controls input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    background: white;
}

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

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
}

.btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: #8B1538;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-to-cart:hover {
    background: #a01842;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart.added {
    background: #16a34a;
}

.btn-add-to-cart.disabled,
.btn-add-to-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-add-to-cart.disabled:hover,
.btn-add-to-cart:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.btn-wishlist {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-wishlist:hover {
    border-color: #8B1538;
    background: #fef2f2;
}

.btn-wishlist i {
    font-size: 20px;
    color: #6b7280;
    transition: all 0.2s;
}

.btn-wishlist:hover i {
    color: #8B1538;
}

.btn-wishlist.active i {
    color: #8B1538;
    font-weight: 900;
}

/* Product Meta */
.product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.meta-item .label {
    color: #6b7280;
    font-weight: 500;
}

.meta-item .value {
    color: #111827;
    font-weight: 600;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: #111827;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-success {
    background: #16a34a;
}

.toast.toast-error {
    background: #dc2626;
}

.toast.toast-info {
    background: #3b82f6;
}

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

@media (max-width: 1024px) {
    .product-detail-wrapper {
        gap: 32px;
        padding: 24px;
    }

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

    .current-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 16px;
    }

    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .original-price {
        font-size: 1.1rem;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow.prev {
        left: 8px;
    }

    .slider-arrow.next {
        right: 8px;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-wishlist {
        width: 100%;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .product-title {
        font-size: 1.25rem;
    }

    .current-price {
        font-size: 1.25rem;
    }

    .original-price {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .btn-add-to-cart {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .quantity-controls input {
        width: 50px;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
    }
}

