/* ------------------------------------------
   Productos Grow Up Garden – CSS
   ------------------------------------------ */

/* ---------- ESTILOS BASE (desktop) ---------- */

/* Banner Slider Styles */
.banner-header h2 {
    color: #1f2937;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
}

.banner-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 1rem 0 2.5rem;
    padding: 1rem 0;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    width: 100%;
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.banner-slide-inner {
    display: flex;
    gap: 0.25rem;
    padding: 0 0.25rem;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    width: calc(100% - 0.5rem);
}

/* Mobile styles - show only one image */
@media (max-width: 767px) {
    .banner-slide-inner {
        padding: 0 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .banner-image-container {
        min-height: 200px;
        max-height: 200px;
        border-radius: 0.5rem;
        padding: 0.5rem;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0.25rem;
    }
    
    .banner-image {
        max-height: 190px;
        padding: 0;
        width: 100%;
        object-fit: contain;
    }
    
    /* Hide the second image in each slide on mobile */
    .banner-image-container:nth-child(2) {
        display: none;
    }
    
    /* Adjust slide width to show one image at a time */
    .banner-slide {
        flex: 0 0 100%;
    }
}

.banner-image-container {
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 280px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    margin: 0;
}

.banner-image-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-height: 320px;
    padding: 0.25rem;
}

#prevBtn,
#nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 20;
    padding: 0;
    margin: 0;
    opacity: 0.9;
}

#prevBtn {
    left: 0.5rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#nextBtn {
    right: 0.5rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#prevBtn:hover,
#nextBtn:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#prevBtn:focus,
#nextBtn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}

.banner-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-indicators button {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.banner-indicators button.active {
    background: white;
    transform: scale(1.2);
}

.banner-indicators button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

/* Responsive Adjustments for Slider */
@media (max-width: 1024px) {
    .banner-slide-inner {
        padding: 0 2rem;
    }
    
    .banner-image-container {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .banner-slide-inner {
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    .banner-image-container {
        min-height: 200px;
    }
    
    #prevBtn,
    #nextBtn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 640px) {
    .banner-slide-inner {
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .banner-image-container {
        min-height: 180px;
    }
    
    .banner-image {
        max-height: 200px;
    }
}

/* Single image on mobile */
@media (max-width: 480px) {
    .banner-slide-inner {
        padding: 0 1.5rem;
        gap: 0;
    }
    
    .banner-image-container:not(:first-child) {
        display: none;
    }
    
    .banner-image-container {
        min-height: 160px;
    }
    
    .banner-indicators button {
        width: 8px;
        height: 8px;
    }
    
    #prevBtn,
    #nextBtn {
        width: 32px;
        height: 48px;
    }
}

body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    min-height: 100vh;
}

.page-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.main-content {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Tarjeta de producto */
.product-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 320px;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e0;
}

.product-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-title, .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0.5rem 0;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0.5rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.product-currency {
    color: #4a5568;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

.add-to-cart-btn, .add-to-cart {
    background-color: #10b981;
    color: white;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
    width: 100%;
    max-width: 220px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.add-to-cart-btn:hover, .add-to-cart:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn:active, .add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn:disabled, .add-to-cart:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Keyframes para animaciones */
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}

/* Estilos para el carrito */
.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-container.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    padding: 0.5rem;
    line-height: 1;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 0.5rem;
    background: #f7fafc;
    padding: 0.5rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #1a202c;
}

.cart-item-price {
    color: #4a5568;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background: #edf2f7;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #4a5568;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #e2e8f0;
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

.remove-item {
    margin-left: auto;
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    line-height: 1;
}

.cart-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
}

.cart-total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.checkout-btn {
    width: 100%;
    background: #2ecc40;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: block;
}

.checkout-btn:hover {
    background: #25a32a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-cart {
    text-align: center;
    padding: 2rem 0;
    color: #718096;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.empty-cart p {
    margin: 0.5rem 0;
}

.empty-cart .empty-cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
}

.empty-cart .empty-cart-subtitle {
    font-size: 0.9rem;
    color: #a0aec0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Estilos para el botón de carrito */
.cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cart-btn i {
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cart badge styles */
.cart-badge {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #ef4444;
    color: white;
    border-radius: 9999px;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.notification i {
    font-size: 1rem;
}

/* Estilos para notificaciones */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.notification.hide {
    animation: slideOut 0.3s ease-in;
}

.notification i {
    font-size: 1.25rem;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
}

/* Estilos para el formulario de pago */
.payment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Estilos para el botón de enviar */
.submit-btn {
    width: 100%;
    background: #2ecc40;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #25a32a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estilos para mensajes de error */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Estilos para el overlay de carga */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para el mensaje de éxito */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.success-message p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.success-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.success-btn:hover {
    background: #0d9f6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ------------------- PRODUCTS GRID BASE STYLES ------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: 0.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1rem;
}

.add-to-cart-btn, .add-to-cart {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.add-to-cart-btn:hover, .add-to-cart:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .cart-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 0.75rem;
        gap: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-card {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .product-card img {
        max-width: 80px;
        height: 80px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
        line-height: 1.2;
        margin: 0.5rem 0;
    }
    
    .product-card .price {
        font-size: 1rem;
        font-weight: bold;
    }
    
    .cart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .cart-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .cart-btn i {
        font-size: 1.25rem;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}
/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .product-card {
        padding: 1rem 0.75rem;
        max-width: none;
    }
    
    .product-image {
        width: 140px;
        height: 140px;
        margin: 0 auto 1rem;
    }
    
    .product-title, .product-name {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .add-to-cart-btn, .add-to-cart {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .product-card {
        padding: 0.75rem 0.5rem;
        border-radius: 0.5rem;
        max-width: none;
    }
    
    .product-image {
        width: 110px;
        height: 110px;
        margin: 0.5rem auto 0.75rem;
        object-fit: contain;
        display: block;
    }
    
    .product-title, .product-name {
        font-size: 0.9rem;
        min-height: 2rem;
        margin: 0.5rem 0;
        line-height: 1.2;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin: 0.5rem 0 0.75rem;
    }
    
    .add-to-cart-btn, .add-to-cart {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 0.375rem;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .product-card {
        padding: 0.75rem 0.5rem;
        max-width: none;
        margin: 0;
    }
    
    .product-image {
        width: 100px;
        height: 100px;
        margin: 0.5rem auto 0.75rem;
        object-fit: contain;
        display: block;
    }
    
    .product-title, .product-name {
        font-size: 0.85rem;
        min-height: 2rem;
        margin: 0.5rem 0;
        line-height: 1.2;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }
    
    .add-to-cart-btn, .add-to-cart {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: none;
        border-radius: 0.25rem;
    }
}

.back-link-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 40px;
}

.back-link {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    transition: all 0.2s;
}

.back-link:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

