/* Milligram overrides */
:root {
    /* The following are official CakePHP colors */
    --color-cakephp-red: #d33c43;
    --color-cakephp-gray: #404041;
    --color-cakephp-blue: #2f85ae;
    --color-cakephp-lightblue: #34bdd7;

    /* These are additional colors */
    --color-lightgray: #606c76;
    --color-white: #fff;

    --color-main-bg: #f5f7fa;
    --color-links: var(--color-cakephp-blue);
    --color-links-active: #2a6496;
    --color-headings: #363637;

    --color-message-success-bg: #e3fcec;
    --color-message-success-text: #1f9d55;
    --color-message-success-border: #51d88a;

    --color-message-warning-bg: #fffabc;
    --color-message-warning-text: #8d7b00;
    --color-message-warning-border: #d3b800;

    --color-message-error-bg: #fcebea;
    --color-message-error-text: #cc1f1a;
    --color-message-error-border: #ef5753;

    --color-message-info-bg: #eff8ff;
    --color-message-info-text: #2779bd;
    --color-message-info-border: #6cb2eb;
}

.button, button, input[type='button'], input[type='reset'], input[type='submit'] {
    background-color: var(--color-cakephp-red);
    border-color: black;
}
html, body{
    min-height: 100%;
}
body {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    background: var(--color-main-bg);
}

.navbar-toggler{
    border-color: lightseagreen;
    border-width: 3px;
}
.navbar-toggler-icon{
    display: block !important;
}
.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "EB Garamond", serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--color-headings);
}

a {
    color: black;
    transition: color 0.2s linear;
    font-size: 14px;
}

a:hover,
a:focus,
a:active {
    color: black;
    transition: color 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {

}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color: black;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Main */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.content {
    padding: 2rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    width: 80%;
}
.content form {
    margin: 0;
}
.actions a {
    padding: 0 0.4rem;
}
.actions a:first-child {
    padding-left: 0;
}
th {
    white-space: nowrap;
}
span.required{
    color:red;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
}
.top-nav-title a {
    font-size: 0.5rem;
    color: var(--color-cakephp-red);
}
.top-nav-title span {
    color: var(--color-cakephp-gray);
}
.top-nav-links{
    margin-top: 10px;
}
.top-nav-links a {
    margin: 2.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
    text-decoration: none;
    color: #005249;
}
.nav-item a{
    font-size: 18px;
}
.nav-item i{
    font-size: 20px;
}
.logout-icon{
    display: inline-block;
    transform: rotate(180deg);
}
.top-nav-links a:hover{
    color: grey;
    text-decoration: underline;
}
.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: .5rem 1rem;
    background: var(--color-message-info-bg);
    color: var(--color-message-info-text);
    border-color: var(--color-message-info-border);
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 1rem;
    cursor: pointer;
    order: -1; /* This places the message before other flex items */
    width: 100%; /* Makes it take full width */
}
.message.hidden {
    display: none;
}
.message.success {
    margin: 20px auto;
    background: var(--color-message-success-bg);
    color: var(--color-message-success-text);
    border-color: var(--color-message-success-border);
}
@media (max-width: 768px) {
    .message-success{
        width: 80%;
    }
}
.message.warning {
    background: var(--color-message-warning-bg);
    color: var(--color-message-warning-text);
    border-color: var(--color-message-warning-border);
}
.message.error {
    background: var(--color-message-error-bg);
    color: var(--color-message-error-text);
    border-color: var(--color-message-error-border);
    width: 100%;
    text-align: center;
}

/* Forms */
.input.radio,
.input.checkbox,
.input.multicheckbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input,
.input.multicheckbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label,
.input.multicheckbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input,
.input.multicheckbox label > input {
    margin-right: 1.0rem;
}
input[type='color'] {
    max-width: 4rem;
    padding: 0.3rem .5rem 0.3rem;
}
.form-select{
    font-size: 16px;
}
/* Add this to your existing CSS - anywhere in the file */
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    border-color: #005249;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 73, 0.2);
}

/* Specifically for select dropdowns */
select:focus {
    border-color: #005249;
    background-color: #fff;
}

/* For text inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    border-color: #005249;
}

/* For form controls with error states */
.input.error input:focus,
.input.error select:focus,
.input.error textarea:focus {
    border-color: var(--color-message-error-border);
}

/* Paginator */
.paginator {
    text-align: right;
}
.paginator p {
    margin-bottom: 0;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}
