/* ============================================
   Products Page Styles - Minimal Portfolio Grid
   ============================================ */

/* Override inline styles from flatsome inline CSS */
.title-overlay { display: none !important; }
.title-bg { display: none !important; }
.shop-page-title { display: none !important; }

/* ============================================
   Breadcrumb
   ============================================ */
.vnt-breadcrumb {
    padding: 18px 0 16px;
    width: 1320px;
    max-width: 100%;
    margin: auto;
}

.vnt-breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
}

.vnt-breadcrumb__inner a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.vnt-breadcrumb__inner a:hover {
    color: #00af50;
}

.vnt-breadcrumb__inner span:not(:last-child) {
    color: #ccc;
}

.vnt-breadcrumb__inner span:last-child {
    color: #133f74;
    font-weight: 500;
}

.container-product {
    margin: auto;
    width: 1320px;
    max-width: 100%;
}

/* Page Header */
.gallery-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    width: 1320px;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.gallery-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #133f74, #00af50);
}

.gallery-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #133f74;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.gallery-header p {
    color: #777;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Page Wrapper
   ============================================ */
.portfolio-page-wrapper {
    padding: 10px;
}

/* ============================================
   Toolbar Row - Categories (left) + Sort (right)
   ============================================ */
.portfolio-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.portfolio-toolbar-row .portfolio-filter-nav {
    margin-bottom: 0;
    flex-wrap: wrap;
}

.portfolio-toolbar-row .portfolio-sort-form {
    flex-shrink: 0;
}

/* ============================================
   Toolbar - Count + Sort (compact, right aligned)
   ============================================ */
.portfolio-toolbar {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 18px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.portfolio-count {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.portfolio-count strong {
    color: #00af50;
    font-weight: 700;
}

.portfolio-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-sort-form label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    margin: 0;
    min-width: 50px;
}

.portfolio-sort-form select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all 0.2s ease;
    min-width: 130px;
}

.portfolio-sort-form select:hover {
    border-color: #00af50;
}

.portfolio-sort-form select:focus {
    outline: none;
    border-color: #00af50;
    box-shadow: 0 0 0 2px rgba(41, 179, 75, 0.1);
}

/* ============================================
   Filter Navigation - Compact Horizontal Pills
   ============================================ */
.portfolio-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding: 0;
}

.portfolio-filter-nav a {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.portfolio-filter-nav a:hover {
    color: #00af50;
    border-color: #00af50;
    background: rgba(41, 179, 75, 0.04);
}

.portfolio-filter-nav a.active {
    color: #fff;
    background: #00af50;
    border-color: #00af50;
}

/* ============================================
   Video Page Tabs - Gallery Page Tabs (keep for compatibility)
   ============================================ */
.gallery-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding: 0;
}

.gallery-page-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.gallery-page-tabs a:hover {
    color: #00af50;
    border-color: #00af50;
    background: rgba(41, 179, 75, 0.04);
}

.gallery-page-tabs a.active {
    color: #fff;
    background: #00af50;
    border-color: #00af50;
}

/* ============================================
   Products Grid - Isotope Layout
   ============================================ */
.row-isotope {
    display: flex;
    width: 1320px;
    margin: auto;
    max-width: 100%;
}

.row-isotope .col {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 22px;
    width: 100%;
    flex: 0 0 auto;
}

