/* Extracted from product-detail.php: $pageCSS block */
.product-detail-hero {
    padding: 24px 0 16px;
    background: #ffffff;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.product-detail-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.05\"%3E%3Ccircle cx=\"30\" cy=\"30\" r=\"2\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.product-gallery { position: relative; }

.gallery-grid {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
}
.thumb-rail {
    height: 90vh;
    max-height: 960px;
    overflow-y: auto;
    padding-right: 4px;
}
.thumb-rail .thumbnail {
    width: 100%;
    height: 84px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}
.thumb-rail .thumbnail.active { border-color: var(--primary-color); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.main-view { position: relative; }
.main-image {
    width: 100%;
    height: 90vh;
    max-height: 960px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 6px 0;
}

.thumbnail {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    background: #fff;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.product-info {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: visible;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.2px;
    margin-bottom: 12px;
}

.product-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 8px 0 16px;
}

.meta-row {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-color); }

.product-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
}

.product-features {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin: 10px 0 18px;
}

.btn-inquiry {
    background: var(--primary-color);
    color: white;
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-inquiry:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn-share {
    background: #fff;
    color: var(--text-dark);
    padding: 14px 22px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-share:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-tabs { margin: 36px 0 48px; }
.nav-tabs { border-bottom: 2px solid var(--border-color); margin-bottom: 24px; }
.nav-tabs .nav-link { border: none; color: var(--text-light); font-weight: 600; padding: 12px 20px; border-radius: 0; position: relative; }
.nav-tabs .nav-link.active { color: var(--primary-color); background: none; border: none; }
.nav-tabs .nav-link.active::after { content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary-color); }
.tab-content { padding: 20px 0; }

.specifications-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.specifications-table th,
.specifications-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.specifications-table th { background: #f8f9fa; font-weight: 600; width: 30%; }

.product-card-small { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: box-shadow 0.25s ease; height: 100%; }
.product-card-small:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.10); }
.product-card-small .product-image { aspect-ratio: 3 / 4; overflow: hidden; background: #f3f4f6; }
.product-card-small .product-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card-small .product-content { padding: 14px 16px; }
.product-card-small .product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.product-card-small .product-btn { padding: 8px 12px; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 8px; font-size: 0.9rem; text-decoration: none; transition: all 0.2s ease; }
.product-card-small .product-btn:hover { background: var(--primary-color); color: #fff; }

.breadcrumb { background: none; padding: 20px 0; margin-bottom: 0; }
.breadcrumb-item a { color: var(--text-light); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary-color); }
.breadcrumb-item.active { color: var(--text-dark); }

@media (max-width: 768px) {
    .product-title { font-size: 2rem; }
    .product-detail-hero { padding-top: 84px; }
    .main-image { height: 300px; }
    .action-buttons { flex-direction: column; }
    .btn-inquiry, .btn-share { text-align: center; justify-content: center; }
    .product-detail-hero > .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .product-detail-hero .product-info {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
    .pd-highlights > .container,
    .ci-section > .container,
    .related-products > .container,
    .pd-cta > .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.description-gallery { margin-top: 20px; }
.description-gallery-title { font-weight: 600; color: var(--text-dark); margin-bottom: 12px; }
.description-gallery-grid { display: flex; flex-direction: column; gap: 16px; }
.description-gallery .dg-item { position: relative; border-radius: 12px; overflow: hidden; background: #ffffff; cursor: zoom-in; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.description-gallery .dg-item img { width: 100%; height: auto; max-height: 720px; object-fit: contain; display: block; background: #f8f9fa; }
.description-gallery .dg-item:hover img { filter: brightness(0.97); }
@media (max-width: 768px) { .description-gallery .dg-item img { max-height: 420px; } .gallery-grid { display: block; } .thumb-rail { display: flex; gap: 10px; height: auto; max-height: none; padding-right: 0; margin-bottom: 12px; } .thumb-rail .thumbnail { width: 74px; height: 74px; margin-bottom: 0; } .main-image { height: 60vh; } .product-info { top: 60px; max-height: none; } }

.image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.image-grid .grid-item { position: relative; border-radius: 12px; overflow: hidden; background: #ffffff; border: 1px solid var(--border-color); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.image-grid .grid-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f8f9fa; }

.info-card { position: relative; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border-color); background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); box-shadow: 0 10px 24px rgba(0,0,0,0.06); margin: 22px 0 16px; }
.info-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--primary-color), var(--accent-color)); opacity: 0.95; border-radius: 4px 0 0 4px; }
.info-card .card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); letter-spacing: 0.02em; margin-bottom: 12px; }
.info-card .card-content { color: var(--text-light); line-height: 1.75; }
.info-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.info-card .specifications-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.info-card .specifications-table th, .info-card .specifications-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border-color); }
.info-card .specifications-table th { background: #f3f4f6; font-weight: 600; width: 32%; color: var(--text-dark); }
.info-card .specifications-table td { color: var(--text-light); }

.info-section { margin-top: 0; }
.info-section h5 { font-weight: 700; margin-bottom: 12px; }
.info-section .content { color: var(--text-dark); }
.specifications-table { margin-top: 12px; }
@media (max-width: 768px) { .image-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
