/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/ 
/* ============================================================
   PAGE LAYOUT  –  content + sidebar
   ============================================================ */
.single-sanpham-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

/* Vùng nội dung chính */
.single-sanpham-main {
    flex: 1;
    min-width: 0; /* tránh overflow */
}

/* Sidebar phải */
.single-sanpham-sidebar {
    flex: 0 0 300px;
    width: 300px;
}

/* ============================================================
   SP-MAIN  –  dùng Flatsome row/col (col-5 | col-7)
   ============================================================ */
.sp-main {
    margin-bottom: 0px !important;
}

/* Gallery – col-5 */
.sp-gallery {
    position: relative;
}

.sp-gallery .sp-label-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-gallery .sp-main-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: block;
    object-fit: cover;
}

/* Summary – col-7 / class WooCommerce */
.summary.col-fit.col.entry-summary.product-summary {
    /* Flatsome col-7 tự xử lý width */
}

.product-summary .sp-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.35;
    margin: 0 0 14px;
}

.product-summary .price {
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    color: #e74c3c;
    background: #fff5f5;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 9px 20px;
    margin-bottom: 18px;
}

.product-summary .sp-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}
.product-summary .sp-meta-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.product-summary .sp-meta-table tr:last-child {
    border-bottom: none;
}
.product-summary .sp-meta-table th {
    text-align: left;
    padding: 9px 12px 9px 0;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}
.product-summary .sp-meta-table td {
    padding: 9px 0;
    color: #1a1a2e;
    font-weight: 500;
}

.product-summary .woocommerce-product-details__short-description {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-summary .sp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-summary .sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e74c3c;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.product-summary .sp-btn-primary:hover { background: #c0392b; color: #fff; }

.product-summary .sp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.product-summary .sp-btn-secondary:hover { background: #e74c3c; color: #fff; }

/* ============================================================
   SP-DETAIL  –  nội dung full-width
   ============================================================ */
.sp-detail {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 30px 34px;
    margin-bottom: 48px;
    box-sizing: border-box;
}

.sp-detail .sp-detail-heading {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a2e;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    padding-left: 16px;
}
.sp-detail .sp-detail-heading::before {
    content: '';
    position: absolute;
    left: 0; top: 1px;
    width: 4px; height: 20px;
    background: #e74c3c;
    border-radius: 3px;
}

.sp-detail .entry-content {
    font-size: 15px;
    color: #555;
    line-height: 1.85;
}
.sp-detail .entry-content p   { margin-bottom: 14px; }
.sp-detail .entry-content h2,
.sp-detail .entry-content h3  { color: #1a1a2e; margin: 22px 0 10px; }
.sp-detail .entry-content img { max-width: 100%; border-radius: 6px; }
.sp-actions a img {
	width: 20px;
}
/* ============================================================
   SP-RELATED  –  6 sản phẩm cùng danh mục (3 cột)
   ============================================================ */
.sp-related {
    border-top: 2px solid #eee;
    padding-top: 36px;
}

.sp-related-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 24px;
    position: relative;
    padding-left: 14px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .single-sanpham-sidebar { flex: 0 0 260px; width: 260px; }
}
@media (max-width: 900px) {
    /* Page layout stack */
    .single-sanpham-page    { flex-direction: column; }
    .single-sanpham-sidebar { width: 100%; flex: none; }
    /* Flatsome col-5 / col-7 full-width on mobile */
    .sp-main .col-5,
    .sp-main .col-7         { width: 100% !important; }
}
@media (max-width: 600px) {
    .col.large-6,
    .col.medium-6 { width: 100%; }
    .sp-detail    { padding: 20px 16px; }
}
/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}