@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Duru+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ledger&display=swap');

/** Main **/
.w3-sidebar a {font-family: "Roboto", sans-serif}
body,h1,h2,h3,h4,h5,h6,.w3-wide {font-family: "Montserrat", sans-serif;}
.main-navbar {
    background-color: #2e3b2e;
    color: white;
}
.main-navbar .nav-link {
    color: white;
    margin: 0 1rem;
    font-weight: 600;
}
.main-navbar .nav-link:hover {
    color: #d1bfa7;
}

.w3-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0,0,0,0.5);
    z-index: 4;
    display: none;
}
.w3-sidebar {
    background-color: #2e3b2e;
}
.w3-sidebar .w3-button {
    color: white;
}

.w3-sidebar .w3-button:hover {
    background-color: #3c4f3c;
}
.w3-bar.w3-top {
    position: fixed;
    height: 90px;
    width: 100%;
    z-index: 1000;
    background-color: #2e3b2e;
    color: white;
}
#mySidebar {
    z-index: 1200;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    display: none;
    overflow-y: auto;
}

#myOverlay {
    z-index: 1100;
}

@media (min-width: 992px) {
    #mySidebar {
        display: none;
        width: 0;
        z-index: 3;
    }

    #myOverlay {
        display: none;
    }
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    background-color: #fdf7ee;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-size: cover;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
}

.site-text-logo {
    font-family: 'Inria Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.1;
    color: white;
    text-decoration: none;
}


/**Home**/
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 1rem;
    max-width: 90vw;
}
.social-icon-sm {
    width: 30px;
    height: auto;

}

.brand-name {
    font-size: 3.5rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: #ffffff;
    font-family: "Duru Sans", sans-serif;
    font-style: normal;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: 5px;
    font-weight: 400;
    color: #ffffff;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #2e3b2e;
}

.hero-subtext,
.lead {
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    color: #444;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #eee;
    max-width: 650px;
    margin: 0 auto;
    font-family: "Duru Sans", sans-serif;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    white-space: nowrap;
    padding: 0.75rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    min-width: auto;
    width: auto;
}

.home-btn {
    color: #415e4c;
    border: 1px solid #415e4c;
    padding: 4px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: transparent;
}

.home-btn:hover {
    background-color: #415e4c;
    color: white;
}

.btn-inline {
    width: auto;
    min-width: unset;
    flex: 0 0 auto;
}

.hero-buttons .btn:hover {
    opacity: 0.9;
}

.hero-buttons .btn-primary {
    background-color: #d1bfa7;
    color: white;
    border: none;
}

