body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    --bg-dark: #f8fafc;       
    --bg-card: #ffffff;       
    --accent-cyan: #0ea5e9;   
    --accent-blue: #2563eb;   
    --text-main: #0f172a;
    --text-muted: #64748b;    
    --border-color: #e2e8f0;  
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.product-details {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 20px 40px 20px;
    box-sizing: border-box;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: 75.2px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-icon {
    cursor: pointer;
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    font-weight: 600;
}

.cart-icon:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.docs a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}
        
.docs a:hover {
    text-decoration: underline;
}


.product-card-detail-view {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-card-detail-view h1 {
    grid-column: 1 / -1;
    font-size: 32px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000000;
}

.detail-left-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    background-color: #f4f5f7;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides, .product-img-link {
    width: 100%;
    height: 100%;
    display: flex;
}

.product-img {
    transition: opacity 0.15s ease-in-out;
    opacity: 1;
}

.product-img.fade-out {
    opacity: 0;
}

.tech-specs {
    background-color: #f8f9fa;
    border-left: 4px solid #00baee;
    padding: 15px;
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec {
    font-size: 14px;
    color: #333;
}

.product-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.prod-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #0066cc;
    font-weight: 700;
    margin-bottom: 15px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 20px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background 0.2s;
    z-index: 10;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: #f4f5f7;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex: 0 0 100%;
}

.long-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.product-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #000;
}

.color-slider-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.color-slider-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.variant-btn {
    background-color: #f4f5f7;
    border: 1px solid #e4e5e7;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.variant-btn:hover {
    background-color: #eef2f5;
    border-color: #0066cc;
}

.variant-btn.active {
    background-color: #ffffff;
    border: 1px solid #0066cc;
    color: #0066cc;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.color-slider-track::-webkit-scrollbar {
    display: none;
}

.color-slider-container.hide #nav-arrow {
    visibility: hidden;
}

.slides.hide #slides-arrow {
    visibility: hidden !important;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 11px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s;
}

.nav-arrow.left {
    left: 5px; 
}

.nav-arrow.right { 
    right: 5px; 
}

.product-card:hover .nav-arrow {
    opacity: 1;
    pointer-events: auto; 
}

.sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 400px;
    height: 100%;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--text-main);
}

#cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.remove-btn {
    background: none;
    border: none;
    color: #A9A9A9;
    cursor: pointer;
    font-size: 25px;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.total-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.checkout-button {
    width: 100%;
}

.checkout-button {
    color: white;
    border: 1px solid var(--accent-blue);
    background-color: var(--accent-blue);
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.checkout-button:not(:disabled):hover {
    transform: scale(1.02);
}

.checkout-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
}

.price-block {
    display: flex;
    gap: 6px;
    font-size: 24px;
    font-weight: 800;
    color: #000;
}

.btn-buy {
    background-color: #ffffff;
    border: 1px solid #0066cc;
    color: #0066cc;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-buy:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 6rem;
    background-color: #ffffff;
}


.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .product-details {
        padding-top: 80px;
    }
    .product-card-detail-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
