/* ============================================================
   DAC Product Detail Page — CSS
   ============================================================ */

/* ── Gallery ──────────────────────────────────────────────── */

.product-gallery-wrapper {
    position: sticky;
    top: 100px;
}

.product-main-slider {
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fb;
    border: 1px solid #e8eaed;
}

.product-slide-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    padding: 30px;
    background: #f8f9fb;
}

.product-slide-img img {
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-slide-img:hover img {
    transform: scale(1.04);
}

/* Swiper custom buttons */
.product-btn-next,
.product-btn-prev {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
    color: #333 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.product-btn-next::after,
.product-btn-prev::after {
    display: none !important;
}

/* ── Thumbnails ───────────────────────────────────────────── */

.product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e8eaed;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: #3567CD;
    box-shadow: 0 0 0 3px rgba(53, 103, 205, 0.18);
}

/* ── Product Info ─────────────────────────────────────────── */

.product-info-wrapper {
    padding: 10px 0;
}

.product-badge {
    display: inline-block;
}

.badge-label {
    background: linear-gradient(135deg, #3567CD, #5a8fe8);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
}

.product-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 8px;
}

.product-tagline {
    font-size: 1rem;
    color: #3567CD;
    margin-bottom: 0;
    font-weight: 500;
}

.product-description-content {
    font-size: 1.15rem;
    color: #2d3748;
    line-height: 1.9;
    border-left: 3px solid #3567CD;
    padding-left: 16px;
}

/* ── Action Buttons ───────────────────────────────────────── */

.btn-product-action {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-compare {
    background: linear-gradient(135deg, #3567CD, #1e4fad);
    color: #fff;
    box-shadow: 0 4px 15px rgba(53,103,205,0.3);
    width: auto;
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53,103,205,0.4);
    color: #fff;
}

.btn-datasheet {
    background: linear-gradient(135deg, #3567CD, #1e4fad);
    color: #fff;
    box-shadow: 0 4px 15px rgba(53,103,205,0.3);
}

.btn-datasheet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53,103,205,0.4);
    color: #fff;
}

/* ── Share Buttons ────────────────────────────────────────── */

.share-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-fb {
    background: #1877f2;
    color: #fff;
}

.share-wa {
    background: #25d366;
    color: #fff;
}

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

/* ── Spec Section Header ──────────────────────────────────── */

.spec-section-header {
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 16px;
}

.spec-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.spec-section-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}

/* ── Variant Card ─────────────────────────────────────────── */

.variant-card {
    border-radius: 16px;
    border: 1px solid #e8eaed;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.variant-card-header {
    background: linear-gradient(135deg, #3567CD, #1e4fad);
    color: #fff;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.variant-card-body {
    padding: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.variant-card-body::-webkit-scrollbar {
    width: 4px;
}
.variant-card-body::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}
.variant-card-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.variant-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.variant-nav-btn:hover {
    background: #f8f9fb;
    border-color: #e8eaed;
    color: #1a1a2e;
}

.variant-nav-btn.active {
    background: linear-gradient(135deg, #3567CD, #1e4fad) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(53,103,205,0.3);
}

.variant-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.variant-nav-btn:not(.active) .variant-icon {
    background: #f1f3f5;
    color: #9ca3af;
}

.variant-label {
    line-height: 1.3;
}

/* ── Spec Card ────────────────────────────────────────────── */

.spec-card {
    border-radius: 16px;
    border: 1px solid #e8eaed;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    min-height: 300px;
    background: #fff;
}

.spec-content {
    padding: 28px;
}

.spec-type-header {
    display: inline-flex;
    align-items: center;
    background: rgba(53,103,205,0.07);
    border: 1px solid rgba(53,103,205,0.2);
    color: #3567CD;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.spec-body {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.9;
}

/* Tabel specs */
.spec-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.spec-body table tr {
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
}

.spec-body table tr:hover {
    background: #f8f9fb;
}

.spec-body table td,
.spec-body table th {
    padding: 10px 14px;
    font-size: 0.875rem;
}

.spec-body table td:first-child,
.spec-body table th:first-child {
    font-weight: 600;
    color: #1a1a2e;
    width: 35%;
}

/* ── Driver Download Link ─────────────────────────────────── */

.driver-link-bar {
    display: flex;
}

.btn-driver-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3567CD;
    background: rgba(53, 103, 205, 0.06);
    border: 1.5px dashed rgba(53, 103, 205, 0.4);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-driver-link:hover {
    background: #3567CD;
    color: #fff;
    border-color: #3567CD;
    border-style: solid;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(53, 103, 205, 0.25);
}

.btn-driver-link strong {
    font-weight: 700;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 991px) {
    .product-gallery-wrapper {
        position: static;
    }

    .product-slide-img {
        height: 300px;
    }

    .product-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .product-slide-img {
        height: 240px;
        padding: 20px;
    }

    .spec-content {
        padding: 18px;
    }

    .btn-datasheet {
        width: 100%;
        justify-content: center;
    }
}