/* Large: 4 columns */
.row-isotope.large-columns-4 > .col {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Medium: 3 columns */
@media (max-width: 1199px) {
    .row-isotope.large-columns-4 > .col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Small: 2 columns */
@media (max-width: 767px) {
    .row-isotope.large-columns-4 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gallery-header {
        padding: 10px 15px;
    }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
    .row-isotope.large-columns-4 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   Portfolio Box - Minimal Product Card
   ============================================ */
.portfolio-box {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    transition: none;
    height: 100%;
    border: 1px solid gainsboro;
    padding-bottom: 15px;
}

.portfolio-box:hover {
    box-shadow: none;
    transform: none;
    border-color: #43c47e;
}

/* Box Image Container */
.portfolio-box .box-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 0;
}

.portfolio-box .box-image .image-cover {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    border-radius: 0;
}

.portfolio-box .box-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-box:hover .box-image img {
    transform: scale(1.06);
}

/* Box Text Content - minimal */
.portfolio-box .box-text {
    padding: 12px 4px 4px;
    text-align: left;
    background: transparent;
    border-top: none;
}

.portfolio-box .box-text-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.portfolio-box-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.portfolio-box:hover .portfolio-box-title {
    color: #00af50;
}

.portfolio-box-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   Category Content Block
   ============================================ */
.portfolio-category-content {
    background: #fafafa;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid #eee;
}

.portfolio-category-content h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.portfolio-category-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   Compact Pagination
   ============================================ */
.portfolio-pagination {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    padding: 15px 0;
}

.portfolio-pagination nav {
    display: block;
}

/* Pagination List */
.portfolio-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Pagination Item */
.portfolio-pagination .page-item {
    display: inline-flex;
    margin: 0;
}

/* Pagination Link - nhỏ gọn */
.portfolio-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    line-height: 1;
}

.portfolio-pagination .page-item .page-link:hover {
    color: #fff;
    background: #00af50;
    border-color: #00af50;
    transform: none;
}

.portfolio-pagination .page-item .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 179, 75, 0.15);
}

/* Active / Current Page */
.portfolio-pagination .page-item.active .page-link {
    color: #fff !important;
    background: #00af50 !important;
    border-color: #00af50 !important;
    font-weight: 600;
}

/* Disabled State */
.portfolio-pagination .page-item.disabled .page-link {
    color: #bbb !important;
    background: #f8f8f8 !important;
    border-color: #e8e8e8 !important;
    cursor: not-allowed;
}

.portfolio-pagination .page-item.disabled .page-link:hover {
    color: #bbb !important;
    background: #f8f8f8 !important;
    border-color: #e8e8e8 !important;
}

/* Ellipsis */
.portfolio-pagination .page-item .page-link.ellipsis {
    color: #999;
    background: transparent;
    border-color: transparent;
    padding: 0 4px;
    min-width: 24px;
}

/* SVG Icons - smaller */
.portfolio-pagination .page-link svg {
    width: 11px;
    height: 11px;
}

