package com.example;

import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;

public class ShopController {

    @FXML
    private Button cartBtn;

    @FXML
    private Button loginBtn;

    @FXML
    private Button cardBtn1;

    @FXML
    private Button cardBtn2;

    @FXML
    private Button cardBtn3;

    @FXML
    private Button cardBtn4;

    @FXML
    private Button cardBtn5;

    @FXML
    private Button cardBtn6;

    @FXML
    private Button cardBtn7;

    @FXML
    private Button cardBtn8;

    @FXML
    private Label mainTitle;

    @FXML
    private TextArea cardText1;

    @FXML
    private TextArea cardText2;

    @FXML
    private TextArea cardText3;

    @FXML
    private TextArea cardText4;

    @FXML
    private TextArea cardText5;

    @FXML
    private TextArea cardText6;

    @FXML
    private TextArea cardText7;

    @FXML
    private TextArea cardText8;

    @FXML
    public void initialize() {
        // Initialization logic can go here.
        System.out.println("ShopController initialized.");
    }

    @FXML
    private void handleCartButton() {
        System.out.println("Cart button clicked!");
        // Logic for displaying the cart.
    }

    @FXML
    private void handleLoginButton() {
        System.out.println("Login button clicked!");
        // Logic for handling login.
    }

    @FXML
    private void handleAddToCartButton1() {
        System.out.println("Added 'Lord of the Rings' to cart!");
        // Logic for adding the first book to the cart.
    }

    @FXML
    private void handleAddToCartButton2() {
        System.out.println("Added 'The Wheel of Time' to cart!");
        // Logic for adding the second book to the cart.
    }

    @FXML
    private void handleAddToCartButton3() {
        System.out.println("Added 'The Chronicles of Narnia' to cart!");
        // Logic for adding the third book to the cart.
    }

    @FXML
    private void handleAddToCartButton4() {
        System.out.println("Added 'The Earthsea Cycle' to cart!");
        // Logic for adding the fourth book to the cart.
    }

    @FXML
    private void handleAddToCartButton5() {
        System.out.println("Added 'The First Law Trilogy' to cart!");
        // Logic for adding the fifth book to the cart.
    }

    @FXML
    private void handleAddToCartButton6() {
        System.out.println("Added 'The Kingkiller Chronicle' to cart!");
        // Logic for adding the sixth book to the cart.
    }

    @FXML
    private void handleAddToCartButton7() {
        System.out.println("Added 'The Mistborn Series' to cart!");
        // Logic for adding the seventh book to the cart.
    }

    @FXML
    private void handleAddToCartButton8() {
        System.out.println("Added 'The Stormlight Archive' to cart!");
        // Logic for adding the eighth book to the cart.
    }
}
