/* ====================================
   Product Description ONLY - Simple & Professional Style
   CHỈ ÁP DỤNG CHO PHẦN website_description
   ==================================== */
#product_detail {
    background: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Ẩn description nếu rỗng */
.ws_product_description_only_empty {
    display: none !important;
}

#product_related_products {
    padding: 0;
}

#o_product_page_reviews h3.mb32 {
    color: #212529;
}

/* Container cho description - theo chuẩn Bootstrap container-lg */
.ws_product_description_only {
    max-width: 1320px;
    /* Bootstrap container-lg */
    margin: 40px auto;
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Decorative corner accent */
.ws_product_description_only::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #9c7e00 0%, #d4af37 100%);
    border-radius: 12px 0 0 0;
    display: none !important;
}

.ws_product_description_only::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, #9c7e00 0%, #d4af37 100%);
    border-radius: 12px 0 0 0;
}

/* Headings */
.ws_product_description_only h1,
.ws_product_description_only h2,
.ws_product_description_only h3,
.ws_product_description_only h4,
.ws_product_description_only h5,
.ws_product_description_only h6 {
    color: #1a1a1a;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.ws_product_description_only h1:first-child,
.ws_product_description_only h2:first-child,
.ws_product_description_only h3:first-child {
    margin-top: 0;
}

.ws_product_description_only h1 {
    font-size: 32px;
    border-bottom: 3px solid #9c7e00;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}

.ws_product_description_only h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37 0%, transparent 100%);
}

.ws_product_description_only h2 {
    font-size: 26px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 12px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #9c7e00;
}

.ws_product_description_only h3 {
    font-size: 22px;
    color: #333;
    padding-left: 12px;
}

.ws_product_description_only h4 {
    font-size: 19px;
    color: #444;
}

.ws_product_description_only h5 {
    font-size: 17px;
    color: #555;
}

.ws_product_description_only h6 {
    font-size: 15px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Paragraphs */
.ws_product_description_only p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.ws_product_description_only p:last-child {
    margin-bottom: 0;
}

/* First paragraph - lead style */
.ws_product_description_only>p:first-of-type {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

/* Strong và Emphasis */
.ws_product_description_only strong,
.ws_product_description_only b {
    color: #1a1a1a;
    font-weight: 700;
}

.ws_product_description_only em,
.ws_product_description_only i {
    color: #555;
}

/* Links */
.ws_product_description_only a {
    color: #9c7e00;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.ws_product_description_only a:hover {
    color: #7a6200;
    border-bottom-color: #7a6200;
}

/* Lists */
.ws_product_description_only ul,
.ws_product_description_only ol {
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 0;
}

.ws_product_description_only ul li,
.ws_product_description_only ol li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
    padding-left: 5px;
}

.ws_product_description_only ul li::marker {
    color: #9c7e00;
    font-weight: bold;
}

.ws_product_description_only ol li::marker {
    color: #9c7e00;
    font-weight: bold;
}

/* Nested lists */
.ws_product_description_only ul ul,
.ws_product_description_only ol ul,
.ws_product_description_only ul ol,
.ws_product_description_only ol ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Images */
.ws_product_description_only img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    display: block;
}

/* Center aligned images */
.ws_product_description_only img[style*="text-align: center"],
.ws_product_description_only .text-center img {
    margin-left: auto;
    margin-right: auto;
}

/* Blockquotes */
.ws_product_description_only blockquote {
    border-left: 4px solid #9c7e00;
    padding: 20px 25px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
    color: #555;
    position: relative;
}

.ws_product_description_only blockquote::before {
    content: '"';
    font-size: 48px;
    color: #9c7e00;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: Georgia, serif;
}

.ws_product_description_only blockquote p {
    margin-bottom: 10px;
}

.ws_product_description_only blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.ws_product_description_only table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ws_product_description_only table thead {
    background: linear-gradient(135deg, #9c7e00 0%, #d4af37 100%);
}

.ws_product_description_only table th {
    padding: 14px 18px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #7a6200;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws_product_description_only table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 14px;
}

.ws_product_description_only table tbody tr:last-child td {
    border-bottom: none;
}

.ws_product_description_only table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

/* Striped table */
.ws_product_description_only table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Code blocks */
.ws_product_description_only code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #c7254e;
    border: 1px solid #e8e8e8;
}

.ws_product_description_only pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
}

.ws_product_description_only pre code {
    background: none;
    padding: 0;
    border: none;
    color: #333;
}

/* Horizontal rules */
.ws_product_description_only hr {
    border: none;
    border-top: 2px solid #e8e8e8;
    margin: 30px 0;
}

/* Call-to-action boxes */
.ws_product_description_only .alert,
.ws_product_description_only .callout,
.ws_product_description_only .note {
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
    border-left: 4px solid #9c7e00;
}

