body {
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

header {
    background-color: #095f70; /* Effy Retail */
    /* background-color: #00aaa9; /* Effy teal */ */
    color: #fff;
    padding: 20px;
    text-align: center;
}

header .logo-container {
    display: flex;
    justify-content: center;
    gap: 100px;
}

header .logo1 {
    /*height: 200px; */ /* EFFY LOGO */
    height: 100%;
    width: 25%;
    padding: 10px;
}

header .logo2 {
    /*height: 200px; */  /* JCK LOGO */
    height: 100%;
    width: 25%;
    padding: 10px;
}

header .header-content {
    margin-top: 20px;
}

header h1 {
    margin: 0; /* Remove default margin */
    font-size: 50px;
    color: #fff;
}

header h2 {
    margin: 0; /* Remove default margin */
    font-size: 25px;
    color: #fff;
}

header h3 {
    margin: 0; /* Remove default margin */
    font-size: 25px;
    color: #fff;
}

#currentUsersHeader {
    display: flex;
    justify-content: center;
}

#customerHeader {
    padding: 10px;
}

#customerHeader button {
    background-color: #66664d; /* EFFY Warm Grey */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

#salespersonHeader {
    padding: 10px;
}

#salespersonHeader button {
    background-color: #66664d; /* EFFY Warm Grey */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

nav ul {
    list-style-type: none;
    padding: 0; /* Remove default padding */
    margin: 20px 0 0 0; /* Add margin to separate from the title */
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    font-size: 24px;
}

main {
    padding: 10px;
    background-color: #66664d;
    color: #fff;
    text-align: -webkit-center;
}

.products {
    width: 100%;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.product-tile {
    background-color: #095f70; /* Effy teal */
    /* background-color: #00aaa9; /* Effy teal */ */
    border: 1px solid #66664d; /* EFFY Warm Grey */
    padding: 1rem;
    width: calc(10% - 2rem); /* Default to 10 tiles per row */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image {
    max-width: 100%;
    height: auto;
}

.product-info {
    text-align: center;
}

.product-collection, .product-style, .product-description, .product-price {
    margin: 0.5rem 0;
    color: #fff;
    overflow-wrap: anywhere;
}

a {
    color: #fff;
}

.button {
    background-color: #66664d; /* EFFY Warm Grey */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.add-to-cart:hover {
    background-color: #0056b3;
}

#partnerBenefitsButton {
    background-color: #66664d; /* EFFY Warm Grey */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}
#searchBar {
    width: 100%;
    padding: 0.5rem;
    margin: 1rem 0;
    box-sizing: border-box;
    color: #095f70;
}
#collectionFilter {
    color: #095f70;
    text-align: -webkit-center;
    height: 30px;
}
.filters {
    color: #095f70;
    text-align: -webkit-center;
    justify-self: center;
}
.products table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.products th, .products td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: -webkit-center;
    overflow: hidden; /* Prevent long text from expanding cells */
    white-space: nowrap; /* Prevent wrapping long text */
    text-overflow: ellipsis; /* Show ellipsis (...) for truncated text */
}

.products th {
    background-color: #f2f2f2;
    color: #095f70;
    text-align: -webkit-center;
}

footer {
    background-color: #095f70; /* Effy teal */
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* Popup Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
    padding-bottom: 60px;
    margin: 0 auto;
    justify-items: center;
    text-align: -webkit-center;
}

.modal-content {
    display: inline-grid; /*NOT FLEX*/
    flex-direction: column; /* Arrange content vertically */
    background-color: #095f70;
    padding: 5px;
    border: 5px solid #fefefe; /* Change border color */
    max-width: fit-content; /* Adjust the maximum width as needed */
    margin: 0 auto; /* Center the modal horizontally */
    align-items: center;
    color: #fff;
    text-align: -webkit-center;
    justify-items: center;
}

.modal-image-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 200px; /* Adjust the height as needed */
}

.modal-image {
    max-width: 50%; /* Ensure image does not exceed container */
    max-height: 100%; /* Ensure image does not exceed container */
}

.text-container {
    margin-top: 20px; /* Add margin between image and text */
    text-align: center;
    color: #fff;
    max-width: 100%;
    max-height: 100%;
}

