/* Product Cards - Global Styles */

/* Catalog page styles */
.catalog-page-wrap .products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.catalog-page-wrap .product-card {
    max-width: 100% !important;
}

@media (min-width: 640px) {
    .catalog-page-wrap .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
}

@media (min-width: 1024px) {
    .catalog-page-wrap .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
    }
}

@media (min-width: 1400px) {
    .catalog-page-wrap .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
    }
}

/* Landing page catalog section */
.landing-wrap .catalog-section {
    padding: 100px 0 !important;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%) !important;
}

.landing-wrap .catalog-header {
    text-align: center;
    margin-bottom: 72px;
}

.landing-wrap .catalog-section h2 {
    font-size: 48px !important;
    font-weight: 800 !important;
    letter-spacing: -1.2px !important;
    margin: 0 0 16px 0 !important;
    color: #111827 !important;
    background: linear-gradient(135deg, #111827 0%, #4b5563 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.landing-wrap .catalog-subtitle {
    font-size: 20px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    letter-spacing: -0.3px !important;
    font-weight: 400 !important;
}

/* Products grid */
.landing-wrap .products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.landing-wrap .product-card {
    max-width: 100% !important;
}

/* Product card - Modern Design */
.landing-wrap .product-card {
    background-color: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateY(0) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.landing-wrap .product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
    color: inherit !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Product image container */
.landing-wrap .product-image-container {
    position: relative !important;
    height: 240px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}

.landing-wrap .product-image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.landing-wrap .product-card:hover .product-image {
    transform: scale(1.08) !important;
}

.landing-wrap .product-image-placeholder {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    color: #9ca3af !important;
}

/* Product overlay */
.landing-wrap .product-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    display: flex !important;
    align-items: flex-end !important;
    pointer-events: none !important;
}

.landing-wrap .product-card:hover .product-overlay {
    opacity: 1 !important;
}

.landing-wrap .product-overlay-content {
    padding: 20px !important;
    width: 100% !important;
}

.landing-wrap .product-overlay-text {
    display: inline-flex !important;
    align-items: center !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.landing-wrap .product-overlay-arrow {
    margin-left: 6px !important;
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

.landing-wrap .product-card:hover .product-overlay-arrow {
    transform: translateX(4px) !important;
}

/* Category badge */
.landing-wrap .category-badge {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 10 !important;
}

.landing-wrap .category-badge-content {
    background-color: rgb(79 70 229) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3) !important;
    border: none !important;
}

.landing-wrap .category-badge-icon {
    width: 12px !important;
    height: 12px !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
    opacity: 0.9 !important;
}

/* Product content */
.landing-wrap .product-content {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
}

.landing-wrap .product-name {
    font-weight: 600 !important;
    font-size: 17px !important;
    margin: 0 0 10px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #111827 !important;
    transition: color 0.3s ease !important;
    line-height: 1.5 !important;
    letter-spacing: -0.2px !important;
}

.landing-wrap .product-card:hover .product-name {
    color: #4f46e5 !important;
}

.landing-wrap .product-description {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin: 0 0 16px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.6 !important;
}

/* Price section */
.landing-wrap .price-section {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid #f3f4f6 !important;
}

.landing-wrap .price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.landing-wrap .product-price {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

.landing-wrap .installment-badge {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
    color: #4338ca !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 1px 3px rgba(67, 56, 202, 0.2) !important;
}

.landing-wrap .monthly-payment {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    gap: 6px !important;
}

.landing-wrap .monthly-payment-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    opacity: 0.8 !important;
}

.landing-wrap .monthly-payment strong {
    color: #111827 !important;
    font-weight: 700 !important;
}

/* Product CTA */
.landing-wrap .product-cta {
    padding: 0 20px 20px 20px !important;
}

.landing-wrap .product-cta-button {
    width: 100% !important;
    padding: 12px 0 !important;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
    color: #4338ca !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 14px !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.1) !important;
    border: none !important;
}

.landing-wrap .product-card:hover .product-cta-button {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.1) !important;
}

/* Hover effects for product card - already defined above */

.landing-wrap .product-card:hover .product-image {
    transform: scale(1.08) !important;
}

.landing-wrap .product-card:hover .product-name {
    color: #4f46e5 !important;
}

.landing-wrap .product-card:hover .product-overlay {
    opacity: 1 !important;
}

.landing-wrap .product-card:hover .product-overlay-arrow {
    transform: translateX(4px) !important;
}

/* Product image styles */
.landing-wrap .product-image,
.catalog-page-wrap .product-image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Apply product card styles to catalog page */
.catalog-page-wrap .product-card {
    background-color: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateY(0) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    max-width: 100% !important;
}

.catalog-page-wrap .product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
    color: inherit !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.catalog-page-wrap .product-image-container {
    position: relative !important;
    height: 240px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}

.catalog-page-wrap .product-card:hover .product-image {
    transform: scale(1.08) !important;
}

.catalog-page-wrap .product-image-placeholder {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    color: #9ca3af !important;
}

.catalog-page-wrap .product-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    display: flex !important;
    align-items: flex-end !important;
    pointer-events: none !important;
}

