.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0 0;
    font-size: .82rem;
    color: var(--mid-gray);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--mid-gray); transition: color .15s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-current { color: var(--black); font-weight: 600; }

.detail-section { padding: 40px 0 80px; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.gallery { position: sticky; top: 100px; }
.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light-gray);
    margin-bottom: 12px;
    position: relative;
    border: 1px solid var(--border);
}
.gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.gallery-main:hover img { transform: scale(1.06); }
.gallery-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 5px 14px; border-radius: 20px;
    font-size: .76rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .3px;
}
.gallery-badge.sale    { background: #FF3B30; color: #fff; }
.gallery-badge.new     { background: var(--orange); color: #fff; }
.gallery-badge.popular { background: #30B050; color: #fff; }

.gallery-thumbs {
    display: flex;
    gap: 10px;
}
.gallery-thumb {
    width: 76px; height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
    background: var(--light-gray);
    flex-shrink: 0;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--orange); opacity: 1; }

.detail-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange-lite);
    color: var(--orange);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 14px;
}
.detail-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.detail-desc {
    color: var(--mid-gray);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: .95rem;
}

.detail-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}
.benefit {
    text-align: center;
    padding: 16px 10px;
    background: var(--light-gray);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.benefit-icon { font-size: 1.3rem; margin-bottom: 6px; color: var(--orange); }
.benefit strong { display: block; font-size: .76rem; font-weight: 700; margin-bottom: 2px; }
.benefit span   { font-size: .7rem; color: var(--mid-gray); }

.detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 40px; height: 44px;
    font-size: 1.2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    color: var(--black);
}
.qty-btn:hover { background: var(--light-gray); }
.qty-input {
    width: 56px; height: 44px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    font-size: .95rem; font-weight: 700;
    font-family: var(--font);
}
.qty-input:focus { outline: none; }

.btn-whatsapp-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius);
    font-weight: 700;
    transition: opacity .15s;
}
.btn-whatsapp-solid:hover { opacity: .85; color: #fff; }

.share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--mid-gray);
}
.share-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem;
    transition: all .15s;
    color: var(--mid-gray);
}
.share-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.detail-tabs { margin-top: 64px; }
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}
.tab-btn {
    padding: 14px 28px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--mid-gray);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    position: relative;
}
.tab-btn:hover { color: var(--black); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-panel { display: none; animation: fadeIn .25s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.specs-table-wrap { max-width: 680px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
    padding: 13px 16px;
    font-size: .9rem;
    vertical-align: top;
}
.specs-table td:first-child { font-weight: 700; width: 35%; color: var(--black); }
.specs-table td:last-child  { color: var(--mid-gray); }

.stock-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 600;
}

.desc-content { max-width: 680px; }
.desc-content p {
    color: var(--mid-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}
.desc-list {
    list-style: none;
    padding: 0;
}
.desc-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--mid-gray);
    font-size: .9rem;
}
.desc-list li i { color: #2E7D32; font-size: .95rem; }

.related-section {
    padding: 64px 0;
    background: var(--light-gray);
}
.related-section .section-header { margin-bottom: 28px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s, box-shadow .25s;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.related-card-img {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--light-gray);
}
.related-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-body { padding: 14px 16px; }
.related-card-cat {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 3px;
}
.related-card-body h3 {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
}
.related-card-body h3 a { color: var(--black); transition: color .15s; }
.related-card-body h3 a:hover { color: var(--orange); }

.prod-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 9px; border-radius: 20px;
    font-size: .7rem; font-weight: 700;
}
.prod-badge.sale    { background: #FF3B30; color: #fff; }
.prod-badge.new     { background: var(--orange); color: #fff; }
.prod-badge.popular { background: #30B050; color: #fff; }

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .gallery { position: static; }
    .detail-benefits { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tab-nav { gap: 0; overflow-x: auto; scrollbar-width: none; }
    .tab-nav::-webkit-scrollbar { display: none; }
    .tab-btn { padding: 12px 18px; font-size: .82rem; white-space: nowrap; }
    .breadcrumb { font-size: .76rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-top: 14px; }
    .breadcrumb::-webkit-scrollbar { display: none; }
    .detail-actions { flex-direction: column; align-items: stretch; }
    .qty-control { align-self: flex-start; }
    .share-row { flex-wrap: wrap; }
    .gallery-thumbs { overflow-x: auto; scrollbar-width: none; }
    .gallery-thumbs::-webkit-scrollbar { display: none; }
}
@media (max-width: 540px) {
    .detail-section { padding: 20px 0 48px; }
    .detail-benefits { grid-template-columns: 1fr 1fr; }
    .detail-title { font-size: 1.3rem; }
    .specs-table td { padding: 10px 12px; font-size: .84rem; }
}
@media (max-width: 480px) {
    .specs-table-wrap { overflow-x: auto; }
    .specs-table { min-width: 340px; }
    .detail-title { word-break: break-word; }
}
