#cartOverlay,
#favOverlay,
#accOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cartOverlay.open,
#favOverlay.open,
#accOverlay.open {
    opacity: 1;
    visibility: visible;
}

#cartPanel,
#favPanel,
#accPanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-family: 'Josefin Sans', sans-serif;
}

#cartPanel.open,
#favPanel.open,
#accPanel.open {
    transform: translateX(0);
}

.panel-header {
    background: #111;
    color: #fff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.panel-title {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1.4;
}

.panel-subtitle {
    margin: 3px 0 0;
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.5;
}

.panel-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close-btn:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.panel-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 10px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.cart-qty-btn:hover {
    background: #111;
    color: #fff;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    padding: 4px 8px;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #b91c1c;
}

.acc-section-title {
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 15px;
    text-transform: uppercase;
    line-height: 1.5;
}

.panel-subtitle.green {
    color: #4ade80;
}

.cart-clear-btn {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.cart-clear-btn:hover {
    color: #dc3545;
}