/* ============================================================
   PRODUCT.CSS — SelaniX Single Product Page
   ============================================================ */

/* ---- BREADCRUMB ---- */
.sp-breadcrumb {
    padding: 20px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}
.sp-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}
.sp-breadcrumb-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.sp-breadcrumb-nav a:hover {
    color: #00EFA0;
}
.sp-bc-sep {
    font-size: 12px;
    color: #ccc;
}
.sp-bc-current {
    color: #00EFA0;
    font-weight: 600;
}

/* ---- MAIN SECTION LAYOUT ---- */
.sp-main-section {
    padding: 60px 0;
    background: #ffffff;
}
.sp-layout {
    display: grid;
    grid-template-columns: 4fr 3.2fr 3.2fr;
    gap: 35px;
}

/* ---- GALLERY (LEFT) ---- */
.sp-gallery {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.sp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 85px;
    flex-shrink: 0;
}
.sp-thumb {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.sp-thumb.active {
    border-color: #00EFA0;
}
.sp-main-img-wrap {
    flex-grow: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
}
.sp-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.sp-zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: #333;
    transition: all 0.3s ease;
}
.sp-zoom-btn:hover {
    background: #00EFA0;
    color: #fff;
    border-color: #00EFA0;
}

/* ---- PRODUCT INFO (CENTER) ---- */
.sp-badge {
    display: inline-block;
    background: #00EFA0;
    color: #0a192f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sp-title {
    font-size: 32px;
    font-weight: 800;
    color: #0a192f;
    margin-bottom: 8px;
    line-height: 1.2;
}
.sp-category {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}
.sp-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.sp-stars {
    color: #ffb800;
    font-size: 14px;
}
.sp-review-count {
    font-size: 14px;
    color: #555;
}
.sp-short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

/* Attributes replacing Price */
.sp-attributes {
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #00EFA0;
}
.sp-attr-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px;
}
.sp-attr-row:last-child { margin-bottom: 0; }
.sp-attr-name {
    width: 140px;
    color: #666;
    font-weight: 500;
}
.sp-attr-val {
    color: #0a192f;
    font-weight: 600;
}

/* Variations */
.sp-variations {
    margin-bottom: 30px;
}
.sp-var-group {
    margin-bottom: 15px;
}
.sp-var-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.sp-var-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sp-var-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}
.sp-var-btn:hover {
    border-color: #00EFA0;
    color: #00EFA0;
}
.sp-var-btn.active {
    border-color: #00EFA0;
    background: #00EFA0;
    color: #0a192f;
    font-weight: 600;
}

/* Actions */
.sp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 15px;
}
.sp-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sp-qty-wrap label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.sp-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
}
.qty-btn {
    width: 40px;
    height: 100%;
    background: #f8f9fa;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}
.qty-btn:hover { background: #eaeaea; }
.qty-input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.sp-add-to-cart {
    flex-grow: 1;
    height: 48px;
    background: #00EFA0;
    color: #0a192f;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sp-add-to-cart:hover {
    background: #00d68f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,239,160,0.3);
}

.sp-req-quote {
    width: 100%;
    height: 48px;
    background: transparent;
    color: #0a192f;
    border: 2px solid #0a192f;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}
.sp-req-quote:hover {
    background: #0a192f;
    color: #00EFA0;
}

/* Trust Strip */
.sp-trust-strip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}
.sp-ts-item {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.sp-ts-item i {
    color: #00EFA0;
    font-size: 18px;
}

/* ---- SIDEBAR (RIGHT) ---- */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.st-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}
.st-icon {
    width: 45px;
    height: 45px;
    background: rgba(0,239,160,0.15);
    color: #00d68f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.st-content h4 {
    font-size: 15px;
    color: #0a192f;
    margin-bottom: 4px;
    font-weight: 700;
}
.st-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.sp-promo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}
.sp-promo-bg {
    position: absolute;
    inset: 0;
}
.sp-promo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}
.sp-promo-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.sp-promo-content h4 {
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 20px;
}
.sp-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00EFA0;
    color: #0a192f;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    align-self: flex-start;
    transition: all 0.3s;
}
.sp-promo-btn:hover {
    background: #fff;
}


/* ---- TABS SECTION ---- */
.sp-tabs-section {
    padding: 0 0 60px;
    background: #ffffff;
}
.sp-tabs-nav {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.sp-tabs-nav::-webkit-scrollbar { display: none; }
.sp-tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.sp-tab-btn:hover { color: #0a192f; }
.sp-tab-btn.active {
    color: #0a192f;
}
.sp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #00EFA0;
    border-radius: 3px 3px 0 0;
}
.sp-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}
.sp-tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab Content Typography */
.sp-tab-pane h3 {
    font-size: 22px;
    color: #0a192f;
    margin-bottom: 15px;
}
.sp-tab-pane p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

/* Description Grid */
.sp-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.sp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sp-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}
.sp-feature-list i { color: #00EFA0; }

.sp-benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.sp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sp-ben-icon {
    width: 40px;
    height: 40px;
    background: #f0fdf6;
    color: #00d68f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sp-benefit-item span {
    font-size: 14px;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
}

/* Specifications Table */
.sp-specs-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 800px;
}
.sp-specs-table th, .sp-specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
    font-size: 15px;
}
.sp-specs-table th {
    background: #f8f9fa;
    width: 30%;
    color: #0a192f;
    font-weight: 600;
}
.sp-specs-table td {
    color: #555;
}