.pagination li {
    display: inline-block;
    margin: 0.25em;
    text-align: center;
}
.pagination a {
    color: var(--color-cakephp-blue);
    display: inline-block;
    font-size: 1.25rem;
    line-height: 3rem;
    min-width: 3rem;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: background .3s,color .3s;
}
.pagination li.active a,
.pagination a:hover {
    text-decoration: underline;
}
.pagination .disabled a {
    cursor: not-allowed;
    color: var(--color-lightgray);
    text-decoration: none;
}
.first a,
.prev a,
.next a,
.last a {
    padding: 0 .75rem;
}
.disabled a:hover {
    background: initial;
    color: initial;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Error in non debug mode */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    /* Fix milligram not having a responsive column system */
    .row .column[class*='column-'] {
        flex: 0 0 100%;
        max-width: 100%
    }
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.list-column{
    display: block;
    flex: 1 1 auto;
    margin-left: 0;
}
.main {
    flex: 1;
}

.row{

}
.legend-title{
    font-size:32px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    color: black;
}

footer {
    background-color: #f8f9fa;
    width: 100vw;
    padding: 30px 0;
    margin-top: auto;
}
.footer-title{
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}
.contact-us-container {
    margin: 0 auto;
    max-width: 132.0rem;
    padding: 0 2.0rem;
    position: relative;
    width: 100%;
}
.contact-us-content {
    margin: 60px auto;
    width: 60%;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
}
.required-dot{
    text-align: center;
}
.form-actions{
    text-align: center;
}
.contact-us-index-content{
    margin-top: 60px;
    margin-bottom: 60px;
    width: 100%;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-content: center;
    align-items: center;
    place-items: center;
}
.contact-us-content form{
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-us-content{
        width: 95%;
        margin: 30px auto;
    }

    .contact-us-content input,
    .contact-us-content textarea,
    .contact-us-content select{
        padding: 6px;
        font-size: 12px;
        margin: 6px 0;
    }

    .login-button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-us-content{
        padding-left: 2rem;
        padding-right: 2rem;
        margin: 20px auto;
    }


    .contact-us-content input,
    .contact-us-content textarea,
    .contact-us-content select{
        padding: 2px;
        font-size: 10px;
    }

    .legend-title {
        font-size: 1.5rem;
    }
}

.database-button{
    color:black !important;
    padding: 10px;
    margin-top: 40px;
    width: 310px;
    height: 50px;
    border-width: 4px !important;
    border-radius: 0;
    border-color: black;
    line-height: 0;
    font-size: 14px;
    transition: all .5s ease-out;
    background-size: 200% 100%;
    background-position: left;
    cursor: pointer;
}
.database-button:hover{
    color: white !important;
    background-color: black;
}
.database-button a{
    color:inherit;
    text-decoration: none;
}
.flex-button-display{
    display: flex;
    align-items: center;
}
.message-container{
    display: block;
    text-align: left;
    width: 100%;
}
.forgot-content{
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 2rem;
    width: 400px;
    height: 450px;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-content: center;
    display: grid;
    place-items: center;
}
.forgot-content h3{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 40px;
}
.login-content{
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 2rem;
    width: 400px;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-content: center;
    display: grid;
    place-items: center;
}
.login-content form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-content h3{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 40px;
}
.login-legend{
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    font-size: 14px;
}
.login-button{
    border-color: black;
    color:black !important;
    padding: 10px;
    margin-top: 40px;
    width: 310px;
    height: 50px;
    border-width: 3px;
    border-radius: 0;
    line-height: 0;
    font-size: 14px;
    transition: all .5s ease-out;
    background: linear-gradient(to right, black 50%, white 50%);
    background-size: 200% 100%;
    background-position: right;
    cursor: pointer;
}
.login-button:hover{
    background-position: left;
    color: white !important;
}
.login-button a{
    color:inherit;
    text-decoration: none;
}
.footer-container{
    max-width: 100%;
}
footer{
    margin-top: 40px;
    width: 100%;
    text-align: center;
    background-color: white;
}
footer h2{
    font-size: 28px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
}
.payment-footer{
    width: 100px;
    background-color: transparent;
    color:#000000;
    border-color: #000;
    border-width: 2px;
}
.payment-footer i{
    font-size: 30px;
}
.payment-footer:hover{
    color:#000000;
    border-color: #000;
    background-color: transparent;
}

/* ===== Contact Us Index Page Styles ===== */

.full-width-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f5f8fa;
    min-height: 100vh;
}