.ws_product_description_only .alert {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ws_product_description_only .alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.ws_product_description_only .alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.ws_product_description_only .alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ws_product_description_only .alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Video embeds */
.ws_product_description_only iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons trong description */
.ws_product_description_only .btn,
.ws_product_description_only a.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #9c7e00 0%, #d4af37 100%);
    color: white !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    margin: 10px 5px;
    box-shadow: 0 2px 8px rgba(156, 126, 0, 0.3);
}

.ws_product_description_only .btn:hover,
.ws_product_description_only a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 126, 0, 0.4);
    border-bottom: none !important;
}

/* Empty state */
.ws_product_description_only.oe_empty::before {
    content: '📝 Thông tin chi tiết sản phẩm sẽ được cập nhật sớm';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    font-style: italic;
}

/* Figure and caption */
.ws_product_description_only figure {
    margin: 25px 0;
}

.ws_product_description_only figcaption {
    text-align: center;
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Definition lists */
.ws_product_description_only dl {
    margin: 20px 0;
}

.ws_product_description_only dt {
    font-weight: 600;
    color: #333;
    margin-top: 15px;
}

.ws_product_description_only dd {
    margin-left: 20px;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design - Bootstrap breakpoints */

/* Large devices (desktops, 992px and up) - container-lg: 960px */
@media (min-width: 992px) and (max-width: 1199px) {
    .ws_product_description_only {
        max-width: 960px;
    }
}

/* Medium devices (tablets, 768px and up) - container-md: 720px */
@media (min-width: 768px) and (max-width: 991px) {
    .ws_product_description_only {
        max-width: 720px;
        margin: 30px auto;
        padding: 40px 35px;
        border-radius: 10px;
    }

    .ws_product_description_only h1 {
        font-size: 28px;
    }

    .ws_product_description_only h2 {
        font-size: 22px;
    }

    .ws_product_description_only h3 {
        font-size: 19px;
    }
}

/* Small devices (landscape phones, less than 768px) - container-sm: 540px */
@media (max-width: 767px) {
    .ws_product_description_only {
        max-width: 540px;
        margin: 20px auto;
        padding: 30px 20px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .ws_product_description_only::before {
        width: 40px;
    }

    .ws_product_description_only::after {
        height: 40px;
    }

    .ws_product_description_only h1 {
        font-size: 24px;
    }

    .ws_product_description_only h2 {
        font-size: 20px;
    }

    .ws_product_description_only h3 {
        font-size: 18px;
    }

    .ws_product_description_only p,
    .ws_product_description_only ul li,
    .ws_product_description_only ol li {
        font-size: 15px;
        text-align: left;
    }

    .ws_product_description_only table {
        font-size: 13px;
    }

    .ws_product_description_only table th,
    .ws_product_description_only table td {
        padding: 8px 10px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .ws_product_description_only {
        max-width: 100%;
        margin: 15px 10px;
        padding: 25px 15px;
    }

    .ws_product_description_only h1 {
        font-size: 22px;
    }

    .ws_product_description_only h2 {
        font-size: 18px;
    }

    .ws_product_description_only h3 {
        font-size: 16px;
    }

    .ws_product_description_only p,
    .ws_product_description_only ul li,
    .ws_product_description_only ol li {
        font-size: 14px;
    }

    .ws_product_description_only table {
        font-size: 12px;
    }

    .ws_product_description_only table th,
    .ws_product_description_only table td {
        padding: 6px 8px;
    }
}

/* Print styles */
@media print {
    .ws_product_description_only {
        box-shadow: none;
        border: 1px solid #e8e8e8;
    }

    .ws_product_description_only img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .ws_product_description_only table {
        page-break-inside: avoid;
    }
}

/* ====================================
   Related Products Grid - 7 Items per Row
   Chỉ áp dụng cho trang chi tiết sản phẩm
   ==================================== */

#oe_structure_website_sale_recommended_products {
    display: none;
}

/* Override product-grid cho trang chi tiết sản phẩm */
#product_related_products .product-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 10px !important;
}

/* Responsive - giảm số item khi màn hình nhỏ */

/* Large desktop (1400px+): 7 items */
@media (min-width: 1400px) {
    #product_related_products .product-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

/* Desktop (1200px - 1399px): 6 items */
@media (min-width: 1200px) and (max-width: 1399px) {
    #product_related_products .product-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

/* Medium desktop (992px - 1199px): 5 items */
@media (min-width: 992px) and (max-width: 1199px) {
    #product_related_products .product-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Tablet (768px - 991px): 4 items */
@media (min-width: 768px) and (max-width: 991px) {
    #product_related_products .product-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Small tablet (576px - 767px): 3 items */
@media (min-width: 576px) and (max-width: 767px) {
    #product_related_products .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile (< 576px): 2 items */
@media (max-width: 575px) {
    #product_related_products .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

#o_product_page_reviews_content {
    display: block !important;
}