/**
 * Single Product Page Styles
 * Design moderno e-commerce para página de produto individual
 */

/* === BREADCRUMB === */
.ss-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 0;
    font-size: 0.875rem;
}

.ss-breadcrumb a {
    color: rgba(111, 129, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ss-breadcrumb a:hover {
    color: #0286fe;
}

.ss-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.3);
}

.ss-breadcrumb__current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* === PRODUCT MAIN SECTION === */
.ss-product-main {
    margin: 2rem 0;
}

.ss-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* === GALLERY === */
.ss-product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.ss-gallery-main {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(111, 129, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.ss-gallery-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(111, 129, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.ss-gallery-main__img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 32px rgba(111, 129, 255, 0.25));
}

.ss-sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.ss-sold-badge {
    background: #ef4444;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    transform: rotate(-12deg);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5);
}

.ss-gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 129, 255, 0.3) rgba(0, 0, 0, 0.1);
}

.ss-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.ss-gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.ss-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(111, 129, 255, 0.3);
    border-radius: 3px;
}

.ss-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: rgba(111, 129, 255, 0.5);
}

.ss-gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(111, 129, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ss-gallery-thumb:hover {
    border-color: rgba(111, 129, 255, 0.5);
    transform: scale(1.05);
}

.ss-gallery-thumb.active {
    border-color: #0286fe;
    box-shadow: 0 0 20px rgba(111, 129, 255, 0.6), 0 0 40px rgba(111, 129, 255, 0.3);
}

.ss-gallery-thumb.placeholder {
    opacity: 0.4;
    cursor: default;
    filter: grayscale(0.8) brightness(0.7);
}

.ss-gallery-thumb.placeholder:hover {
    transform: none;
    border-color: rgba(111, 129, 255, 0.2);
}

/* === PRODUCT INFO === */
.ss-product-info-main {
    color: #fff;
}

.ss-product-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ss-platform-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(111, 129, 255, 0.15);
    border: 1px solid rgba(111, 129, 255, 0.3);
    color: #0286fe;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.ss-verified-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.ss-product-title-main {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === PRICE === */
.ss-product-price-main {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ss-price-old {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.ss-price-current {
    font-size: 3rem;
    font-weight: 900;
    color: #4ade80;
    line-height: 1;
}

.ss-price-discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
}

/* === DESCRIPTION === */
.ss-product-desc-short {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 3px solid rgba(111, 129, 255, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.ss-product-desc-short p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* === SPECS === */
.ss-product-specs {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(111, 129, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.ss-specs-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #fff;
}

.ss-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ss-spec {
    padding: 0.75rem;
    background: rgba(111, 129, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(111, 129, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.ss-spec strong {
    color: #0286fe;
    margin-right: 0.5rem;
}

/* === ACTIONS === */
.ss-product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ss-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.ss-btn--primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

.ss-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 222, 128, 0.6);
}

.ss-btn--secondary {
    background: rgba(111, 129, 255, 0.15);
    color: #0286fe;
    border: 2px solid rgba(111, 129, 255, 0.3);
}

.ss-btn--secondary:hover {
    background: rgba(111, 129, 255, 0.25);
    border-color: #0286fe;
}

.ss-btn--large {
    padding: 1.25rem 2.5rem;
}

/* === SOLD STATE === */
.ss-product-sold {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.ss-sold-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0 0 1rem 0;
}

/* === TAGS === */
.ss-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ss-tag {
    background: rgba(111, 129, 255, 0.1);
    color: #0286fe;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(111, 129, 255, 0.2);
}

/* === TABS === */
.ss-product-details {
    margin: 4rem 0;
}

.ss-tabs {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(111, 129, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.ss-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(111, 129, 255, 0.3);
    margin-bottom: 2rem;
}

.ss-tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.ss-tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(111, 129, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ss-tab-btn.active {
    color: #0286fe;
    border-bottom-color: #0286fe;
}

.ss-tabs__content {
    color: rgba(255, 255, 255, 0.8);
}

.ss-tab-panel {
    display: none;
}

.ss-tab-panel.active {
    display: block;
}

.ss-tab-panel h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: #fff;
}

.ss-tab-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #0286fe;
}

.ss-description-content {
    line-height: 1.8;
}

.ss-description-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ss-description-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ss-description-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
}

/* === SPECS TABLE === */
.ss-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.ss-specs-table th,
.ss-specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(111, 129, 255, 0.1);
}

.ss-specs-table th {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    width: 40%;
}

.ss-specs-table td {
    color: #4ade80;
    font-weight: 700;
}

.ss-specs-table tr:last-child th,
.ss-specs-table tr:last-child td {
    border-bottom: none;
}

/* === FAQ === */
.ss-faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(111, 129, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 3px solid #0286fe;
    border: 1px solid rgba(111, 129, 255, 0.3);
    border-left: 3px solid #0286fe;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.ss-faq-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #0286fe;
}

.ss-faq-item p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* === RELATED PRODUCTS === */
.ss-related-products {
    margin: 4rem 0;
}

.ss-section-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 2rem 0;
    color: #fff;
    text-align: center;
}

.ss-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .ss-product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ss-product-gallery {
        position: relative;
        top: 0;
    }
    
    .ss-specs-list {
        grid-template-columns: 1fr;
    }
    
    .ss-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ss-product-title-main {
        font-size: 2rem;
    }
    
    .ss-price-current {
        font-size: 2.25rem;
    }
    
    .ss-product-actions {
        flex-direction: column;
    }
    
    .ss-tabs__nav {
        flex-wrap: wrap;
    }
    
    .ss-tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .ss-products-grid {
        grid-template-columns: 1fr;
    }
    
    .ss-specs-table th {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .ss-breadcrumb {
        font-size: 0.75rem;
    }
    
    .ss-product-title-main {
        font-size: 1.5rem;
    }
    
    .ss-price-current {
        font-size: 2rem;
    }
    
    .ss-gallery-main {
        min-height: 300px;
        padding: 1rem;
    }
    
    .ss-gallery-main__img {
        max-height: 300px;
    }
    
    .ss-gallery-thumb {
        width: 60px;
        height: 60px;
    }
}