.hero-buttons .btn-primary:hover {
    background-color: #cbb08f;
    color: white;
}
@media (max-width: 768px) {
    .hero-buttons {
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

.cc-hero-btn {
    background-color: #405940;
    color: white;
    font-weight: bold;
    border: none;
    padding: 0.6rem 2.5rem;
    font-size: 1.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.cc-hero-btn-2 {
    background-color: #61836b;
    color: white;
    font-weight: bold;
    border: none;
    padding: 0.6rem 2.5rem;
    font-size: 1.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.cc-hero-btn:hover {
    background-color: #48504b;
    color: white;
}

.cc-hero-btn-2:hover {
    background-color: #38453e;
    color: white;
}

.bakery-banner-section {
    margin-top: -1rem;
    margin-bottom: 2rem;
    height: 300px; /* Adjust to your liking */
    overflow: hidden;
    position: relative;
}

.bakery-banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.site-text-logo:hover {
    color: #d1bfa7;
    text-decoration: none;
}

.hero-section {
    position: relative;
    height: 80vh;
    /*padding-top: 80px;*/
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
    justify-content: center;
}
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px; /* Match or slightly exceed navbar height */
    }
}


.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.8;
    z-index: 0;
    filter: contrast(1.1) saturate(1.1) brightness(50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.1);
    z-index: 1;
}

/** Navbar **/
.navbar {
    background-color: #2e3b2e;
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 999;
    position:sticky;
}

.navbar-brand {
    font-family: "Inria Sans", sans-serif;
    font-size: 2.4rem;
}

.nav-small {
    font-family: "Inria Sans", sans-serif;
}

.navbar-brand img {
    height: 45px;
}

.navbar-nav .nav-link img {
    vertical-align: middle;
}



.navbar-nav .nav-link {
    color: white;
    font-weight: 600;
    margin-right: 2rem;
    font-size: 1.5rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    text-decoration: underline;
    color: #d1bfa7;
}

.navbar-text {
    color: white;
    font-weight: 500;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-text,
    .navbar-nav .btn {
        margin-top: 1rem;
        min-width: 80px;
    }
}

.navbar .ms-auto img {
    margin-right: 0px;
    vertical-align: middle;
}

.navbar .rounded-circle {
    margin-top: 2px;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    display: inline-block;
    object-fit: cover
}

.navbar .navbar-cart-icon {
    height: 28px;
    width: 28px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-top: 15px;
    flex-shrink: 0;
    max-width: unset;
}

.cart-count {
    font-size: 1.2rem;
    margin-left: 4px;
    color: white;
    font-weight: 700;
}

.cart-icon-link {
    display: flex;
    align-items: center;
    padding: 0;
}

.user-section {
    gap: 0.8rem;
    min-width: 90px;
    font-size: 1.2rem;
}

.user-icon-left {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 20px;
}

.user-email {
    font-size: 1.2rem;
    color: #ccc;
    /*word-break: break-word;*/
    /*text-align: center;*/
}

.nav-account-link {
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 600;
    color: white;
    /*transition: color 0.3s ease;*/
}

.nav-account-link:hover {
    text-decoration: none;
    color: #d1bfa7;
}

.navbar .user-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 15px;
}

.navbar .user-name {
    margin-bottom: 15px;
}

.navbar .d-flex img {
    height: 28px;
    width: 28px;
    vertical-align: middle;
}


.navbar .account-label {
    font-size: 1.4rem;
    color: #fff;
}

.btn-secondary, .btn-danger {
    font-weight: 600;
    padding: 0.4rem 1rem;
}

.btn-danger {
    background-color: #b74d4d;
    border: none;
}

.navbar-toggler {
    background-color: white;
}

.cart-icon-small img {
    display: inline-block;
    vertical-align: middle;
}

.cart-icon-small {
    font-size: 1.4rem;
    color: white;
    line-height: 1;
}

.login-wrapper {
    background-color: #fdf7ee;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 10vh;
    backdrop-filter: blur(6px);
    width: 100%;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    font-family: "Inria Sans", sans-serif;
    font-weight: bold;
    font-size: 4.5rem;
}
.login-box p {
    font-size: 1.4rem;
}

.custom-input {
    background-color: #eaeaea;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 1.25rem;
}

.contact-page h2, .contact-page h5 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #1e1e1e;
}

.contact-form-box {
    background-color: #fdf7ee;
    border: 1px solid #e6e6e6;
}

.contact-form-box h5 {
    font-size: 2.2rem;
}

.contact-page .form-control {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 1.1rem 1rem;
    background-color: #f5f5f5;
    font-size: 14px;
    height: auto;
}

::placeholder {
    font-size: 14px;
    color: #999;
}


.contact-page .btn-primary {
    background-color: #d1bfa7;
    border: none;
    font-weight: bold;
}

.contact-page .btn-primary:hover {
    background-color: #c4ae91;
}

.social-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.contact-item .icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}


.btn-group .btn {
    border: none;
    background-color: #e6f1ec;
    padding: 5px 10px;
    margin-right: 4px;
    transition: background-color 0.2s ease;
    color: #2e3b2e;
}

.btn-group .btn:hover {
    background-color: #cde4d8;
}

.btn.btn-primary {
    background-color: #7ba988;
    border: none;
    color: #fff;
    font-weight: bold;
}

.btn.btn-primary:hover {
    background-color: #689d7d;
    color: #fff;
}

.pagination li a {
    color: #2e3b2e;
    border: 1px solid #cce3d9;
    padding: 4px 10px;
    margin-right: 5px;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .active a {
    background-color: #7ba988;
    color: white;
    border-color: #7ba988;
}

.contact-view-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
}


