/**
 * Etsy Product Sync Pro — Public Styles
 *
 * @package Etsy_Product_Sync_Pro
 */

/* =========================================================
   "View on Etsy" Button
   ========================================================= */

.msb-etsy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background-color: #F1641E;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.msb-etsy-link-btn:hover,
.msb-etsy-link-btn:focus {
    background-color: #D4551A;
    color: #fff !important;
}

.msb-etsy-icon::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.26 21.3c-.2 0-.38-.08-.5-.22L3.3 14.7a.67.67 0 0 1 .02-.95l.93-.88a.67.67 0 0 1 .95.03l3.6 3.85 9.97-10.63a.67.67 0 0 1 .95-.03l.93.88c.27.25.28.68.03.95l-11.4 12.16a.67.67 0 0 1-.5.22h-.02z'/%3E%3C/svg%3E") no-repeat center/contain;
    vertical-align: middle;
}


/* =========================================================
   Video Tab
   ========================================================= */

.msb-video-tab-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 720px;
}

.msb-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.msb-video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
}

.msb-video-player {
    width: 100%;
    display: block;
    border-radius: 6px;
}


/* =========================================================
   [etsy_shop] Shortcode Grid
   ========================================================= */

.msb-shop-grid {
    display: grid;
    grid-template-columns: repeat(var(--msb-columns, 3), 1fr);
    gap: 24px;
    margin: 24px 0;
}

.msb-shop-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.msb-shop-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.msb-shop-item-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
}

.msb-shop-item-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f7f7f7;
}

.msb-shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.msb-shop-item:hover .msb-shop-item-image img {
    transform: scale(1.05);
}

.msb-shop-item-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 14px 6px;
    color: #222;
}

.msb-shop-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    padding: 0 14px 12px;
}

.msb-shop-item-etsy {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #F1641E !important;
    text-decoration: none !important;
    padding: 8px 14px;
    border-top: 1px solid #f0f0f0;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.msb-shop-item-etsy:hover {
    background-color: #fef5f0;
}

.msb-no-products {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
    .msb-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .msb-shop-grid {
        grid-template-columns: 1fr;
    }

    .msb-etsy-link-btn {
        width: 100%;
        justify-content: center;
    }
}
