<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>

<fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" type="BorderPane" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.cartController">
   <top>
      <HBox id="header" alignment="CENTER" prefHeight="60.0" prefWidth="631.0" spacing="20.0" styleClass="header" BorderPane.alignment="CENTER">
         <children>
            <!-- Main Title -->
            <Label id="mainTitle" styleClass="mainTitle" text="Bookshop - Fantasy Brigade" />
            
            <!-- Spacer for alignment -->
            <Pane HBox.hgrow="ALWAYS" />
            
            <!-- Buttons -->
            <Button id="cartBtn" mnemonicParsing="false" styleClass="cartBtn" text="Cart" />
            <Button id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" />
         </children>
         <padding>
            <Insets bottom="10.0" left="20.0" right="20.0" top="10.0" />
         </padding>
      </HBox>
   </top>
   <center>
      <GridPane id="main" styleClass="main" BorderPane.alignment="CENTER">
         <columnConstraints>
            <ColumnConstraints hgrow="SOMETIMES" minWidth="100.0" prefWidth="100.0" />
         </columnConstraints>
         <rowConstraints>
            <RowConstraints maxHeight="449.0" minHeight="17.0" prefHeight="18.0" vgrow="SOMETIMES" />
            <RowConstraints maxHeight="449.0" minHeight="30.0" prefHeight="394.0" vgrow="SOMETIMES" />
            <RowConstraints maxHeight="223.0" minHeight="9.0" prefHeight="9.0" vgrow="SOMETIMES" />
         </rowConstraints>
         <BorderPane.margin>
            <Insets />
         </BorderPane.margin>
         <children>
            <Button id="btnCheckOut" mnemonicParsing="false" styleClass="btnCheckOut" text="Check out" GridPane.rowIndex="2" />
            <Label id="cartTitle" styleClass="cartTitle" text="Your cart" />
            <TableView id="cartContent" prefHeight="0.0" prefWidth="364.0" GridPane.rowIndex="1">
               <columns>
                     <TableColumn id="nameColumn" prefWidth="243.0" text="Name" />
                     <TableColumn id="descriptionColumn" prefWidth="615.0" text="Description" />
                     <TableColumn id="quantityColumn" minWidth="0.0" prefWidth="154.0" text="Quantity" />
                     <TableColumn id="priceColumn" minWidth="0.0" prefWidth="147.0" text="Price" />
               </columns>
            </TableView>
         </children>
      </GridPane>
   </center>
   <bottom>
      <VBox id="footer" prefHeight="188.0" prefWidth="1200.0" styleClass="footer" BorderPane.alignment="CENTER">
         <children>
            <HBox id="footerLinks" alignment="TOP_CENTER" prefHeight="100.0" prefWidth="200.0">
               <children>
                  <VBox id="quickLinks" alignment="TOP_LEFT" prefHeight="145.0" prefWidth="470.0" spacing="10.0">
                     <children>
                        <Label id="footerText" prefHeight="25.0" prefWidth="226.0" styleClass="footerHeading" text="Quick Links" />
                        <Label id="footerHome" styleClass="footerText" text="Home" />
                        <Label id="footerAbout" styleClass="footerText" text="About Us" />
                        <Label id="footerContact" styleClass="footerText" text="Contact" />
                     </children>
                  </VBox>
                  <VBox id="contactUs" prefHeight="145.0" prefWidth="583.0" spacing="10.0">
                     <children>
                        <Label id="footerHeading2" prefWidth="534.0" styleClass="footerHeading" text="Contact Us" />
                        <Label id="footerEmail" styleClass="footerText" text="Email: info@example.com" />
                        <Label id="footerPhone" styleClass="footerText" text="Phone: +1 123 456 7890" />
                     </children>
                  </VBox>
                  <VBox id="followUs" alignment="TOP_RIGHT" spacing="10.0">
                     <children>
                        <Label id="footerHeading3" styleClass="footerHeading" text="Follow Us" />
                        <Label id="footerFacebook" styleClass="footerLink" text="Facebook" />
                        <Label id="footerBluesky" styleClass="footerLink" text="Bluesky" />
                        <Label id="footerInstagram" styleClass="footerLink" text="Instagram" />
                     </children>
                  </VBox>
               </children>
            </HBox>
            <VBox id="footerCopy" alignment="BOTTOM_CENTER" prefHeight="68.0" prefWidth="1170.0" spacing="10.0">
               <children>
                  <Label id="footerCopyText" alignment="CENTER" contentDisplay="CENTER" styleClass="footerCopy" text="© 2024 My Website. All rights reserved." />
               </children>
            </VBox>
         </children>
      </VBox>
   </bottom>
</fx:root>
