/* 
   PAZARIX PROJECT - Product Detail Page Redesign (Phase 2 - Refinement)
   Based on Paen Reference: https://paen.com
   Date: 2026-01-16
*/

/* --- Fonts (Ensure they are loaded if not already) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');

/* --- Layout Wrapper --- */
.pzx-pdp-wrapper {
    width: 100%;
    background: #fff;
    padding-top: 40px;
    padding-bottom: 80px;
    font-family: 'Inter', sans-serif;
    color: #000;
}

.pzx-container-wide {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    /* Grid Template: Thumbs | Main Image | Info Sidebar */
    /* Ratios: Fixed 100px | Flexible | Fixed 480px */
    grid-template-columns: 100px 1fr 480px;
    gap: 50px;
    align-items: start;
}

/* --- Left: Vertical Thumbnails --- */
.pzx-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 30px;
}

.pzx-thumb-item {
    width: 100%;
    aspect-ratio: 3/4;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pzx-thumb-item.active,
.pzx-thumb-item:hover {
    border-color: #000;
    opacity: 1;
}

.pzx-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Center: Main Image --- */
.pzx-gallery-main {
    width: 100%;
    position: relative;
    /* Clean, no border, no shadow as per Paen/modern styles */
}

.pzx-main-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* --- Right: Sticky Info Sidebar --- */
.pzx-info-sticky {
    position: sticky;
    top: 40px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
}

/* Product Brand */
.pzx-product-brand {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Title Row */
.pzx-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.pzx-product-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    /* Slightly larger */
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    text-transform: none;
    /* Removed uppercase as per screenshot */
}

.pzx-wishlist-btn {
    font-size: 20px;
    color: #000;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.2s, color 0.2s;
}

.pzx-wishlist-btn:hover {
    transform: scale(1.1);
    color: #e53935;
}

.pzx-wishlist-btn.active {
    color: #e53935;
}

.pzx-wishlist-btn.active i {
    color: #e53935;
}

/* Rating Row */
.pzx-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pzx-stars {
    color: #ffb400;
    font-size: 13px;
}

.pzx-reviews-count {
    font-size: 11px;
    color: #888;
    text-decoration: underline;
    font-weight: 500;
}

/* Price Area Refined */
.pzx-price-container {
    display: flex;
    align-items: stretch;
    /* Match height of badge and price box */
    gap: 10px;
    margin-bottom: 20px;
}

.pzx-discount-badge-square {
    background: #e30613;
    /* Paen Deep Red */
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.pzx-price-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pzx-current-price-lg {
    color: #000;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

.pzx-current-price-lg .currency {
    font-size: 18px;
    margin-right: 2px;
}

.pzx-old-price-lg {
    text-decoration: line-through;
    color: #bbb;
    font-size: 14px;
    font-weight: 400;
}

/* Series Note */
.pzx-series-note {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Meta Info (SKU & Stock) */
.pzx-meta-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pzx-meta-item {
    font-size: 12px;
    color: #888;
}

.pzx-meta-item span {
    margin-right: 5px;
}

.pzx-meta-item strong {
    color: #000;
}

.pzx-meta-item .text-success {
    color: #28a745;
}

.pzx-meta-item .text-danger {
    color: #dc3545;
}

/* Variants System Refined */
.pzx-variants-wrapper {
    margin-bottom: 25px;
}

.pzx-variant-group {
    margin-bottom: 25px;
}

.pzx-variant-label {
    font-size: 12px;
    font-weight: 400;
    color: #444;
    /* Slightly softer than pure black */
    margin-bottom: 12px;
    display: block;
    text-transform: capitalize;
}

.pzx-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pzx-variant-item {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.pzx-variant-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Size Boxes (Text Type) */
.pzx-type-text .pzx-text-val {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #000;
    /* Paen style: thin black border */
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pzx-variant-item input:checked+.pzx-text-val {
    background: #fff;
    border-width: 2px;
    /* Thicker on select */
}

/* Color Swatches (Image Type) */
.pzx-variant-item.pzx-type-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 65px;
}

.pzx-type-image img {
    border: 1px solid #eee;
    padding: 0;
    border-radius: 4px;
    width: 65px;
    height: 85px;
    object-fit: cover;
    transition: all 0.2s ease;
}

.pzx-variant-item.pzx-type-image .pzx-text-label {
    font-size: 10px;
    color: #888;
    text-align: center;
    line-height: 1.2;
}

.pzx-variant-item.pzx-type-image input:checked~img {
    border: 1px solid #000;
}

/* USP Container */
.pzx-usp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.pzx-usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pzx-usp-item i {
    font-size: 24px;
    color: #000;
}

.pzx-usp-item span {
    font-size: 10px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

/* Shipping Notice Box */
.pzx-shipping-notice {
    background: #f0f7ff;
    /* Paen light blue */
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pzx-shipping-notice p {
    margin: 0;
    font-size: 13px;
    color: #3b7dc2;
    text-align: center;
}

/* Add to Cart Button */
.pzx-btn-add-cart {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 4px;
}

.pzx-btn-fast-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #FF5722 100%);
    /* Premium Orange Gradient */
    color: #fff !important;
    border: none;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none !important;
    gap: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pzx-btn-fast-pay:hover {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    /* Darker Orange on Hover */
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.pzx-btn-fast-pay span {
    color: #fff !important;
}


.pzx-trust-text {
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
    /* Reduced to balance with WhatsApp */
}

/* WhatsApp Ordering Button Premium */
.pzx-whatsapp-wrapper {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
    /* Added spacing below */
}

.pzx-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: #fff;
    color: #25D366;
    border: 1px solid #25D366;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pzx-btn-whatsapp i {
    font-size: 20px;
}

.pzx-btn-whatsapp:hover {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

/* Social & Extra */
.urun-detay-social {
    display: flex;
    gap: 15px;
    font-size: 18px;
    color: #333;
}

.urun-detay-social a {
    color: #000;
}


/* --- Accordions (Tabs) --- */
.pzx-accordion-wrapper {
    margin-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.pzx-accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.pzx-accordion-header {
    width: 100%;
    padding: 15px 0;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pzx-accordion-header .icon {
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.pzx-accordion-item.active .pzx-accordion-header .icon {
    transform: rotate(45deg);
    /* Turn + to x */
}

.pzx-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.pzx-accordion-content p {
    margin-bottom: 15px;
}

.pzx-accordion-item.active .pzx-accordion-content {
    max-height: 500px;
    /* Arbitrary large height */
    padding-bottom: 20px;
}

/* --- Breadcrumbs --- */
.pzx-breadcrumb {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pzx-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.pzx-breadcrumb a:hover {
    color: #000;
}

.pzx-breadcrumb i {
    font-size: 9px;
}

/* --- Installment Text --- */
.pzx-installment-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
}

.pzx-installment-text a {
    text-decoration: underline;
    color: #000;
}

/* Responsive */
@media (max-width: 1200px) {
    .pzx-container-wide {
        grid-template-columns: 80px 1fr 400px;
        padding: 0 20px;
    }
}

@media (max-width: 991px) {
    .pzx-container-wide {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .pzx-gallery-thumbs {
        flex-direction: row;
        order: 2;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        top: 0;
        position: relative;
    }

    .pzx-thumb-item {
        width: 80px;
        flex-shrink: 0;
    }

    .pzx-gallery-main {
        order: 1;
    }

    .pzx-info-sticky {
        order: 3;
        position: static;
        padding-left: 0;
    }

    .pzx-product-title {
        font-size: 24px;
    }

    .pzx-current-price-lg {
        font-size: 22px;
    }
}

/* --- ADD TO CART SUCCESS MODAL --- */

/* Main Modal Structure */
.pzx-modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* Header */
.pzx-modal-header {
    background-color: #28a745;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.pzx-success-icon {
    font-size: 28px;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.pzx-success-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pzx-modal-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    font-size: 28px !important;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.pzx-modal-close:hover {
    color: #fff !important;
    transform: translateY(-50%) rotate(90deg);
}

/* Body */
.pzx-modal-body {
    padding: 30px;
}

.pzx-modal-product {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.pzx-modal-img {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pzx-modal-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pzx-modal-info {
    flex-grow: 1;
}

.pzx-modal-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.pzx-modal-product-meta {
    font-size: 13px;
    color: #666;
}

.pzx-modal-product-meta strong {
    color: #333;
    font-weight: 700;
}

.pzx-modal-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-left: 20px;
    white-space: nowrap;
}

/* Footer */
.pzx-modal-footer {
    padding: 0 30px 30px 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.pzx-btn-secondary,
.pzx-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.pzx-btn-secondary {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #e0e0e0;
}

.pzx-btn-secondary:hover {
    background: #e4e4e4;
    color: #000;
    text-decoration: none;
}

.pzx-btn-primary {
    background: #ff6000;
    color: #fff;
    border: 1px solid #ff6000;
}

.pzx-btn-primary:hover {
    background: #e65600;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 96, 0, 0.3);
    text-decoration: none;
}

.pzx-btn-primary i {
    margin-right: 8px;
}

@media (max-width: 576px) {
    .pzx-modal-product {
        flex-direction: column;
        text-align: center;
    }

    .pzx-modal-img {
        margin: 0 0 15px 0;
    }

    .pzx-modal-price {
        margin: 10px 0 0 0;
    }

    .pzx-modal-footer {
        flex-direction: column;
    }
}

/* --- BOTTOM TABS SECTION --- */

.pzx-bottom-section {
    margin-top: 60px;
    margin-bottom: 60px;
    display: block !important;
    /* Force visibility */
    width: 100%;
}

.pzx-nav-tabs {
    border-bottom: 2px solid #eaeaea;
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.pzx-nav-tabs .nav-item {
    margin-bottom: -2px;
}

.pzx-nav-tabs .nav-item .nav-link {
    border: none;
    background: none;
    padding: 15px 5px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.pzx-nav-tabs .nav-item .nav-link:hover {
    color: #000;
    /* Black hover */
}

.pzx-nav-tabs .nav-item .nav-link.active {
    color: #000 !important;
    /* Black Active */
    border-bottom-color: #000 !important;
    /* Black Border */
}

.pzx-nav-tabs .nav-item .nav-link span {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 2px;
}

.pzx-tab-content {
    padding-top: 40px;
    min-height: 200px;
    display: block;
    width: 100%;
}

.pzx-tab-content .tab-pane {
    display: none;
    /* Hide all by default */
}

.pzx-tab-content .tab-pane.active {
    display: block !important;
    /* Show active */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Description Text */
.pzx-description-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #111;
    /* Darker black text */
    max-width: 1200px;
}

.pzx-description-text p {
    margin-bottom: 1.5em;
}

.pzx-description-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- INSTALLMENTS GRID --- */
.pzx-installment-wrapper {
    width: 100%;
}

.pzx-installment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.pzx-inst-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pzx-inst-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    border-color: #000;
    /* Black accent on hover */
}

.pzx-inst-header {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.pzx-inst-header img {
    max-height: 40px;
    max-width: 100%;
}

.pzx-inst-table-wrap {
    padding: 0;
}

.pzx-inst-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #444;
    font-family: 'Inter', sans-serif;
}

.pzx-inst-table th,
.pzx-inst-table td {
    padding: 14px 15px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.pzx-inst-table th {
    background-color: #fcfcfc;
    font-weight: 700;
    color: #000;
    /* Black headers */
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pzx-inst-table td.count {
    color: #000;
    font-weight: 600;
}

.pzx-inst-table td.total {
    font-weight: 800;
    color: #000;
    /* Black total */
}

.pzx-inst-table tr:last-child td {
    border-bottom: none;
}

.pzx-inst-no-data {
    padding: 40px;
    text-align: center;
    color: #999;
}

/* --- COMMENTS SECTION --- */
.pzx-comments-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.pzx-comment-title {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.pzx-btn-write-comment {
    background: #000;
    /* Black Button */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pzx-btn-write-comment:hover {
    background: #333;
    transform: translateY(-2px);
}

.pzx-comment-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f5f5f5;
}

.pzx-comments-list .pzx-comment-item:last-child {
    border-bottom: none;
}

.pzx-comment-avatar {
    width: 60px;
    height: 60px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    /* Black text */
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.pzx-comment-body {
    flex-grow: 1;
}

.pzx-comment-meta {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pzx-comment-meta .name {
    font-weight: 800;
    color: #000;
    font-size: 16px;
}

.pzx-comment-meta .date {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.pzx-comment-rating {
    margin-bottom: 12px;
    color: #000;
    /* Black Stars instead of Orange if desired, or keep gold? User said "genel olarak siyah". Gold/Yellow is standard for stars. Lets keep slightly desaturated gold or standard */
    font-size: 14px;
}

.pzx-comment-rating i.fa-star {
    margin-right: 2px;
    color: #ddd;
}

.pzx-comment-rating i.fa-star.active {
    color: #000;
    /* Changing stars to Black as per 'genel olarak siyah' instruction implies stark monochrome */
}

.pzx-comment-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
}

@media (max-width: 768px) {
    .pzx-nav-tabs {
        gap: 20px;
    }

    .pzx-nav-tabs .nav-item .nav-link {
        font-size: 14px;
        padding: 12px 5px;
    }

    .pzx-installment-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Related Products (Paen Concept - Clean & Minimal)
   ========================================= */
.pzx-related-wrapper {
    margin-top: 60px;
    margin-bottom: 0px;
    /* Reset bottom margin */
    padding-top: 60px;
    padding-bottom: 80px;
    /* Add bottom padding */
    background: #fff;
    border-top: none;
    width: 100%;
    /* Full Width */
}

.pzx-related-header {
    margin-bottom: 30px;
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.pzx-related-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.pzx-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    /* Content Constrained */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.pzx-related-card {
    background: transparent;
    border: none;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    align-items: center;
    /* Center Content */
}

.pzx-related-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.pzx-related-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fdfdfd;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    /* Reduced margin */
    border-radius: 4px;
    /* Slight radius */
}

.pzx-related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pzx-related-card:hover .pzx-related-image img {
    transform: scale(1.05);
}

.pzx-related-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    /* Center Text */
    align-items: center;
    /* Center Flex Items */
    width: 100%;
}

.pzx-related-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.pzx-related-brand {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pzx-related-product-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
    /* Prevent hitting edges */
}

.pzx-related-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center Price */
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pzx-related-current-price {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.pzx-related-old-price {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.pzx-related-discount-badge {
    position: absolute;
    /* Floating badge */
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 2px;
    z-index: 5;
}

/* Responsive */
@media (max-width: 1200px) {
    .pzx-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .pzx-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .pzx-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pzx-related-wrapper {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .pzx-related-image {
        margin-bottom: 12px;
    }
}