/* ===============================================================
   CART OVERRIDES - Transparent cart with visible icon
   =============================================================== */


/* ---- 1. CURSOR: Always visible on the site ---- */

body,
.pos-wrapper,
.products-area,
.products-grid,
.cart-bottom,
.header,
.shift-bar,
.category-tabs {
    cursor: default !important;
}

.product-card,
button,
a,
.cat-tab,
.qty-btn,
.fav-star,
.cart-item,
.pay-method-btn,
input,
.settings-btn,
.cart-clear-btn,
.goal-edit-btn,
.scanner-close-btn {
    cursor: pointer !important;
}

input[type="text"],
input[type="number"],
input[type="search"],
.form-input,
.search-bar input {
    cursor: text !important;
}


/* ---- 2. CART BOTTOM: Remove ugly dark background ---- */

.cart-bottom {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-top: none !important;
    height: 220px !important;
}

.cart-bottom::before {
    display: none !important;
}


/* ---- 3. CART HEADER: Transparent ---- */

.cart-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 8px 24px !important;
}

.cart-header h2 {
    font-size: 14px !important;
    color: rgba(235, 235, 245, 0.65);
}

.cart-icon-wrap {
    width: 26px !important;
    height: 22px !important;
}


/* ---- 4. CART BODY: Transparent ---- */

.cart-body {
    background: transparent !important;
}


/* ---- 5. CART ITEMS AREA: with BIG cart icon on the left ---- */

.cart-items-wrap {
    background: transparent !important;
    padding: 8px 16px 12px !important;
    align-items: flex-end !important;
    position: relative;
}

/* BIG visible cart icon (the actual cart!) */
.cart-items-wrap::before {
    content: '';
    display: block;
    width: 88px;
    height: 78px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56' fill='none'><path d='M14 16 L12 8 L6 8' stroke='%23007AFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/><path d='M14 16 L54 16 L50 36 L18 36 Z' stroke='%23007AFF' stroke-width='2' stroke-linejoin='round' fill='rgba(0,122,255,0.18)'/><line x1='22' y1='16' x2='20' y2='36' stroke='%23007AFF' stroke-width='0.8' opacity='0.5'/><line x1='30' y1='16' x2='28' y2='36' stroke='%23007AFF' stroke-width='0.8' opacity='0.5'/><line x1='38' y1='16' x2='36' y2='36' stroke='%23007AFF' stroke-width='0.8' opacity='0.5'/><line x1='46' y1='16' x2='44' y2='36' stroke='%23007AFF' stroke-width='0.8' opacity='0.5'/><line x1='16' y1='22' x2='52' y2='22' stroke='%23007AFF' stroke-width='0.8' opacity='0.5'/><line x1='17' y1='29' x2='51' y2='29' stroke='%23007AFF' stroke-width='0.8' opacity='0.5'/><path d='M50 36 L52 42 L16 42 L18 36' stroke='%23007AFF' stroke-width='2' stroke-linejoin='round' fill='none'/><circle cx='22' cy='48' r='5' stroke='%23007AFF' stroke-width='2' fill='rgba(0,122,255,0.2)'/><circle cx='22' cy='48' r='1.5' fill='%23007AFF' opacity='0.7'/><circle cx='46' cy='48' r='5' stroke='%23007AFF' stroke-width='2' fill='rgba(0,122,255,0.2)'/><circle cx='46' cy='48' r='1.5' fill='%23007AFF' opacity='0.7'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: drop-shadow(0 8px 20px rgba(0, 122, 255, 0.3));
    margin-right: 8px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Cart icon bumps when item lands */
.cart-bottom.item-landed .cart-items-wrap::before {
    animation: cartIconBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartIconBump {
    0%, 100% { transform: translateY(0) scale(1); }
    30%      { transform: translateY(6px) scale(0.94); }
    60%      { transform: translateY(-3px) scale(1.05); }
}


/* ---- 6. CART EMPTY STATE: hide default message ---- */

.cart-empty {
    background: transparent !important;
    flex-direction: row !important;
    width: auto !important;
    padding: 0 !important;
    gap: 10px;
}

.cart-empty-icon {
    display: none !important;
}

.cart-empty span {
    color: rgba(235, 235, 245, 0.45) !important;
    font-size: 13px;
}


/* ---- 7. CART ITEMS - clearer style on transparent bg ---- */

.cart-item {
    background: rgba(28, 28, 30, 0.7) !important;
    border: 1px solid rgba(0, 122, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 110px !important;
    padding: 8px 10px !important;
}


/* ---- 8. CART CHECKOUT (right side): visible Pay button ---- */

.cart-checkout {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-left: 1px solid rgba(84, 84, 88, 0.22) !important;
    border-radius: 16px 0 0 0;
    width: 300px !important;
    padding: 12px 16px !important;
    gap: 8px !important;
}

.cart-total-row {
    margin-bottom: 0 !important;
}

.cart-total-label {
    font-size: 10px !important;
}

.cart-total-value {
    font-size: 22px !important;
}

.payment-methods {
    gap: 5px !important;
}

.pay-method-btn {
    padding: 7px 4px !important;
    font-size: 11px !important;
}

.pay-btn {
    padding: 12px !important;
    font-size: 14px !important;
    margin-top: 2px !important;
}


/* ---- 9. PRODUCT CARD HOVER: more dramatic forward zoom ---- */

.product-card {
    z-index: 1;
    transition: z-index 0s 0.4s, background 0.3s, border-color 0.3s;
}

.product-card:hover {
    z-index: 100 !important;
    transition: z-index 0s 0s, background 0.3s, border-color 0.3s;
    background: rgba(28, 28, 30, 0.7) !important;
    border-color: rgba(0, 122, 255, 0.35) !important;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 122, 255, 0.1) !important;
}

/* Product image grows much bigger + lifts forward */
.product-card:hover .card-image img,
.product-card:hover .fallback-emoji {
    transform: translateY(-25px) scale(1.42) !important;
    filter:
        drop-shadow(0 30px 50px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 30px rgba(0, 122, 255, 0.25)) !important;
}

/* Bigger ground shadow when lifted */
.product-card:hover .card-image::after {
    width: 90% !important;
    height: 20px !important;
    opacity: 0.9 !important;
    filter: blur(6px) !important;
    transform: translateX(-50%) translateY(12px) !important;
}

/* Vizitka slightly larger and more dramatic */
.product-card:hover .vizitka {
    transform: translate(-50%, -6px) rotate(-8deg) scale(1.05) !important;
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}


/* ---- 10. RESPONSIVE ---- */

@media (max-width: 900px) {
    .cart-checkout {
        width: 230px !important;
    }
    .cart-items-wrap::before {
        width: 70px;
        height: 64px;
    }
}


/* ===============================================================
   11. FORCE PRODUCT CARDS TO BE VISIBLE
   =============================================================== */

/* Make sure products area is visible and has space */
.products-area {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    min-height: 250px !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make sure the grid renders */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 18px !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding-bottom: 20px;
}

/* Force product cards visible with subtle visible card design */
.product-card {
    height: 230px !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(28, 28, 30, 0.5) !important;
    border: 1px solid rgba(84, 84, 88, 0.25) !important;
    border-radius: 18px !important;
    overflow: visible !important;
    position: relative !important;
}

/* Card image area always visible */
.product-card .card-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    width: 100% !important;
    padding: 8px !important;
}

/* Product name always visible */
.product-card .card-name {
    display: block !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 8px 6px 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

/* Image visibility */
.product-card .card-image img {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    display: block !important;
}