.pages {
    margin: 0 15%;
    padding: 0 0 5% 0;
}

.page {
    display: none;
    padding: 3% 5% 5% 5%;
    min-height: max-content;
    border-radius: 0 0 70px 70px;
    flex-direction: column;
    background-color: var(--page-background-color);
}

.center-page {
    align-items: center;
    flex-direction: column;
}

.page.active {
    display: flex;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.access-container {
    background-color: var(--tab-background);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 50%;
    transition: width 0.3s ease;
}

.access-container.expanded {
    width: 75%;
}

.form-header {
    display: flex;
    margin-bottom: 0px;
    border-bottom: 1px solid #ddd;
}

.tab-buttons {
    display: flex;
    margin-bottom: 0px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    width: 100%;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: var(--tab-inactive-background);
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: background-color 0.3s;
    width: 50%;
    color: var(--tab-text-color);
    font-weight: bold;
    font-size: large;
}

.tab-btn.active {
    background-color: var(--tab-active-background);
    color: var(--text-color);
}

.tab-btn:hover {
    background-color: var(--tab-button-hover);
}

.tab-content {
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--input-background);
}

.form-group textarea {
    resize: vertical;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
}

.checkbox-label a {
    color: var(--tab-text-color);
}

.login-btn,
.register-btn {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.login-btn:hover,
.register-btn:hover {
    background-color: var(--tab-button-hover);
}

.forgot-password {
    color: var(--tab-text-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

#login-message,
#register-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#login-message.success,
#register-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#login-message.error,
#register-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.search-bar {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    width: 100%;
    height: 35px;
}

#Product-Search {
    padding: 7px 0 7px 50px;
    border-radius: 50px;
    margin-bottom: 1%;
    border: 1px solid #ccc;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: black;
}

#Product-Search::placeholder {
    color: transparent;
}

a[language="Search"] {
    position: absolute;
    top: 0;
    left: 25px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: #999;
    pointer-events: none;
    text-decoration: none;
    box-sizing: border-box;
    z-index: 0;
}

#Product-Search:focus,
#Product-Search:not(:placeholder-shown) {
    background: white;
}

#Product-Search:focus+a[language="Search"],
#Product-Search:not(:placeholder-shown)+a[language="Search"] {
    display: none;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1%;
    width: 100%;
}

.product {
    width: calc(33.33% - 1.33%);
    margin-bottom: 1%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--product-background-color);
    transition: transform 0.2s ease-in-out;
}

.product:hover {
    transform: translateY(-3px);
}

.card-image {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
    background-color: var(--product-image-background-color);
    border-bottom: 1px solid #eee;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--product-title-color);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-description {
    font-size: 0.9em;
    color: var(--product-description-color);
    line-height: 1.4;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-price {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--product-price-color);
    margin-bottom: 15px;
}

.card-button {
    background-color: var(--product-button-color);
    color: var(--product-button-text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease-in-out;
    display: inline-block;
    text-decoration: none;
}

.card-button:hover {
    background-color: var(--product-button-color-hover);
    color: var(--product-button-text-color-hover);
}

.quantity-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.product-management-container {
    background-color: var(--Manage-Product-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
}

.image-upload-column {
    width: 40%;
    max-height: 310px;
    max-width: 300px;
    background-color: var(--product-image-background-color);
    padding: 0 10px 0 10px;
    border-radius: 4px;
}

.input-fields-column {
    width: 100%;
}

.product-form label {
    margin-top: 10px;
    color: var(--Manage-Product-label-color);
    display: block;
}

.product-form input[type="text"],
.product-form input[type="number"],
.product-form textarea {
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid var(--Manage-Product-form-border);
    border-radius: 4px;
    color: var(--Manage-Product-input-color);
    width: 100%;
    box-sizing: border-box;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

.product-form button {
    padding: 10px 15px;
    width: 50%;
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    background-color: var(--Manage-Product-button-background);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 5px;
}

.product-form button:hover {
    background-color: var(--Manage-Product-button-hover-background);
}

.error-message {
    color: var(--Manage-Product-error-color);
    margin-top: 10px;
}

.success-message {
    color: var(--Manage-Product-success-color);
    margin-top: 10px;
}

.image-upload-container {
    border: 2px dashed var(--Manage-Product-input-border);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
    height: 260px;
    box-sizing: border-box;
}

.image-upload-label {
    color: var(--Manage-Product-label-color);
}

.image-preview {
    margin-top: 10px;
    text-align: center;
}

.image-preview img {
    width: 100%;
    height: 200px;
    height: auto;
    border-radius: 8px;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.cart-container {
    display: flex;
    width: 100%;
    gap: 20px;
}

.cart-container .product-list {
    flex: 2;
    padding: 10px;
    border-right: 1px solid var(--input-border);
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--input-border);
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    font-weight: bold;
}

.qty-input {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    text-align: center;
}

.cart-summary {
    flex: 1;
    padding: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.total {
    font-weight: bold;
    font-size: 1.2em;
}

.payment-method {
    margin-top: 20px;
}

.payment-method select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-background);
    margin-bottom: 10px;
}

.delivery-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.delivery-details input[type="text"],
.delivery-details textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--input-background);
    margin-bottom: 10px;
}