/* Applications Grid */
.sp-apps-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.sp-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 50%;
    text-align: center;
    color: #0a192f;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #eaeaea;
}
.sp-app-item:hover {
    background: #00EFA0;
    color: #0a192f;
    border-color: #00EFA0;
}
.sp-app-item i {
    font-size: 30px;
}

/* Shipping List */
.sp-shipping-list {
    list-style: none;
    padding: 0;
}
.sp-shipping-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 15px;
    color: #555;
}
.sp-shipping-list li:last-child { border: none; }
.sp-shipping-list strong { color: #0a192f; margin-right: 10px; }

/* Reviews */
.sp-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}
.sp-rh-title { margin-bottom: 5px; }
.sp-rh-rating {
    color: #ffb800;
    font-size: 14px;
}
.sp-rh-rating span { color: #666; margin-left: 8px; }
.sp-write-review-btn {
    background: #00EFA0;
    color: #0a192f;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.sp-write-review-btn:hover { background: #00d68f; transform: translateY(-2px); }

.sp-reviews-summary {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}
.sp-rs-score {
    text-align: center;
}
.sp-rs-big {
    font-size: 56px;
    font-weight: 800;
    color: #0a192f;
    line-height: 1;
}
.sp-rs-stars {
    color: #ffb800;
    font-size: 18px;
    margin: 10px 0;
}
.sp-rs-count { font-size: 14px; color: #666; }

.sp-rs-bars {
    flex-grow: 1;
    max-width: 500px;
}
.sp-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}
.sp-bar-star {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    width: 35px;
}
.sp-bar-star i { color: #ffb800; font-size: 12px; }
.sp-bar-track {
    flex-grow: 1;
    height: 8px;
    background: #eaeaea;
    border-radius: 4px;
    overflow: hidden;
}
.sp-bar-fill {
    height: 100%;
    background: #00EFA0;
    border-radius: 4px;
}
.sp-bar-pct {
    width: 35px;
    font-size: 13px;
    color: #666;
    text-align: right;
}

.sp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sp-review-card {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 8px;
}
.sp-rc-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.sp-rc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0a192f;
    color: #00EFA0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.sp-rc-info h4 {
    font-size: 16px;
    color: #0a192f;
    margin-bottom: 2px;
}
.sp-rc-type {
    font-size: 12px;
    color: #00EFA0;
    font-weight: 600;
}
.sp-rc-date {
    margin-left: auto;
    font-size: 13px;
    color: #999;
}
.sp-rc-stars {
    color: #ffb800;
    font-size: 14px;
    margin-bottom: 12px;
}
.sp-rc-text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* ---- RELATED PRODUCTS ---- */
.sp-related-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}
.sp-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.sp-related-header h2 {
    font-size: 32px;
    color: #0a192f;
}
.sp-related-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0a192f;
    text-decoration: none;
    transition: color 0.3s;
}
.sp-related-view-all:hover { color: #00EFA0; }

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Reusing PC card styles for standalone */
.pc {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pc:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.pc-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.pc:hover .pc-img-wrap img {
    transform: scale(1.08);
}
.pc-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #00EFA0;
    color: #0a192f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.pc-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pc-cat {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.pc-name {
    font-size: 18px;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 12px;
    line-height: 1.3;
}
.pc-name a { color: inherit; text-decoration: none; transition: color 0.2s; }
.pc-name a:hover { color: #00EFA0; }
.pc-stars {
    color: #ffb800;
    font-size: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pc-stars span {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}
.pc-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #f4f6f8;
    color: #0a192f;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}
.pc:hover .pc-cta {
    background: #0a192f;
    color: #00EFA0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .sp-layout {
        grid-template-columns: 1fr 1fr;
    }
    .sp-sidebar {
        grid-column: 1 / -1;
        flex-direction: column;
    }
    .sp-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .sp-tab-grid { grid-template-columns: 1fr; gap: 30px; }
    .sp-reviews-summary { flex-direction: column; gap: 20px; align-items: flex-start; }
    .sp-rs-bars { width: 100%; }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sp-layout { grid-template-columns: 1fr; gap: 35px; }
    .sp-gallery { flex-direction: column-reverse; gap: 15px; width: 100%; }
    .sp-thumbnails { flex-direction: row; width: 100%; overflow-x: auto; gap: 10px; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
    .sp-thumb { width: 70px; height: 70px; flex-shrink: 0; }
    .sp-title { font-size: 26px; }
    .sp-actions { flex-direction: column; align-items: stretch; gap: 15px; }
    .sp-qty-wrap { width: 100%; }
    .sp-qty-controls { width: 100%; max-width: 160px; }
    .sp-add-to-cart { width: 100%; height: 50px; }
    .sp-req-quote { width: 100%; height: 50px; }
    .sp-trust-strip { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
    .sp-tabs-nav { gap: 20px; padding-bottom: 5px; }
    .sp-tab-btn { font-size: 15px; padding: 10px 0; }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .sp-related-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .sp-title { font-size: 22px; }
    .sp-related-grid { grid-template-columns: 1fr; gap: 20px; }
    .sp-specs-table {
        display: block;
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .sp-specs-table th,
    .sp-specs-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .sp-specs-table th {
        width: 40%;
    }
    .sp-benefits-list { grid-template-columns: 1fr; gap: 15px; }
    .sp-reviews-summary { padding: 20px; }
    .sp-rs-big { font-size: 42px; }
}

/* ---- IMAGE ZOOM LIGHTBOX ---- */
.sp-zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.94);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sp-zoom-modal.active {
    display: flex;
    opacity: 1;
}
.sp-zoom-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-zoom-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: #ffffff;
    padding: 24px;
}
.sp-zoom-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.sp-zoom-close:hover {
    color: #00EFA0;
}
