/* ==================== PRODUCT PAGE ==================== */

/* Breadcrumb */
.breadcrumb-nav {
    padding: 15px 0;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb-nav a {
    color: #555;
    text-decoration: none;
    transition: color .2s;
}
.breadcrumb-nav a:hover {
    color: var(--primary-color);
}
.breadcrumb-nav span {
    color: #ccc;
}
.breadcrumb-nav strong {
    color: #333;
    font-weight: 500;
}

/* Product Grid */
.pd-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Gallery */
.pd-gallery {
    display: flex;
    gap: 12px;
    position: sticky;
    top: 20px;
    align-self: start;
}
.pd-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 70px;
    flex-shrink: 0;
}
.pd-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s;
}
.pd-thumb.active {
    border-color: #333;
}
.pd-thumb:hover {
    border-color: #999;
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-main-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.pd-info {
    padding-bottom: 80px;
}
.pd-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 8px;
}
.pd-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}
.pd-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.pd-rating .stars {
    color: #f39c12;
    font-size: 14px;
    letter-spacing: 1px;
}
.pd-rating .rating-count {
    font-size: 13px;
    color: #888;
}

/* Price Section */
.pd-price-section {
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.pd-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}
.pd-price-current {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}
.pd-price-discount {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    vertical-align: middle;
}
.pd-price-installment {
    width: 100%;
    font-size: 13px;
    color: #888;
}

/* Option Groups */
.pd-option-group {
    margin-bottom: 20px;
}
.pd-option-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* Select Dropdowns */
.pd-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.pd-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Button Group Options */
.pd-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pd-opt-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    color: #444;
    cursor: pointer;
    transition: all .2s;
}
.pd-opt-btn:hover {
    border-color: #999;
}
.pd-opt-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Extras List */
.pd-extras-list {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}
.pd-extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background .2s;
    font-size: 13px;
    color: #333;
}
.pd-extra-item:last-child {
    border-bottom: none;
}
.pd-extra-item:hover {
    background: #fafafa;
}
.pd-extra-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}
.extra-name {
    font-weight: 600;
    flex-shrink: 0;
}
.extra-meta {
    color: #888;
    font-size: 12px;
}
.extra-meta i {
    color: #bbb;
    margin-left: 2px;
}
.extra-price {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Quantity Table */
.pd-qty-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}
.pd-qty-table thead th {
    background: #f8f8f8;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.pd-qty-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .2s;
}
.pd-qty-table tbody tr:last-child {
    border-bottom: none;
}
.pd-qty-table tbody tr:hover {
    background: #fafafa;
}
.pd-qty-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
}
.pd-qty-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}
.pd-qty-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* Services */
.pd-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.pd-service-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    position: relative;
}
.pd-service-card strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin: 8px 0 4px;
}
.pd-service-card p {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.4;
}
.service-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
}
.service-icon {
    font-size: 28px;
    color: var(--primary-color);
}
.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Specs Table */
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.pd-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.pd-specs-table td {
    padding: 12px 0;
    font-size: 14px;
}
.pd-specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 180px;
}
.pd-specs-table td:last-child {
    color: #555;
}

/* Gabarito */
.pd-gabarito-icons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.gabarito-item {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all .2s;
    color: #333;
    text-decoration: none;
}
.gabarito-item:hover {
    border-color: var(--primary-color);
    background: #faf8ff;
}
.gabarito-item span {
    font-size: 10px;
    color: #888;
}

/* CEP */
.pd-cep-row {
    display: flex;
    gap: 8px;
    max-width: 350px;
}
.pd-cep-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.pd-cep-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.pd-cep-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s;
}
.pd-cep-btn:hover {
    opacity: .85;
}

/* Info Banners */
.pd-info-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.pd-info-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    background: #f8f9fa;
}
.pd-info-banner > i {
    font-size: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}
.pd-info-banner strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}
.pd-info-banner p {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

/* Full Description */
.pd-full-desc {
    padding: 40px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}
.pd-full-desc h2,
.pd-full-desc h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 25px 0 10px;
}
.pd-full-desc p {
    margin-bottom: 12px;
}
.pd-full-desc ul,
.pd-full-desc ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

/* ==================== STICKY CART BAR ==================== */
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #eee;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 900;
    padding: 12px 0;
}
.scb-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.scb-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.scb-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.scb-name {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.scb-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.scb-discount {
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.scb-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}
.scb-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}
.scb-installment {
    font-size: 11px;
    color: #888;
}
.scb-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.scb-qty {
    text-align: center;
}
.scb-qty > span {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}
.scb-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.scb-qty-controls button {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    transition: background .2s;
}
.scb-qty-controls button:hover {
    background: #e8e8e8;
}
.scb-qty-controls input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
}
.scb-qty-controls input:focus {
    outline: none;
}
.scb-fav {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scb-fav:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}
.scb-buy {
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s;
    white-space: nowrap;
}
.scb-buy:hover {
    opacity: .9;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pd-gallery {
        position: static;
        flex-direction: column-reverse;
    }
    .pd-thumbs {
        flex-direction: row;
        width: 100%;
    }
    .pd-thumb {
        width: 60px;
        height: 60px;
    }
    .pd-services {
        grid-template-columns: 1fr;
    }
    .pd-info-banners {
        grid-template-columns: 1fr;
    }
    .scb-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .scb-product {
        flex: 1 1 100%;
    }
    .scb-name {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    .scb-buy {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .pd-title {
        font-size: 20px;
    }
    .pd-specs-table td:first-child {
        width: 120px;
        font-size: 12px;
    }
    .scb-pricing {
        display: none;
    }
}
