.top-selling-section {
    --ts-shell-height: min(620px, calc(100vh - 170px));
    --ts-gap: 14px;

    position: relative;
    padding: 50px 0 50px;
    background:
        linear-gradient(to bottom, #ffffff 0%, #f8f5f1 52%, #ffffff 100%);
    overflow: hidden;
}

.top-selling-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0) 30%),
        radial-gradient(circle at 88% 78%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 28%);
}

.top-selling-head {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 14px;
    text-align: center;
}

.top-selling-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #6e675f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.top-selling-title {
    margin: 0;
    color: #221f1b;
    font-size: 50px;
    line-height: 1.04;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: "Times New Roman", Georgia, serif;
}

.top-selling-subtitle {
    margin: 8px auto 0;
    max-width: 620px;
    color: #756f69;
    font-size: 15px;
    line-height: 1.65;
}

.top-selling-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(320px, 1.04fr) minmax(0, 1fr);
    gap: var(--ts-gap);
    align-items: stretch;
}

/* Featured block */
.top-selling-featured {
    min-width: 0;
}

.top-selling-featured-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: var(--ts-shell-height);
    min-height: var(--ts-shell-height);
    padding: 14px;
    border-radius: 30px;
    text-decoration: none;
    background: linear-gradient(180deg, #f7f2ec 0%, #efe7de 100%);
    border: 1px solid rgba(34, 31, 27, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.top-selling-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.11);
    border-color: rgba(34, 31, 27, 0.14);
}

.top-selling-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    color: #1e1a17;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.top-selling-featured-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95) 0%, rgba(245, 239, 231, 0.9) 40%, rgba(233, 225, 215, 0.9) 100%);
}

.top-selling-featured-image img {
    max-width: 56%;
    max-height: 66%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 22px 20px rgba(0, 0, 0, 0.12));
    transition: transform 0.65s ease;
}

.top-selling-featured-card:hover .top-selling-featured-image img {
    transform: scale(1.04) rotate(-1deg);
}

.top-selling-featured-content {
    padding: 14px 6px 4px;
}

.top-selling-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #8a7c69;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.top-selling-featured-content h3 {
    margin: 0 0 8px;
    color: #1f1b18;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 400;
    font-family: "Times New Roman", Georgia, serif;
}

.top-selling-featured-content p {
    margin: 0;
    color: #625b54;
    font-size: 15px;
    line-height: 1.55;
    max-width: 500px;
}

.top-selling-meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(34, 31, 27, 0.08);
}

.top-selling-price {
    color: #1e1a17;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.top-selling-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: #1b1815;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
}

.top-selling-featured-card:hover .top-selling-link {
    background: #000000;
    transform: translateY(-1px);
}

/* Side grid */
.top-selling-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--ts-gap);
    height: var(--ts-shell-height);
}

.top-selling-card {
    min-width: 0;
}

.top-selling-card-link {
    display: grid;
    grid-template-rows: 152px minmax(0, 1fr);
    height: 100%;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(32, 28, 24, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.top-selling-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.09);
    border-color: rgba(32, 28, 24, 0.14);
}

.top-selling-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #faf7f3 0%, #f1ebe4 100%);
    overflow: hidden;
}

.top-selling-card-image img {
    max-width: 34%;
    max-height: 48%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.55s ease;
}

.top-selling-card-link:hover .top-selling-card-image img {
    transform: scale(1.05);
}

.top-selling-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 14px 16px 12px;
}

.top-selling-card-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: #8a7d6d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.top-selling-card-content h3 {
    margin: 0 0 8px;
    color: #201c18;
    font-size: 23px;
    line-height: 1.16;
    font-weight: 400;
    font-family: "Times New Roman", Georgia, serif;
}

.top-selling-card-content p {
    margin: 0;
    color: #6f6760;
    font-size: 14px;
    line-height: 1.5;
    min-height: 0;
}

.top-selling-card-bottom {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(32, 28, 24, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.top-selling-card-price {
    color: #171411;
    font-size: 18px;
    font-weight: 700;
}

.top-selling-card-arrow {
    color: #171411;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.top-selling-card-link:hover .top-selling-card-arrow {
    transform: translateX(4px);
}

@media (max-width: 1399px) {
    .top-selling-section {
        --ts-shell-height: 580px;
    }

    .top-selling-featured-image img {
        max-width: 60%;
        max-height: 68%;
    }

    .top-selling-card-link {
        grid-template-rows: 144px minmax(0, 1fr);
    }
}

@media (max-width: 1199px) {
    .top-selling-title {
        font-size: 42px;
    }

    .top-selling-layout {
        grid-template-columns: 1fr;
    }

    .top-selling-featured-card,
    .top-selling-grid {
        height: auto;
        min-height: 0;
    }

    .top-selling-featured-card {
        grid-template-rows: 380px auto;
    }

    .top-selling-card-link {
        grid-template-rows: 170px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .top-selling-section {
        padding: 40px 0 42px;
    }

    .top-selling-head {
        margin-bottom: 20px;
    }

    .top-selling-eyebrow {
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .top-selling-title {
        font-size: 30px;
    }

    .top-selling-subtitle {
        font-size: 14px;
        line-height: 1.65;
    }

    .top-selling-featured-card {
        height: auto;
        min-height: 0;
        grid-template-rows: 280px auto;
        padding: 16px;
        border-radius: 24px;
    }

    .top-selling-badge {
        top: 14px;
        left: 14px;
        font-size: 10px;
        padding: 7px 12px;
    }

    .top-selling-featured-image {
        border-radius: 20px;
    }

    .top-selling-featured-image img {
        max-width: 58%;
        max-height: 70%;
    }

    .top-selling-featured-content {
        padding: 18px 2px 4px;
    }

    .top-selling-featured-content h3 {
        font-size: 26px;
    }

    .top-selling-featured-content p {
        font-size: 14px;
    }

    .top-selling-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-selling-link {
        min-width: 100%;
    }

    .top-selling-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
        gap: 18px;
    }

    .top-selling-card-link {
        grid-template-rows: 190px minmax(0, 1fr);
    }

    .top-selling-card-image img {
        max-width: 38%;
        max-height: 56%;
    }

    .top-selling-card-content {
        padding: 18px;
    }

    .top-selling-card-content h3 {
        font-size: 21px;
    }
}