.close {
    color: #ffffff;
    float: right;
    font-size: 50px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.cart {
    color: #66664d;
    text-align: left;
    padding: 10px;
}

.cartTable th, .cartTable td {
    padding: 10px;
    text-align: -webkit-center;
    overflow-wrap: break-word;
    justify-content: center;
}

.cartTable td input, .cartTable td button {
    width: -webkit-fill-available;
}
    .remove-icon {
        color: red;
        font-size: 16px;
	padding: 5px;
	align-self: center;
	width: auto;
    }

    .remove-icon:hover {
        color: darkred;
    }
form {
    text-align: -webkit-center;
    color: #fff;
}

.customer-info {
    text-align: -webkit-center;
    color: #fff;
}


#customerForm {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*width: 100%;*/
}

#customerForm input {
    text-align: -webkit-center;
    width: 25%;
    height: 25px;
    color: #095f70;
}
#customerForm button {
    padding: 20px;
    background-color: #095f70;
}

#customerForm {
    padding: 20px;
}





.cart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.cart-item-left {
    flex: 0 0 100px;
}

.cart-item-image {
    width: 80px;
    height: auto;
}

.cart-item-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-meta span {
    display: block;
    font-size: 0.9em;
    color: #555;
}

.controls-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-controls button {
    background-color: #66664d; /* EFFY Warm Grey */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    width: auto;
}

.cart-notes {
    min-width: 150px;
    flex: 1;
}

.total-price {
    align-self: flex-start;
    font-weight: bold;
    margin-left: auto;
    white-space: nowrap;
}





.cartTable {
    
    width: 100%;
    
    max-width: 100%;
    
    border-collapse: collapse;
    
    overflow-x: auto;
    
    display: block;

}



.cartTable thead {
    
    background-color: #f8f8f8;
    
    position: sticky;
    
    top: 0;

}

.cartTable tbody {
    
    display: block;
    
   
    max-height: 60vh; /* Adjust based on preference */

}

.cartTable tr {
    
    display: table;
    
    width: 100%;
    
    table-layout: fixed;

}




.invoiceTable {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.invoiceTable th, .invoiceTable td {
    padding: 10px;
    text-align: -webkit-center;
    overflow-wrap: break-word;
}

.invoiceTable td input, .invoiceTable td button {
    width: -webkit-fill-available;
}

.invoiceTable thead {
    background-color: #f8f8f8;
    position: sticky;
    top: 0;
}

.invoiceTable tbody {
    display: block;
    max-height: 60vh; /* Adjust based on preference */

}

.invoiceTable tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}


input {
    text-align: -webkit-center;
    width: auto;
}


/* Layout container */
#catalogContainer {
    display: flex;
    height: 100%;
    width: 100%;
}

#lockButton {
    background-color: #66664d; /* EFFY Warm Grey */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 0.5rem;
}


/* Left cart preview sidebar */
#cartPreview {
    width: 10%; /* Fixed percentage for sidebar */
    /* max-height: 85vh; */
    overflow-y: auto;
    background-color: #f8f8f8;
    padding: 15px;
    font-size: 0.9rem;
    border-right: 1px solid #ccc;
    justify-items: center;
    text-align: -webkit-center;
}

/* Main content area */
#mainContent {
    width: 90%; /* Remaining space */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center inner content horizontally */
}

#cartPreview h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #095f70;
}
#cartPreview button {
    background-color: #66664d; /* EFFY Warm Grey */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 0.5rem;
}
    .cart-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
    }

    .cart-item img {
        height: auto;
        width: 100px;
        object-fit: cover;
        margin-right: 10px;
        border-radius: 4px;
    }

    .cart-item-details {
        display: flex;
        flex-direction: column;
    }

    .cart-item-details span {
        font-size: 14px;
    }

    .cart-item-details .qty {
        font-weight: bold;
        color: #095f70;
    }
    .remove-icon {
        color: red;
        margin: 5px;
	width: auto;
    }

    .remove-icon:hover {
        color: darkred;
    }


#cartPreview h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #095f70;
    text-align: -webkit-center;
}

.cart-preview-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.cart-preview-item img {
    width: 60px;
    height: auto;
    margin-right: 10px;
    border-radius: 5px;
}

.cart-preview-item-info {
    flex-grow: 1;
}

.cart-preview-item-info span {
    display: block;
}


/*COMPUTER SIZE*/
/* Adjust the number of tiles per row for different screen sizes */
@media (min-width: 1800px) {
    .product-tile {
        width: calc(10% - 1rem); /* 10 tiles per row */
    }
main {
    height: 100%;/*600px;*/
    justify-content: center;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    font-size: xx-large;
}
#customerForm input {
    text-align: -webkit-center;
    width: 70%;
    height: 50px;
    font-size: x-large;
    color: #095f70;
}
#customerForm button {
font-size: xx-large;
}
}

