/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: #f9f9f9;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb .container {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 20px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #ccc;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    padding: 20px 0 40px 0;
    background-color: #f0f4f8;
}

.product-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* ===== PRODUCT IMAGE ===== */
.product-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain; /* Make sure image is fully visible without crop */
    transition: transform 0.1s ease;
    display: block;
}

.image-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.image-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-dots .dot:hover, .image-dots .dot.active {
    background-color: #667eea;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-category {
    display: flex;
    gap: 10px;
}

.product-category .badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info h1 {
    font-size: 32px;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.product-price h2 {
    color: #667eea;
    font-size: 28px;
    margin: 0;
}

.product-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== PRODUCT SCOPE ===== */
.product-scope {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.product-scope h3 {
    margin-top: 0;
    color: #1f2937;
    font-size: 16px;
}

.product-scope ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-scope li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4b5563;
    font-size: 14px;
}

.product-scope li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
}

/* ===== PRODUCT ACTIONS ===== */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-selector label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background-color: #667eea;
    color: white;
}

.quantity-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    flex: 1;
    padding: 12px 24px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background-color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-cart i {
    font-size: 18px;
}

/* ===== PRODUCT ADDITIONAL ===== */
.product-additional {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.product-additional p {
    margin: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

/* ===== PRODUCT FULL DETAIL ===== */
.product-full-detail {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.product-full-detail h3 {
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.product-full-detail p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 30px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spec-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.spec-table td {
    padding: 12px 0;
    color: #333;
    font-size: 14px;
}

.spec-table td:first-child {
    font-weight: 600;
    color: #667eea;
    width: 30%;
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
    margin-bottom: 40px;
}

.related-products h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h4 {
    padding: 15px;
    margin: 0;
    color: #1f2937;
    font-size: 16px;
}

.product-card .price {
    padding: 0 15px;
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

.product-card .btn-detail {
    display: block;
    text-align: center;
    padding: 10px 15px;
    margin: 15px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.product-card .btn-detail:hover {
    background-color: #764ba2;
}

/* ===== CART ICON (FIXED BOTTOM RIGHT) ===== */
.cart-icon-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 500;
}

.cart-icon {
    width: 60px;
    height: 60px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    background-color: #667eea;
    transform: scale(1.1);
}

.cart-icon i {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4757;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* ===== CART DROPDOWN ===== */
.cart-dropdown {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    max-height: 500px;
    animation: slideUp 0.3s ease;
}

.cart-dropdown.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.cart-header i {
    font-size: 18px;
    color: #667eea;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 20px;
    margin: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 13px;
}

.cart-item-info p {
    margin: 0;
    color: #999;
    font-size: 12px;
}

.cart-item-price {
    text-align: right;
}

.cart-item-price p {
    margin: 0 0 5px 0;
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
}

.btn-remove {
    padding: 4px 8px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background-color: #ff3838;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.cart-total span {
    color: #667eea;
    font-weight: 600;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background-color: #764ba2;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image img {
        max-height: 400px;
    }

    .product-info h1 {
        font-size: 26px;
    }

    .product-price h2 {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-control {
        width: 100%;
        justify-content: center;
    }

    .btn-add-cart {
        width: 100%;
        padding: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-dropdown {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: 0;
    }
}
/* ===== CART ICON (FIXED BOTTOM RIGHT) ===== */
.cart-icon-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;  /* TINGGI, supaya selalu di atas */
}

/* ===== CART DROPDOWN ===== */
.cart-dropdown {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: none;  /* DEFAULT HIDDEN */
    flex-direction: column;
    max-height: 500px;
    animation: slideUp 0.3s ease;
    z-index: 10000;  /* LEBIH TINGGI LAGI */
}

.cart-dropdown.active {
    display: flex;  /* TAMPIL KETIKA ACTIVE */
}
@media (max-width: 480px) {
    .product-info h1 {
        font-size: 20px;
    }

    .product-price h2 {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CUSTOM TOAST NOTIFICATION ===== */
.custom-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background-color: #ffffff;
    color: #1a304d;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10001; /* di atas navbar dll */
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #2d5edb;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast i {
    color: #2d5edb;
    font-size: 24px;
}

@media (max-width: 480px) {
    .custom-toast {
        top: 90px;
        right: 15px;
        left: 15px;
        font-size: 13px;
        padding: 15px 20px;
    }
}