/* Ranking Page Styles - PC Version */
/* Direct migration from: 站点模版/folding-bed-website-pc/ranking.css */

.ranking-page {
    padding: 30px 0 60px;
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
}

.ranking-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 24px;
    margin-bottom: 40px;
}

.ranking-sidebar {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.ranking-sidebar h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-sidebar h3 i {
    color: #f59e0b;
}

.country-list {
    list-style: none;
}

.country-item {
    margin-bottom: 4px;
}

.country-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #475569;
    border-radius: 8px;
    transition: all 0.2s;
}

.country-item a:hover {
    background-color: #f8fafc;
}

.country-item.active a {
    background-color: #eff6ff;
    color: #1e40af;
}

.country-item img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.country-item span {
    font-size: 14px;
    font-weight: 500;
}

.country-badge {
    margin-left: auto;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.country-item.active .country-badge {
    color: #3b82f6;
}

.ranking-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-text {
    font-size: 20px;
    font-weight: 700;
    color: #92400e;
}

.btn-shop-now {
    background-color: #1e293b;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-shop-now:hover {
    background-color: #334155;
}

.main-product {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-image-main {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.product-details {
    padding: 24px;
}

.product-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
}

.original-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.promo-info {
    font-size: 14px;
    color: #16a34a;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 14px;
}

.rating-text {
    font-size: 14px;
    color: #64748b;
}

.product-advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.advantage-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 12px;
    color: #166534;
    font-weight: 500;
}

.advantage-tag i {
    font-size: 11px;
    color: #22c55e;
}

.product-actions {
    display: flex;
    gap: 12px;
}

.btn-view-details-main,
a.btn-view-details-main {
    flex: 1;
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-view-details-main:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-add-cart-main {
    flex: 1;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart-main:hover {
    background-color: #1d4ed8;
}

.btn-add-cart-main::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
}

.ranking-recommended {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.ranking-recommended h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommended-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    padding: 12px;
    transition: box-shadow 0.3s;
}

.recommended-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rec-image {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.rec-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
}

.rec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.rec-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: #eff6ff;
    border-radius: 4px;
    font-size: 11px;
    color: #2563eb;
    font-weight: 500;
}

.rec-tag i {
    font-size: 10px;
}

.rec-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 10px;
}

.rec-actions {
    display: flex;
    gap: 8px;
}

.btn-view-details-rec {
    flex: 1;
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-details-rec:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-add-cart-rec {
    flex: 1;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-add-cart-rec:hover {
    background-color: #1d4ed8;
}

.btn-add-cart-rec::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
}

.more-sellers {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.more-sellers h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.seller-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    padding: 12px;
    position: relative;
    transition: box-shadow 0.3s;
}

.seller-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.seller-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #1e293b;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.seller-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.seller-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.seller-price {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
}

@media (max-width: 1200px) {
    .ranking-layout {
        grid-template-columns: 220px 1fr 240px;
    }
}

@media (max-width: 992px) {
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .ranking-sidebar {
        order: 2;
    }

    .ranking-main {
        order: 1;
    }

    .ranking-recommended {
        order: 3;
    }

    .country-list {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .country-item {
        flex-shrink: 0;
    }

    .country-item a {
        padding: 8px 16px;
        background-color: #f8fafc;
    }

    .country-badge {
        display: none;
    }

    .sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-image-main {
        height: 240px;
    }

    .promo-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

    .sellers-grid {
        grid-template-columns: 1fr;
    }

    .product-details h2 {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }
}