/* ===== DICED CART ===== */

/* Floating Cart Button */
.diced-cart-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #1B4332;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 4px 20px rgba(27,67,50,0.4);
    transition: all 0.3s ease;
    color: #ffffff;
}
.diced-cart-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(27,67,50,0.5);
    background: #2D6A4F;
}
.diced-cart-float svg {
    width: 24px;
    height: 24px;
}

/* Cart Count Badge */
.diced-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #D4A017;
    color: #0d2818;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Overlay */
.diced-cart-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.diced-cart-overlay-show {
    display: block;
    opacity: 1;
}

/* Drawer */
.diced-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    font-family: 'Outfit', -apple-system, sans-serif;
}
.diced-cart-drawer.diced-cart-open {
    right: 0;
}

/* Drawer Header */
.diced-cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #E5E7EB;
    background: #1B4332;
}
.diced-cart-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.diced-cart-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-weight: 300;
}
.diced-cart-close:hover {
    color: #52B788;
}

/* Cart Items */
.diced-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.diced-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid #F3F4F6;
    position: relative;
    transition: opacity 0.2s;
}
.diced-cart-item:hover {
    background: #F8F9FA;
}

.diced-cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.diced-cart-item-info {
    flex: 1;
    min-width: 0;
}

.diced-cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1B4332;
    line-height: 1.3;
    margin-bottom: 2px;
}

.diced-cart-item-sub {
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 4px;
}

.diced-cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diced-cart-item-qty {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

.diced-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #1B4332;
}

.diced-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #D1D5DB;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-weight: 300;
    transition: color 0.2s;
}
.diced-cart-item-remove:hover {
    color: #C62828;
}

/* Cart Footer */
.diced-cart-footer {
    padding: 20px 24px;
    border-top: 2px solid #E5E7EB;
    background: #F8F9FA;
}

.diced-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 800;
    color: #1B4332;
}

.diced-cart-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
    margin-bottom: 8px;
}
.diced-cart-btn:last-child {
    margin-bottom: 0;
}

.diced-cart-btn-outline {
    background: #ffffff;
    color: #1B4332;
    border: 2px solid #1B4332;
}
.diced-cart-btn-outline:hover {
    background: #1B4332;
    color: #ffffff;
}

.diced-cart-btn-checkout {
    background: #D4A017;
    color: #0d2818;
    border: none;
}
.diced-cart-btn-checkout:hover {
    background: #e8b520;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,160,23,0.3);
    color: #0d2818;
}

/* Empty State */
.diced-cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}
.diced-cart-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.diced-cart-empty p {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 20px 0;
}
.diced-cart-empty .diced-cart-btn {
    width: auto;
    display: inline-block;
    padding: 12px 30px;
}

/* Mobile */
@media (max-width: 480px) {
    .diced-cart-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .diced-cart-float svg {
        width: 20px;
        height: 20px;
    }
    .diced-cart-drawer {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
    }
}