.btn-action,
.btn-edit,
.btn-delete,
.btn-back {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-action {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}



.btn-edit {
    background-color: #7ba988;
    color: white;
}

.btn-delete {
    background-color: #d9534f;
    color: white;
}

.btn-action:hover,
.btn-edit:hover,
.btn-delete:hover,
.btn-back:hover {
    opacity: 0.9;
}
.welcome-box h3 {
    font-family: 'Lato', serif;
    font-size: 3rem;
    font-weight: 700;
}

.contact-title {
    font-family: 'Lato', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2e3b2e;
    margin-bottom: 1.5rem;
}

.contact-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-card .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-card .label {
    font-weight: 600;
    width: 140px; /* fixed label width */
    flex-shrink: 0;
    color: #333;
}

.contact-card .value {
    flex: 1;
    word-break: break-word;
    color: #444;
}

.contact-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.message-block .value {
    width: 100%;
}


.message-box {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}

.back-button {
    margin-top: 2rem;
}

.btn-back {
    background-color: #6c757d;
    color: white;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    display: inline-block;
}


.form-control-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}


.cc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* Color variants */
.cc-button-green {
    background-color: #7ba988;
    color: white;
}

.cc-button-green:hover {
    background-color: #689d7d;
}

.cc-button-grey {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

.cc-button-grey:hover {
    background-color: #e0e0e0;
}

/** About Us **/
.about-us-section h3,
.about-us-section p,
.what-we-section p{
    font-family: 'Lato', sans-serif;
}

.about-us-section h4,
.about-us-section h5,
.ready-to-crunch h4,
.what-we-section h3{
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.what-we-section h5{
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/** Contact Form List */
.text-bg-success {
    background-color: #c1f0c1;
    color: #2e7d32;
}

.text-bg-warning {
    background-color: #ffe9b3;
    color: #8a6d1a;
}

.custom-table th, .custom-table td {
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

.btn-group-sm .btn {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
}

.custom-table td:not(:last-child) {
    white-space: normal;
}

.custom-table th:last-child {
    min-width: 120px;
    max-width: 140px;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
}
.custom-table td:last-child {
    white-space: normal;
}
@media (max-width: 576px) {
    .btn-group.btn-group-sm {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}

.custom-table td:nth-child(4),  /* Email */
.custom-table td:nth-child(5),  /* Subject */
.custom-table td:nth-child(6) { /* Message */
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.custom-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    word-wrap: break-word;
}

.custom-table th {
    vertical-align: middle;
    text-align: center;
}

.custom-table td,
.custom-table th {
    word-break: break-word;
    white-space: nowrap;
    text-align: center;
}

.table-container-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
    .custom-table td:last-child .d-flex {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .custom-table td .d-flex {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}

.custom-table th:nth-child(1), .custom-table td:nth-child(1) { width: 15%; }
.custom-table th:nth-child(2), .custom-table td:nth-child(2) { width: 15%; }
.custom-table th:nth-child(3), .custom-table td:nth-child(3) { width: 20%; }
.custom-table th:nth-child(4), .custom-table td:nth-child(4) { width: 15%; }
.custom-table th:nth-child(5), .custom-table td:nth-child(5) { width: 15%; }
.custom-table th:nth-child(6), .custom-table td:nth-child(6) { width: 15%; }
.custom-table th:nth-child(7), .custom-table td:nth-child(7) { width: 20%; }
.custom-table th:nth-child(8), .custom-table td:nth-child(8) { width: 25%; }
.custom-table th:nth-child(9), .custom-table td:nth-child(9) { width: 20%; }

.custom-table-wrapper {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #d0e0d8;
}

.custom-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-table-scroll::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.custom-table-scroll::-webkit-scrollbar-thumb {
    background-color: #7ba988;
    border-radius: 6px;
    border: 2px solid #f5f5f5;
}

.custom-table-scroll::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 6px;
}

.custom-table-scroll table {
    min-width: 100px;
}


.custom-table thead {
    background-color: #2e3b2e;
    color: white;
}

.custom-table thead th {
    padding: 12px 16px;
    border-bottom: 1px solid #cdded4;
    font-size: 14px;
    white-space: normal;
}

.custom-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.custom-table tbody tr:hover {
    background-color: #f3faf6;
}

.custom-table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    min-width: 900px;
}

/** Contact Form Detail **/
.detail-btn {
    font-size: 1.3rem;
    padding: 0.4rem 1.2rem;
    border-radius: 24px;
    font-weight: 600;
    text-align: center;
    border: none;
    min-width: 100px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #e3f5e7;
    color: #1e4632;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
}


@media (max-width: 576px) {
    .top-button-group {
        justify-content: flex-end;
        gap: 0.5rem;
    }

    detail-btn {
        font-size: 1.2rem;
        padding: 0.6rem 1.4rem;
    }
    .detail-btn.back {
        width: 100%;
        display: block;
    }
}


.detail-btn.add {
    background-color: #d1eada;
    color: #415e4c;
}

.detail-btn.view {
    background-color: #d1eada;
    color: #415e4c;
}

.detail-btn.edit {
    background-color: #7ba988;
    color: white;
}

.detail-btn.delete {
    background-color: #d9534f;
    color: white;
}

.detail-btn.back {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}
.detail-btn:hover {
    opacity: 0.9;
}

/** Contact Form Edit **/
.detail-btn.submit {
    background-color: #61836b;
    color: white;
}

.form-control-lg-custom {
    font-size: 1.4rem;
    padding: 0.75rem 1rem;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 2rem;
}

.welcome-box {
    background-color: #fdf0df;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.kpi-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.kpi-icon-img {
    height: 40px;
    width: auto;
    display: block;
}

.kpi-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: #fdf0df;
    padding: 1.2rem;
    flex: 1;
    border-radius: 6px;
    text-align: center;
    font-size: 1.2rem;
}

.kpi-card .label span {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
    color: #555;
}

.manage-products {
    background-color: #fff6e5;
    padding: 1.2rem;
    border-radius: 6px;
}

.btn-action {
    background-color: #f0f9ff;
    border: 1px solid #89caff;
    border-radius: 4px;
    padding: 0.4rem 1rem;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

/** Customer product */

.product-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.product-card .product-title {
    font-size: 1.8rem;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
    color: #415e4c;
}

.product-card .product-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.8rem;
}

.product-card .product-img {
    height: 130px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.product-card .row {
    display: flex;
    margin-bottom: 0.6rem;
}

.product-card .label {
    width: 150px;
    font-weight: bold;
}

.product-card .value {
    flex: 1;
}

.product-card:hover {
    transform: translateY(-3px);
}

.status.active {
    color: green;
    border: 2px solid green;
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    display: inline-block;
    font-weight: bold;
    background-color: #eaffea;
}


.welcome-box {
    background-color: #fdf0df;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.kpi-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: #fdf0df;
    padding: 1.2rem;
    flex: 1;
    border-radius: 6px;
    text-align: center;
    font-size: 1.2rem;
}

.kpi-card .label span {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
    color: #555;
}

.kpi-cards .kpi-card {
    min-width: 200px;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

.manage-products {
    background-color: #fff6e5;
    padding: 1.2rem;
    border-radius: 6px;
}

.add-btn {
    display: inline-block;
    margin-bottom: 1rem;
    background-color: #e7fdf5;
    padding: 0.5rem 1rem;
    border: 1px solid #70d5b8;
    border-radius: 4px;
    text-decoration: none;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th, .product-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.status.active {
    color: green;
    border: 2px solid green;
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    display: inline-block;
    font-weight: bold;
    background-color: #eaffea;
}

.view-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/** Product page */
.product-page-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem 1.5rem;
    flex-wrap: wrap;
}

.product-page-layout {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.products-main {
    flex: 1;
    padding-left: 2rem;
    max-width: 100%;
}


/* Mobile Toggle Button */
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    color: #333;
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.filter-toggle-btn:hover {
    background-color: #c3c3c3;
    color: #484948;
}

.filter-toggle-btn img {
    height: 1.4rem;
    width: auto;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.filter-toggle-btn span {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.8px;
    margin: 0;
    padding: 0;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.filter-overlay.show {
    display: block;
}

.filter-sidebar {
    flex: 0 0 240px;
    background-color: #fffbea;
    padding: 1.5rem;
    z-index: 3;
}

.filter-sidebar fieldset {
    border: none;
    padding: 0;
}

@media (min-width: 992px) {
    .filter-toggle-btn {
        display: none;
    }

    .filter-sidebar {
        position: static;
        display: block;
        transform: none;
        height: auto;
        box-shadow: none;
    }

    .filter-overlay {
        display: none;
    }
}

@media (max-width: 992px) {
    .filter-toggle-btn {
        display: inline-block;
    }

    .filter-sidebar {
        display: none;
        position: fixed;
        top: 86px;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100% - 60px);
        overflow-y: auto;
        background-color: #fffbea;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        padding: 2rem 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .filter-sidebar.open {
        display: block;
        transform: translateX(0);
    }

    .filter-overlay.show {
        display: block;
    }
}

.filter-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.filter-sidebar label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-sidebar select,
.filter-sidebar input[type="checkbox"] {
    margin-bottom: 1.5rem;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.btn-filter {
    background-color: #7ba988;
    color: white;
    font-weight: bold;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 24px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-filter:hover {
    background-color: #689d7d;
}

.products-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
}

.product-img {
    height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-info {
    margin-bottom: 1rem;
}

.product-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    color: #415e4c;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

.product-preview-img {
    max-width: 100%;
    width: 100%;
    max-height: 350px;
    object-fit: cover;
}

.product-text-col {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .product-preview-img {
        max-width: 70%;
        margin-bottom: 1rem;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .product-desc {
        font-size: 1.2rem;
    }
}

.product-desc {
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    color: #444;
    line-height: 1.6;
}

.product-price {
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: #242323;
}

.product-badge {
    background-color: #999;
    color: white;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    display: inline-block;
}


.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.product-actions input[type="number"] {
    width: 60px;
    text-align: center;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid #ccc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.button-group .cc-cart-btn,
.button-group .cc-cart-btn,
.button-group .cc-buy-btn {
    font-size: 1rem;
    padding: 0.6rem 2rem;
    border-radius: 24px;
    font-weight: 600;
    min-width: 120px;
    border: none;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.cc-cart-btn {
    background-color: #e6f1ec;
    color: #405940;
}

.cc-cart-btn:hover {
    background-color: #8d9f96;
}

.cc-buy-btn {
    background-color: #61836b;
    color: white;
}

.cc-buy-btn:hover {
    background-color: #304737;
    color: #fff;
}


.cc-out-stock-btn {
    font-size: 1rem;
    padding: 0.3rem 2rem;
    border-radius: 24px;
    font-weight: 600;
    min-width: 120px;
    border: none;
    text-align: center;
    cursor: not-allowed;
    background-color: #ccc;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.6rem;
}

.product-actions-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: center;
    min-height: 140px;
    align-items: flex-start;
    flex-direction: column;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.button-group button {
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .button-group {
        justify-content: center;
    }
}

/* filter */
.styled-filter {
    background-color: #fff7e6;
    padding: 2rem;
    font-family: 'Playfair Display', serif;
    width: 100%;
    max-width: 300px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-label {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}


.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-options label {
    text-align: left;
}

.styled-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    color: #444;
    white-space: nowrap;
    line-height: 1.4;
}

.styled-checkbox input[type="checkbox"],
.styled-checkbox input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
    transform: scale(1.2); /* optional: make checkbox slightly larger */
}

@media (max-width: 768px) {
    .styled-checkbox {
        display: flex !important;
        align-items: center !important;
    }
}


.filter-toggle:hover,
.filter-toggle:focus {
    background-color: transparent;
    outline: none;
    box-shadow: none;
    color: inherit;
}


.filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 0rem;
    padding-top: 0rem;
}

.styled-apply-btn,
.styled-clear-btn {
    min-width: 200px;
    width: auto;
    text-align: center;
}

.styled-clear-btn {
    font-family: "Lato", sans-serif;
    background-color: #979797;
    color: #ffffff;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.3rem;
    text-align: center;
    width: 100%;
}

.styled-clear-btn:hover {
    background-color: #ddd;
    color: #111;
}

.styled-apply-btn {
    font-family: "Lato", sans-serif;
    background-color: #7ba988;
    color: white;
    font-weight: bold;
    border: none;
    padding: 0rem 1.5rem;
    border-radius: 30px;
    margin-top: 0;
    font-size: 1.3rem;
    width: 100%;
    cursor: pointer;
}

.styled-apply-btn:hover {
    background-color: #689d7d;
}


.styled-filter hr {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


.filter-heading {
    font-family: 'Ledger', serif;
    font-size: 2.6rem;
    letter-spacing: 5px;
    color: #3b3b3b;
    margin-bottom: 1.4rem;
}

.filter-toggle {
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    cursor: pointer;
}

.filter-toggle .filter-label {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    margin-top: 30px;
    margin-left: 8px;
    object-fit: contain;
    vertical-align: middle;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.filter-toggle .dropdown-icon {
    width: 16px;
    transition: transform 0.2s ease;
}

.collapsible {
    display: none;
    margin-top: 0.8rem;
}

.collapsible.open {
    display: flex;
    flex-direction: column;
}

/** Checkout Page */

.checkout-page {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    color: #333;
    padding-top: 40px;
}

.checkout-page h2,
.checkout-page h4,
.checkout-page h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #2e3b2e;
}

.checkout-page label,
.checkout-page .form-control,
.checkout-page .form-check-label {
    font-size: 1.4rem;
}

.checkout-page .form-check-label {
    font-weight: 500;
}

.checkout-page .btn-success {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 2rem;
}

.checkout-page p,
.checkout-page .card {
    font-size: 1.4rem;
}
.delivery-method-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.delivery-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ccc;
    border-radius: 12px;
    cursor: pointer;
    min-width: 140px;
    flex: 1;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.delivery-option:hover {
    background-color: #f2f2f2;
}

.delivery-icon {
    width: 36px;
    height: auto;
    margin-bottom: 0.5rem;
}

input[type="radio"]:checked + label.delivery-option {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
    background-color: #eaf4ff;
}

.order-item-info {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
}

.cc-place-order-btn {
    background-color: #61836b;
    color: white;
    font-weight: bold;
    border: none;
    font-size: 1.5rem;
    padding: 0rem 2rem;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.cc-place-order-btn:hover {
    background-color: #304737;
    color: white;
}

.recommended-section {
    width: 90%;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
}

.recommended-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.recommended-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.recommended-card {
    flex: 0 0 auto;
    width: 180px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    padding: 1rem;
    scroll-snap-align: start;
    text-align: center;
}

.recommended-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.recommended-img.no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #777;
}

.recommended-info {
    text-align: center;
}

.recommended-name {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Times New Roman', serif;
    color: #415e4c;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.recommended-price {
    font-size: 1.1rem;
    color: #333;
}


/** Order History **/
.order-history-section {
    padding: 3rem 1rem;
    font-family: 'Lato', sans-serif;
    background-color: #eae6e2;
    text-align: center;
}

.order-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.order-card {
    background-color: #fff;
    border: 2px solid #accabd;
    border-radius: 14px;
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.order-card:hover {
    transform: translateY(-3px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0ece4;
    padding-bottom: 0.5rem;
    color: #2e3b2e;
}

.order-product-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.order-product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #bbb;
}

.order-details p {
    text-align: left;
    font-size: 1.3rem;
    margin: 0.3rem 0;
    color: #405940;
}

.order-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.order-actions .btn {
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
}


.btn-primary {
    background-color: #7ba988;
    color: white;
}

.btn-warning {
    background-color: #d1bfa7;
    color: #2e3b2e;
}

.btn-danger {
    background-color: #d9534f;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .order-details p {
        font-size: 1.3rem;
    }

    .order-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .order-actions .btn {
        width: 100%;
    }
}

.order-status {
    font-weight: bold;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 1.2rem;
    display: inline-block;
    text-transform: capitalize;
}

.status-pending {
    background-color: #ffdf9c;
    color: #6a571b;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #d6c9c9;
    color: #1b1112;
}

.status-in-progress {
    background-color: #cce5ff;
    color: #223f65;
}

.status-shipped {
    background-color: #f4d1f6;
    color: #37214c;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
    .table-responsive table th:nth-child(1),
    .table-responsive table td:nth-child(1) {
        width: 20%;
    }

    .table-responsive table th:nth-child(2),
    .table-responsive table td:nth-child(2) {
        width: 15%;
    }

    .table-responsive table th:nth-child(3),
    .table-responsive table td:nth-child(3) {
        width: 30%;
    }

    .table-responsive table th:nth-child(4),
    .table-responsive table td:nth-child(4) {
        width: 15%;
    }

    .table-responsive table th:nth-child(5),
    .table-responsive table td:nth-child(5) {
        width: 20%;
    }

    .table-responsive table th,
    .table-responsive table td {
        white-space: nowrap;
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .table-responsive {
        overflow-x: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }
}

/** Categories View **/
.table td, .table th {
    vertical-align: middle;
    word-break: break-word;
}

/** Cart **/

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Helvetica Neue', sans-serif;
}

.cart-header {
    display: flex;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.cart-col {
    flex: 1;
}

.product { flex: 2; }
.quantity { flex: 1; text-align: center; }
.total { flex: 1; text-align: right; }


.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.cart-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 2;
}

.cart-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #ddd;
}

.product-name {
    font-weight: bold;
    font-size: 1.8rem;
}

.product-price {
    font-size: 1.4rem;
    color: #555;
}

.cart-total span {
    font-size: 1.4rem;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex: 1;
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-container,
.cart-item,
.cart-summary,
.cart-total,
.product-name,
.product-price,
.discount-note,
.estimated-total,
.shipping-note {
    font-family: 'Lato', sans-serif;
}

.cart-title {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.cart-continue-link {
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cart-continue-link:hover {
    color: #7ba988;
    text-decoration: underline;
}

.product-name {
    font-size: 1.8rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.4rem;
}

.cart-total span {
    font-size: 1.4rem;
}

.quantity-update-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.styled-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.qty-btn:hover {
    background: #5a7356;
}

.cart-action-wrapper {
    max-width: 300px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/*.qty-input {*/
/*    width: 48px;*/
/*    background-color: lightblue;*/
/*    height: 30px;*/
/*    font-size: 0.95rem;*/
/*    font-weight: bold;*/
/*    text-align: center;*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 4px;*/
/*    padding: 0 6px;*/
/*    outline: none;*/
/*}*/

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.quantity-control {
    width: 200px;
    height: 50px;
    background-color: #edefef;
    padding: 10px;
    display: inline-flex;
    overflow: hidden;
    align-items: center;
    border-radius: 15px;
    justify-content: center;
}

.quantity-control .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: none;
    color: #333;
    cursor: pointer;
}

.update-btn {
    margin-left: 1rem;
    background: #333;
    color: #fff;
    padding: 8px 14px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.update-btn:hover {
    background: #555;
}

.styled-update-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid #007bff;
    color: #007bff;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 6px;
}

.styled-update-btn:hover {
    background-color: #007bff;
    color: white;
}

.qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #aaa;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
    margin-right: 10px;
}

.update-btn {
    padding: 0.5rem 1rem;
    background: #222;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.update-btn:hover {
    background: #444;
}


.qty-number {
    min-width: 1.5rem;
    text-align: center;
    font-size: 1rem;
}

.cart-total {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 1.1rem;
}

.trash-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    vertical-align: middle;
    margin-top: 30px;
}

.remove-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.1rem;
    color: #d9534f;
    cursor: pointer;
}

.remove-btn:hover {
    color: #a94442;
}


.cart-summary {
    margin-top: 2rem;
    text-align: right;
}

.discount-note {
    font-size: 0.9rem;
    color: #666;
}

.estimated-total {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0.8rem 0;
}

.shipping-note {
    font-size: 0.85rem;
    color: #999;
}

.checkout-btn {
    display: inline-block;
    background: black;
    color: white;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 1rem;
}

.continue-shopping {
    display: inline-block;
    margin-top: 2rem;
    color: #333;
    font-size: 0.95rem;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cart-header, .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-quantity, .cart-total {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }

    .cart-product {
        flex-direction: row;
    }

    .checkout-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        margin-top: 0.5rem;
    }

    .cart-title {
        font-size: 2rem;
    }

    .product-name {
        font-size: 1.4rem;
    }

    .product-price,
    .cart-total span {
        font-size: 1.2rem;
    }

    .qty-input {
        font-size: 1rem;
        height: 32px;
        width: 52px;
    }
}

/** Terms of Use **/
.terms-of-use {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem 2.5rem;
    background-color: #fffdf7;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.terms-of-use h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #2e3b2e;
}

.terms-of-use h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    color: #405940;
}

.terms-of-use p {
    font-size: 1.4rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.4rem;
}


@media (max-width: 768px) {
    .terms-of-use {
        margin: 4rem 1rem;
        padding: 2.5rem 1.5rem;
    }

    .terms-of-use h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .terms-of-use h3 {
        font-size: 1.6rem;
        margin-top: 2rem;
    }

    .terms-of-use p {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
}

.terms-button-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.btn-back-checkout {
    font-family: 'Lato', sans-serif;
    background-color: #7ba988;
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-back-checkout:hover {
    background-color: #61836e;
    color: #fff;
}

@media (max-width: 768px) {
    .btn-back-checkout {
        font-size: 1.2rem;
        width: 100%;
        padding: 1rem;
    }
}

/** Product View **/
 .product-detail-wrapper {
     padding: 2rem;
     font-family: 'Playfair Display', serif;
 }
.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}
.product-images img {
    width: 100%;
    max-width: 380px;
    object-fit: cover;
}
.image-placeholder {
    background: #eee;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-info {
    flex: 1;
    min-width: 280px;
}
.product-info h1 {
    font-family: 'Times New Roman', serif;
    font-size: 3.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #415e4c;
}
.price,
.tax-info,
.in-stock,
.out-of-stock,
.qty-input,
.qty-btn,
.add-cart-btn,
.pickup-info,
.description,
.availability-icons p {
    font-family: 'Lato', sans-serif;
}
.price {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}
.tax-info {
    color: #777;
    font-size: 1.2rem;
}
.in-stock {
    color: green;
    margin-top: 0.5rem;
}
.out-of-stock {
    color: #655f5f;
    margin-top: 0.5rem;
}
.styled-qty-wrapper {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}
.qty-btn {
    background: transparent;
    border-color: #abbfab;
    color: #1e1e1e;
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
}
.qty-input {
    width: 60px;
    height: 38px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.add-cart-btn {
    background-color: #3b5d47;
    color: white;
    border: none;
    padding: 0rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}
.buy-now-btn {
    background-color: #ffc107;
    color: black;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
}
.pickup-info {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #5D5D5D;
}
.description {
    font-size: 1.3rem;
    line-height: 1.7;
    max-width: 600px;
    margin-top: 2rem;
    color: #5D5D5D;
    word-break: break-word;
    white-space: normal;
}
.availability-section {
    margin-top: 3rem;
    text-align: center;
}
.availability-section h2 {
    font-family: "Times New Roman", serif;
    font-size: 2.5rem;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    color: #383737;
}
.availability-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
}
.availability-icons div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.95rem;
    flex-wrap: wrap;
}
.availability-icons img {
    width: 60px;
    height: auto;
    margin-bottom: 0.5rem;
}
.availability-icons div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
}

.availability-icons img {
    width: 80px;
    height: auto;
    margin-bottom: 0.5rem;
}

.section-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #979696;
    max-width: 100%;
}
.back-to-shop {
    margin-bottom: 1rem;
    line-height: 0;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    background-color: transparent;
    color: #3b5d47;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #8a9a88;
    transition: background 0.2s ease, color 0.2s ease;
}
.back-btn:hover {
    background-color: #d3e5d1;
}
.back-icon {
    width: 26px;
    height: 26px;
    display: inline-block;
    margin: 0;
    padding: 0;
}
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }
    .availability-icons {
        gap: 2rem;
    }
}
