/* ============ Page Banner ============ */
.page-banner { background: #f0f0f0; padding: 50px 0 40px; text-align: center; border-bottom: 1px solid #eee; }
.page-banner h1 { font-size: 30px; font-weight: 700; color: #434343; margin-bottom: 12px; letter-spacing: 2px; }
.breadcrumb { font-size: 13px; color: #888; }
.breadcrumb a { color: #434343; font-weight: 600; text-decoration: underline; }
.breadcrumb a:hover { color: #F5A623; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: #888; }

/* ============ Detail Layout ============ */
.detail-main { padding: 40px 0 60px; }
.detail-layout { display: flex; gap: 30px; }

/* ============ Sidebar ============ */
.products-sidebar { position: sticky; top: 110px; align-self: flex-start; }
.sidebar-search { display: flex; border: 1px solid #ddd; border-radius: 2px; overflow: hidden; margin-bottom: 25px; }
.sidebar-search input { flex: 1; border: none; padding: 10px 14px; font-size: 13px; font-family: inherit; color: #434343; outline: none; }
.sidebar-search input::placeholder { color: #bbb; }
.sidebar-search button { background: #fff; border: none; padding: 0 14px; color: #888; cursor: pointer; font-size: 14px; transition: color .3s; }
.sidebar-search button:hover { color: #F5A623; }
.sidebar-categories h3 { font-size: 16px; font-weight: 700; color: #434343; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 2px solid #eee; display: flex; align-items: center; gap: 8px; }
.sidebar-categories h3 span { width: 3px; height: 16px; background: #F5A623; display: inline-block; }
.category-list { padding: 0; margin: 0; }
.category-list > li { border-bottom: 1px solid #f0f0f0; }
.category-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 14px; color: #434343; font-weight: 500; transition: color .3s; position: relative; }
.category-list > li > a::after { content: '\f105'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 12px; color: #bbb; transition: transform .3s, color .3s; }
.category-list > li.open > a::after { transform: rotate(90deg); }
.category-list > li > a:hover, .category-list > li > a.active { color: #F5A623; }
.category-list > li > a:hover::after, .category-list > li > a.active::after { color: #F5A623; }
.sub-category { display: none; padding: 0 0 8px 18px; }
.category-list > li.open .sub-category { display: block; }
.sub-category li a { display: block; padding: 5px 0; font-size: 13px; color: #888; transition: color .3s; }
.sub-category li a:hover, .sub-category li a.active { color: #F5A623; }

/* ============ Detail Content ============ */
.detail-content { flex: 1; }

/* Product Top Section */
.product-top-section { display: flex; gap: 30px; margin-bottom: 40px; }

/* Product Image with Banners */
.product-image-wrap { flex: 0 0 400px; cursor: pointer;}
.image-banner-top { background: #0099cc; color: #fff; text-align: center; padding: 10px; font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.image-main { background: #f9f9f9; display: flex; align-items: center; justify-content: center; height: 320px; cursor: zoom-in; transition: opacity .3s; }
.image-main:hover { opacity: .9; }
.image-main img { max-height: 300px; max-width: 380px; }
.image-banner-bottom { background: #0099cc; color: #fff; display: flex; justify-content: center; gap: 20px; padding: 10px; font-size: 13px; }
.image-banner-bottom span { position: relative; }
.image-banner-bottom span:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 1px; height: 14px; background: rgba(255,255,255,.5); }

/* Product Info Simple */
.product-info-simple { flex: 1; }
.info-row { display: flex; margin-bottom: 15px; font-size: 14px; line-height: 1.6; }
.info-label { flex: 0 0 50px; font-weight: 600; color: #434343; }
.info-value { flex: 1; color: #666; }
.info-intro { align-items: flex-start; }
.info-intro .info-value { line-height: 1.8; text-align: justify; }

/* Product Detail Description */
.product-detail-desc { border-top: 1px solid #eee; padding-top: 30px; }
.product-detail-desc p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 15px; text-indent: 2em; }
.feature-title { font-size: 16px; font-weight: 700; color: #434343; margin: 25px 0 15px; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 8px; padding-left: 20px; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: #0099cc; border-radius: 50%; }

/* ============ Add to Cart ============ */
.info-cart { display: flex; align-items: center; gap: 15px; margin-top: 10px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.info-cart .qty-control { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 2px; overflow: hidden; }
.info-cart .qty-btn { width: 30px; height: 30px; background: #f9f9f9; border: none; font-size: 14px; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .3s; }
.info-cart .qty-btn:hover { background: #eee; }
.info-cart .qty-input { width: 44px; height: 30px; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; font-size: 13px; color: #434343; font-family: inherit; outline: none; -moz-appearance: textfield; appearance: textfield; }
.info-cart .qty-input::-webkit-outer-spin-button,
.info-cart .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add-cart { padding: 8px 24px; background: #F5A623; border: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 2px; transition: background .3s; font-family: inherit; white-space: nowrap; }
.btn-add-cart:hover { background: #e09500; }
.btn-add-cart i { margin-right: 4px; }

/* Toast */
.cart-toast { position: fixed; top: 80px; right: 30px; background: #27ae60; color: #fff; padding: 12px 24px; border-radius: 4px; font-size: 14px; font-weight: 500; z-index: 10000; opacity: 0; transform: translateX(30px); transition: all .3s; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.cart-toast.show { opacity: 1; transform: translateX(0); }
.cart-toast i { margin-right: 6px; }

/* ============ Lightbox ============ */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s; }
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.8); }
.lightbox-content { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; display: block; }
.lightbox-close { position: absolute; top: -40px; right: 0; width: 36px; height: 36px; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }

/* ============ Responsive ============ */
@media (max-width: 992px) {
    .detail-layout { flex-direction: column; }
    .products-sidebar { flex: none; }
    .product-top-section { flex-direction: column; }
    .product-image-wrap { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 576px) {
    .image-main { height: 250px; }
    .image-banner-bottom { flex-wrap: wrap; gap: 10px; font-size: 12px; }
    .info-row { flex-direction: column; }
    .info-label { margin-bottom: 5px; }
}
