/* MeSosyal 360 WooCommerce Vitrin Pro - Frontend Styles (v1.0.2) */
.ms360-vitrin-section {
    position: relative;
    border-radius: var(--ms360-radius, 24px);
    overflow: hidden;
    background-color: var(--ms360-bg-bottom, #283f56);
    padding: 44px 28px 36px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
}
.ms360-vitrin-section *, .ms360-vitrin-section *::before, .ms360-vitrin-section *::after {
    box-sizing: border-box;
}
.ms360-vitrin-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}
.ms360-vitrin-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, var(--ms360-overlay, 0.35)) 0%,
        var(--ms360-bg-bottom, #283f56) 42%,
        var(--ms360-bg-bottom, #283f56) 100%
    );
    z-index: 1;
}
.ms360-vitrin-inner {
    position: relative;
    z-index: 2;
}
.ms360-vitrin-header {
    text-align: center;
    margin-bottom: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ms360-timer-wrap {
    margin-bottom: 18px;
}
.ms360-timer-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.ms360-timer-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.ms360-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ms360-t-val {
    background: var(--ms360-timer-bg, #2c3e26);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-variant-numeric: tabular-nums;
}
.ms360-t-lbl {
    color: rgba(255,255,255,0.9);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.ms360-vitrin-title {
    color: #ffffff !important;
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 18px !important;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    line-height: 1.2;
}
.ms360-top-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ms360-top-btn-bg, #e05a33);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 12px 26px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.ms360-top-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.ms360-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--ms360-cols-d, 5), minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1100px) {
    .ms360-products-grid {
        grid-template-columns: repeat(var(--ms360-cols-t, 3), minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .ms360-vitrin-section {
        padding: 28px 14px 24px;
    }
    .ms360-products-grid {
        grid-template-columns: repeat(var(--ms360-cols-m, 2), minmax(0, 1fr));
        gap: 10px;
    }
}
.ms360-product-card {
    background: #ffffff;
    border-radius: var(--ms360-card-radius, 16px);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.ms360-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}
.ms360-card-media {
    position: relative;
    aspect-ratio: 1 / 1.05;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 10px;
}
.ms360-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.ms360-card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.ms360-product-card:hover .ms360-card-img {
    transform: scale(1.04);
}
.ms360-badges {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}
.ms360-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: 0.3px;
}
.ms360-badge-best {
    background: #e05a33;
    padding: 4px 6px;
    border-radius: 5px;
    max-width: 58px;
    text-align: center;
}
.ms360-badge-ship {
    background: #d94e2a;
    padding: 3px 8px 3px 6px;
    border-radius: 3px;
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
.ms360-card-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.2s ease;
}
.ms360-product-card:hover .ms360-card-actions {
    opacity: 1;
    transform: translateX(0);
}
.ms360-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.ms360-icon-btn:hover, .ms360-icon-btn.active {
    background: #2c3e26;
    color: #ffffff;
    border-color: #2c3e26;
}
.ms360-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ms360-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
    min-height: 18px;
}
.ms360-brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.4px;
}
.ms360-rating {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 11px;
}
.ms360-star {
    color: #d1d5db;
}
.ms360-star.filled {
    color: #1f2937;
}
.ms360-rating-cnt {
    font-size: 10px;
    color: #6b7280;
    margin-left: 3px;
}
.ms360-prod-title {
    margin: 0 0 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 35px;
}
.ms360-prod-title a {
    color: #111827 !important;
    text-decoration: none !important;
}
.ms360-prod-title a:hover {
    color: #e05a33 !important;
}
.ms360-price {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    margin-top: auto;
}
.ms360-price del {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin-right: 6px;
}
.ms360-price ins {
    text-decoration: none;
    color: #111827;
}
/* =========================================================
   SEPETE EKLE BUTONU — v1.0.2
   Cihaza göre ölçeklenen, ince ve zarif buton
   Masaüstü 38px · Tablet 36px · Mobil 34px · Dar kart 32px
   ========================================================= */
.ms360-card-body {
    container-type: inline-size;
    container-name: ms360card;
}
.ms360-atc-btn {
    --ms360-atc-h: 38px;
    --ms360-atc-fs: 12.5px;
    --ms360-atc-px: 14px;
    --ms360-atc-ico: 14px;

    position: relative;
    width: 100%;
    height: var(--ms360-atc-h);
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0 var(--ms360-atc-px);
    background: var(--ms360-atc-bg, #2c3e26);
    color: #ffffff !important;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: var(--ms360-atc-fs) !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1 !important;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease,
                box-shadow 0.22s ease, transform 0.15s ease;
}
.ms360-atc-btn svg {
    width: var(--ms360-atc-ico);
    height: var(--ms360-atc-ico);
    flex-shrink: 0;
    display: block;
}
.ms360-atc-label {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ms360-atc-check,
.ms360-atc-spin {
    display: none !important;
}
.ms360-atc-spin {
    width: var(--ms360-atc-ico);
    height: var(--ms360-atc-ico);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ms360-spin 0.7s linear infinite;
}
@keyframes ms360-spin {
    to { transform: rotate(360deg); }
}

@media (hover: hover) {
    .ms360-atc-btn:hover {
        background: var(--ms360-atc-hover, #1f2d1b);
        transform: translateY(-1px);
        box-shadow: 0 8px 16px -8px rgba(17, 24, 39, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    .ms360-atc-btn:hover .ms360-atc-arrow {
        transform: translateX(2px);
    }
}
.ms360-atc-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.1);
}
.ms360-atc-btn:focus-visible {
    outline: 2px solid var(--ms360-atc-bg, #2c3e26);
    outline-offset: 2px;
}
.ms360-atc-arrow {
    transition: transform 0.2s ease;
}

/* Yükleniyor */
.ms360-atc-btn.loading {
    pointer-events: none;
    opacity: 0.88;
}
.ms360-atc-btn.loading .ms360-atc-ico { display: none; }
.ms360-atc-btn.loading .ms360-atc-spin { display: block !important; }

/* Eklendi */
.ms360-atc-btn.is-added,
.ms360-atc-btn.is-added:hover {
    background: #16a34a;
}
.ms360-atc-btn.is-added .ms360-atc-ico { display: none; }
.ms360-atc-btn.is-added .ms360-atc-check {
    display: block !important;
    animation: ms360-pop 0.3s ease;
}
@keyframes ms360-pop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* Hata */
.ms360-atc-btn.is-error,
.ms360-atc-btn.is-error:hover {
    background: #dc2626;
}

/* Varyasyonlu ürünler: ince çerçeveli (ghost) buton */
.ms360-atc-btn--ghost {
    background: transparent;
    color: #1f2937 !important;
    border-color: rgba(17, 24, 39, 0.16);
    box-shadow: none;
}
@media (hover: hover) {
    .ms360-atc-btn--ghost:hover {
        background: var(--ms360-atc-bg, #2c3e26);
        border-color: var(--ms360-atc-bg, #2c3e26);
        color: #ffffff !important;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .ms360-atc-btn {
        --ms360-atc-h: 36px;
        --ms360-atc-fs: 12px;
        --ms360-atc-px: 12px;
        --ms360-atc-ico: 13px;
    }
}

/* Mobil */
@media (max-width: 680px) {
    .ms360-atc-btn {
        --ms360-atc-h: 34px;
        --ms360-atc-fs: 11.5px;
        --ms360-atc-px: 10px;
        --ms360-atc-ico: 13px;
        gap: 6px;
        letter-spacing: 0.1px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 380px) {
    .ms360-atc-btn {
        --ms360-atc-h: 32px;
        --ms360-atc-fs: 11px;
        --ms360-atc-px: 8px;
        --ms360-atc-ico: 12px;
        gap: 5px;
    }
}

/* Kart dar ise (çok sütunlu düzen) — ekran değil kart genişliğine göre */
@container ms360card (max-width: 170px) {
    .ms360-atc-btn {
        --ms360-atc-h: 32px;
        --ms360-atc-fs: 11px;
        --ms360-atc-px: 8px;
        gap: 5px;
    }
}
@container ms360card (max-width: 135px) {
    .ms360-atc-btn .ms360-atc-ico { display: none; }
}

/* Mobil kart inceltmeleri */
@media (max-width: 680px) {
    .ms360-product-card {
        padding: 10px;
        border-radius: calc(var(--ms360-card-radius, 16px) - 4px);
    }
    .ms360-card-media { margin-bottom: 10px; }
    .ms360-prod-title { font-size: 12px !important; min-height: 32px; }
    .ms360-price { font-size: 14px; margin-bottom: 10px; }
    .ms360-icon-btn { width: 28px; height: 28px; }
    .ms360-icon-btn svg { width: 14px; height: 14px; }
}

/* Dokunmatik cihazlarda hover olmadığı için ikonları göster */
@media (hover: none) {
    .ms360-card-actions {
        opacity: 1;
        transform: none;
    }
    .ms360-product-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ms360-atc-btn,
    .ms360-atc-arrow,
    .ms360-product-card {
        transition: none !important;
    }
    .ms360-atc-btn.is-added .ms360-atc-check { animation: none; }
}
.ms360-bottom-cta-wrap {
    text-align: center;
    margin-top: 28px;
}
.ms360-bottom-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 28px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.ms360-bottom-cta:hover {
    background: rgba(255,255,255,0.16);
    border-color: #ffffff;
}
.ms360-qv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ms360-qv-modal.open {
    display: flex;
}
.ms360-qv-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
}
.ms360-qv-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 18px;
    max-width: 720px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}
.ms360-qv-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #4b5563;
}
.ms360-qv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}
@media (max-width: 600px) {
    .ms360-qv-grid { grid-template-columns: 1fr; }
}
.ms360-qv-img-wrap img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
}
.ms360-qv-price {
    font-size: 20px;
    font-weight: 800;
    margin: 10px 0 14px;
}
.ms360-qv-link-btn {
    display: inline-block;
    background: #2c3e26;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 600;
    margin-top: 12px;
}
