/*
Theme Name: TuBachPhat
Theme URI: http://example.com
Description: Theme for TuBachPhat account trading
Version: 1.0.0
Author: Your Name
Author URI: http://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tubachphat
Domain Path: /languages
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B5B;
    --secondary-color: #1a1f3a;
    --accent-color: #FFB800;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #5ab873;
}

html,
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-branding img {
    display: none !important;
}

.site-branding .heart-icon {
    font-size: 28px;
    color: var(--accent-color);
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.site-title a {
    color: var(--accent-color);
}

.phone-contact {
    background: var(--light-bg);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 13px;
}

.main-navigation {
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 0 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.primary-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
}

.primary-menu a:hover {
    color: var(--primary-color);
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Promo Layout */
.tbp-promo-layout {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 28px;
    overflow: hidden;
}

.tbp-promo-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

.tbp-promo-banner-card {
    min-height: 270px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.tbp-promo-banner-card--profile {
    display: grid;
    grid-template-rows: 1fr auto;
}

.tbp-promo-cover {
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 107, 91, 0.32) 0, rgba(255, 107, 91, 0) 45%),
        linear-gradient(135deg, #1f2937 0%, #374151 60%, #111827 100%);
    display: flex;
    min-height: 170px;
    padding: 0;
    overflow: hidden;
}

.tbp-promo-avatar-wrap {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.tbp-promo-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbp-promo-profile-text {
    padding: 12px 14px 14px;
}

.tbp-promo-profile-text h3 {
    font-size: 24px;
    line-height: 1.2;
    color: #111827;
}

.tbp-promo-profile-text p {
    margin-top: 6px;
    color: #4b5563;
    font-size: 15px;
}

.tbp-promo-banner-card--qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        linear-gradient(135deg, #f9fafb 0%, #eef2f7 100%);
}

.tbp-promo-qr-label {
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.tbp-promo-qr-box {
    width: 176px;
    height: 176px;
    border-radius: 10px;
    border: 8px solid #111827;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.14) 50%, transparent 50%),
        linear-gradient(rgba(0, 0, 0, 0.14) 50%, transparent 50%);
    background-size: 14px 14px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    overflow: hidden;
}

.tbp-promo-qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbp-promo-qr-contact {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.tbp-promo-banner-card--ad {
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.88), rgba(153, 27, 27, 0.95)),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 50%);
    color: #fff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.tbp-promo-banner-card--ad p {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.tbp-promo-banner-card--ad h3 {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.2;
    color: #fde68a;
}

.tbp-promo-banner-card--ad strong {
    font-size: 42px;
    line-height: 1;
    color: #fff;
}

.tbp-promo-info {
    display: flex;
    gap: 22px;
    padding: 18px 18px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.tbp-promo-info-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #f3f4f6;
    object-fit: cover;
    flex-shrink: 0;
}

.tbp-promo-info-content h2 {
    font-size: 42px;
    line-height: 1.1;
    color: #0f172a;
}

.tbp-promo-info-content p {
    font-size: 28px;
    color: #475569;
    margin-top: 7px;
}

.tbp-promo-info-content p i {
    width: 28px;
    color: #334155;
}

.tbp-promo-hotline {
    color: #e11d48 !important;
    font-weight: 800;
}

.tbp-promo-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.tbp-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    min-width: 190px;
}

