/* Product Detail Styles */
.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #2f2f42;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* Product Detail Wrapper */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease-out;
}

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

/* Gallery */
.main-image {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(47, 47, 66, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.stock-badge svg {
    vertical-align: middle;
    margin-right: 4px;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.thumbnail {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    height: 110px;
    border: 3px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.thumbnail.active {
    border-color: #2f2f42 !important;
    box-shadow: 0 4px 12px rgba(47, 47, 66, 0.2);
}

.thumbnail.active::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 24px;
    height: 24px;
    background: #2f2f42;
    border-radius: 50%;
    border: 2px solid white;
}

.thumbnail:hover {
    border-color: #2f2f42 !important;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(47, 47, 66, 0.25) !important;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-count {
    text-align: center;
    margin-top: 12px;
    color: #999;
    font-size: 13px;
}

/* Product Info */
.product-category {
    display: inline-block;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.rating-sku-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.sku-code {
    color: #999;
    font-size: 13px;
}

.sku-code strong {
    color: #666;
}

.product-price {
    font-size: 38px;
    font-weight: 800;
    color: #2f2f42;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-unit {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.info-box {
    padding: 15px;
    border-radius: 10px;
}

.info-box-stock {
    background: linear-gradient(135deg, #f0f0f8, #e8e8f0);
    border-left: 4px solid #2f2f42;
}

.info-box-weight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
}

.info-box-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.info-box-value {
    font-size: 16px;
    font-weight: 700;
}

.info-box-value.available {
    color: #2f2f42;
}

.info-box-value.unavailable {
    color: #ff4444;
}

.info-box-value.weight {
    color: #d97706;
}

/* Description Box */
.description-box {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.description-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.description-text {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn--detail {
    flex: 1;
    padding: 16px 30px;
    background: #fff;
    color: #ff4444;
    border: 2px solid #ff4444;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.15);
}

.btn--detail:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff4444, #ff6b6b) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.35) !important;
}

.btn--detail.-active {
    background: linear-gradient(135deg, #ff4444, #ff6b6b) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.35);
}

.btn--detail.-active svg path {
    fill: currentColor;
}

/* Disable button saat proses */
.btn--detail:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.btn-cart-detail {
    flex: 2;
    padding: 16px 30px;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    color: white;
    border: 2px solid #2f2f42;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(47, 47, 66, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-cart-detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-cart-detail:hover::before {
    left: 100%;
}

.btn-cart-detail:hover {
    background: linear-gradient(135deg, #1a1a2e, #2f2f42) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(47, 47, 66, 0.4) !important;
}

.btn-cart-detail:active {
    transform: translateY(-1px);
}

/* Additional Info */
.additional-info {
    background: linear-gradient(135deg, #fef9f3, #fef3e2);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.additional-info-content {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.additional-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

/* Layout with Sidebar */
.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 60px;
}

/* Section Card */
.section-card {
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
}

.section-content {
    color: #555;
    line-height: 2;
    font-size: 15px;
    white-space: pre-line;
}

/* Specifications */
.spec-table {
    width: 100%;
    font-size: 14px;
}

.spec-row {
    border-bottom: 1px solid #f0f0f0;
}

.spec-label {
    padding: 14px 0;
    color: #666;
    width: 40%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-value {
    padding: 14px 0;
    font-weight: 600;
    color: #1a1a1a;
}

/* Feature Boxes */
.feature-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid;
}

.feature-box-blue {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #bae6fd;
}

.feature-box-green {
    background: linear-gradient(135deg, #f0f0f8, #e8e8f0);
    border-color: #d0d0e8;
}

.feature-box-yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fcd34d;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-icon-blue {
    background: #0ea5e9;
}

.feature-icon-green {
    background: #22c55e;
}

.feature-icon-yellow {
    background: #f59e0b;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-title-blue {
    color: #0369a1;
}

.feature-title-green {
    color: #15803d;
}

.feature-title-yellow {
    color: #b45309;
}

.feature-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Related Products Sidebar */
.related-products-sidebar {
    animation: slideInRight 0.6s ease-out;
}

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

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.related-product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-product-card {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.related-product-card:hover {
    background: #fafafa;
    padding: 8px;
    margin: -8px;
    border-radius: 8px;
}

.related-product-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-product-category {
    color: #2f2f42;
    font-size: 11px;
    margin-bottom: 4px;
    font-weight: 600;
}

.related-product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: #333;
}

.related-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #2f2f42;
    margin-bottom: 8px;
}

.related-product-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #2f2f42;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s;
}

.related-product-btn:hover {
    background: #1a1a2e !important;
    transform: scale(1.02);
}

/* Reviews Section */
.reviews-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.reviews-header-left {
    flex: 1;
}

.reviews-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

.reviews-rating {
    text-align: right;
}

.reviews-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
    justify-content: flex-end;
}

.reviews-score {
    font-size: 28px;
    font-weight: 700;
    color: #ffa500;
}

.reviews-score-max {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-card {
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border-left: 4px solid #2f2f42;
}

.review-header {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.review-content {
    flex: 1;
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-text {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
}

.empty-reviews {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.empty-desc {
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .main-image {
        height: 450px !important;
    }

    .content-sidebar-layout {
        grid-template-columns: 1fr !important;
    }

    .related-products-sidebar {
        margin-top: 40px;
    }

    .sidebar-card {
        position: static !important;
    }

    .related-product-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .related-product-card {
        flex-direction: column !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 12px !important;
    }

    .related-product-image {
        width: 100% !important;
        height: 150px !important;
    }
}

@media (max-width: 768px) {
    .main-image {
        height: 350px !important;
    }

    .product-title {
        font-size: 26px !important;
    }

    .product-price {
        font-size: 30px !important;
    }

    .action-buttons {
        flex-direction: column !important;
    }

    .action-buttons button {
        width: 100% !important;
        flex: 1 !important;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .section-card {
        padding: 25px !important;
    }

    .feature-boxes {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .related-product-list {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .product-detail-wrapper {
        gap: 25px !important;
    }

    .main-image {
        height: 280px !important;
    }

    .product-title {
        font-size: 22px !important;
    }

    .product-price {
        font-size: 26px !important;
    }

    .spec-label,
    .spec-value {
        font-size: 13px !important;
        padding: 10px 0 !important;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .section-title {
        font-size: 20px !important;
    }

    .rating-sku-section {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}
