/* ===== BREADCRUMB ===== */
.page-breadcrumb { background: #f8f9fa; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.page-breadcrumb .breadcrumb { margin: 0; font-size: 0.78rem; }
.page-breadcrumb .breadcrumb-item a { color: #888; text-decoration: none; }
.page-breadcrumb .breadcrumb-item a:hover { color: var(--primary); }
.page-breadcrumb .breadcrumb-item.active { color: var(--dark); font-weight: 600; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-section { padding: 35px 0 50px; }

/* Gallery */
.pd-gallery { position: sticky; top: 90px; }
.pd-main-image {
    position: relative;
    background: #f9f9f9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-bottom: 12px;
    cursor: crosshair;
}
.pd-main-image img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    padding: 30px;
    transition: transform 0.1s ease;
}
.pd-zoom-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}
.pd-zoom-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pd-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
}
.pd-thumbnails {
    display: flex;
    gap: 10px;
}
.pd-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid #eee;
    overflow: hidden;
    cursor: pointer;
    background: #f9f9f9;
    padding: 4px;
    transition: all 0.2s;
}
.pd-thumb:hover, .pd-thumb.active {
    border-color: var(--primary);
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.pd-info { padding-top: 5px; }
.pd-category {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.pd-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.pd-short-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Price */
.pd-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.pd-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}
.pd-original-price {
    font-size: 1rem;
    color: #bbb;
    text-decoration: line-through;
}
.pd-save-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.pd-tax-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

/* Attributes */
.pd-attributes {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
}
.pd-attr-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.82rem;
}
.pd-attr-row:last-child { border-bottom: none; }
.pd-attr-label { color: var(--text-muted); font-weight: 500; }
.pd-attr-value { color: var(--dark); font-weight: 600; }

/* Stock */
.pd-stock {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}
.pd-stock.in-stock { background: #e8f5e9; color: #2e7d32; }
.pd-stock.out-of-stock { background: #fce4ec; color: #c62828; }

/* Actions */
.pd-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pd-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}
.pd-qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: #f9f9f9;
    font-size: 1.1rem;
    cursor: pointer;
    color: #555;
    font-weight: 600;
    transition: all 0.2s;
}
.pd-qty-btn:hover { background: var(--primary); color: #fff; }
.pd-qty-input {
    width: 48px;
    text-align: center;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-btn-cart {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s;
}
.pd-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,57,53,0.3);
    color: #fff;
}
.pd-btn-buy {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s;
}
.pd-btn-buy:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

/* Buy on WhatsApp */
.pd-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 16px;
}
.pd-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.pd-btn-whatsapp i {
    font-size: 1.1rem;
}

/* Secondary Actions */
.pd-secondary-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.pd-sec-btn {
    border: 1.5px solid #e8e8e8;
    background: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.pd-sec-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5f5;
}

/* Trust Badges */
.pd-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 14px;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.trust-badge i {
    font-size: 1.3rem;
    color: var(--primary);
}
.trust-badge strong {
    display: block;
    font-size: 0.72rem;
    color: var(--dark);
}
.trust-badge span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ===== TABS ===== */
.product-tabs-section {
    padding: 0 0 50px;
}
.pd-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 28px;
    overflow-x: auto;
}
.pd-tab {
    padding: 14px 24px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}
.pd-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s;
}
.pd-tab:hover { color: var(--primary); }
.pd-tab.active { color: var(--primary); }
.pd-tab.active::after { transform: scaleX(1); }

.pd-tab-content {
    display: none;
}
.pd-tab-content.active {
    display: block;
}

/* Description */
.pd-description h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
}
.pd-description h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 22px 0 10px;
}
.pd-description p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}
.pd-description ul {
    padding-left: 20px;
    margin-bottom: 14px;
}
.pd-description ul li {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 6px;
}

/* Specifications */
.pd-specs-table table {
    width: 100%;
    border-collapse: collapse;
}
.pd-specs-table th, .pd-specs-table td {
    padding: 12px 18px;
    font-size: 0.84rem;
    border-bottom: 1px solid #f0f0f0;
}
.pd-specs-table th {
    width: 180px;
    color: var(--text-muted);
    font-weight: 500;
    background: #f9f9f9;
}
.pd-specs-table td { color: var(--dark); font-weight: 500; }

/* Shipping */
.pd-shipping-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 10px;
}
.pd-shipping-info h4:first-child { margin-top: 0; }
.pd-shipping-info ul { padding-left: 20px; }
.pd-shipping-info li {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 6px;
}

/* Reviews */
.review-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 14px;
    margin-bottom: 24px;
}
.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.score-stars { color: #ffc107; font-size: 1rem; margin: 4px 0; }
.score-count { font-size: 0.75rem; color: var(--text-muted); }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
    padding: 18px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e8e8, #d5d5d5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #555;
}
.review-header strong { font-size: 0.82rem; color: var(--dark); display: block; }
.review-header > div:nth-child(2) span { font-size: 0.68rem; color: var(--text-muted); }
.review-stars { margin-left: auto; color: #ffc107; font-size: 0.75rem; }
.review-item p { font-size: 0.84rem; color: #555; line-height: 1.6; margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .pd-gallery { position: static; }
    .pd-main-image img { height: 350px; }
}
@media (max-width: 767px) {
    .product-detail-section { padding: 20px 0 30px; }
    .pd-main-image img { height: 280px; padding: 20px; }
    .pd-title { font-size: 1.2rem; }
    .pd-price { font-size: 1.4rem; }
    .pd-thumbnails { gap: 8px; }
    .pd-thumb { width: 58px; height: 58px; }
    .pd-actions { flex-direction: column; }
    .pd-qty { width: 100%; justify-content: center; }
    .pd-btn-cart, .pd-btn-buy { width: 100%; text-align: center; }
    .pd-btn-whatsapp { font-size: 0.85rem; padding: 13px 20px; }
    .pd-trust-badges { grid-template-columns: 1fr; gap: 10px; }
    .pd-tabs { gap: 0; }
    .pd-tab { padding: 12px 14px; font-size: 0.78rem; }
    .pd-secondary-actions { flex-wrap: wrap; }
    .review-summary { flex-direction: column; text-align: center; }
    .pd-specs-table th { width: 120px; }
}


/* Share Dropdown */
.pd-share-wrap {
    position: relative;
}
.pd-share-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 8px;
    min-width: 180px;
    display: none;
    z-index: 50;
}
.pd-share-dropdown.active {
    display: block;
}
.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}
.share-link:hover {
    background: #f5f5f7;
    color: var(--primary);
}
.share-link i {
    font-size: 1rem;
    width: 18px;
}