.tbp-promo-btn--zalo {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.tbp-promo-btn--facebook {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tbp-promo-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

@media (max-width: 1100px) {
    .tbp-promo-banner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tbp-promo-banner-card--ad {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .tbp-promo-banner-card--ad p {
        font-size: 20px;
    }

    .tbp-promo-banner-card--ad strong {
        font-size: 34px;
    }

    .tbp-promo-info-content h2 {
        font-size: 32px;
    }

    .tbp-promo-info-content p {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .tbp-promo-layout {
        border-radius: 10px;
        margin-bottom: 18px;
    }

    .tbp-promo-banner-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .tbp-promo-banner-card {
        min-height: 170px;
    }

    .tbp-promo-cover {
        min-height: 150px;
    }

    .tbp-promo-profile-text h3 {
        font-size: 18px;
        line-height: 1.25;
    }

    .tbp-promo-profile-text p {
        font-size: 13px;
        line-height: 1.45;
    }

    .tbp-promo-qr-box {
        width: 142px;
        height: 142px;
    }

    .tbp-promo-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 14px 18px;
    }

    .tbp-promo-info-avatar {
        width: 104px;
        height: 104px;
    }

    .tbp-promo-info-content h2 {
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .tbp-promo-info-content p {
        font-size: 14px;
        margin-top: 6px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .tbp-promo-info-content p i {
        width: auto;
        margin-right: 4px;
    }

    .tbp-promo-btn {
        width: 100%;
        min-width: 0;
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 640px) {
    .tbp-promo-banner-grid {
        padding: 10px;
        gap: 10px;
    }

    .tbp-promo-banner-card {
        min-height: 180px;
        border-radius: 10px;
    }

    .tbp-promo-cover {
        min-height: 130px;
    }

    .tbp-promo-profile-text {
        padding: 10px 12px 12px;
    }

    .tbp-promo-profile-text h3 {
        font-size: 18px;
    }

    .tbp-promo-banner-card--qr {
        padding: 12px;
    }

    .tbp-promo-qr-label {
        font-size: 15px;
        margin-bottom: 9px;
    }

    .tbp-promo-qr-box {
        width: 126px;
        height: 126px;
        border-width: 6px;
    }

    .tbp-promo-qr-contact {
        font-size: 15px;
        margin-top: 10px;
    }

    .tbp-promo-banner-card--ad {
        padding: 16px 14px;
        gap: 4px;
    }

    .tbp-promo-banner-card--ad p {
        font-size: 13px;
        line-height: 1.35;
    }

    .tbp-promo-banner-card--ad h3 {
        font-size: 15px;
        margin-top: 4px;
    }

    .tbp-promo-banner-card--ad strong {
        font-size: clamp(22px, 8vw, 26px);
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .tbp-promo-info {
        gap: 12px;
        padding: 14px 12px 16px;
    }

    .tbp-promo-info-avatar {
        width: 90px;
        height: 90px;
    }

    .tbp-promo-info-content h2 {
        font-size: 18px;
    }

    .tbp-promo-info-content p {
        font-size: 13px;
    }

    .tbp-promo-actions {
        margin-top: 10px;
        gap: 8px;
    }

    .tbp-promo-btn {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
    }
}

@media (max-width: 420px) {
    .tbp-promo-layout {
        border-radius: 8px;
    }

    .tbp-promo-banner-grid {
        padding: 8px;
        gap: 8px;
    }

    .tbp-promo-cover {
        min-height: 115px;
    }

    .tbp-promo-profile-text h3 {
        font-size: 16px;
    }

    .tbp-promo-profile-text p {
        font-size: 13px;
    }

    .tbp-promo-qr-label {
        font-size: 14px;
    }

    .tbp-promo-qr-box {
        width: 112px;
        height: 112px;
    }

    .tbp-promo-banner-card--ad p {
        font-size: 12px;
    }

    .tbp-promo-banner-card--ad h3 {
        font-size: 13px;
    }

    .tbp-promo-banner-card--ad strong {
        font-size: 20px;
    }

    .tbp-promo-info-content h2 {
        font-size: 17px;
    }

    .tbp-promo-info-content p {
        font-size: 12px;
    }

    .tbp-promo-btn {
        font-size: 13px;
        padding: 9px 10px;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title .icon {
    font-size: 32px;
}

.page-badge {
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* Search Section */
.search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.search-box {
    flex: 1;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #ff5a4a;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1 1 150px;
    max-width: 190px;
    justify-content: center;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:not(.active) {
    background: var(--secondary-color);
    color: white;
}

.tab-btn:not(.active):hover {
    opacity: 0.8;
}

.tab-icon {
    font-size: 18px;
}

/* Price Tags */
.price-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    max-width: 100%;
}

.price-tag {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.price-tag.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 107, 91, 0.05);
}

.price-tag:hover {
    border-color: var(--primary-color);
}

.price-tag-icon {
    font-size: 12px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
    z-index: 5;
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    overflow: visible;
    background: #f5f5f5;
    aspect-ratio: auto;
    display: block;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: unset;
    transition: transform 0.35s ease;
    display: block;
    border-radius: 8px 8px 0 0;
}

.product-image-link:hover .product-image img {
    transform: scale(1.18);
    z-index: 6;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

/* space inside card so content doesn't stick to edges */
.product-info {
    padding: 15px 20px;
}

/* product info enhancements */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-title {
    font-size: 16px;
    color: var(--text-dark);
    min-height: 40px;
}

.product-title a {
    color: var(--text-dark);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-row {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    margin: 8px 0;
}

/* indent rows slightly so content isn't flush with card edge */
.code-row,
.price-status-row {
    padding-left: 10px;
}

/* price and status on same row */
.price-status-row {
    align-items: center;
}

.price-status-row .product-price {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.price-status-row .price-label {
    color: var(--text-light);
    margin-right: 4px;
}

.price-status-row .price-value {
    color: var(--primary-color);
    font-weight: 700;
}

.price-status-row .product-status {
    margin-left: auto;
}

.price-status-row .product-status {
    font-size: 12px;
    padding: 4px 8px;
}

.price-row .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-id {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-status {
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 10px;
    margin-bottom: 5px;
}

.product-id {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.product-id-label {
    color: var(--text-light);
}

.product-id-value {
    font-weight: bold;
    color: var(--text-dark);
}

.copy-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-status {
    display: inline-block;
    background: #e8f5e9;
    color: var(--success-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    padding: 18px 20px;
    margin-top: 28px;
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-info p {
    margin: 0;
}

.site-info-title {
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.site-info-contact {
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
}

.site-info-contact span {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 768px) {
    .site-info-title,
    .site-info-contact {
        font-size: 16px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a {
    cursor: pointer;
    color: var(--text-dark);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .site-title {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 15px;
    }

    .page-title {
        font-size: 22px;
    }

    .price-tags {
        justify-content: center;
    }

    .primary-menu {
        gap: 15px;
        font-size: 13px;
    }
}

/* Single Product Page Styles */
.product-header-info {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    flex: 1;
}

.header-row {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-row:last-child {
    margin-bottom: 0;
}

.header-label {
    color: var(--text-light);
    font-size: 13px;
}

.header-value {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 15px;
}

.header-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.back-btn {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-gallery {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 12px 0;
    width: 100%;
    padding: 0;
    text-align: center;
    overflow: visible;
    position: relative;
}

.single-product-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
    transform-origin: center;
    cursor: zoom-in;
}

.product-gallery:hover .single-product-image {
    transform: scale(1.12);
    z-index: 20;
    position: relative;
}

.no-image-notice {
    padding: 20px;
    background: #ffecec;
    color: #a94442;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
    font-style: italic;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 150px;
}

.actions-header {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.action-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-copy {
    background: var(--primary-color);
    color: white;
}

.btn-copy:hover {
    background: #ff5a4a;
}

.btn-contact {
    background: #0084ff;
    color: white;
}

.btn-contact:hover {
    background: #0073e6;
}

.product-description {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: var(--text-dark);
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 15px;
}

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

/* Product Gallery Wrapper */
.product-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Product Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 107, 91, 0.3);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .site-main {
        padding: 12px;
    }

    .page-header {
        margin-bottom: 16px;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-badge {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .search-section {
        margin-bottom: 16px;
    }

    .search-box {
        flex-direction: column;
        gap: 8px;
    }

    .search-box input,
    .search-btn {
        width: 100%;
        border-radius: 8px;
    }

    .search-btn {
        padding: 11px 14px;
    }

    .tab-navigation {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 10px;
        padding-bottom: 0;
        margin-bottom: 18px;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 10px);
        padding: 10px 14px;
        font-size: 13px;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .product-info {
        padding: 12px 12px 14px;
    }

    .code-row,
    .price-status-row {
        padding-left: 0;
    }

    .product-id {
        flex-wrap: wrap;
        gap: 6px;
    }

    .price-status-row .product-price {
        font-size: 16px;
    }

    .product-status {
        margin-right: 0;
        margin-bottom: 0;
    }

    .pagination {
        margin: 24px 0 12px;
        gap: 6px;
    }

    .pagination a,
    .pagination span {
        padding: 7px 10px;
        font-size: 12px;
    }

    .product-header-info {
        padding: 14px;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-row {
        margin-bottom: 8px;
    }

    .header-price {
        font-size: 16px;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
    }

    .product-gallery {
        margin: 8px 0;
        overflow: hidden;
    }

    .product-gallery:hover .single-product-image,
    .product-image-link:hover .product-image img {
        transform: none;
    }

    .single-product-image {
        cursor: default;
    }

    .product-thumbnails {
        gap: 8px;
        padding: 8px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .product-thumbnail {
        width: 64px;
        height: 64px;
        flex: 0 0 auto;
    }

    .product-description {
        padding: 14px;
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 18px;
    }

    .header-top {
        padding: 0 12px;
    }

    .main-navigation {
        padding: 0 12px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .primary-menu {
        gap: 10px;
        font-size: 12px;
    }

    .page-title {
        font-size: 24px;
    }

    .tab-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .copy-btn {
        font-size: 10px;
        padding: 3px 7px;
    }
}

/* Floating Action Bar */
body {
    padding-bottom: 110px;
}

.floating-action-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(32, 32, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 10px 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.fab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.fab-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: transform 0.25s ease;
}

.fab-item:nth-child(1) .fab-icon { color: #0b84ff; }
.fab-item:nth-child(4) .fab-icon { color: #ef4444; }

@keyframes fab-phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(0deg); }
}

.fab-item:last-child .fab-icon i {
    animation: fab-phone-ring 2.8s ease-in-out infinite;
    transform-origin: 65% 35%;
}

.fab-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.fab-item:hover {
    color: #f2a900;
}

.fab-item:hover .fab-icon {
    transform: translateY(-4px) scale(1.18);
}

.fab-item:last-child:hover .fab-icon i {
    animation-duration: 2s;
}

.fab-item:hover .fab-label {
    color: #f2a900;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 104px;
    }

    .floating-action-bar {
        width: calc(100% - 24px);
        max-width: 420px;
        gap: 8px;
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: 22px;
        bottom: 12px;
    }

    .fab-item {
        font-size: 10px;
        min-width: 64px;
    }

    .fab-icon {
        width: 28px;
        height: 28px;
        font-size: 17px;
    }
}
