/* ================================================================
   HITAK PRODUCT SUITE - COMPLETE CSS v2.0
   Matches GD1 design - high specificity to override Flatsome
   ================================================================ */

/* RESET & BASE - scoped to plugin sections only */
body .hps-hero,
body .hps-section,
body .hps-sticky-nav {
    box-sizing: border-box;
    line-height: 1.6;
    color: #1a1a2e;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body .hps-hero *,
body .hps-section *,
body .hps-sticky-nav * {
    box-sizing: border-box;
}

/* ================================================================
   CONTAINER
   ================================================================ */
body .hps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

body .hps-bg-alt {
    background: #f5f7fa;
}

body .hps-section {
    padding: 60px 0;
}

/* Section title */
body .hps-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0066cc;
    display: inline-block;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
body .hps-hero {
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #eaecef;
}

body .hps-hero-grid {
    display: grid !important;
    grid-template-columns: 480px 1fr !important;
    gap: 48px !important;
    align-items: start !important;
    padding: 32px 0;
}

/* Gallery */
body .hps-gallery {
    position: sticky;
    top: 90px;
    z-index: 10;
}

body .hps-gallery-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f8fa;
    margin-bottom: 12px;
    border: 1px solid #e8ecf1;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .hps-gallery-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

body .hps-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

body .hps-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid #e0e4ea;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #fff;
    padding: 0;
    transition: all 0.2s ease;
}

body .hps-thumb:hover,
body .hps-thumb.active,
body .hps-thumb.is-active {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

body .hps-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
body .hps-info {
    padding-top: 8px;
}

body .hps-info .woocommerce-breadcrumb,
body .hps-breadcrumb {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 16px;
}

body .hps-info .woocommerce-breadcrumb a,
body .hps-breadcrumb a {
    color: #95a5a6;
    text-decoration: none;
}

body .hps-info .woocommerce-breadcrumb a:hover,
body .hps-breadcrumb a:hover {
    color: #0066cc;
}

body .hps-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    line-height: 1.3 !important;
    margin: 0 0 8px !important;
}

body .hps-sku {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

body .hps-sku strong {
    color: #1a1a2e;
}

/* Key Specs Pills */
body .hps-key-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

body .hps-key-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0f4f8;
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

body .hps-key-spec strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* Price */
body .hps-price {
    font-size: 26px;
    font-weight: 700;
    color: #d4380d;
    margin: 16px 0;
}

body .hps-price .woocommerce-Price-amount {
    font-size: 26px;
}

/* Model Selector / Size Buttons */
body .hps-sizes {
    margin: 16px 0;
}

body .hps-label-sm {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

body .hps-size-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body .hps-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 20px;
    border: 2px solid #e0e4ea;
    border-radius: 8px;
    background: #fff;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

body .hps-size-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
    background: #f0f7ff;
}

body .hps-size-btn.current {
    border-color: #0066cc;
    background: #0066cc;
    color: #fff;
    cursor: default;
}

/* Short Description */
body .hps-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin: 12px 0;
}

/* CTA Buttons */
body .hps-ctas {
    display: flex;
    gap: 12px;
    margin: 20px 0 16px;
    flex-wrap: wrap;
}

body .hps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

body .hps-btn-primary {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

body .hps-btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

body .hps-btn-outline {
    background: transparent;
    color: #0066cc;
    border-color: #0066cc;
}

body .hps-btn-outline:hover {
    background: #0066cc;
    color: #fff;
    transform: translateY(-1px);
}

/* Stock Badge */
body .hps-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

body .hps-stock-badge.in-stock {
    background: #e6f7e9;
    color: #1a8a3e;
}

body .hps-stock-badge.out-stock {
    background: #fde8e8;
    color: #c53030;
}

/* ================================================================
   STICKY NAVIGATION
   ================================================================ */
body .hps-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e0e4ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body .hps-nav-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

body .hps-nav-list::-webkit-scrollbar {
    display: none;
}

body .hps-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

body .hps-nav-item:hover,
body .hps-nav-item.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
body .hps-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body .hps-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #eaecef;
    transition: all 0.3s ease;
}

body .hps-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #0066cc;
}

body .hps-feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

body .hps-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}

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

/* ================================================================
   SPECIFICATIONS SECTION
   ================================================================ */