/* Responsive Pagination */
@media (max-width: 767px) {
    .portfolio-pagination .page-item .page-link {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
    }

    .portfolio-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-sort-form {
        justify-content: flex-start;
    }

    .gallery-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .portfolio-pagination .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .portfolio-pagination .page-item .page-link {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }

    .portfolio-filter-nav a {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* ============================================
   Empty State
   ============================================ */
.portfolio-empty {
    text-align: center;
    padding: 70px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.portfolio-empty p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* ============================================
   Entrance Animations
   ============================================ */
.portfolio-box {
    opacity: 0;
    transform: translateY(15px);
    animation: portfolioFadeIn 0.4s ease forwards;
}

@keyframes portfolioFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delay */
.row-isotope .col:nth-child(1) .portfolio-box { animation-delay: 0.03s; }
.row-isotope .col:nth-child(2) .portfolio-box { animation-delay: 0.06s; }
.row-isotope .col:nth-child(3) .portfolio-box { animation-delay: 0.09s; }
.row-isotope .col:nth-child(4) .portfolio-box { animation-delay: 0.12s; }
.row-isotope .col:nth-child(5) .portfolio-box { animation-delay: 0.15s; }
.row-isotope .col:nth-child(6) .portfolio-box { animation-delay: 0.18s; }
.row-isotope .col:nth-child(7) .portfolio-box { animation-delay: 0.21s; }
.row-isotope .col:nth-child(8) .portfolio-box { animation-delay: 0.24s; }
.row-isotope .col:nth-child(9) .portfolio-box { animation-delay: 0.27s; }
.row-isotope .col:nth-child(10) .portfolio-box { animation-delay: 0.3s; }
.row-isotope .col:nth-child(11) .portfolio-box { animation-delay: 0.33s; }
.row-isotope .col:nth-child(12) .portfolio-box { animation-delay: 0.36s; }

/* ============================================
   Focus styles
   ============================================ */
.portfolio-pagination .page-item .page-link:focus-visible {
    outline: 2px solid #00af50;
    outline-offset: 1px;
}

.portfolio-filter-nav a:focus-visible {
    outline: 2px solid #00af50;
    outline-offset: 1px;
}

/* ============================================
   Product Detail Body - Long-form Content (mẫu dự án nội thất)
   ============================================ */

.product-detail-body {
    max-width: 100%;
    margin: 36px auto 0;
    padding: 0 4px;
    color: #333;
    font-size: 15px;
    line-height: 1.75;
}

.product-detail-body .product-body-content > h2:first-child,
.product-detail-body .product-body-content > h3:first-child {
    margin-top: 0;
}

.product-detail-body .product-body-content h2 {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #00af50;
    text-transform: none;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00af50;
}

.product-detail-body .product-body-content h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #133f74;
    margin: 26px 0 12px;
}

.product-detail-body .product-body-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 22px 0 10px;
}

.product-detail-body .product-body-content p {
    margin: 0 0 14px;
    color: #444;
}

.product-detail-body .product-body-content ul,
.product-detail-body .product-body-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.product-detail-body .product-body-content li {
    margin-bottom: 6px;
}

.product-detail-body .product-body-content a {
    color: #00af50;
    text-decoration: none;
}

.product-detail-body .product-body-content a:hover {
    text-decoration: underline;
}

/* Bảng metadata 2 cột (HẠNG MỤC / NỘI DUNG) — phong cách mẫu dự án */
.product-detail-body .product-body-content table,
.product-detail-body .product-body-content table.product-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
}

.product-detail-body .product-body-content table thead th {
    background: #fafafa;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #ececec;
    border-top: none;
}

.product-detail-body .product-body-content table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    border-top: none;
    vertical-align: top;
    color: #333;
    line-height: 1.6;
}

.product-detail-body .product-body-content table tbody tr:last-child td {
    border-bottom: none;
}

.product-detail-body .product-body-content table tbody td:first-child {
    color: #333;
    font-weight: 500;
    width: 32%;
    background: #fdfdfd;
}

/* Responsive bảng trên mobile */
@media (max-width: 600px) {
    .product-detail-body .product-body-content table,
    .product-detail-body .product-body-content table.product-meta-table {
        font-size: 13px;
    }

    .product-detail-body .product-body-content table thead th,
    .product-detail-body .product-body-content table tbody td {
        padding: 10px 12px;
    }

    .product-detail-body .product-body-content table tbody td:first-child {
        width: 38%;
    }
}

/* Ảnh trong body — full-width bo góc nhẹ */
.product-detail-body .product-body-content img,
.product-detail-body .product-body-content figure {
    max-width: 100%;
    height: auto;
}

.product-detail-body .product-body-content figure {
    margin: 18px 0;
}

.product-detail-body .product-body-content figure img {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-detail-body .product-body-content figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
    text-align: center;
    font-style: italic;
}

.product-detail-body .product-body-content img.aligncenter,
.product-detail-body .product-body-content img[class*="align"] {
    display: block;
    margin: 18px auto;
}

.product-detail-body .product-body-content blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: #f9fbf9;
    border-left: 3px solid #00af50;
    color: #444;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

/* ============================================
   Product Detail Page - 2 Column Hero + Body
   ============================================ */

/* Wrapper: breadcrumb */
.product-detail-breadcrumb-wrapper {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

/* Wrapper: hero */
.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0 0;
    background: #fff;
    align-items: start;
}

@media (max-width: 767px) {
    .product-detail-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 0 0;
    }
}

/* ============================================
   LEFT: Gallery
   ============================================ */
