
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
}

.variation-btn {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 5px;
    transition: all 0.3s;
    background: #f8f9fa;
    cursor: pointer;
}
.variation-btn:hover, .variation-btn.active {
    border-color: var(--primary);
    background-color: #e8f4ff;
    color: var(--primary);
}
.price-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}
.original-price {
    text-decoration: line-through;
    color: var(--secondary);
    font-size: 1.2rem;
}
.sales-price {
    color: var(--success);
    font-size: 1.8rem;
    font-weight: bold;
}

/* Improved quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
    flex-wrap: wrap;
}
.quantity-label {
    font-weight: 600;
    margin-right: 15px;
    min-width: 80px;
    color: var(--dark);
}
.quantity-controls {
    display: flex;
    align-items: center;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    background: #fff;
    border-radius: 5px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s;
}
.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}
.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin: 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}
.total-display {
    margin-left: auto;
    text-align: right;
    padding: 0 15px;
}
.total-label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 5px;
}
.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

/* Action buttons - all in one line */
.action-buttons-container {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
    align-items: center;
}
.action-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}
@media (max-width: 576px) {
    .action-btn {
        min-width: calc(50% - 10px);
    }
}
.cart-btn {
    background: var(--primary);
    color: #fff;
}
.cart-btn:hover {
    background: #0069d9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}
.buy-btn {
    background: var(--success);
    color: #fff;
}
.buy-btn:hover {
    background: #218838;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40,167,69,0.3);
}
.wishlist-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--danger);
    color: var(--danger);
    flex: 0 0 auto;
}
.wishlist-btn:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.3);
}

.book-image {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}
.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}
.product-meta {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 20px;
}
.description-content {
    line-height: 1.8;
    color: #495057;
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
    margin-top: 20px;
}
.description-content p:last-child {
    margin-bottom: 0;
}