/* ==========================================================================
   Acil Usta Burada — Product Detail Page Calm & Refined Stylesheet
   ========================================================================== */
@import url("fonts.css");

.page-urun-detay {
    --pd-red: var(--primary);
    background: #ffffff;
    color: var(--text-main);
    font-size: 14px;
}

.pd-shell {
    width: min(1140px, calc(100% - 36px));
    margin: auto;
    padding-bottom: 48px;
}

.pd-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.pd-breadcrumb strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Product Top Section */
.pd-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 40px;
}

.pd-main-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface-alt);
    border: 1px solid var(--border);
}

.pd-main-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-sale {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.pd-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    color: white;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.pd-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.pd-thumbnails button {
    position: relative;
    height: 72px;
    border: 2px solid transparent;
    padding: 2px;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.pd-thumbnails button.selected {
    border-color: var(--primary);
}

.pd-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Product Info */
.pd-brand {
    font-weight: 800;
    color: var(--secondary);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pd-info h1 {
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 4px 0 8px;
    font-weight: 800;
    color: var(--text-main);
}

.pd-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.4;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.pd-stars {
    color: var(--warning);
    font-size: 16px;
}

.pd-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0;
}

.pd-price > strong {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.pd-price del {
    font-size: 16px;
    color: var(--text-subtle);
}

/* Montaj Options Box */
.pd-montaj-box {
    margin: 18px 0;
    padding: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pd-montaj-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pd-montaj-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.pd-montaj-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pd-montaj-opt {
    position: relative;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pd-montaj-opt.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.pd-montaj-opt strong {
    display: block;
    font-size: 13px;
    color: var(--text-main);
}

.pd-montaj-opt span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quantity and Action Buttons */
.pd-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.pd-quantity > div {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.pd-quantity button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--surface-alt);
    font-size: 18px;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.pd-quantity button:hover {
    background: #e2e8f0;
}

.pd-quantity #detail-qty {
    width: 44px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.pd-purchase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.pd-purchase button {
    height: 46px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Delivery & Perks */
.pd-delivery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pd-delivery > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-delivery svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pd-delivery b {
    display: block;
    font-size: 12.5px;
    color: var(--text-main);
}

.pd-delivery span {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Tabs & Specifications */
.pd-details {
    margin-top: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.pd-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}

.pd-tabs button {
    padding: 14px 24px;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.pd-tabs button:hover {
    color: var(--text-main);
}

.pd-tabs button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

.pd-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.pd-about-grid section h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.pd-about-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: #334155;
}

.pd-about-grid ul li b {
    color: #10b981;
    margin-right: 6px;
}

.pd-about-grid dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
}

.pd-about-grid dl > div {
    display: flex;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.pd-about-grid dt {
    color: #64748b;
}

.pd-about-grid dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.pd-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.pd-badges span.pd-stock {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.pd-badges svg {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

.pd-favorite {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
    z-index: 2;
}

.pd-favorite:hover, .pd-favorite.active {
    color: var(--primary);
    border-color: var(--primary);
}

.pd-gallery-prev, .pd-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 2;
}

.pd-gallery-prev { left: 12px; }
.pd-gallery-next { right: 12px; }
.pd-gallery-prev:hover, .pd-gallery-next:hover {
    background: #fff;
    color: var(--primary);
}

/* Related Products */
.pd-related {
    margin-top: 36px;
}

.pd-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pd-section-heading h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.pd-section-heading a {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.pd-section-heading a:hover {
    text-decoration: underline;
}

.pd-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.pd-products article {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pd-products article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.pd-products h3 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    margin: 8px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.pd-mini-rating {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pd-mini-rating span {
    color: #f59e0b;
}

.pd-products strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    margin-top: auto;
}

.pd-add-small {
    width: 100%;
    padding: 9px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.pd-add-small:hover {
    background: #c81e1e;
}

/* 4 Benefit Strip */
.pd-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 36px 0;
}

.pd-benefits > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pd-benefits svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    flex-shrink: 0;
    color: var(--primary);
}

.pd-benefits span {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.pd-benefits b {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 900px) {
    .pd-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pd-delivery {
        grid-template-columns: 1fr;
    }
    .pd-about-grid {
        grid-template-columns: 1fr;
    }
    .pd-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pd-benefits {
        grid-template-columns: 1fr;
    }
    .pd-purchase {
        grid-template-columns: 1fr;
    }
}

