/* Cart Summary Component */

.gc-cart-summary {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gc-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #191b1d;
    color: #fff;
    border: 1px solid rgba(57, 255, 20, .55);
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
}

.gc-cart-btn:hover {
    background: #232629;
    border-color: #39FF14;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
}

.gc-cart-icon {
    font-size: 18px;
    line-height: 1;
}

.gc-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.gc-cart-badge.empty {
    background: #555;
}

.gc-cart-total {
    font-size: 13px;
    color: #aaa;
}

/* Dropdown */
.gc-cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 400px;
    background: #191b1d;
    border: 1px solid rgba(255, 255, 255, .16);
    border-top: 3px solid #39FF14;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .78);
    overflow: hidden;
}

.gc-cart-dropdown.open {
    display: block;
}

.gc-cart-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 13px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gc-cart-dropdown-close {
    width: 30px;
    height: 30px;
    flex: none;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #eceff1;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.gc-cart-dropdown-close:hover { background: rgba(255, 255, 255, .16); }

.gc-cart-dropdown-items {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px 0;
}

.gc-cart-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.gc-cart-dropdown-item:last-child {
    border-bottom: none;
}

.gc-cart-dropdown-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
}

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

.gc-cart-dropdown-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-cart-dropdown-item-meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.gc-cart-dropdown-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #39FF14;
    white-space: nowrap;
}

.gc-cart-dropdown-item-remove {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}

.gc-cart-dropdown-item-remove:hover {
    color: #e74c3c;
}

.gc-cart-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    gap: 8px;
}

.gc-cart-dropdown-footer a {
    flex: 1;
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 22px;
    font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gc-cart-link-cart {
    background: transparent;
    color: #39FF14;
    border: 1px solid #39FF14;
}

.gc-cart-link-cart:hover {
    background: rgba(57, 255, 20, .12);
}

.gc-cart-link-checkout {
    background: #39FF14;
    color: #101214;
}

.gc-cart-link-checkout:hover {
    background: #5cff3e;
}

.gc-cart-empty {
    padding: 24px 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Confirmation toast */
.gc-cart-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: #4CAF50;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.gc-cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Cart badge pulse animation */
@keyframes gc-badge-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.5); background: #4CAF50; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.gc-cart-badge.pulse {
    animation: gc-badge-pulse 0.6s ease-out;
}

/* Cart button loading state */
@keyframes gc-spin {
    to { transform: rotate(360deg); }
}

.gc-cart-btn.loading .gc-cart-icon {
    animation: gc-spin 0.8s linear infinite;
}

/* Mobile */
@media (max-width: 768px) {
    .gc-cart-dropdown {
        width: calc(100vw - 32px);
        left: -8px;
    }
}


/* dismiss X on the summary pill */
.gc-cart-dismiss {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: #1a1c1e;
    color: #eceff1;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}
.gc-cart-dismiss:hover { background: #2b2f34; }

/* cart thumbnails are tappable */
.gc-cart-dropdown-item-thumb { cursor: zoom-in; }
.gc-cart-dropdown-item-thumb:hover { outline: 2px solid #39ff14; outline-offset: 1px; }

/* item zoom lightbox: enlarged preview with caption ON the image */
.gc-cart-zoom {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(6, 7, 8, .92);
    cursor: zoom-out;
}
.gc-cart-zoom.open { display: flex; }
.gc-cart-zoom-fig {
    position: relative;
    margin: 0;
    max-width: min(92vw, 640px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .65);
}
.gc-cart-zoom-fig img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #101214;
}
.gc-cart-zoom-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

/* zoom gallery: image area + switchable views */
.gc-cart-zoom-imgwrap { position: relative; }
.gc-cart-zoom-imgwrap .gc-cart-zoom-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .86) 30%, transparent);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}
.gc-cart-zoom-cap strong { color: #39ff14; font-size: 14px; }
.gc-cart-zoom-cap em { color: #cfd5da; font-style: normal; font-size: 12px; }
.gc-cart-zoom-thumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #101214;
}
.gc-cart-zoom-thumb {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    background: #1a1c1e;
    cursor: pointer;
    flex: none;
}
.gc-cart-zoom-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-cart-zoom-thumb.on { border-color: #39ff14; }
.gc-cart-zoom-note { color: #8a9299; font-size: 11px; }


/* page scrim while the dropdown is open — separates the cart from the site */
.gc-cart-scrim {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    background: rgba(4, 5, 6, .6);
}
.gc-cart-scrim.open { display: block; }

/* remove-item confirmation popup */
.gc-cart-remove {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(4, 5, 6, .7);
}
.gc-cart-remove.open { display: flex; }
.gc-cart-remove-panel {
    position: relative;
    background: #191b1d;
    border: 1px solid rgba(255, 255, 255, .16);
    border-top: 3px solid #c62828;
    border-radius: 14px;
    padding: 22px 24px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    color: #f5f5f5;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
}
.gc-cart-remove-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.gc-cart-remove-name { margin: 0 0 16px; font-size: 13px; color: #39ff14; }
.gc-cart-remove-acts { display: flex; gap: 8px; justify-content: center; }
.gc-cart-remove-yes {
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}
.gc-cart-remove-yes:hover { background: #e53935; }
.gc-cart-remove-yes:disabled { opacity: .55; cursor: wait; }
.gc-cart-remove-no {
    background: transparent;
    color: #eceff1;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}
.gc-cart-remove-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #eceff1;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