.cart-btn {
    background-color: var(--button-color);
    color: var(--button-text-color);
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.cart-btn:hover {
    background-color: var(--button-hover-color);
    color: var(--button-text-hover-color);
}

.error-message {
    color: var(--error-color);
    margin-top: 5px;
}

.product-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.product-qty,
.product-price,
.product-total {
    text-align: right;
    width: 80px;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.quotation-container {
    display: flex;
    width: 100%;
    gap: 20px;
}

.quotation-list {
    flex: 2;
    padding: 10px;
    border-right: 1px solid var(--input-border);
}

.personal-info-form {
    flex: 1;
    padding: 10px;
}

.personal-info-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.personal-info-form input[type="text"],
.personal-info-form input[type="email"],
.personal-info-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--input-background);
    margin-bottom: 10px;
}

.request-quotation-btn {
    background-color: var(--button-color);
    color: var(--button-text-color);
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.request-quotation-btn:hover {
    background-color: var(--button-hover-color);
    color: var(--button-text-hover-color);
}

.error-message {
    color: var(--error-color);
    margin-top: 5px;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.profile-details {
    margin-bottom: 20px;
}

.profile-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.profile-details input,
.profile-details textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-background);
    color: var(--text-color);
    box-sizing: border-box;
}

.profile-details input:disabled {
    background-color: #dedede;
    cursor: not-allowed;
}

.profile-details .edit-password-container {
    display: flex;
    flex-direction: column;
}

.profile-details .edit-password-container input {
    margin-bottom: 5px;
}

.save-button {
    background-color: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-button:hover {
    background-color: var(--button-hover-color);
    color: var(--button-text-hover-color);
}

.order-record-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.order-record-table th,
.order-record-table td {
    border: 1px solid var(--input-border);
    padding: 8px;
    text-align: left;
}

.order-record-table th {
    background-color: var(--table-title-color);
    font-weight: bold;
}

.order-record-table tbody tr:nth-child(odd) {
    background-color: var(--table-odd-color);
}

.order-record-table tbody tr:nth-child(even) {
    background-color: var(--table-even-color);
}

.name-contact-container {
    display: flex;
    gap: 20px;
}

.name-contact-container>div {
    flex: 1;
}

.profile-title {
    margin-bottom: 5px;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.quotation-list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.quotation-list th,
.quotation-list td {
    border: 1px solid var(--input-border);
    padding: 8px;
    text-align: left;
}

.quotation-list th {
    background-color: var(--table-title-color);
    font-weight: bold;
}

.quotation-list tbody tr:nth-child(odd) {
    background-color: var(--table-odd-color);
}

.quotation-list tbody tr:nth-child(even) {
    background-color: var(--table-even-color);
}

.order-control-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.order-control-button {
    background-color: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.order-control-button:hover {
    background-color: var(--button-hover-color);
    color: var(--button-text-hover-color);
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */