/* =========================================================
   SINGLE PRODUCT PAGE STYLES
========================================================= */

.single-product-page {
    background-color: #F5F7FA;
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.single-product-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================
   TOP SECTION: GALLERY & DETAILS
========================== */
.product-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* --- Gallery --- */
.product-gallery {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.product-main-image {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    background: #fff;
    overflow: hidden;
    cursor: crosshair;
}

.product-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1.15);
    transition: opacity 0.3s ease;
}

.sp-expand-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F4F6F8;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #1B3A6B;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-expand-btn:hover {
    background: #E2E8F0;
}

.product-thumbnails {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumb-nav {
    background: #fff;
    border: 1px solid #eee;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #1B3A6B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.thumb-nav:hover {
    background: #F4F6F8;
    border-color: #ddd;
}

.thumb-carousel-wrapper {
    flex: 1;
    overflow: hidden;
}

.thumb-carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.thumb-item.active {
    border-color: #1B3A6B;
    border-width: 2px;
}

/* --- Details --- */
.product-details {
    padding: 10px 0;
}

.sp-title {
    font-size: 36px;
    color: #1B3A6B;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.sp-subtitle {
    font-size: 16px;
    color: #4A5568;
    font-weight: 600;
    margin-bottom: 15px;
}

.sp-divider {
    width: 40px;
    height: 3px;
    background: #F5A623;
    margin-bottom: 25px;
}

.sp-description {
    font-size: 14px;
    line-height: 1.7;
    color: #4A5568;
    margin-bottom: 30px;
}

/* Highlights Grid */
.sp-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    background: #fff;
    transition: 0.3s;
}

.highlight-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E0;
}

.hi-icon {
    color: #1B3A6B;
    font-size: 20px;
    margin-bottom: 10px;
}

.highlight-item span {
    font-size: 11px;
    font-weight: 600;
    color: #1B3A6B;
    line-height: 1.3;
    display: block;
}

/* Ideal For Box */
.sp-ideal-for {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #F0F5FA;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
}

.ideal-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B3A6B;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ideal-content strong {
    display: block;
    color: #1B3A6B;
    font-size: 14px;
    margin-bottom: 4px;
}

.ideal-content p {
    font-size: 12px;
    color: #4A5568;
    margin: 0;
    line-height: 1.5;
}

/* ==========================
   KEY FEATURES SECTION
========================== */
.sp-key-features {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.sp-key-features h2,
.sp-related-products h2 {
    font-size: 22px;
    color: #1B3A6B;
    font-weight: 800;
    margin-bottom: 25px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #F0F2F5;
    font-size: 14px;
    color: #111;
    font-weight: 500;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #2563EB;
    font-size: 16px;
    margin-top: 2px;
}

/* ==========================
   RELATED PRODUCTS SECTION
========================== */
.sp-related-products {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.sp-divider-short {
    width: 40px;
    height: 3px;
    background: #2563EB;
    margin-top: -15px;
    margin-bottom: 30px;
}

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

.related-card {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    background: #fff;
    transition: 0.3s;
}

.related-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.rc-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-bottom: 20px;
}

.rc-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rc-title {
    font-size: 14px;
    font-weight: 700;
    color: #1B3A6B;
    margin-bottom: 15px;
    line-height: 1.4;
}

.rc-view-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    transition: 0.3s;
}

.rc-view-link:hover {
    color: #1B3A6B;
}

/* ==========================
   FOOTER BANNER CTA
========================== */
.sp-footer-banner {
    background: #1B3A6B;
    border-radius: 12px;
    margin: 40px auto 0;
    max-width: 1200px;
    background-image: url('../images/pattern.png');
    /* fallback or add texture if needed */
    background-blend-mode: overlay;
    background-color: #1B3A6B;
}

.fb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 50px;
}

.fb-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fb-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.fb-text h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 700;
}

.fb-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.fb-btn {
    background: #fff;
    color: #1B3A6B;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.fb-btn:hover {
    background: #F4A825;
    color: #fff;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 991px) {
    .product-top-section {
        grid-template-columns: 1fr;
    }

    .sp-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .fb-inner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .fb-left {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}