/* =====================================================
   Most Trending Widget - Frontend Styles
   ===================================================== */

.mt-section {
    padding: 20px 0 40px;
}

/* ── Heading ── */
.mt-heading {
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 32px 0;
    letter-spacing: -0.01em;
    font-family: inherit;
}

/* ── Grid ── */
.mt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .mt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .mt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mt-heading { font-size: 26px; }
}

/* ── Card ── */
.mt-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Image Wrap ── */
.mt-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 16px;
    text-decoration: none;
}

/* Blob shape */
.mt-shape-blob .mt-blob-svg {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
}

/* Circle shape */
.mt-shape-circle {
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.mt-shape-circle .mt-plain-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Square shape */
.mt-shape-square {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.mt-shape-square .mt-plain-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Sale Badge ── */
.mt-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    z-index: 2;
    line-height: 1.4;
}

/* ── Product Info ── */
.mt-info {
    padding: 0 2px;
    margin-bottom: 14px;
}

.mt-name {
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-transform: none;
}

.mt-name a {
    color: inherit;
    text-decoration: none;
}

.mt-name a:hover {
    text-decoration: underline;
}

/* ── Price ── */
.mt-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.mt-price-regular {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

.mt-price-sale {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* WooCommerce default price html override */
.mt-price .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.mt-per-gram {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ── Button ── */
.mt-btn-wrap {
    margin-top: auto;
}

.mt-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    box-sizing: border-box;
}

.mt-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
}

/* Ajax add-to-cart loading state */
.mt-btn-atc.loading {
    opacity: 0.6;
    pointer-events: none;
}
