body {
    font-family: var(--body-font) !important;
}
.product-gallery {
    position: relative;
}
.gallery-main {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-orange);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
}
.product-price .original {
    font-size: 1.25rem;
    color: #6b7280;
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: normal;
}
.product-meta {
    display: flex;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 1rem 0;
}
.product-detail {
    line-height: 1.8;
    color: #374151;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 2rem;
}
.product-detail img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 1rem auto;
}
.product-detail pre,
.product-detail code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-width: 100%;
}
.product-detail table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}
.product-detail p,
.product-detail div {
    max-width: 100%;
}
.options-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #f9fafb;
}
.options-container::-webkit-scrollbar {
    width: 6px;
}
.options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.options-container::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 3px;
}
.options-search {
    position: relative;
    margin-bottom: 1rem;
}
.options-search input {
    padding-left: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.options-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (max-width: 576px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}
.stock-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    font-size: 0.85rem;
}
.stock-option:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}
.stock-option.selected {
    border-color: var(--primary-orange);
    background: rgba(249, 115, 22, 0.08);
}
.stock-option .option-name {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.stock-option .price {
    font-weight: 600;
    color: var(--primary-orange);
    font-size: 0.9rem;
}
.stock-option .stock-qty {
    font-size: 0.75rem;
}
.stock-option.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
}
.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.options-count {
    font-size: 0.8rem;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}
.related-products {
    margin-top: 3rem;
}
.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
/* Platform Buy Buttons */
.platform-links .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}
.platform-links .btn img {
    width: 20px;
    height: 20px;
}
.btn-shopee {
    background: #EE4D2D;
    color: white;
    border: none;
}
.btn-shopee:hover {
    background: #D73211;
    color: white;
}
.btn-lazada {
    background: #0F146D;
    color: white;
    border: none;
}
.btn-lazada:hover {
    background: #0A0E4A;
    color: white;
}
.btn-tiktok {
    background: #000000;
    color: white;
    border: none;
}
.btn-tiktok:hover {
    background: #333333;
    color: white;
}
.btn-facebook {
    background: #1877F2;
    color: white;
    border: none;
}
.btn-facebook:hover {
    background: #0D65D9;
    color: white;
}
.btn-line {
    background: #00B900;
    color: white;
    border: none;
}
.btn-line:hover {
    background: #009900;
    color: white;
}
.btn-website {
    background: #6B7280;
    color: white;
    border: none;
}
.btn-website:hover {
    background: #4B5563;
    color: white;
}
