/* Кнопка "Поделиться" в мини-корзине */
.cart-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.cart-share-btn:hover {
    opacity: 0.7;
}

.cart-share-btn svg {
    flex-shrink: 0;
}

/* Модалка "Поделиться корзиной" */
.share-cart-fancybox .fancybox-content {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    background: transparent !important;
}

.share-cart-modal-inner {
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    background: #383838;
    border-radius: 20px;
    padding: 60px 50px 40px;
    position: relative;
}

.share-cart-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 4px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.share-cart-close-btn:hover {
    opacity: 0.6;
}

.share-cart-title {
    font-family: 'Buyan', serif;
    font-weight: 700;
    font-size: 45px;
    line-height: 128%;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 30px;
}

.share-cart-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.share-cart-item-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
}

.share-cart-item-image {
    width: 100%;
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.share-cart-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-cart-item-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.share-cart-item-name {
    font-family: 'Buyan', serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 120%;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-cart-variant-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #A2A2A2;
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.share-cart-variant-select:focus {
    outline: none;
    border-color: #FFCC8F;
}

.share-cart-variant-select option {
    background: #383838;
    color: #fff;
}

.share-cart-variant-select option:disabled {
    color: #A2A2A2;
}

.share-cart-variant-single {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #A2A2A2;
}

.share-cart-old-price {
    color: #A2A2A2;
    font-size: 14px;
    text-decoration: line-through;
}

.share-cart-current-price {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.share-cart-add-btn {
    margin-top: auto;
    background: linear-gradient(263.56deg, #FFE9C8 -4.53%, #FFD9AD 18.44%, #FFDDB5 51.46%, #FFDDB5 76.6%, #FFCC8F 111.92%);
    box-shadow: 0px 4px 0px 0px #D8A86E;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #584D3E;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.share-cart-add-btn:hover {
    box-shadow: 0px 2px 0px 0px #D8A86E;
}

.share-cart-add-btn:active {
    box-shadow: 0px 1px 0px 0px #D8A86E;
}

.share-cart-add-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #A2A2A2;
    box-shadow: none;
    cursor: not-allowed;
}

.share-cart-add-btn.added {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: none;
    cursor: default;
}

.share-cart-actions {
    display: flex;
    justify-content: center;
}

.share-cart-add-all-btn {
    background: linear-gradient(263.56deg, #FFE9C8 -4.53%, #FFD9AD 18.44%, #FFDDB5 51.46%, #FFDDB5 76.6%, #FFCC8F 111.92%), radial-gradient(55.13% 55.13% at 50% 2.23%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0px 8.8px 0px 0px #D8A86E;
    width: 381px;
    max-width: 100%;
    height: 70px;
    border-radius: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #584D3E;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, box-shadow 0.25s ease;
}

.share-cart-add-all-btn:hover {
    box-shadow: 0px 5px 0px 0px #D8A86E;
}

.share-cart-add-all-btn:active {
    box-shadow: 0px 4px 0px 0px #D8A86E;
}

.share-cart-add-all-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media screen and (max-width: 900px) {
    .share-cart-modal-inner {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 60px 30px 30px;
    }

    .share-cart-title {
        font-size: 35px;
    }

    .share-cart-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 600px) {
    .share-cart-modal-inner {
        padding: 50px 16px 20px;
    }

    .share-cart-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .share-cart-items {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .share-cart-add-all-btn {
        width: 100%;
        height: 60px;
        font-size: 16px;
        border-radius: 16px;
    }
}
