/* Custom styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFF5E0;
    color: #576F72;
}

.bg-cream {
    background-color: #FFF5E0;
}

.bg-light-green {
    background-color: #7D9D9C;
}

.bg-dark-green {
    background-color: #576F72;
}

.text-dark-green {
    color: #576F72;
}

.text-cream {
    color: #FFF5E0;
}

.bg-hero-pattern {
    background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    position: relative;
}

.bg-hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 245, 224, 0.85);
    z-index: 0;
}

.bg-hero-pattern > * {
    position: relative;
    z-index: 1;
}

/* Product card styles */
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.book-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .book-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: white;
}

.price-tag {
    font-weight: bold;
    color: #576F72;
    font-size: 1.1rem;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-amazon, .btn-kindle {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-amazon {
    background-color: #576F72;
    color: white;
}

.btn-kindle {
    background-color: #7D9D9C;
    color: white;
}

.btn-amazon:hover, .btn-kindle:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input {
        width: 100%;
        max-width: 200px;
    }
}

/* Button styles */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