.product-detail-gallery {
    position: relative;
}

/* Flickity slider container */
.product-gallery-slider {
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

/* Each slide */
.gallery-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    min-height: 400px;
}

@media (max-width: 767px) {
    .gallery-slide {
        min-height: 280px;
    }
}

.gallery-slide a {
    display: block;
    width: 100%;
    text-align: center;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gallery-slide--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.gallery-slide--placeholder img {
    width: auto;
    max-height: 300px;
    opacity: 0.5;
}

/* Flickity: navigation arrows */
.product-gallery-slider .flickity-button {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.55) !important;
    border-radius: 50% !important;
    color: #fff !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-gallery-slider:hover .flickity-button {
    opacity: 1;
}

.product-gallery-slider .flickity-button:hover {
    background: rgba(41, 179, 75, 0.9) !important;
}

.product-gallery-slider .flickity-button svg {
    fill: #fff !important;
}

/* Thumbnail strip */
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.product-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumb-btn {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    padding: 0;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.65;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-btn:hover {
    opacity: 0.85;
    border-color: #ccc;
}

.thumb-btn.is-nav-selected {
    opacity: 1;
    border-color: #00af50;
}

/* ============================================
   RIGHT: Meta Panel
   ============================================ */
.product-detail-meta-panel {
    padding: 0 0 20px;
}

.product-detail-name {
    font-size: 26px;
    font-weight: 700;
    color: #133f74;
    margin: 0 0 16px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

@media (max-width: 767px) {
    .product-detail-name {
        font-size: 22px;
    }
}

.product-detail-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-detail-excerpt p {
    margin: 0 0 10px;
}

.product-detail-excerpt p:last-child {
    margin-bottom: 0;
}

/* Price block */
.product-detail-price-block {
    margin-bottom: 20px;
}

.product-price-sale {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: #d00;
}

.product-price-contact {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    font-style: italic;
}

/* Contact button */
.product-detail-contact {
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #00af50;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.contact-btn:hover {
    background: #1f8e3a;
    color: #fff;
    text-decoration: none;
}

.contact-btn i {
    font-size: 16px;
}

/* Share */
.product-detail-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.share-label {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
    font-weight: 500;
}

/* ============================================
   BODY: Full-width content
   ============================================ */
.product-detail-body-wrapper {
    background: #fff;
    padding: 40px 0;
    margin-top: 0;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.product-detail-related-wrapper {
    background: #f9f9f9;
    padding: 40px 0 50px;
}

.portfolio-related-title {
    font-size: 22px;
    font-weight: 700;
    color: #133f74;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.portfolio-related .col {
    margin-bottom: 0;
}

/* ============================================
   Video slide grid (from service)
   ============================================ */
#slide-video,
#ket_qua {
    max-width: 900px;
    margin: 0 auto;
}

#slide-video .item,
#ket_qua .item {
    margin-bottom: 30px;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Before/After result pairs */
.i-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.i-ba {
    text-align: center;
}

.i-img {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}

.i-img img {
    width: 100%;
    height: auto;
    display: block;
}

.i-text {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================
   Doc link
   ============================================ */
.product-detail-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #133f74;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.product-detail-doc-link:hover {
    background: #0f2d56;
    color: #fff;
    text-decoration: none;
}

/* Tech spec list */
.product-detail-techspec-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.product-detail-techspec-list li {
    margin-bottom: 8px;
    color: #444;
}

/* ============================================
   Video Grid Styles
   ============================================ */

/* Video cover with play icon overlay */
.video-cover {
    position: relative;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.portfolio-box:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video grid - 3 columns */
.row-isotope.large-columns-3 > .col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

@media (max-width: 991px) {
    .row-isotope.large-columns-3 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .row-isotope.large-columns-3 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Video item title link */
.portfolio-box-title a.plain {
    color: inherit;
    text-decoration: none;
}

.portfolio-box-title a.plain:hover {
    color: #00af50;
}

@media print {
    .portfolio-pagination { display: none; }
}
