/* ===== Layout ===== */
.product-detail {
    padding-bottom: 120px;
    color: #000; /* TEXT MẶC ĐỊNH */
}

@media (min-width: 768px) {
    .product-detail { padding-top: 50px; }
}

@media (max-width: 767.98px) {
    .product-detail {
        padding-top: 70px;
        padding-bottom: 40px;
    }
}

/* ===== Gallery ===== */
.product-gallery img {
    width: 100%;
    border-radius: 6px;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.product-thumbs img.active {
    border-color: #1e5bb8;
}

/* ===== Info ===== */
.product-breadcrumb {
    font-size: 14px;
    margin-bottom: 8px;
    color: #000;
}

.product-breadcrumb a {
    color: #000;
    text-decoration: none;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #dd3333;
    margin-bottom: 14px;
}

/* ===== Description ===== */
.product-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #000;
}

/* ===== Variant ===== */
.variant-box {
    border: 2px dashed #1e90ff;
    padding: 14px;
    border-radius: 6px;
    background: #fffdf2;
    margin-bottom: 16px;
}

.variant-box h6 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-item {
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    color: #000;
}

.variant-item.active {
    background: #1e5bb8;
    color: #fff;
    border-color: #1e5bb8;
}

/* ===== Quantity & Cart ===== */
.product-action {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.qty-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-box button {
    width: 36px;
    border: none;
    background: #f5f5f5;
    color: #000;
}

.qty-box input {
    width: 50px;
    border: none;
    text-align: center;
    color: #000;
}

.btn-cart {
    background: #ff5722;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
}

.btn-cart:hover {
    background: #e64a19;
}

/* ===== Social Share Icons ===== */
.social-share-box {
    gap: 10px !important;
}

.social-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-circle {
    width: 32px;
    height: 32px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.social-icon {
    font-size: 1.1rem !important;
    color: #888 !important; /* GIỮ NGUYÊN ICON */
    transition: color 0.15s, transform 0.15s;
}

.social-icon-link:hover .social-icon-circle {
    border-color: #888;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-icon-link:hover .social-icon {
    color: #222 !important;
    transform: scale(1.12);
}

/* Tooltip */
.social-icon-link::after {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 10;
}

.social-icon-link:hover::after {
    opacity: 1;
}

/* ===== Mobile ===== */
@media (max-width: 767.98px) {

    .product-gallery,
    .product-thumbs,
    .product-breadcrumb,
    .product-title,
    .product-price,
    .product-action {
        text-align: center;
    }

    .product-thumbs {
        gap: 6px;
    }

    .product-thumbs img {
        width: 48px;
        height: 48px;
    }

    .product-title {
        font-size: 18px;
        color: #000;
    }

    .product-price {
        font-size: 18px;
    }

    .product-action {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .btn-cart {
        width: 100%;
    }
}

/* Override Bootstrap colors */
.text-danger {
    color: #dd3333 !important;
}

.btn-danger {
    background-color: #dd3333 !important;
    border-color: #dd3333 !important;
}

.btn-danger:hover {
    background-color: #b82929 !important;
    border-color: #b82929 !important;
}