.catalog-page-wrap .product-card:hover .product-overlay {
    opacity: 1 !important;
}

.catalog-page-wrap .product-overlay-content {
    padding: 20px !important;
    width: 100% !important;
}

.catalog-page-wrap .product-overlay-text {
    display: inline-flex !important;
    align-items: center !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.catalog-page-wrap .product-overlay-arrow {
    margin-left: 6px !important;
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

.catalog-page-wrap .product-card:hover .product-overlay-arrow {
    transform: translateX(4px) !important;
}

.catalog-page-wrap .category-badge {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 10 !important;
}

.catalog-page-wrap .category-badge-content {
    background-color: rgb(79 70 229) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3) !important;
    border: none !important;
}

.catalog-page-wrap .category-badge-icon {
    width: 12px !important;
    height: 12px !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
    opacity: 0.9 !important;
}

.catalog-page-wrap .product-content {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
}

.catalog-page-wrap .product-name {
    font-weight: 600 !important;
    font-size: 17px !important;
    margin: 0 0 10px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #111827 !important;
    transition: color 0.3s ease !important;
    line-height: 1.5 !important;
    letter-spacing: -0.2px !important;
}

.catalog-page-wrap .product-card:hover .product-name {
    color: #4f46e5 !important;
}

.catalog-page-wrap .product-description {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin: 0 0 16px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.6 !important;
}

.catalog-page-wrap .price-section {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid #f3f4f6 !important;
}

.catalog-page-wrap .price-row {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.catalog-page-wrap .product-price {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

.catalog-page-wrap .monthly-payment {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    gap: 6px !important;
}

.catalog-page-wrap .monthly-payment-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    opacity: 0.8 !important;
}

.catalog-page-wrap .monthly-payment strong {
    color: #111827 !important;
    font-weight: 700 !important;
}

.catalog-page-wrap .product-cta {
    padding: 0 20px 20px 20px !important;
}

.catalog-page-wrap .product-cta-button {
    width: 100% !important;
    padding: 12px 0 !important;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
    color: #4338ca !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 14px !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.1) !important;
    border: none !important;
}

.catalog-page-wrap .product-card:hover .product-cta-button {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.1) !important;
}

/* Product overlay styles */
.landing-wrap .product-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    display: flex !important;
    align-items: flex-end !important;
    pointer-events: none !important;
}

.landing-wrap .product-overlay-content {
    padding: 20px !important;
    width: 100% !important;
}

.landing-wrap .product-overlay-text {
    display: inline-flex !important;
    align-items: center !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.landing-wrap .product-overlay-arrow {
    margin-left: 6px !important;
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

/* Responsive grid */
@media (min-width: 640px) {
    .landing-wrap .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
}

@media (min-width: 768px) {
    .landing-wrap .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
}

@media (min-width: 1024px) {
    .landing-wrap .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
    }
}

@media (min-width: 1400px) {
    .landing-wrap .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
    }
}

/* Mobile adaptations */
@media (max-width: 600px) {
    .landing-wrap .catalog-section {
        padding: 60px 0 !important;
    }
    
    .landing-wrap .catalog-header {
        margin-bottom: 48px !important;
    }
    
    .landing-wrap .catalog-section h2 {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    
    .landing-wrap .catalog-subtitle {
        font-size: 16px !important;
    }
    
    .landing-wrap .products-grid {
        padding: 0 16px !important;
        gap: 24px !important;
    }
    
    .landing-wrap .product-image-container {
        height: 200px !important;
    }
    
    .landing-wrap .product-content {
        padding: 16px !important;
    }
    
    .landing-wrap .product-name {
        font-size: 16px !important;
    }
    
    .landing-wrap .product-description {
        font-size: 13px !important;
    }
    
    .landing-wrap .product-price {
        font-size: 22px !important;
    }
    
    .landing-wrap .product-cta {
        padding: 0 16px 16px 16px !important;
    }
    
    .landing-wrap .category-badge {
        top: 12px !important;
        left: 12px !important;
    }
    
    .landing-wrap .category-badge-content {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
}

