.tienda-container {
    max-width: 600px;
    align-items: stretch;
    gap: 16px;
    padding-bottom: 100px; /* Space for floating cart button */
}

/* Product Cards */
.product-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--white);
    border: 2px solid #ffd3da;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(234, 85, 153, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.product-img-wrapper {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.product-card-desc {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Bottom Sheet Styling */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    padding: 24px;
    padding-bottom: env(safe-area-inset-bottom, 24px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.bottom-sheet-overlay.active .bottom-sheet {
    transform: translate(-50%, 0);
}

.bottom-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    align-self: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.bottom-sheet-content {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
}

.bottom-sheet-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bottom-sheet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-sheet-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin: 0;
}

.bottom-sheet-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.bottom-sheet-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    width: 100%;
    white-space: pre-line;
}

/* Button Group */
.bottom-sheet-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 0;
    flex-shrink: 0;
}

.btn-add-cart-wrapper {
    flex: 1;
    display: flex;
}

.btn-sheet {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

.btn-add-cart {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-add-cart:hover {
    background: #fdf5f7;
}

.btn-buy {
    background: var(--primary-color);
    color: white;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 85, 153, 0.3);
}

/* Counter Style */
.cart-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
}

.counter-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.counter-btn:hover {
    background: #fdf5f7;
}

.counter-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(234, 85, 153, 0.4);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(234, 85, 153, 0.5);
}

.floating-cart-btn svg {
    width: 26px;
    height: 26px;
    stroke: white;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

.cart-badge.hidden {
    display: none !important;
}

.btn-close-sheet {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.2s;
    line-height: 1;
}

.btn-close-sheet:hover {
    color: var(--text-color);
}
