﻿.pd-page { background:#faf9f7; padding:0 0 60px; min-height:70vh; }
.pd-container { max-width:1140px; margin:0 auto; padding:0 16px; }

.pd-main { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:30px 0 40px; }

.pd-gallery { position:sticky; top:80px; align-self:start; }
.pd-gallery-main { position:relative; border-radius:16px; overflow:hidden; background:#fff; box-shadow:0 2px 16px rgba(0,0,0,.05); margin-bottom:12px; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; }
.pd-gallery-main img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; transition:transform .3s; }
.pd-gallery-main:hover img { transform:scale(1.02); }
.pd-gallery-zoom { position:absolute; bottom:14px; right:14px; width:40px; height:40px; background:rgba(255,255,255,.9); border-radius:10px; display:flex; align-items:center; justify-content:center; cursor:pointer; border:none; box-shadow:0 2px 8px rgba(0,0,0,.1); transition:all .2s; z-index:2; }
.pd-gallery-zoom:hover { background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.15); }
.pd-gallery-label { position:absolute; top:14px; left:14px; padding:5px 14px; border-radius:20px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; z-index:2; }
.pd-gallery-label.label-sale { background:#e74c3c; color:#fff; }
.pd-gallery-label.label-new { background:#2e7d32; color:#fff; }
.pd-gallery-label.label-out { background:#666; color:#fff; }
.pd-gallery-label.label-top { background:#7dd2ea; color:#fff; }
.pd-gallery-label.label-primary { background:#1565c0; color:#fff; }
.pd-gallery-label.label-deal { background:#f57f17; color:#fff; }
.pd-gallery-label.label-secondary { background:#333; color:#fff; }

.pd-thumbs { display:flex; justify-content:center; gap:10px; }
.pd-thumb { width:72px; height:72px; border-radius:10px; overflow:hidden; cursor:pointer; border:2px solid transparent; transition:all .2s; background:#fff; box-shadow:0 1px 6px rgba(0,0,0,.06); flex-shrink:0; }
.pd-thumb:hover { border-color:#ddd; }
.pd-thumb.active { border-color:var(--sn-brand); box-shadow:0 2px 10px rgba(238,162,135,.25); }
.pd-thumb img { width:100%; height:100%; object-fit:cover; }

.pd-info { padding:10px 0; }
.pd-category { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:1px; color:var(--sn-brand); margin-bottom:10px; }
.pd-category a { color:var(--sn-brand); text-decoration:none; }
.pd-category a:hover { color:var(--sn-brand-dk); }
.pd-title { font-size:28px; font-weight:700; color:#222; margin:0 0 16px; line-height:1.3; }
.pd-price-wrap { display:flex; align-items:baseline; gap:12px; margin-bottom:20px; }
.pd-price { font-size:26px; font-weight:700; color:#222; }
.pd-price-old { font-size:18px; font-weight:500; color:#bbb; text-decoration:line-through; }
.pd-discount { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; background:#fef0ef; color:#e74c3c; }

.pd-desc { font-size:14px; line-height:1.7; color:#666; margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid #f0f0f0; }

.pd-size-section { margin-bottom:20px; }
.pd-size-label { font-size:13px; font-weight:600; color:#444; margin-bottom:8px; display:block; }
.pd-size-select { width:100%; max-width:280px; padding:11px 14px; border:1.5px solid #e8e8e8; border-radius:10px; font-size:14px; color:#333; background:#fafafa; outline:none; transition:all .25s; cursor:pointer; appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; }
.pd-size-select:focus { border-color:var(--sn-brand); background-color:#fff; box-shadow:0 0 0 4px var(--sn-focus); }
.pd-size-error { display:none; font-size:12px; color:#e74c3c; margin-top:6px; }
.pd-size-error svg { vertical-align:-2px; margin-right:4px; }

.pd-qty-section { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.pd-qty-label { font-size:13px; font-weight:600; color:#444; }
.pd-qty-wrap { display:flex; align-items:center; border:1.5px solid #e8e8e8; border-radius:10px; overflow:hidden; background:#fafafa; }
.pd-qty-btn { width:40px; height:42px; border:none; background:transparent; font-size:18px; color:#555; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; }
.pd-qty-btn:hover { background:#f0f0f0; color:var(--sn-brand); }
.pd-qty-input { width:50px; height:42px; border:none; border-left:1px solid #e8e8e8; border-right:1px solid #e8e8e8; text-align:center; font-size:15px; font-weight:600; color:#333; background:transparent; outline:none; -moz-appearance:textfield; }
.pd-qty-input::-webkit-outer-spin-button, .pd-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

.pd-actions { display:flex; gap:12px; margin-bottom:28px; flex-wrap:wrap; }
.pd-btn-cart { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 36px; border:none; border-radius:12px; background:var(--sn-brand); color:#fff; font-size:15px; font-weight:600; cursor:pointer; transition:all .25s; text-decoration:none; min-width:200px; }
.pd-btn-cart:hover { background:var(--sn-brand-dk); transform:translateY(-1px); box-shadow:0 6px 20px rgba(238,162,135,.35); color:#fff; text-decoration:none; }
.pd-btn-cart.disabled { opacity:.5; pointer-events:none; }
.pd-btn-checkout { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 36px; border:1.5px solid var(--sn-brand); border-radius:12px; background:#fff; color:var(--sn-brand); font-size:15px; font-weight:600; cursor:pointer; transition:all .25s; text-decoration:none; }
.pd-btn-checkout:hover { background:var(--sn-xsoft); color:var(--sn-brand-dk); border-color:var(--sn-brand-dk); text-decoration:none; }
.pd-btn-continue { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 36px; border:1.5px solid #e8e8e8; border-radius:12px; background:#fff; color:#666; font-size:15px; font-weight:500; cursor:pointer; transition:all .25s; text-decoration:none; }
.pd-btn-continue:hover { border-color:var(--sn-brand); color:var(--sn-brand); text-decoration:none; }
.pd-stock-message { display:flex; flex-direction:column; gap:3px; max-width:320px; margin:0 0 28px; padding:14px 16px; border:1px solid #e5e7eb; border-radius:12px; background:#f8f8f8; color:#555; }
.pd-stock-message strong { font-size:15px; color:#333; }
.pd-stock-message span { font-size:13px; color:#777; }
.pd-whatsapp-actions { margin:0 0 28px; }
.pd-btn-whatsapp-order { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 28px; border:none; border-radius:12px; background:#25d366; color:#fff; font-size:15px; font-weight:700; cursor:pointer; transition:all .25s; text-decoration:none; box-shadow:0 6px 18px rgba(37,211,102,.18); }
.pd-btn-whatsapp-order:hover { background:#1ebe5d; color:#fff; transform:translateY(-1px); box-shadow:0 8px 24px rgba(37,211,102,.28); text-decoration:none; }
.pd-btn-whatsapp-order svg { width:18px; height:18px; flex-shrink:0; }

.pd-meta { display:flex; align-items:center; justify-content:space-between; padding-top:24px; border-top:1px solid #f0f0f0; }
.pd-meta-cat { font-size:13px; color:#888; }
.pd-meta-cat a { color:var(--sn-brand); text-decoration:none; font-weight:500; }
.pd-meta-cat a:hover { color:var(--sn-brand-dk); }
.pd-share { display:flex; align-items:center; gap:10px; }
.pd-share-label { font-size:13px; color:#888; }
.pd-share-link { width:34px; height:34px; border-radius:8px; border:1px solid #eee; display:flex; align-items:center; justify-content:center; color:#888; text-decoration:none; transition:all .2s; }
.pd-share-link:hover { border-color:var(--sn-brand); color:var(--sn-brand); background:var(--sn-xsoft); }
.pd-share-link svg { width:16px; height:16px; }

.pd-related { padding:40px 0 0; }
.pd-related-title { font-size:22px; font-weight:700; color:#222; text-align:center; margin:0 0 28px; }
.pd-related-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }
.pd-related-card { background:#fff; border-radius:14px; box-shadow:0 2px 12px rgba(0,0,0,.05); transition:all .3s; display:flex; flex-direction:column; height:100%; overflow:hidden; }
.pd-related-card:hover { transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,.1); }
.pd-related-img { aspect-ratio:5/4; overflow:hidden; position:relative; border-radius:14px 14px 0 0; flex:0 0 auto; background:#f5f5f5; }
.pd-related-img { display:block; }
.pd-related-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.pd-related-card:hover .pd-related-img img { transform:scale(1.05); }
.pd-related-img .pd-gallery-label { top:10px; left:10px; font-size:10px; padding:4px 10px; }
.pd-related-body { padding:14px 16px 18px; flex:1; display:flex; flex-direction:column; }
.pd-related-cat { font-size:11px; font-weight:600; text-transform:uppercase; color:#bbb; letter-spacing:.5px; margin-bottom:4px; min-height:16px; }
.pd-related-cat a { color:#bbb; text-decoration:none; }
.pd-related-cat a:hover { color:var(--sn-brand); }
.pd-related-name { font-size:14px; font-weight:600; color:#333; margin:0 0 8px; line-height:1.4; min-height:40px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pd-related-name a { color:#333; text-decoration:none; }
.pd-related-name a:hover { color:var(--sn-brand); }
.pd-related-price { display:flex; align-items:baseline; gap:8px; min-height:24px; margin-top:auto; flex-wrap:wrap; }
.pd-related-price-current { font-size:16px; font-weight:700; color:#222; }
.pd-related-price .pd-price-old { font-size:13px; font-weight:500; color:#bbb; text-decoration:line-through; }
.pd-related-discount { display:inline-block; padding:2px 8px; border-radius:12px; font-size:10px; font-weight:700; background:#fef0ef; color:#e74c3c; margin-left:4px; }

@media(max-width:1024px){
    .pd-main { gap:28px; }
    .pd-related-grid { grid-template-columns:repeat(3, 1fr); gap:16px; }
}

@media(max-width:768px){
    .pd-main { grid-template-columns:1fr; gap:20px; }
    .pd-gallery { position:static; }
    .pd-title { font-size:22px; }
    .pd-price { font-size:22px; }
    .pd-price-old { font-size:16px; }
    .pd-actions { flex-direction:column; }
    .pd-btn-cart, .pd-btn-checkout, .pd-btn-continue, .pd-btn-whatsapp-order { width:100%; min-width:unset; }
    .pd-related-grid { grid-template-columns:repeat(2, 1fr); gap:12px; }
    .pd-meta { flex-direction:column; align-items:flex-start; gap:12px; }
}

@media(max-width:480px){
    .pd-container { padding:0 12px; }
    .pd-thumbs { gap:8px; }
    .pd-thumb { width:60px; height:60px; }
    .pd-info { padding:0; }
    .pd-related-grid { grid-template-columns:1fr; gap:12px; }
    .pd-related-body { padding:10px 12px 14px; }
    .pd-related-name { font-size:13px; }
}