.legend-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}

.styled-table {
    width: 100%;
    max-width: 1400px;
    border-collapse: collapse;
}

.styled-table th,
.styled-table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    word-break: break-word;
}

.styled-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.styled-table tr:hover {
    background-color: #fafafa;
}

@media (max-width: 768px) {
    .table {
        border: 1px solid #ddd;
    }

    .styled-table {
        white-space: nowrap;
    }

    .styled-table td,
    .styled-table th {
        padding: 8px 12px;
    }
}

.action-link {
    margin-right: 10px;
    color: #005249;
    border: 1px solid #005249;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
}
.back-action-link {
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}
.action-options{
    text-align: center;
    margin-bottom: 20px;
}

.action-link:hover {
    text-decoration: underline;
}

.paginator {
    display: flex;
    text-align: center;
    margin-top: 30px;
    font-family: "Poppins", sans-serif;
}

.paginator a {
    margin: 0 6px;
    text-decoration: none;
    color: #333;
}

.paginator .current {
    font-weight: bold;
    color: #000;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
/* ===== END Contact Us Index Page Styles ===== */

textarea {
    resize: vertical;
    min-height: 100px;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

a,
a:hover {
    text-decoration: none;
    color: inherit;
}

/*Users Page*/
.users-index-page{
    margin-top: 60px;
    margin-bottom: 60px;
    width: 90%;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-content: center;
    align-items: center;
    place-items: center;
}

/*users view page*/
.users-view-content{
    max-width: 600px;
    width: 100%;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-self: center;
    align-items: center;
    place-items: center;
}

.users-form-content{
    margin-top: 60px;
    margin-bottom: 60px;
    width: 60%;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-self: center;
    align-items: center;
    place-items: center;
}

/*Products Page*/
.products-index-content{
    margin-top: 60px;
    margin-bottom: 60px;
    width: 90%;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-content: center;
    align-items: center;
    place-items: center;
}

.products-view-content{
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-self: center;
    align-items: center;
    place-items: center;
}

.products-form-content{
    margin-top: 60px;
    margin-bottom: 60px;
    width: 60%;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
}

/* List Products */
.section-products {
    background-color: var(--color-white);
    margin-top: 40px;
    padding: 80px 0 54px;
    font-family: "Poppins", serif;
}

.section-products .header {
    margin-bottom: 50px;
}

.section-products .header h3 {
    font-size: 1rem;
    color: #fe302f;
    font-weight: 500;
}

.section-products .header h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: #444444;
}

.section-products .row{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.section-products .single-product {
    margin-bottom: 26px;
    width: 200px;
    font-size: 14px;
}

.section-products .single-product .part-1 {
    position: relative;
    overflow: hidden;
}


.section-products .single-product .part-1::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.3s;
}

.section-products .single-product:hover .part-1::before {
    transform: scale(1.2,1.2) rotate(5deg);
}

.section-products #product-1 .part-1::before {
    background: url("https://i.ibb.co/L8Nrb7p/1.jpg") no-repeat center;
    background-size: cover;
    transition: all 0.3s;
}

.section-products #product-2 .part-1::before {
    background: url("https://i.ibb.co/cLnZjnS/2.jpg") no-repeat center;
    background-size: cover;
}

.section-products #product-3 .part-1::before {
    background: url("https://i.ibb.co/L8Nrb7p/1.jpg") no-repeat center;
    background-size: cover;
}

.section-products #product-4 .part-1::before {
    background: url("https://i.ibb.co/cLnZjnS/2.jpg") no-repeat center;
    background-size: cover;
}

.section-products .single-product .part-1 .discount,
.section-products .single-product .part-1 .new {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #ffffff;
    background-color: #fe302f;
    padding: 2px 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.section-products .single-product .part-1 .new {
    left: 0;
    background-color: #444444;
}

.section-products .single-product .part-1 ul {
    position: absolute;
    bottom: -41px;
    left: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    transition: bottom 0.5s, opacity 0.5s;
}

.section-products .single-product:hover .part-1 ul {
    bottom: 30px;
    opacity: 1;
}

.section-products .single-product .part-1 ul li {
    display: inline-block;
    margin-right: 4px;
}

.section-products .single-product .part-1 ul li a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #ffffff;
    color: #444444;
    text-align: center;
    box-shadow: 0 2px 20px rgb(50 50 50 / 10%);
    transition: color 0.2s;
}

