/* ===== Product Gallery ===== */
.product-gallery {
    position: sticky;
    top: 100px;
}

#productCarousel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: #fff;
}

#productCarousel .carousel-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    margin: 0 12px;
}

#productCarousel:hover .carousel-control-prev,
#productCarousel:hover .carousel-control-next {
    opacity: 1;
}

#productCarousel .carousel-control-prev {
    left: 10px;
}

#productCarousel .carousel-control-next {
    right: 10px;
}

#productCarousel .carousel-control-prev:hover,
#productCarousel .carousel-control-next:hover {
    background: var(--primary);
}

#productCarousel .carousel-control-prev i,
#productCarousel .carousel-control-next i {
    color: var(--gray-700);
    font-size: 1rem;
}

#productCarousel .carousel-control-prev:hover i,
#productCarousel .carousel-control-next:hover i {
    color: #fff;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumb {
    flex: 1;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.2s ease;
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 0.9;
    border-color: var(--primary);
}

.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(102, 46, 145, 0.2);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* ===== Product Info ===== */
.product-info {
    padding-left: 10px;
}

.product-category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(102, 46, 145, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 14px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}

.product-meta span {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}

.product-meta span .bi {
    color: #22c55e;
    margin-right: 4px;
}

.product-desc-brief {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.product-desc-brief p {
    margin: 0;
}

.product-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
}

.highlight-item .bi {
    font-size: 1.3rem;
    color: var(--primary);
}

.highlight-item strong {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.highlight-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
}

.product-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-inquiry {
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    color: #fff;
}

.btn-inquiry .bi {
    margin-right: 6px;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1fb855;
    color: #fff;
    transform: translateY(-2px);
}

.btn-whatsapp .bi {
    margin-right: 5px;
}

.btn-download {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-download .bi {
    margin-right: 5px;
}

.product-trust {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}

.trust-item .bi {
    color: var(--primary);
    font-size: 1rem;
}

/* ===== Content Tabs ===== */
.product-content-section {
    padding-bottom: 60px;
}

.content-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-tabs::-webkit-scrollbar {
    display: none;
}

.content-tab {
    flex-shrink: 0;
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.content-tab:hover {
    color: var(--primary);
}

.content-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
    animation: fadeInPanel 0.3s ease;
}

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

.content-block h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.content-block h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 12px;
}

.content-block p {
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 0.92rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li .bi {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Working Flow */
.working-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 10px;
}

.flow-step {
    text-align: center;
}

.flow-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    margin: 0 auto 6px;
}

.flow-step span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}

.flow-arrow {
    color: var(--gray-300);
    font-size: 1.1rem;
}

/* Quick Details Sidebar */
.content-sidebar-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.content-sidebar-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.content-sidebar-card h5 .bi {
    color: var(--primary);
    margin-right: 6px;
}

.quick-details {
    width: 100%;
    font-size: 0.85rem;
}

.quick-details td {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.quick-details td:first-child {
    color: var(--gray-500);
    font-weight: 500;
    width: 40%;
}

.quick-details td:last-child {
    color: var(--gray-800);
    font-weight: 600;
}

.quick-details tr:last-child td {
    border-bottom: none;
}

/* Application Cards */
.app-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.app-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.app-card h5 {
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 16px 6px;
    margin: 0;
}

.app-card p {
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

/* Spec Table */
.spec-table-wrapper {
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.spec-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
    font-weight: 600;
    text-align: left;
}

.spec-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.spec-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.spec-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.spec-table tbody td:first-child {
    font-weight: 600;
    color: var(--gray-700);
    width: 40%;
    background: var(--gray-50);
}

.spec-table tbody td:last-child {
    color: var(--gray-600);
}

.spec-table tbody tr:hover td {
    background: rgba(102, 46, 145, 0.03);
}

.spec-table tbody tr:hover td:first-child {
    background: rgba(102, 46, 145, 0.06);
}

/* Q&A */
.qa-list {
    margin-top: 8px;
}

.qa-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.qa-item:hover {
    border-color: var(--gray-300);
}

.qa-item.open {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(102, 46, 145, 0.08);
}

.qa-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.qa-question:hover {
    color: var(--primary);
}

.qa-item.open .qa-question {
    color: var(--primary);
    background: rgba(102, 46, 145, 0.03);
}

.qa-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-left: 12px;
}

.qa-item.open .qa-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.qa-item.open .qa-answer {
    max-height: 300px;
}

.qa-answer p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Machine Photos */
.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(102, 46, 145, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay .bi {
    color: #fff;
    font-size: 1.8rem;
}

/* ===== Inquiry Modal ===== */
.inquiry-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.inquiry-modal-content .modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 24px 28px;
}

.inquiry-modal-content .modal-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
}

.modal-subtitle {
    font-size: 0.88rem;
    opacity: 0.85;
    margin: 4px 0 0;
}

.inquiry-modal-content .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.inquiry-modal-content .btn-close:hover {
    opacity: 1;
}

.inquiry-modal-content .modal-body {
    padding: 24px 28px;
}

.inquiry-modal-content .modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 16px 28px;
}

.inquiry-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 20px;
}

.inquiry-product-info img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.inquiry-product-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--gray-800);
}

.inquiry-product-info span {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

.inquiry-modal-content .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.inquiry-modal-content .form-control,
.inquiry-modal-content .form-select {
    border-color: var(--gray-200);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.inquiry-modal-content .form-control:focus,
.inquiry-modal-content .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(102, 46, 145, 0.12);
}

.inquiry-modal-content .btn-inquiry {
    padding: 10px 28px;
}

/* ===== Photo Modal ===== */
.photo-modal-content {
    background: transparent;
    border: none;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    z-index: 10;
}

.photo-modal-close:hover {
    opacity: 1;
}

.photo-modal-content .modal-body img {
    border-radius: 8px;
    width: 100%;
}

/* ===== Related Products ===== */
.related-products-section {
    background: var(--gray-50);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s ease;
}

.section-link:hover {
    gap: 8px;
}

.section-link .bi {
    transition: transform 0.2s ease;
}

.section-link:hover .bi {
    transform: translateX(4px);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .product-gallery { position: static; margin-bottom: 30px; }
    .product-info { padding-left: 0; }
    .product-title { font-size: 1.4rem; }
    .product-highlights { grid-template-columns: 1fr 1fr; }
    .content-sidebar-card { position: static; }
}

@media (max-width: 767.98px) {
    .product-title { font-size: 1.25rem; }
    .product-highlights { grid-template-columns: 1fr; }
    .product-trust { flex-wrap: wrap; gap: 12px; }
    .content-tab { padding: 12px 16px; font-size: 0.84rem; }
    .working-flow { flex-direction: column; align-items: stretch; }
    .flow-arrow { transform: rotate(90deg); text-align: center; }
    .flow-step { display: flex; align-items: center; gap: 10px; text-align: left; }
    .flow-num { margin: 0; }
}
