/**
 * Mini Cart Styles
 * Stylizacja dla shorcode [dst_mini_cart]
 */

.dst-mini-cart {
    font-family: "Red Hat Display", sans-serif;
}

.dst-mini-cart-item {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid #E5E5E5;
    transition: opacity 0.3s ease;
}

.dst-mini-cart-item:last-child {
    border-bottom: none;
}

.dst-mini-cart-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* Miniaturka produktu */
.dst-mini-cart-item-image {
    flex-shrink: 0;
    width: 150px;
    height: auto;
    overflow: hidden;
    background: #f5f5f5;
}

.dst-mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content wrapper */
.dst-mini-cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header z nazwą i ceną */
.dst-mini-cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.dst-mini-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dst-mini-cart-item-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px !important;
    font-weight: 400;
    color: var(--FurnitourBlack, #000);
    margin: 0;
    padding: 0;
    line-height: 30px;
    text-align: left;
    text-transform: uppercase;
}

.dst-mini-cart-item-category {
    font-family: "Red Hat Display", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dst-mini-cart-item-variations {
	display: flex;
	font-size: 12px;
	gap: 10px;
	order: 2;
	margin: 0;
	line-height: 1;
}

.dst-mini-cart-variation-item {
    font-family: "Red Hat Display", sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.dst-mini-cart-variation-label {
    font-weight: 600;
    margin-right: 3px;
}

.dst-mini-cart-variation-value {
    color: #000;
}

/* Cena */
.dst-mini-cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.dst-price-value {
    font-family: var(--Furnitour-Font-Headline, 'Times New Roman'), Times, serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--FurnitourBlack, #000);
    line-height: 26px;
    transition: opacity 0.3s ease;
}

.dst-price-value.updating {
    opacity: 0.5;
}

.dst-price-vat {
    font-family: "Red Hat Display", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--FurnitourThird, #7C4840);
    text-align: right;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Footer z kontrolkami */
.dst-mini-cart-item-footer {
    display: flex;
    justify-content: flex-end;
}

/* Kontrolki ilości */
.dst-mini-cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    color: #000;
    text-align: right;
    font-family: "Red Hat Display", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dst-quantity-label {
    font-family: "Red Hat Display", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    letter-spacing: 0;
}

.dst-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    overflow: hidden;
}

.dst-qty-btn {
    font-family: "Red Hat Display", sans-serif;
    background: transparent;
    border: 0;
    width: 35px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dst-qty-btn:hover {
    background: #E5E5E5;
}

.dst-qty-btn:active {
    background: #D5D5D5;
}

.dst-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dst-qty-input {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    font-family: "Red Hat Display", sans-serif;
    -moz-appearance: textfield;
}

.dst-qty-input::-webkit-outer-spin-button,
.dst-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dst-qty-input:focus {
    outline: none;
}

/* Loading state */
.dst-mini-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty cart message (opcjonalnie, jeśli chcesz coś wyświetlić) */
.dst-mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.dst-empty-cart-message {
    font-size: 22px;
    color: #000;
}

/* Przycisk przejścia do kasy */
.btn-go-to-checkout > div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #fff !important;
}

.btn-go-to-checkout > div a {
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dst-mini-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dst-mini-cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .dst-mini-cart-item-title {
        font-size: 20px;
    }
    
    .dst-mini-cart-item-price-wrapper {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .dst-mini-cart-item-price {
        align-items: flex-start;
    }
    
    .dst-price-value {
        font-size: 24px;
    }
    
    .dst-mini-cart-item-quantity {
        align-items: flex-end;
    }
}
