/**
 * IT Solution Custom Theme - Single Product Page Stylesheet
 */

.it-single-product-page {
    background-color: #f8fafc;
    color: #1e293b;
    padding: 24px 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.it-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. BREADCRUMBS */
.it-product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.it-product-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.it-product-breadcrumbs a:hover { color: #1d4ed8; }
.it-bc-sep { color: #cbd5e1; }
.it-bc-current { color: #0f172a; font-weight: 600; }

/* 2. GALLERY & COVER MAIN IMAGE */
.it-product-main-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.it-gallery-wrapper {
    display: flex;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.it-thumb-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    max-height: 500px;
    overflow-y: auto;
    flex-shrink: 0;
}

.it-thumb-btn {
    width: 80px;
    height: 80px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.it-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.it-thumb-btn:hover, .it-thumb-btn.is-active {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

/* MAIN IMAGE BOX - FULL WIDTH & COVER */
.it-main-image-box {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 !important; /* Zero padding for full width image */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.it-main-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Image fills completely */
    object-position: center !important;
    display: block !important;
    transition: opacity 0.25s ease;
}

.it-badge-save {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #dc2626;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    z-index: 5;
}

/* 3. PRODUCT SUMMARY BOX */
.it-product-summary-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.it-summary-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
}

.it-product-cat a {
    color: #1d4ed8;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.it-product-sku { color: #64748b; }

.it-single-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.it-single-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
}

.it-review-count-text { color: #64748b; }

.it-single-price-box {
    font-size: 26px;
    font-weight: 800;
    color: #1d4ed8;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.it-single-price-box del { font-size: 16px; color: #94a3b8; font-weight: 500; }
.it-single-price-box ins { text-decoration: none; }

.it-stock-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.it-stock-banner.in-stock { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.it-stock-banner.out-of-stock { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.it-short-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

/* Native Add to cart */
.it-single-cart-box form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.it-single-cart-box form.cart .quantity input.qty {
    width: 60px;
    height: 44px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.it-single-cart-box form.cart .single_add_to_cart_button {
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    height: 44px;
}

.it-single-cart-box form.cart .single_add_to_cart_button:hover { background: #1d4ed8; }

/* Badges */
.it-hardware-spec-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.it-spec-badge-item { display: flex; align-items: center; gap: 10px; }
.it-spec-badge-item i { font-size: 20px; color: #0284c7; }
.it-spec-badge-item strong { font-size: 12px; color: #0f172a; display: block; }
.it-spec-badge-item small { font-size: 11px; color: #64748b; display: block; }

/* Delivery info */
.it-delivery-info-card {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
}

.it-delivery-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.it-delivery-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.it-delivery-list li { display: flex; align-items: center; gap: 8px; }
.it-delivery-list a { color: #1d4ed8; text-decoration: none; font-weight: 700; }

/* 4. ACCORDIONS SECTION */
.it-product-tabs-section { margin-bottom: 60px; }
.it-accordion { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #ffffff; }
.it-acc-item { border-bottom: 1px solid #e2e8f0; }
.it-acc-item:last-child { border-bottom: none; }

.it-acc-header {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.it-acc-header:hover { background: #f8fafc; }
.it-acc-header span { display: inline-flex; align-items: center; gap: 10px; }
.it-acc-header span i { color: #1d4ed8; }
.it-acc-arrow { font-size: 12px; color: #94a3b8; transition: transform 0.25s; }
.it-acc-item.is-open .it-acc-arrow { transform: rotate(180deg); }
.it-acc-body { display: none; padding: 28px; border-top: 1px solid #f1f5f9; }
.it-acc-item.is-open .it-acc-body { display: block; }

/* 5. REVIEWS CONTAINER & FORM STYLING */
.it-reviews-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Summary Score */
.it-reviews-summary-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.it-summary-score h3 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1;
}

.it-summary-score .it-stars { margin-bottom: 4px; }
.it-summary-score span { font-size: 12px; color: #64748b; }

/* Review Items List */
.it-reviews-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.it-review-single-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.it-rev-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.it-rev-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.it-author-avatar {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.it-rev-author-name {
    display: block;
    font-size: 14px;
    color: #0f172a;
}

.it-verified-buyer {
    font-size: 11px;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.it-rev-date { font-size: 12px; color: #94a3b8; }
.it-rev-stars { margin-bottom: 10px; }
.it-rev-text { font-size: 13px; color: #475569; line-height: 1.6; }
.it-rev-text p { margin: 0; }

.it-no-reviews-box {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}

.it-no-reviews-box i { font-size: 36px; color: #cbd5e1; margin-bottom: 10px; }
.it-no-reviews-box h4 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 6px 0; }
.it-no-reviews-box p { font-size: 13px; color: #64748b; margin: 0; }

/* Modern Review Submission Form Card */
.it-form-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
}

.it-form-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.it-form-desc { font-size: 13px; color: #64748b; margin: 0 0 20px 0; }

.it-form-field { margin-bottom: 18px; }
.it-field-label { display: block; font-size: 12px; font-weight: 700; color: #0f172a; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.text-danger { color: #dc2626; }

/* Interactive Star Picker */
.it-star-picker {
    display: inline-flex;
    gap: 6px;
    cursor: pointer;
    font-size: 20px;
    color: #cbd5e1;
}

.it-star-picker .it-star {
    transition: color 0.15s ease, transform 0.15s ease;
}

.it-star-picker .it-star:hover,
.it-star-picker .it-star.is-active,
.it-star-picker .it-star.hover-active {
    color: #f59e0b;
    transform: scale(1.15);
}

.it-form-field input, .it-form-field textarea {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.it-form-field input:focus, .it-form-field textarea:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.it-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.it-btn-submit-review {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.it-btn-submit-review:hover { background: #1d4ed8; }

/* 6. RELATED PRODUCTS GRID */
.it-related-hardware-section { padding-top: 30px; }
.it-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 7. RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .it-product-main-layout { grid-template-columns: 1fr; }
    .it-gallery-wrapper { position: static; }
    .it-reviews-container { grid-template-columns: 1fr; }
    .it-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .it-gallery-wrapper { flex-direction: column-reverse; }
    .it-thumb-stack { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; }
    .it-main-image-box { height: 350px; }
    .it-form-row-2 { grid-template-columns: 1fr; }
}


/* Accordion Body display rules */
.it-acc-body {
    display: none !important;
    padding: 24px;
    border-top: 1px solid #f1f5f9;
}

/* When is-open class is active, display the content */
.it-acc-item.is-open .it-acc-body {
    display: block !important;
}

/* Arrow rotation */
.it-acc-arrow {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.it-acc-item.is-open .it-acc-arrow {
    transform: rotate(180deg);
}