/* wc-floating-cart/assets/floating-cart.css */

/* Variables */
:root {
    --fc-bg-color: #F9EFE4;
    --fc-text-color: #333333;
    --fc-accent-color: #d2a15c;
    --fc-accent-hover: #b88a4e;
    --fc-white: #ffffff;
    --fc-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Trigger Button */
.wc-fc-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--fc-white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wc-fc-trigger:hover {
    transform: scale(1.1);
}

.wc-fc-trigger .dashicons {
    font-size: 28px;
    color: var(--fc-accent-color);
    width: auto;
    height: auto;
}

.wc-fc-trigger .wc-fc-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #c62828;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Overlay */
.wc-fc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(3px);
    transition: all 0.4s ease;
}

.wc-fc-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Panel */
.wc-fc-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden state */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--fc-bg-color);
    z-index: 10000;
    box-shadow: var(--fc-shadow);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.wc-fc-panel.open {
    right: 0;
}

/* Header */
.wc-fc-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--fc-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.wc-fc-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fc-text-color);
}

.wc-fc-close {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    transition: color 0.2s ease;
    width: auto;
    height: auto;
}

.wc-fc-close:hover {
    color: #333;
}

/* Content (Items List) */
.wc-fc-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.wc-fc-empty {
    text-align: center;
    margin-top: 50px;
    color: #888;
    font-style: italic;
}

.wc-fc-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-fc-item {
    display: flex;
    align-items: center;
    background-color: var(--fc-white);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
}

.wc-fc-item-img {
    width: 70px;
    flex-shrink: 0;
    margin-right: 15px;
}

.wc-fc-item-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.wc-fc-item-info {
    flex-grow: 1;
}

.wc-fc-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.3;
}

.wc-fc-item-info h4 a {
    text-decoration: none;
    color: var(--fc-text-color);
}

.wc-fc-item-info dl.variation {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
}

.wc-fc-item-price {
    font-weight: bold;
    color: var(--fc-accent-color);
    font-size: 14px;
}

.wc-fc-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
}

.wc-fc-item-remove a {
    color: #ccc;
    font-size: 18px;
    text-decoration: none;
    line-height: 1;
}

.wc-fc-item-remove a:hover {
    color: #c62828;
}

/* Footer */
.wc-fc-footer {
    background-color: var(--fc-white);
    padding: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.wc-fc-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 20px;
}

.wc-fc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-fc-actions .button {
    text-align: center;
    padding: 15px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    display: block;
}

.wc-fc-btn-cart {
    background-color: #eee;
    color: #333;
}

.wc-fc-btn-cart:hover {
    background-color: #ddd;
}

.wc-fc-btn-checkout {
    background-color: var(--fc-accent-color);
    color: var(--fc-white);
}

.wc-fc-btn-checkout:hover {
    background-color: var(--fc-accent-hover);
}
