/* ========== PRODUCT DETAILS PAGE STYLES ========== */

/* PAGE WRAPPER */
.product-details-wrapper {
    background: #ffffff;
    min-height: 100vh;
}

/* BREADCRUMB */
.breadcrumb {
    background: #f9f9f9;
    padding: 20px 0;
    margin-top: 90px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #1d6a59;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffc107;
}

.breadcrumb span {
    color: #999;
    margin: 0 5px;
}

.breadcrumb span:last-child {
    color: #333;
    font-weight: 600;
}

/* PRODUCT DETAILS SECTION */
.product-details-section {
    padding: 60px 0;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* LEFT SIDE - IMAGE */
.product-image-section {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.main-image-wrapper:hover .main-image {
    transform: scale(1.05);
}

/* Discount Badge Large */
.discount-badge-large {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffc107;
    color: #1d6a59;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Floating Wishlist */
.wishlist-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ccc;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-floating:hover {
    background: #fff;
    transform: scale(1.1);
}

.wishlist-floating.active i {
    color: #ff6b7a;
}

/* RIGHT SIDE - INFO */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Product Title */
.product-title {
    font-size: 36px;
    color: #1d6a59;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars {
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(29, 106, 89, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    font-weight: 500;
}

.new-price {
    font-size: 32px;
    font-weight: 800;
    color: #1d6a59;
}

.discount-label {
    background: #ffc107;
    color: #1d6a59;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Availability */
.availability {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.stock-status.in-stock {
    color: #27ae60;
}

.stock-status.out-stock {
    color: #e74c3c;
}

.stock-count {
    color: #666;
    font-size: 14px;
}

/* Description Section */
.description-section h3 {
    font-size: 18px;
    color: #1d6a59;
    margin-bottom: 12px;
    font-weight: 700;
}

.description-section p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* Quantity Selector */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-section label {
    font-weight: 600;
    color: #333;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1d6a59;
    font-weight: bold;
}

.qty-btn:hover {
    background: #e0e0e0;
}

#quantity {
    border: none;
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #333;
}

#quantity:focus {
    outline: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart {
    background: #ffc107;
    color: #1d6a59;
}

.btn-add-cart:hover {
    background: #ffb84d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.btn-buy-now {
    background: #1d6a59;
    color: #fff;
}

.btn-buy-now:hover {
    background: #155646;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 106, 89, 0.3);
}

/* Wishlist Button */
.btn-wishlist {
    width: 100%;
    padding: 12px;
    background: rgba(29, 106, 89, 0.08);
    color: #1d6a59;
    border: 1.5px solid #1d6a59;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn-wishlist:hover {
    background: #1d6a59;
    color: #fff;
}

.btn-wishlist.added {
    background: rgba(255, 107, 122, 0.1);
    color: #ff6b7a;
    border-color: #ff6b7a;
}

.btn-wishlist.added i {
    color: #ff6b7a;
}

/* NOTIFICATIONS */
.notification {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.notification.show {
    opacity: 1;
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Features Section */
.features-section h3 {
    font-size: 18px;
    color: #1d6a59;
    margin-bottom: 15px;
    font-weight: 700;
}

.features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 14px;
}

.features-list i {
    color: #ffc107;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ADDITIONAL DETAILS SECTION */
.additional-details-section {
    padding: 80px 0;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

/* TABS */
.details-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.tab-btn:hover {
    color: #1d6a59;
}

.tab-btn.active {
    color: #1d6a59;
    border-bottom-color: #ffc107;
}

/* TAB CONTENT */
.tab-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 22px;
    color: #1d6a59;
    margin-bottom: 20px;
    font-weight: 700;
}

.tab-pane p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 12px;
}

/* Details Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.details-table td {
    padding: 15px;
    color: #555;
}

.details-table strong {
    color: #1d6a59;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
    .product-details-grid {
        gap: 40px;
    }

    .product-title {
        font-size: 28px;
    }

    .new-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-details-section {
        padding: 40px 0;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-title {
        font-size: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .quantity-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .additional-details-section {
        padding: 60px 0;
    }

    .tab-content {
        padding: 25px;
    }

    .details-tabs {
        gap: 0;
        margin-bottom: 30px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-details-section {
        padding: 30px 0;
    }

    .product-title {
        font-size: 20px;
    }

    .price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .new-price {
        font-size: 24px;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn-add-cart,
    .btn-buy-now {
        padding: 12px 16px;
        font-size: 14px;
    }

    .details-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 12px;
        white-space: nowrap;
    }

    .tab-content {
        padding: 20px;
    }

    .tab-pane h3 {
        font-size: 18px;
    }
}