.section-products .single-product .part-1 ul li a:hover {
    color: #fe302f;
}

.section-products .single-product .part-2 .product-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.section-products .single-product .part-2 h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
}

.section-products .single-product .part-2 .product-old-price {
    position: relative;
    padding: 0 7px;
    margin-right: 2px;
    opacity: 0.6;
}

.section-products .single-product .part-2 .product-old-price::after {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #444444;
    transform: translateY(-50%);
}

.overlay-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.part-1{
    overflow: hidden;
    height: 80%;
}
.products-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.single-product {
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-link:hover .single-product {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.part-1 img {
    transition: transform 0.3s ease;
}

.product-link:hover .part-1 img {
    transform: scale(1.05);
}

.product-link:hover .single-product {
    transform: translateY(-5px);
}
.products-title-header{
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 0 15px;
    text-align: left;

}
.product-title{
    margin-top: 30px;
    text-align: center;
}
.product-price{
    text-align: center;
}
/* View Products */
.products-view-container{
    margin-top: 60px;
    margin-bottom: 60px;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-self: center;
    align-items: center;
    place-items: center;
    display: flex;
    gap: 40px;
}

.product-title-view{
    font-size: 28px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    color: black;
}
.product-button{
    border-color: black;
    color:black !important;
    padding: 10px;
    width: 400px;
    height: 50px;
    border-width: 3px;
    border-radius: 0;
    line-height: 0;
    font-size: 14px;
    transition: all .5s ease-out;
    background: linear-gradient(to right, black 50%, white 50%);
    background-size: 200% 100%;
    background-position: right;
    cursor: pointer;
}
.product-button:hover{
    background-position: left;
    color: white !important;
}
.product-button a{
    color:inherit;
    text-decoration: none;
}
.button-container{
    justify-content: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.qty-btn {
    background-color: white;
    color: black;
    border: 2px solid black;
    width: 42px;
    height: 42px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.qty-btn:hover {
    background-color: #f0f0f0;
}

.qty-btn-list {
    background-color: white;
    color: black;
    border: 2px solid black;
    width: 42px;
    height: 42px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
    margin-top: 9px;
}

.qty-btn-list:hover {
    background-color: #f0f0f0;
}

.quantity-selector input[type="number"] {
    width: 60px;
    height: 42px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    margin-top: 0.5rem;
}

/* Image Styling */
.product-image-view {
    width: 72%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 160px;
    overflow: hidden;
}

.product-image-view img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.no-image {
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    .products-view-container{
        display: flex;
        flex-direction: column;
    }
    .product-image-view{
        margin-bottom: 20px;
        width: 100%;
    }
}

/* General Layout */
.section-products {
    background-color: var(--color-white);
    padding: 60px 20px;
}

.products-title-header {
    text-align: center;
}

/* Grid Layout */
.products-and-search{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    margin: 0 auto;
}
.prod-search-filter{
    flex: 0 0 200px;
    margin-left: 30px;
    width: 100%;
    position: sticky;
    max-width: 600px;
}
.prod-search-filter label{
    font-weight: normal;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    flex-grow: 1;
    width: calc(100% - 60px);
    padding: 0 30px;
}

@media (max-width: 768px) {
    .products-and-search {
        flex-direction: column;
        align-items: center;
    }
    .prod-search-filter {
        flex: 0 0 50px;
        max-width: 90%;
        width: 100%;
    }
    .products-grid {
        justify-items: center;
        width: 100%;
        padding: 0 15px;
        gap: 15px;
    }
    .product-card {
        width: 100%;
        max-width: 160px;
    }
}


/* Card Styling */
.product-card {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 240px;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-h2{
    font-family: "Poppins", serif;
    font-weight: 600;
    letter-spacing: 3px;
}

/* Card specifically for home page*/
/* Card specifically for home page*/
.product-card-home {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 240px;
    margin: auto;
}

.product-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.products-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Products Page Display */
.products-page {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.home-h5 {
    font-family: "Poppins", serif;
}

.view-arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
@media (max-width: 768px) {
    .products-grid-home {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin: 0 10px;
        padding: 0 10px;
    }

    .home-container-products {
        padding: 0 15px;
    }

    .view-arrow{
        width: 60%;
    }
}

@media (max-width: 480px) {
    .products-grid-home {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/* Image Styling */
.product-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.no-image {
    color: #999;
    font-size: 14px;
}

/* Product Info */
.product-info .product-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}

.product-info .product-price {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #fe302f;
}
.product-link {
    text-decoration: none;
    color: inherit;
}

/*Cart button* for View Products */
.cart-button{
    border-color: black;
    color:black !important;
    padding: 10px;
    margin-top: 40px;
    width: 310px;
    height: 50px;
    border-width: 3px;
    border-radius: 0;
    line-height: 0;
    font-size: 14px;
    transition: all .5s ease-out;
    background: linear-gradient(to right, black 50%, white 50%);
    background-size: 200% 100%;
    background-position: right;
    cursor: pointer;
}
.cart-button:hover{
    background-position: left;
    color: white !important;
}
.cart-button a{
    color:inherit;
    text-decoration: none;
}
.flash-messages{
    width: 100%;
}

/*Cart button* for List Products */
.cart-button-list{
    font-family: "Poppins", serif;
    border-color: black;
    color:black !important;
    padding: 10px;
    margin-top: 0px;
    width: 180px;
    height: 40px;
    border-width: 2px;
    border-radius: 10px;
    line-height: 0;
    font-size: 14px;
    transition: all .5s ease-out;
    background: linear-gradient(to right, black 50%, white 50%);
    background-size: 200% 100%;
    background-position: right;
    cursor: pointer;
}
.cart-button-list:hover{
    background-position: left;
    color: white !important;
}
.cart-button-list a{
    color:inherit;
    text-decoration: none;
}
.flash-messages{
    width: 100%;
}

.out-of-stock{
    font-family: "Poppins", serif;
    border-color: red;
    color:red !important;
    background-color: transparent;
    padding: 10px;
    margin-top: 0px;
    width: 180px;
    height: 40px;
    border-width: 2px;
    border-radius: 10px;
    line-height: 0;
    font-size: 14px;
    background-size: 200% 100%;
    cursor: pointer;
}

.out-of-stock:hover{
    background-color: transparent !important;
    border-color: red !important;
}
/*.cart-icon-container {*/
/*    position: relative;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    margin-left: 15px;*/
/*}*/

/*.cart-icon {*/
/*    height: 22px;*/
/*    width: 22px;*/
/*}*/

/*.cart-badge {*/
/*    position: absolute;*/
/*    bottom: -4px;*/
/*    right: -8px;*/
/*    background: black;*/
/*    color: white;*/
/*    font-size: 11px;*/
/*    width: 16px;*/
/*    height: 16px;*/
/*    border-radius: 50%;*/
/*    text-align: center;*/
/*    line-height: 16px;*/
/*    font-weight: bold;*/
/*}*/

/*Search and Filter*/
.search-filter-container{
    width: 100%;
}
.search-button{
    color:black !important;
    padding: 10px;
    width: 310px;
    height: 40px;
    border-width: 4px !important;
    border-radius: 0;
    border-color: black;
    line-height: 0;
    font-size: 14px;
    transition: all .5s ease-out;
    background-size: 200% 100%;
    background-position: left;
    cursor: pointer;
    background-color: transparent;
}
.search-button:hover{
    color: white !important;
    background-color: black;
}
.search-button a{
    color:inherit;
    text-decoration: none;
}

.clear-filter-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #aaa;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
}

.clear-filter-button:hover {
    background-color: #ddd;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/*hide arrows in the input box*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* sort by filter*/
.sort-by{
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}
.sort-by-select{
    width: 200px;
}

/* FAQ */

/* FAQ SECTION */

.faq-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
}

.faq-h2 {
    font-size: 36px;
    color: #222;
    margin-bottom: 16px;
    font-family: "Poppins", serif;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FAQ */
.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}

.faq-item[open] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.faq-item {
    width: 100%;
    max-width: 560px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s ease-in-out;
}

.faq-item summary {
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 500;
    font-family: "Poppins", serif;
    cursor: pointer;
    position: relative;
}

.faq-answer {
    padding: 0 20px 14px 20px;
    font-size: 15px;
    font-family: "EB Garamond", serif;
    color: #444;
    line-height: 1.6;
}






.enquiry-general {
    color: green;
    border: 1px solid green;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #e2ffde;
}

.enquiry-wholesale {
    color: orange;
    border: 1px solid orange;
    padding: 4px 8px;
    background-color: #ffedde;
    border-radius: 4px;
}

.enquiry-order {
    color: blue;
    border: 1px solid blue;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #dedfff;
}
.dashboard-wrapper{
    max-width: 100%;
    margin: 0 auto;
}
.total-container{
    background-color: #fff;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 15px;
    width: 300px;
    max-width: 100%;
}

.total-container{
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.total-container h2{
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 30px;
}
.total-container h3{
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 0;
}
.total-container i{
    font-size: 60px;
    color: #005249;
    margin-top: 20px;
    margin-bottom: 20px;
}
.total-container h6{
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}
.total-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.total-container-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1024px) {
    .total-container-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
        justify-content: center;
    }
}

@media (max-width: 784px) {
    .total-container-wrapper {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

.total-order-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1024px) {
    .total-order-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
        justify-content: center;
    }
}

@media (max-width: 784px) {
    .total-order-wrapper {
        grid-template-columns: minmax(250px, 1fr);
    }
}

.contact-us-dashboard-content{
    margin: 60px auto;
    width: 80%;
    padding: 4rem;
    background: var(--color-white);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.dashboard-title{
    font-size:32px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    color: black;
}

/*Checkout Screen*/
.split-screen {
    display: flex;
    gap: 20px;
    background: white;
}
.logo{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.left-screen, .right-screen {
    flex: 1;
    padding: 20px;
}
.left-screen{
    background-color: #f6f5f0;
    display: flex;
    flex-direction: column;
    padding-left: 200px;
    padding-right: 80px;
    border: 2px solid lightgrey;
}
.right-screen{
    background-color: var(--color-white);
}
@media (max-width: 768px) {
    .split-screen{
        flex-direction: column;
    }
    .left-screen{
        padding-left: 60px;
        padding-right: 60px;
    }
}
@media (max-width: 1024px) {
    .split-screen{
        flex-direction: column;
    }
    .left-screen{
        padding-left: 60px;
        padding-right: 60px;
    }
}
.cart-wrapper {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
}
.contact-us-checkout input[type="text"],
.contact-us-checkout input[type="email"],
.contact-us-checkout input[type="tel"],
.contact-us-checkout input[type="number"],
.contact-us-checkout select {
    background-color: white !important;
    color: black !important;
    border: 1px solid #005249 !important;
    padding: 8px !important;
    border-radius: 4px !important;
    width: 100% !important;
}

.contact-us-checkout input:focus,
.contact-us-checkout select:focus {
    border-color: #005249;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 73, 0.2);
}
.form-wrapper {
    display: flex;
    width: 100%;
    gap: 30px;
}

.form-wrapper .input {
    flex: 1;
    min-width: 0;
}
.order-type-options {
    margin: 20px 0;
}

.order-type-options h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.order-type-label {
    display: inline-block;
    padding: 15px 20px;
    margin-right: 10px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.order-type-label:hover {
    background-color: #f8f8f8;
}

.order-type-options input[type="radio"] {
    display: none;
}

.order-type-options input[type="radio"]:checked + .order-type-label {
    background-color: #005249;
    color: white;
    border-color: #005249;
    box-shadow: 0 4px 8px rgba(0, 82, 73, 0.2);
}

.order-type-options .radio {
    margin-bottom: 0;
}
/*checkout info*/
.checkout-information{
    margin-top: 40px;
}
.info-wrapper{
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}
.info-wrapper i {
    margin: 0;
    padding: 0;
}
.checkout-description{
}
.checkout-title{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 16px;
}
.checkout-desc{
    font-family: "Poppins", sans-serif;
    margin: 0;
    font-size: 14px;
}

.shipping-progress-container {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-message {
    margin-bottom: 8px;
    font-size: 16px;
}
.progress-message p{
    font-weight: bold;
}
.progress-container {
    overflow: hidden;
    background-color: #e0e0e0;
    border-radius: 15px;
    height: 20px;
    width: 100%;
}

.progress-bar {
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.address-title{
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 600;
}

/* confirmation screen*/
.left-screen-confirm{
    background-color: #f6f5f0;
    display: flex;
    flex-direction: column;
    padding-left: 200px;
    padding-right: 80px;
    border: 2px solid lightgrey;
}
.order-title{
    margin-top: 20px;
    margin-left: 40px;
}
.left-screen-confirm, .right-screen-confirm{
    flex: 1;
    padding: 20px;
}
.order-status{
    width: 90%;
    height: 100px;
    border-radius: 10px;
    border: 2px solid #005249;
    box-shadow: 0 0 0 2px rgba(0, 82, 73, 0.2);
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 40px;
    margin: 0 auto 40px;
}
.contact-info-container {
    width: 90%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid #005249;
    box-shadow: 0 0 0 2px rgba(0, 82, 73, 0.2);
    padding: 20px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.contact-information, .payment {
    flex: 1;
    padding: 20px;
}
.contact-info-container p{
    margin: 0;
}

@media (max-width: 768px) {
    .contact-info-container{
        flex-direction: column;
    }
    .contact-information{
        padding-left: 60px;
        padding-right: 60px;
    }
}
@media (max-width: 1024px) {
    .contact-info-container{
        flex-direction: column;
    }
    .contact-information{
        padding-left: 60px;
        padding-right: 60px;
    }
}
.status-confirmed, .status-shipped, .status-delivered{
    font-size: 20px;
}
.basic-info{
    margin-bottom: 20px;
}


/*order database pages*?
 */
.orders-container {
    margin: 0 auto;
    max-width: 155.0rem;
    padding: 0 1.0rem;
    position: relative;
    width: 100%;
}
.orders-index-content{
    margin-top: 60px;
    margin-bottom: 60px;
    width: 100%;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-content: center;
    align-items: center;
    place-items: center;
}

.orders-view-content{
    max-width: 130rem;
    width: 100% ;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-self: center;
    align-items: center;
    place-items: center;
}
.cart-info-container {
    width: 90%;
    border-radius: 10px;
    border: 2px solid #005249;
    box-shadow: 0 0 0 2px rgba(0, 82, 73, 0.2);
    padding: 20px;
    margin: 0 auto 40px;
    display: block;
}

.view-cart-wrapper {
    max-width: 120rem;
    width: 100%;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}


.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    padding: 12px 15px;
    text-align: left;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3),
.cart-table th:nth-child(5),
.cart-table td:nth-child(5) {
}

.total-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.total-table th {
    text-align: left;
    padding: 8px 15px;
    width: 70%;
}

.total-table td {
    text-align: right;
    padding: 8px 15px;
    width: 30%;
}

.total-table tr:last-child td {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.view-contact-info-container {
    width: 90%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid #005249;
    box-shadow: 0 0 0 2px rgba(0, 82, 73, 0.2);
    padding: 20px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.view-contact-information, .address-description {
    flex: 1;
    padding: 20px;
}
.view-contact-info-container p{
    margin: 0;
}

@media (max-width: 768px) {
    .view-contact-info-container{
        flex-direction: column;
    }
}
@media (max-width: 1024px) {
    .view-contact-info-container{
        flex-direction: column;
    }
}
.orders-edit-content{
    max-width: 130rem;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 6rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    justify-self: center;
    align-items: center;
    place-items: center;
}
.form-submit {
    text-align: center;
    margin: 20px 0;
}
.order-status-confirmed{
    color:green;
}
.order-status-shipped{
    color:orange;
}
.order-status-completed{
    color: blue;
}

.orders-total-container{
    background-color: #fff;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 15px;
    width: 300px;
    max-width: 100%;
}

.orders-total-container{
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.orders-total-container h2{
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 30px;
}
.orders-total-container h3{
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 0;
}
.orders-total-container i{
    font-size: 60px;
    color: #005249;
    margin-top: 20px;
    margin-bottom: 20px;
}
.orders-total-container h6{
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}
.total-products{
    margin-top: 20px;
}


.orders-total-container-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1024px) {
    .orders-total-container-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
        justify-content: center;
    }
}

@media (max-width: 784px) {
    .orders-total-container-wrapper {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

.payment-option{
    background: white;
    border-radius: 10px;
    border-color: #005249;
    box-shadow: 0 0 0 2px rgba(0, 82, 73, 0.2);
}

#card-element {
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.login-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
#payment-message {
    margin-top: 15px;
}
.hidden {
    display: none;
}
#card-errors {
    color: red;
    margin: 10px 0;
}
.payment-h3{
    font-family: "Poppins", serif;
}


.continue-button{
    font-family: "Poppins", serif;
    font-weight: 400;
    color: black !important;
    border: 3px solid;
    padding: 10px;
    max-width: 1000px;
    width: 100%;
    height: 200px;
    border-radius: 20px;
    line-height: 40px;
    font-size: 28px;
    text-align: center;
    vertical-align: middle;
    transition: all 1s ease-out;
    background-size: 200% 100%;
    background: white;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.continue-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}