body .hps-specs-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body .hps-spec-group {
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

body .hps-spec-group[open] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body .hps-spec-summary {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    background: #f8f9fb;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    border-bottom: 1px solid transparent;
}

body .hps-spec-summary::-webkit-details-marker {
    display: none;
}

body .hps-spec-summary::after {
    content: '+';
    font-size: 20px;
    color: #999;
    transition: transform 0.2s;
}

body .hps-spec-group[open] .hps-spec-summary {
    background: #eef2f7;
    border-bottom: 1px solid #e0e4ea;
}

body .hps-spec-group[open] .hps-spec-summary::after {
    content: '−';
    color: #0066cc;
}

body .hps-spec-body {
    padding: 0;
}

body .hps-spec-table {
    width: 100%;
    border-collapse: collapse;
}

body .hps-spec-table tr {
    border-bottom: 1px solid #f0f2f5;
}

body .hps-spec-table tr:last-child {
    border-bottom: none;
}

body .hps-spec-table tr:nth-child(even) {
    background: #fafbfc;
}

body .hps-spec-label {
    padding: 12px 24px;
    font-size: 13px;
    color: #666;
    width: 40%;
    font-weight: 500;
}

body .hps-spec-value {
    padding: 12px 24px;
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
}

/* ================================================================
   DOCUMENTS SECTION
   ================================================================ */
body .hps-documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

body .hps-document-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e4ea;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.2s ease;
}

body .hps-document-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

body .hps-document-icon {
    font-size: 28px;
    flex-shrink: 0;
}

body .hps-document-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

body .hps-document-info p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ================================================================
   VIDEOS SECTION
   ================================================================ */
body .hps-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

body .hps-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e4ea;
    transition: all 0.2s ease;
}

body .hps-video-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body .hps-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

body .hps-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

body .hps-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0066cc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

body .hps-video-thumb:hover .hps-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

body .hps-video-title {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ================================================================
   WARRANTY SECTION
   ================================================================ */
body .hps-warranty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

body .hps-warranty-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e0e4ea;
}

body .hps-warranty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

body .hps-warranty-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

body .hps-warranty-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
body .hps-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body .hps-faq-item {
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

body .hps-faq-q {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

body .hps-faq-q::-webkit-details-marker {
    display: none;
}

body .hps-faq-q::after {
    content: '+';
    font-size: 20px;
    color: #999;
    transition: transform 0.2s;
}

body .hps-faq-item[open] .hps-faq-q {
    background: #f8f9fb;
    border-bottom: 1px solid #e0e4ea;
}

body .hps-faq-item[open] .hps-faq-q::after {
    content: '−';
    color: #0066cc;
}

body .hps-faq-a {
    padding: 16px 24px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
}

/* ================================================================
   COMPARISON TABLE
   ================================================================ */
body .hps-compare-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e0e4ea;
}

body .hps-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

body .hps-compare-table th {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: #f8f9fb;
    border-bottom: 2px solid #e0e4ea;
    text-align: left;
    white-space: nowrap;
}

body .hps-compare-table th a {
    color: #0066cc;
    text-decoration: none;
}

body .hps-compare-table th a:hover {
    text-decoration: underline;
}

body .hps-compare-current {
    background: #f0f7ff !important;
}

body .hps-compare-table td {
    padding: 12px 20px;
    font-size: 13px;
    color: #4a5568;
    border-bottom: 1px solid #f0f2f5;
}

body .hps-compare-table tbody tr:hover {
    background: #fafbfc;
}

body .hps-compare-table td.hps-compare-current {
    background: #f0f7ff !important;
    font-weight: 500;
    color: #1a1a2e;
}

/* ================================================================
   ACCESORIES SECTION
   ================================================================ */
body .hps-accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

body .hps-accessory-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e4ea;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.2s ease;
}

body .hps-accessory-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    body .hps-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    body .hps-gallery {
        position: static;
    }

    body .hps-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body .hps-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 20px 0;
    }

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

    body .hps-price {
        font-size: 22px;
    }

    body .hps-size-btns {
        flex-wrap: wrap;
    }

    body .hps-ctas {
        flex-direction: column;
    }

    body .hps-btn {
        width: 100%;
    }

    body .hps-features-grid {
        grid-template-columns: 1fr;
    }

    body .hps-section {
        padding: 40px 0;
    }

    body .hps-section-title {
        font-size: 22px;
    }

    body .hps-nav-item {
        padding: 12px 16px;
        font-size: 13px;
    }

    body .hps-spec-label,
    body .hps-spec-value {
        padding: 10px 16px;
        font-size: 12px;
    }

    body .hps-videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body .hps-container {
        padding: 0 16px;
    }

    body .hps-gallery-main {
        border-radius: 8px;
    }

    body .hps-thumb {
        width: 56px;
        height: 56px;
    }
}