/*TABLET SIZE LANDSCAPE*/
@media (max-width: 1799px) and (min-width: 1025px) {
.customer-info h2 {
    margin-bottom: 0;
}
main {
    /*height: 400px;*/
    justify-content: center;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    font-size: large;
}
#customerForm input {
    text-align: -webkit-center;
    width: 70%;
    height: 25px;
    color: #095f70;
font-size: large;
color: #095f70;
}
#customerForm button {
font-size: medium;
}
    .product-tile {
        width: calc(20% - 1rem); /* 5 tiles per row */
	font-size: 0.85rem;
    }
/* Left cart preview sidebar */
  #cartPreview {
    width: 15%; /* Fixed percentage for sidebar */
    /* max-height: 85vh; */
    overflow-y: auto;
    background-color: #f8f8f8;
    padding: 15px;
    font-size: 0.9rem;
    border-right: 1px solid #ccc;
    justify-items: center;
  }

/* Main content area */
  #mainContent {
    width: 85%; /* Remaining space */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center inner content horizontally */
  }

}

/*TABLET SIZE PORTRAIT*/
@media (max-width: 1024px) and (min-width: 769px) {
main {
    /*height: 1100px;*/
    justify-content: center;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    font-size: large;
}
#customerForm input {
    text-align: -webkit-center;
    width: 70%;
    height: 25px;
    color: #095f70;
}

    .product-tile {
        width: calc(33.33% - 1rem); /* 3 tiles per row */
	font-size: 0.85rem;
    }
/* Left cart preview sidebar */
#cartPreview {
    width: 20%; /* Fixed percentage for sidebar */
    /* max-height: 85vh; */
    overflow-y: auto;
    background-color: #f8f8f8;
    padding: 15px;
    font-size: 0.9rem;
    border-right: 1px solid #ccc;
    justify-items: center;
}
.cart-item img {
    width: 50px;
}
/* Main content area */
#mainContent {
    width: 80%; /* Remaining space */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center inner content horizontally */
}

}

/*PHONE SIZE*/
@media (max-width: 768px) and (min-width: 481px) {
main {
    /*height: 700px;*/
    justify-content: center;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    font-size: xx-large;
}
#customerForm input {
    text-align: -webkit-center;
    width: 60%;
    height: 25px;
    color: #095f70;
}
    .product-tile {
        width: calc(50% - 1rem); /* 2 tiles per row */
	font-size: 0.65rem;
    }
/* Left cart preview sidebar */
#cartPreview {
    width: 25%; /* Fixed percentage for sidebar */
    /* max-height: 85vh; */
    overflow-y: auto;
    background-color: #f8f8f8;
    padding: 15px;
    font-size: 0.9rem;
    border-right: 1px solid #ccc;
    justify-items: center;
}

/* Main content area */
#mainContent {
    width: 75%; /* Remaining space */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center inner content horizontally */
}

}

/*PHONE SIZE 2*/
@media (max-width: 480px) {
main {
    /*height: 600px;*/
    justify-content: center;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    font-size: x-large;
}
main label {
    font-size: x-large;
}
    .product-tile {
        width: 100%; /*calc(50% - 1rem);*/ /* 2 tiles per row */
	font-size: 1rem;
    }

#customerForm input {
    text-align: -webkit-center;
    width: 50%;
    height: 25px;
    color: #095f70;
}
#searchBar {
    width: 80%;
    padding: 0.5rem;
    margin: 1rem 0;
    box-sizing: border-box;
    color: #095f70;
}
#collectionFilter {
    color: #095f70;
    text-align: -webkit-center;
    width: 80%;
}
/* Left cart preview sidebar */
#cartPreview {
    width: 30%; /* Fixed percentage for sidebar */
    /* max-height: 85vh; */
    overflow-y: auto;
    background-color: #f8f8f8;
    padding: 15px;
    font-size: 0.9rem;
    border-right: 1px solid #ccc;
    justify-items: center;
}
#cartPreview button {
    background-color: #66664d;
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin: 0.5rem;
}
input#searchBar {
    font-size: 70%;
}
.cart-item img {
    height: auto;
    width: 100px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}
.controls-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Main content area */
#mainContent {
    width: 100%; /* Remaining space */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center inner content horizontally */
}

}