        /* Estilo para el botón de vaciar cesta */
        #empty-cart {
            color: red;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            margin-top: 15px;
            display: inline-block;
            margin-bottom: 0px;
        }


        /* Cart items container */

        /* Cart items container */
        #cart-items {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 10px 0;
            /* Remove side padding to align with chips/main */
        }

        .cart-product-name-link {
            text-decoration: none;
            color: inherit;
        }

        .cart-product-name-link:hover .cart-product-name {
            text-decoration: underline;
        }


        /* Cart item styles */
        .cart-item {
            border: 1px solid #f0f0f0;
            padding: 15px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .cart-item-content {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 20px;
            margin-bottom: 12px;
        }

        /* Left column - Image and controls */
        .cart-item-left {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .cart-item-image-wrapper {
            width: 100%;
            aspect-ratio: 1 / 1;
            /* Contenedor siempre cuadrado */
            overflow: hidden;
            border-radius: 20px;
        }

        .cart-item-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Hace zoom y recorta automáticamente */
            object-position: center;
            /* Centra la imagen */
            display: block;
        }



        /* Delete button */
        .delete-item-btn {
            background: white;
            color: #92419f;
            border: 2px solid #92419f;
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: background 0.3s, transform 0.2s, color 0.3s;
            width: 100%;
        }

        .delete-item-btn:hover {
            background: #92419f;
            color: white;
            transform: scale(1.02);
        }

        .delete-item-btn:active {
            transform: scale(0.98);
        }

        /* Right column - Details */
        .cart-item-right {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .cart-store-link {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            width: 100%;
        }

        .store-icon {
            color: #92419f;
            cursor: pointer;
            font-size: 18px;
        }

        .store-name-link {
            color: #92419f;
            text-decoration: none;
            font-weight: bold;
            font-size: 15px;
            margin-left: 3px;
        }

        .store-name-link:hover {
            text-decoration: underline;
        }

        .cart-product-name {
            font-size: 18px;
            font-weight: bold;
            margin: 0 0 4px 0;
            color: #333;
        }

        .cart-price-info {
            color: #333;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .cart-price-info p {
            margin: 0;
            font-size: 18px !important;
        }

        .cart-quantity-control {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }

        .cart-quantity-control label {
            font-size: 14px !important;
            font-weight: 500;
        }

        .cart-quantity-control label {
            font-weight: 500;
            color: #333;
        }

        .quantity-input {
            padding: 8px 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            width: 80px;
            text-align: center;
        }

        .quantity-input:focus {
            outline: none;
            border-color: #92419f;
        }

        .cart-shipping-info {
            font-size: 14px;
            color: #666;
        }

        .cart-shipping-info p {
            margin: 2px 0;
        }

        .cart-costs {
            margin-top: 4px;
            padding-top: 8px;
            border-top: 1px solid #e0e0e0;
            margin-bottom: 10px;
        }

        .cart-costs p {
            margin: 4px 0;
            font-size: 14px;
            color: #666;
        }

        .cart-item-total {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-top: 4px !important;
        }

        .cart-item-button-container {
            grid-column: 1 / -1;
            width: 100%;
            margin-top: 0;
        }

        .cart-item-button-container .buy-btn {
            width: 100%;
        }

        /* Total section */
        #cart-total {
            font-weight: bold;
            font-size: 24px;
            color: #92419f;
        }

        .quantity-chip {
            display: grid;
            grid-template-columns: 40px 1fr 40px;
            align-items: center;
            border: 1px solid grey;
            border-radius: 999px;
            height: 25px;
            width: 120px;
            /* importante para simetría */
        }

        .qty-btn {
            background: transparent;
            border: none;
            color: #525252;
            font-size: 16px !important;
            font-weight: bold;
            width: 100%;
            height: 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }


        .qty-value {
            text-align: center;
            font-size: 16px !important;
            font-weight: bold;
            color: #525252;
        }

        /* Mobile responsive */
        @media (max-width: 1024px) {
            .cart-item-content {
                grid-template-columns: 150px 1fr;
                gap: 15px;
            }

            .cart-item {
                padding: 12px;
            }

            .cart-item-image-wrapper {
                height: 130px;
                border-radius: 15px;
            }

            .cart-item-image {
                border-radius: 15px;
            }

            .cart-product-name {
                font-size: 16px;
            }

            .cart-item-total {
                font-size: 16px;
            }

            .delete-item-btn {
                padding: 8px 12px;
                font-size: 13px;
            }

            .cart-price-info {
                font-size: 14px;
            }

            .quantity-input {
                width: 60px;
                padding: 6px 8px;
                font-size: 14px;
            }

        }

        @media (min-width: 1025px) and (max-width: 1024px) {
            .cart-item-content {
                grid-template-columns: 180px 1fr;
            }

            .cart-item-image-wrapper {
                height: 180px;
            }
        }

        @media (min-width: 1025px) {
            .cart-item-content {
                grid-template-columns: 100px 1fr;
            }

            .cart-item-image-wrapper {
                height: 100px;
            }
        }

        /* Shop header */
        .cart-shop-header {
            width: 100%;
            background: #fafafa;
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            margin-top: 20px;
            border: 1px solid #f0f0f0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            /* Slightly lighter shadow for headers */
        }

        .cart-shop-header:first-child {
            margin-top: 0;
        }

        .cart-shop-header-content {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-shop-header-content .store-icon {
            color: #92419f;
            font-size: 24px;
        }

        .cart-shop-header-content .shop-name {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }

        /* Shop footer with total */
        .cart-shop-footer {
            width: 100%;
            background: #f0f0f0;
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            text-align: right;
            border: 1px solid #e0e0e0;
        }

        .cart-shop-total {
            font-size: 18px;
            color: #333;
        }

        .shop-total-amount {
            color: #92419f;
            font-size: 20px;
        }

        /* Empty cart message */
        #cart-items>p {
            text-align: center;
            padding: 40px 20px;
            color: #666;
            font-size: 18px;
        }