/* ===== PRODUCT SHOW PAGE ===== */

/* Breadcrumbs */
.product-show-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0 24px;
    font-size: 0.82rem;
    color: var(--gray-500);
}
.product-show-breadcrumbs a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}
.product-show-breadcrumbs a:hover { color: var(--primary); }
.product-show-breadcrumbs .sep { color: var(--gray-400); font-size: 0.7rem; }
.product-show-breadcrumbs span:last-child { color: var(--gray-700); font-weight: 500; }

/* ===== PRODUCT DETAIL LAYOUT ===== */
.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* ===== IMAGE GALLERY ===== */
.pdp-gallery {
    position: sticky;
    top: 20px;
    align-self: start;
}
.pdp-main-image {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1/1;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.pdp-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.pdp-main-image .no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray-400);
    font-size: 4rem;
}
.pdp-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-600);
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pdp-img-nav:hover { background: var(--white); color: var(--primary); border-color: var(--primary); }
.pdp-img-nav.prev { left: 12px; }
.pdp-img-nav.next { right: 12px; }

.pdp-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
}
.pdp-thumbnails::-webkit-scrollbar { height: 4px; }
.pdp-thumbnails::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.pdp-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    transition: border-color 0.2s;
    padding: 4px;
}
.pdp-thumb:hover { border-color: var(--gray-400); }
.pdp-thumb.active { border-color: var(--primary); }
.pdp-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== FULLSCREEN LIGHTBOX ===== */
.pdp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.pdp-lightbox.active { display: flex; }
.pdp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.pdp-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.pdp-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.pdp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pdp-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.pdp-lightbox-nav.prev { left: 24px; }
.pdp-lightbox-nav.next { right: 24px; }
.pdp-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
.pdp-lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
    max-width: 90vw;
    overflow-x: auto;
    padding: 4px 0;
}
.pdp-lightbox-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    border-radius: 4px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    padding: 2px;
    background: rgba(255,255,255,0.05);
}
.pdp-lightbox-thumb:hover { opacity: 0.8; }
.pdp-lightbox-thumb.active { border-color: var(--primary); opacity: 1; }
.pdp-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== PRODUCT INFO PANEL ===== */
.pdp-info { display: flex; flex-direction: column; }

.pdp-info h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 12px;
}
.pdp-manufacturer {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}
.pdp-manufacturer a { color: var(--primary); font-weight: 500; }
.pdp-manufacturer a:hover { text-decoration: underline; }

.pdp-sku {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.pdp-sku span { font-weight: 500; color: var(--gray-700); }

/* Stock badge */
.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.pdp-stock .stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pdp-stock.in_stock { background: #e8f5e9; color: #2e7d32; }
.pdp-stock.in_stock .stock-dot { background: #2e7d32; }
.pdp-stock.on_order { background: #fff3e0; color: #e67e22; }
.pdp-stock.on_order .stock-dot { background: #e67e22; }
.pdp-stock.out_of_stock { background: #fce4ec; color: #c0392b; }
.pdp-stock.out_of_stock .stock-dot { background: #c0392b; }

/* Price box */
.pdp-price-box {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}
.pdp-price {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}
.pdp-price .unit {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-600);
}
.pdp-vat-info {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
}
.pdp-price-login {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.pdp-price-login i { margin-right: 6px; }

/* Quantity + cart */
.pdp-cart-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.pdp-quantity-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pdp-quantity-row label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-700);
}
.pdp-quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--white);
}
.pdp-quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-quantity-input button:hover { background: var(--gray-200); }
.pdp-quantity-input input {
    width: 56px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    -moz-appearance: textfield;
}
.pdp-quantity-input input::-webkit-outer-spin-button,
.pdp-quantity-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pdp-add-to-cart:hover { background: var(--primary-dark); }

.pdp-where-to-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.pdp-where-to-buy:hover { background: var(--primary-dark); color: var(--white); }

/* Short description */
.pdp-short-desc {
    margin-top: 24px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.92rem;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ===== PRODUCT TABS ===== */
.pdp-tabs {
    margin-bottom: 48px;
}
.pdp-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    gap: 0;
    margin-bottom: 0;
}
.pdp-tab-btn {
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-600);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pdp-tab-btn:hover { color: var(--primary); }
.pdp-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.pdp-tab-panel {
    display: none;
    padding: 28px 0;
}
.pdp-tab-panel.active { display: block; }

/* Description tab */
.pdp-description {
    line-height: 1.85;
    color: var(--gray-700);
    font-size: 0.93rem;
    max-width: 900px;
}

/* Specifications table */
.pdp-specs-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
}
.pdp-specs-table tr { border-bottom: 1px solid var(--gray-200); }
.pdp-specs-table tr:last-child { border-bottom: none; }
.pdp-specs-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
}
.pdp-specs-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    width: 35%;
    background: var(--gray-100);
}
.pdp-specs-table td:last-child { color: var(--gray-700); }

/* Details tab */
.pdp-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 700px;
}
.pdp-details-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.88rem;
}
.pdp-details-list li:last-child { border-bottom: none; }
.pdp-details-list .detail-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 130px;
}
.pdp-details-list .detail-value { color: var(--gray-700); }

/* Documents tab */
.pdp-documents { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.pdp-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s;
}
.pdp-doc-item:hover { border-color: var(--primary); }
.pdp-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.pdp-doc-info { flex: 1; }
.pdp-doc-name { font-weight: 600; color: var(--dark); font-size: 0.88rem; }
.pdp-doc-meta { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }
.pdp-doc-actions { display: flex; gap: 8px; }
.pdp-doc-actions a {
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.pdp-doc-btn-view { background: var(--primary-light); color: var(--primary); }
.pdp-doc-btn-view:hover { background: var(--primary); color: var(--white); }
.pdp-doc-btn-download { background: var(--gray-200); color: var(--gray-700); }
.pdp-doc-btn-download:hover { background: var(--gray-300); }

/* ===== RELATED PRODUCTS CAROUSEL ===== */
.pdp-related {
    margin-bottom: 48px;
}
.pdp-related-header {

    margin:auto 24px;

}
.pdp-related-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center; 
}
.pdp-related-arrows {
    display: flex;
    gap: 8px;
}
.pdp-related-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 0.95rem;
    transition: all 0.2s;
}
.pdp-related-arrow:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pdp-related-arrow:disabled,
.pdp-related-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pdp-related-track-wrapper {
    overflow: hidden;
    position: relative;
}
.pdp-related-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pdp-related-track .product-card {
    min-width: calc(25% - 15px);
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .pdp-related-track .product-card { min-width: calc(33.333% - 14px); }
}
@media (max-width: 992px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pdp-gallery { position: static; }
    .pdp-related-track .product-card { min-width: calc(33.333% - 14px); }
}
@media (max-width: 768px) {
    .pdp-info h1 { font-size: 1.3rem; }
    .pdp-price { font-size: 1.5rem; }
    .pdp-related-track .product-card { min-width: calc(50% - 10px); }
    .pdp-tab-nav { overflow-x: auto; }
    .pdp-tab-btn { padding: 12px 18px; font-size: 0.85rem; }
    .pdp-lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .pdp-lightbox-nav.prev { left: 12px; }
    .pdp-lightbox-nav.next { right: 12px; }
}
@media (max-width: 480px) {
    .pdp-related-track .product-card { min-width: calc(80%); }
    .pdp-main-image { aspect-ratio: 1/1; }
    .pdp-thumb { width: 60px; height: 45px; }
}
