/* ==================== CATEGORY PAGE SPECIFIC STYLES ==================== */

/* Hero Section */
.category-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 6rem 1rem 5rem;
    overflow: hidden;
}

.category-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: baseline;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.category-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

/* Product Card - Category Specific */
.category-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--muted);
    color: var(--muted-fg);
    font-size: 2rem;
}

.product-card-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .55s ease;
}

.product-card-slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: opacity 0.4s ease;
}

/* Disable scale on slider hover */
.product-card:hover .product-card-slider-track img {
    transform: none !important;
}

/* Hide "Liên hệ" text and border line */
.product-card-price {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Product Card Specs with Images */
.product-card-specs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    flex: 1;
    min-width: 100px;
}

.spec-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.spec-value {
    font-weight: 500;
    color: var(--fg);
}

/* Mobile optimization for specs */
@media (max-width: 640px) {
    .product-card-specs {
        gap: 10px;
        margin-top: 10px;
    }

    .spec-item {
        font-size: 0.8rem;
    }

    .spec-icon {
        width: 24px;
        height: 24px;
    }
}

/* Category Intro Section */
.category-intro-section {
    background-color: var(--muted);
    border-top: 1px solid var(--border);
}

.category-description-content {
    max-width: 1300px;
    margin: 0 auto;
    color: #334155;
    line-height: 1.85;
    font-size: 1.05rem;
}

.category-description-content h2,
.category-description-content h3,
.category-description-content h4 {
    color: var(--fg);
    font-weight: 600;
    margin: 2.25rem 0 1rem;
    line-height: 1.3;
}

.category-description-content h2 {
    font-size: 1.45rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.category-description-content h3 {
    font-size: 1.25rem;
}

.category-description-content h4 {
    font-size: 1.1rem;
}

.category-description-content p {
    margin-bottom: 1.5rem;
}

.category-description-content p strong {
    color: var(--fg);
}

.category-description-content ul,
.category-description-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.category-description-content ul {
    list-style-type: disc;
}

.category-description-content ol {
    list-style-type: decimal;
}

.category-description-content li {
    margin-bottom: 0.5rem;
}

.category-description-content strong,
.category-description-content b {
    color: var(--fg);
}

.category-description-content blockquote {
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    padding: 1.25rem 1.75rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
}

.category-description-content blockquote p {
    margin-bottom: 0;
}

.category-description-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 2.5rem auto;
    display: block;
}

.category-description-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.category-description-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.category-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.category-description-content th,
.category-description-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.category-description-content th {
    background-color: var(--muted);
    color: var(--fg);
    font-weight: 600;
}

.category-description-content tr:nth-child(even) {
    background-color: #f8fafc;
}

.category-empty {
    text-align: center;
    padding: 4rem 1rem;
    border-radius: 1rem;
    border: 1.5px dashed var(--border);
    background: var(--muted);
}

.category-empty i {
    font-size: 3rem;
    color: var(--muted-fg);
    margin-bottom: 1rem;
}

.category-empty h3 {
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--fg);
}

.category-empty p {
    color: var(--muted-fg);
    margin-bottom: 0;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Product Grids */
.category-children-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.category-products-grid {
    display: grid;
    gap: 1.3rem;
    grid-template-columns: 1fr;
}

/* Responsive */
@media (min-width: 640px) {
    .category-children-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .category-hero {
        padding: 8rem 1.5rem 6rem;
    }

    .category-title {
        font-size: 2.6rem;
    }

    .category-children-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-hero {
        padding: 10rem 2rem 7rem;
    }

    .category-title {
        font-size: 3.2rem;
    }

    .category-cta {
        gap: 1rem;
    }

    .category-children-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Product Card Category Name */
.product-card-category {
    font-size: 0.8rem;
    color: var(--muted-fg);
    margin-bottom: 0.5rem;
}

/* Category Hero Wrapper & Small Thumbnail Layout */
.category-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    width: 100%;
}

.category-hero-image-small {
    flex-shrink: 0;
}

.category-hero-image-small img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 3px solid #ffffff;
    display: block;
    transition: transform 0.3s ease;
}

.category-hero-image-small img:hover {
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .category-hero-wrapper {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .category-hero-image-small img {
        width: 100px;
        height: 100px;
    }
}

/* Category Explore Section - 4 Columns on Desktop */
.category-explore-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 540px) {
    .category-explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .category-explore-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .category-explore-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* ==================== CATEGORY SUGGESTIONS STYLES ==================== */
.category-suggestions-section {
    background: var(--muted);
    border-top: 1px solid var(--border);
}

.category-suggest-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: var(--fg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.category-suggest-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -4px rgba(17, 115, 212, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.category-suggest-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f8fafc;
}

.category-suggest-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-suggest-card:hover .category-suggest-img-wrap img {
    transform: scale(1.05);
}

.category-suggest-body {
    padding: 1.1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    background: #ffffff;
}

.category-suggest-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fg);
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-suggest-card:hover .category-suggest-title {
    color: var(--primary);
}

/* ==================== FOREIGN VISITOR CONTACT SECTION ==================== */
.foreign-contact-section {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.foreign-contact-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(17, 115, 212, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(17, 115, 212, 0.05);
    padding: 3.5rem 2.5rem;
    overflow: hidden;
}

.foreign-contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1173d4, #06b6d4, #3b82f6);
}

.foreign-contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.foreign-badge-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(17, 115, 212, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    color: var(--primary);
    font-size: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 0 8px rgba(17, 115, 212, 0.05);
}

.foreign-contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.foreign-contact-subtitle {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.foreign-contact-desc {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0 auto;
}

/* 3 Quick Cards */
.foreign-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 850px) {
    .foreign-methods-grid {
        grid-template-columns: 1fr;
    }
}

.foreign-method-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.foreign-method-item:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px -5px rgba(17, 115, 212, 0.12);
}

.foreign-method-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(17, 115, 212, 0.1);
    color: var(--primary);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.foreign-method-item:hover .foreign-method-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: #ffffff;
}

.foreign-method-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.foreign-phones-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.foreign-method-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.2s;
}

.foreign-method-val:hover {
    color: var(--primary);
}

.foreign-method-sub {
    font-size: 0.825rem;
    color: var(--muted-foreground);
    margin-top: 0.35rem;
}

/* Action Banner */
.foreign-action-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(17, 115, 212, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(17, 115, 212, 0.2);
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .foreign-action-box {
        flex-direction: column;
        text-align: center;
    }
}

.foreign-action-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.foreign-action-text p {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin: 0;
}

.foreign-action-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.foreign-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff !important;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(17, 115, 212, 0.35);
}

.foreign-btn-primary:hover {
    background: #0d5cb1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 115, 212, 0.45);
}

.foreign-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--fg) !important;
    border: 1px solid var(--border);
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.foreign-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

