/* =========================================================
   MINT GROW - MAIN SITE CSS
   Cleaned & Consolidated
========================================================= */

/* =========================================================
   ROOT / RESET
========================================================= */

:root {
    --primary: #65a832;
    --primary-dark: #2f6428;
    --primary-light: #b5d532;
    --accent: #e8f4d9;
    --background: #f8fbf5;
    --white: #ffffff;
    --surface: #ffffff;
    --heading: #263326;
    --text: #647064;
    --border: #e3eadf;

    --shadow: 0 16px 45px rgba(40, 86, 35, 0.12);

    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;

    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}

.section {
    padding: 50px 0;
}

.contact-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.contact-success-modal {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf6ef;
    color: #347642;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.contact-success-modal h2 {
    margin-bottom: 12px;
}

.contact-success-modal p {
    margin-bottom: 10px;
    color: #666;
}

.contact-success-modal .primary-btn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    padding: 10px 28px;
}


/* =========================================================
   COMMON SECTIONS
========================================================= */

.section-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 14px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.section-description {
    font-size: 1rem;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.primary-btn,
.secondary-btn {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );
    box-shadow: 0 12px 30px rgba(101, 168, 50, 0.28);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(101, 168, 50, 0.36);
}

.secondary-btn {
    color: var(--primary-dark);
    background: var(--white);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    color: var(--white);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* Generic buttons */

.btn {
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(101, 168, 50, 0.22);
}

.btn-primary:hover {
    color: var(--white);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-danger {
    color: #dc3545;
    background: transparent;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    color: var(--white);
    background: #dc3545;
}


/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(227, 234, 223, 0.8);
    backdrop-filter: blur(16px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 10%;
    background: var(--white);
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    color: var(--heading);
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.15;
}

.logo-text span {
    display: block;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--heading);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: var(--heading);
    font-size: 1.4rem;
}


/* =========================================================
   HERO SLIDER
========================================================= */

.hero {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    color: var(--white);
    background: #103016;
}

.hero-slides {
    position: relative;
    width: 100%;
    min-height: 550px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;

    display: flex;
    align-items: center;

    min-height: 550px;
    padding-top: 100px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.hero-slide.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    z-index: -2;

    width: 100%;
    height: 100%;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(16, 48, 22, 0.88) 0%,
            rgba(16, 48, 22, 0.62) 48%,
            rgba(16, 48, 22, 0.15) 100%
        );
}

.hero::after {
    position: absolute;
    right: -110px;
    bottom: -150px;
    z-index: 3;

    width: 380px;
    height: 380px;

    border-radius: 50%;
    background: rgba(181, 213, 50, 0.18);

    content: "";
    filter: blur(4px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 760px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;
    padding: 9px 16px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.12);

    font-weight: 600;

    backdrop-filter: blur(10px);
}

.hero h1 {
    margin-bottom: 22px;
    font-family: "Poppins", sans-serif;
    font-size: 60px;
    line-height: 1.03;
}

.hero h1 span {
    color: var(--primary-light);
}

.hero p {
    max-width: 650px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero .secondary-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.hero .secondary-btn:hover {
    color: var(--primary-dark);
    background: var(--white);
}


/* Hero navigation */

.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    transform: translateY(-50%);

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: var(--white);

    font-size: 20px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero-slider-prev {
    left: 25px;
}

.hero-slider-next {
    right: 25px;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}


/* Hero dots */

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 25px;
    z-index: 10;

    display: flex;
    gap: 8px;

    transform: translateX(-50%);
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.45);

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.hero-slider-dot.active {
    width: 26px;
    border-radius: 10px;
    background: var(--white);
}


/* =========================================================
   HOME PRODUCT TABLE
========================================================= */

.home-product-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 35px 0 20px;
}

.home-product-search {
    flex: 1;
}

.home-product-search input,
.home-category-filter select,
.home-product-length select {
    height: 44px;
    padding: 8px 15px;

    border: 1px solid #d9e2dc;
    border-radius: 8px;

    background: var(--white);
    color: #294334;

    font-size: 14px;
    outline: none;
}

.home-product-search input {
    width: 100%;
    max-width: 420px;
}

.home-category-filter select,
.home-product-length select {
    min-width: 170px;
    padding-right: 35px;
    cursor: pointer;
}

.home-product-search input:focus,
.home-category-filter select:focus,
.home-product-length select:focus {
    border-color: #4c8b59;
    box-shadow: 0 0 0 3px rgba(76, 139, 89, 0.1);
}

.home-product-table-wrapper {
    width: 100%;
    margin-top: 35px;
    overflow-x: auto;

    border: 1px solid #e7ece8;
    border-radius: 16px;

    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.home-product-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.home-product-table thead {
    background: #f5f8f5;
}

.home-product-table th {
    padding: 16px 18px;

    border-bottom: 1px solid #e7ece8;

    color: #52645a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: left;
    text-transform: uppercase;
}

.home-product-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.home-product-table th.sortable:hover {
    background: #edf4ef;
}

.sort-icon {
    display: inline-block;
    margin-left: 6px;
    color: #6f8175;
    font-size: 13px;
}

.home-product-table td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #edf1ee;
}

.home-product-table tbody tr {
    transition: background-color 0.2s ease;
}

.home-product-table tbody tr:hover {
    background: #fafcfa;
}

.home-product-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Product image */

.home-product-image,
.home-product-placeholder {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 10px;
}

.home-product-image {
    display: block;
    object-fit: cover;
}

.home-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5ef;
    font-size: 25px;
}


/* Product text */

.home-product-name {
    display: inline-block;
    margin-bottom: 5px;
    color: #183c25;
    font-size: 16px;
    font-weight: 700;
}

.home-product-name:hover {
    color: #2e7d32;
}

.home-product-description {
    max-width: 320px;
    color: #748079;
    font-size: 13px;
    line-height: 1.5;
}

.home-product-category {
    display: inline-flex;
    padding: 6px 10px;

    border-radius: 20px;

    background: #edf6ef;
    color: #347642;

    font-size: 12px;
    font-weight: 600;
}

.home-stock-display {
    display: inline-grid;
    width: 75px;
}

.home-stock-badge {
    display: inline-flex;
    padding: 6px 10px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}

.home-stock-badge.in-stock {
    background: #edf6ef;
    color: #347642;
}

.home-stock-badge.out-of-stock {
    background: #fdecec;
    color: #c0392b;
}

.home-product-price {
    color: #183c25;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.home-product-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #2e7d32;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.home-product-view:hover {
    color: #1c5721;
}

.home-product-empty {
    padding: 40px !important;
    text-align: center;
    color: #77827b;
}

.home-products-button {
    padding-top: 40px;
    text-align: center;
}


/* =========================================================
   HOME PRODUCT CART
========================================================= */

.home-variation-select {
    width: 100%;
    min-width: 150px;
    height: 42px;
    padding: 8px 35px 8px 12px;

    border: 1px solid #d9e2dc;
    border-radius: 8px;

    background: var(--white);
    color: #294334;

    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.home-variation-select:focus {
    border-color: #4c8b59;
    box-shadow: 0 0 0 3px rgba(76, 139, 89, 0.1);
}

.home-quantity-input {
    width: 100px;
    height: 42px;
    padding: 8px;

    border: 1px solid #d9e2dc;
    border-radius: 8px;

    color: #294334;

    font-size: 14px;
    text-align: center;
    outline: none;
}

.home-quantity-input:focus {
    border-color: #4c8b59;
    box-shadow: 0 0 0 3px rgba(76, 139, 89, 0.1);
}

.home-add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 18px;

    border-radius: 8px;

    background: #2f753e;
    color: var(--white);

    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.home-add-cart-btn:hover {
    background: #245f31;
}

.home-add-cart-btn:active {
    transform: translateY(1px);
}

.home-add-cart-btn:disabled {
    background: #aab5ad;
    cursor: not-allowed;
}


/* =========================================================
   PRODUCT TABLE FOOTER / PAGINATION
========================================================= */

.home-product-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.product-table-info {
    color: #6c7b71;
    font-size: 14px;
}

.product-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-pagination button {
    min-width: 38px;
    height: 38px;
    padding: 6px 10px;

    border: 1px solid #dce5de;
    border-radius: 7px;

    background: var(--white);
    color: #31503a;

    font-size: 13px;
    font-weight: 600;
}

.product-pagination button:hover {
    background: #edf6ef;
    border-color: #9ab7a1;
}

.product-pagination button.active {
    background: #2f753e;
    border-color: #2f753e;
    color: var(--white);
}

.product-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =========================================================
   PRODUCT ACTIONS
========================================================= */

.product-actions-inline {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.product-quantity-inline {
    width: 145px;
    flex-shrink: 0;
}

.product-quantity-inline .product-price-label {
    display: block;
    margin-bottom: 6px;
}

.product-quantity-inline .input-group {
    display: flex;
    flex-wrap: nowrap;
}

.product-quantity-inline .form-control {
    width: 125px;
    min-width: 0;
}

.product-quantity-inline .input-group-text {
    margin: 10px 0 0 10px;
    white-space: nowrap;
}

.product-actions-inline .btn {
    min-height: 42px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories-section {
    position: relative;
    background: var(--background);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    border: 1px solid #e4ebe4;
    border-radius: 18px;

    background: var(--white);
    color: inherit;

    box-shadow: 0 8px 30px rgba(28, 72, 40, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #87b978;
    box-shadow: 0 18px 45px rgba(28, 72, 40, 0.14);
}

.category-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;

    border-radius: 16px;
    background: #edf5eb;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.07);
}

.category-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 4rem;
}

.category-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.category-content h3 {
    margin-bottom: 12px;
    color: #163f25;
    font-size: 1.35rem;
}

.category-content p {
    margin-bottom: 22px;
    color: #627066;
    line-height: 1.7;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;

    color: #2f7d3f;
    font-weight: 700;
}

.category-link span {
    transition: transform 0.25s ease;
}

.category-card:hover .category-link span {
    transform: translateX(5px);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 70px 30px;

    border: 1px solid #e4ebe4;
    border-radius: 18px;

    background: var(--white);
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 18px;
    font-size: 4rem;
}

.empty-state h2 {
    margin-bottom: 10px;
    color: #163f25;
}

.empty-state p {
    color: #627066;
}


/* =========================================================
   CATEGORY PAGE
========================================================= */

.page-banner {
    position: relative;
    padding: 150px 0 80px;

    color: var(--white);
    text-align: center;

    background:
        linear-gradient(
            rgba(20, 70, 35, 0.88),
            rgba(20, 70, 35, 0.88)
        ),
        url("../img/pages/stats-bg.jpg")
        center / cover no-repeat;
}

.page-banner h1 {
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.2;
}

.page-banner p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.categories-page {
    padding: 80px 0;
    background: #f7faf7;
}

.categories-cta {
    padding: 70px 0;
    color: var(--white);
    background: linear-gradient(
        135deg,
        #174b2a,
        #2f7d3f
    );
}

.categories-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.categories-cta h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.categories-cta p {
    color: rgba(255, 255, 255, 0.82);
}

.categories-cta .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 14px 26px;

    border-radius: 8px;

    background: var(--white);
    color: #174b2a;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.categories-cta .btn-light:hover {
    transform: translateY(-2px);
    background: #eef7eb;
}


/* =========================================================
   PRODUCTS
========================================================= */

.products-section,
.related-products-section {
    background: var(--white);
}

.products-page {
    background: var(--background);
}

.products-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.products-sidebar {
    position: sticky;
    top: 100px;
}

.products-sidebar .filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
}

.products-sidebar .filter-btn {
    display: block;
    width: 100%;
    text-align: left;
}

.products-main {
    min-width: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 42px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--background);
    color: var(--heading);

    font-weight: 600;

    transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: 0 10px 35px rgba(47, 100, 40, 0.07);

    transition: 0.35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.product-card.hidden {
    display: none;
}

.product-image {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: var(--background);
}

.product-image img {
    height: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge,
.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 6px 12px;

    border-radius: 999px;

    background: var(--primary);
    color: var(--white);

    font-size: 0.73rem;
    font-weight: 700;
}

.featured-badge {
    top: 15px;
    left: 15px;
    padding: 7px 13px;
    background: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.product-content,
.product-body {
    padding: 22px;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-content h3,
.product-body h3 {
    margin: 7px 0 10px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
}

.product-body h3 a {
    color: var(--heading);
}

.product-body h3 a:hover {
    color: var(--primary);
}

.product-content p,
.product-body p {
    margin-bottom: 18px;
    font-size: 0.88rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.availability {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--primary-dark);

    font-size: 0.82rem;
    font-weight: 600;
}

.availability::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
}

.product-link {
    color: var(--primary);
    font-weight: 700;
}

.product-price {
    color: var(--heading);
    font-size: 1.15rem;
    font-weight: 800;
}


/* Product image */

.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #edf6e5;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.06);
}

.product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 4rem;
}


/* Product search */

.product-search-form {
    display: flex;
    max-width: 760px;
    align-items: center;
    gap: 12px;
    margin: 0 auto 30px;
}

.product-search-form input {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--white);
    color: var(--heading);

    font: inherit;
    outline: none;
}

.product-search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(101, 168, 50, 0.12);
}

.product-search-form .btn {
    min-height: 50px;
}

.clear-filter-link {
    flex-shrink: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

.product-result-text {
    margin-bottom: 25px;
    text-align: center;
}

.product-empty-state {
    grid-column: 1 / -1;
    padding: 70px 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);
    text-align: center;
}

.product-empty-icon {
    margin-bottom: 15px;
    font-size: 4rem;
}

.product-empty-state h2 {
    margin-bottom: 8px;
    color: var(--heading);
}

.product-empty-state p {
    margin-bottom: 22px;
}


/* Product price */

.product-price-selector {
    margin: 24px 0;
    padding: 20px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #f8faf9;
}

.product-price-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-price-selector .form-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
}

.selected-product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.price-caption {
    color: #6b7280;
    font-weight: 500;
}

#selectedPrice {
    color: #198754;
    font-size: 24px;
    font-weight: 700;
}


/* =========================================================
   PRODUCT PAGINATION
========================================================= */

.products-pagination {
    margin-top: 48px;
    text-align: center;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 14px;

    border: 1px solid #dfe5df;
    border-radius: 8px;

    background: var(--white);
    color: #254d32;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.pagination-link:hover {
    border-color: #3c7a4d;
    background: #f1f8f2;
    color: #245b34;
}

.pagination-link.active {
    border-color: #2f6d3e;
    background: #2f6d3e;
    color: var(--white);
}

.pagination-link.disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pagination-summary {
    margin-top: 14px;
    color: #6c756e;
    font-size: 14px;
}


/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail-section {
    padding-top: 50px;
    background: var(--background);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 35px;
    overflow-x: auto;

    color: var(--text);
    font-size: 0.9rem;
    white-space: nowrap;
}

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 60px;
}

.product-detail-image {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;

    border-radius: var(--radius-md);
    background: #edf6e5;

    box-shadow: var(--shadow);
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 7rem;
}

.product-detail-content h1 {
    margin-bottom: 18px;
    color: var(--heading);
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.12;
}

.product-short-description {
    margin-bottom: 22px;
    font-size: 1.08rem;
}

.product-detail-price {
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 800;
}

.product-meta {
    margin-bottom: 30px;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--white);
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 18px;

    border-bottom: 1px solid var(--border);
}

.product-meta-row:last-child {
    border-bottom: 0;
}

.product-meta-row span {
    color: var(--text);
}

.product-meta-row strong,
.product-meta-row a {
    color: var(--heading);
    text-align: right;
}

.product-meta-row a:hover {
    color: var(--primary);
}

.available-text {
    color: var(--primary) !important;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-back-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary-dark);
}

.product-back-btn:hover {
    border-color: var(--primary);
    background: var(--background);
}

.product-description-card {
    margin-top: 60px;
    padding: 35px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);
}

.product-description-card h2 {
    margin-bottom: 18px;
    color: var(--heading);
    font-size: 1.8rem;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.about-images {
    position: relative;
    min-height: 560px;
}

.about-main-image {
    position: absolute;
    top: 0;
    left: 0;

    width: 83%;
    height: 470px;

    border-radius: 28px;

    box-shadow: var(--shadow);
}

.about-small-image {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 54%;
    height: 270px;

    border: 10px solid var(--background);
    border-radius: 28px;

    box-shadow: var(--shadow);
}

.experience-card {
    position: absolute;
    left: 24px;
    bottom: 28px;
    z-index: 3;

    padding: 22px;

    border-radius: var(--radius-md);

    background: var(--primary-dark);
    color: var(--white);

    box-shadow: var(--shadow);
}

.experience-card strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
}

.about-content h2 {
    margin-bottom: 20px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.about-content > p {
    margin-bottom: 22px;
}

.about-list {
    display: grid;
    gap: 14px;

    margin: 28px 0 34px;
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--heading);
    font-weight: 600;
}

.about-list span {
    display: grid;
    flex: 0 0 30px;

    height: 30px;

    place-items: center;

    border-radius: 50%;

    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   STATISTICS
========================================================= */

.stats {
    padding: 80px 0;
    color: var(--white);

    background:
        linear-gradient(
            rgba(36, 91, 38, 0.94),
            rgba(36, 91, 38, 0.94)
        ),
        url("../img/pages/stats-bg.jpg")
        center / cover fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-item {
    padding: 22px;
    text-align: center;
}

.stat-item strong {
    display: block;
    margin-bottom: 4px;

    color: var(--primary-light);

    font-family: "Poppins", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.stat-item span {
    font-weight: 600;
}


/* =========================================================
   SUSTAINABILITY
========================================================= */

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sustainability-card {
    padding: 38px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--background);

    transition: 0.35s ease;
}

.sustainability-card:hover {
    color: rgba(255, 255, 255, 0.82);
    background: var(--primary-dark);
    transform: translateY(-8px);
}

.sustainability-icon {
    display: grid;

    width: 70px;
    height: 70px;
    margin-bottom: 24px;

    place-items: center;

    border-radius: 18px;
    background: var(--accent);

    font-size: 2rem;
}

.sustainability-card h3 {
    margin-bottom: 12px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
}

.sustainability-card:hover h3 {
    color: var(--white);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 40px 0 100px;
}

.cta-box {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
    padding: 55px;

    border-radius: var(--radius-lg);

    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );

    color: var(--white);
}

.cta-box::after {
    position: absolute;
    right: -70px;
    bottom: -110px;

    width: 280px;
    height: 280px;

    border: 45px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    content: "";
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.cta-content h2 {
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-box .secondary-btn {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
}

.contact-card {
    padding: 30px;
    border-radius: 22px;
    background: var(--background);
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    outline: none;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.map {
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.contact-detail {
    padding: 15px 0;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding-top: 80px;

    background: #18391f;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 50px;

    padding-bottom: 55px;
}

.footer .logo-text {
    color: var(--white);
}

.footer-about {
    max-width: 330px;
    margin-top: 20px;
}

.footer h3 {
    margin-bottom: 20px;

    color: var(--white);

    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 10px;
    list-style: none;
}

.footer-links a {
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.newsletter {
    display: flex;
    overflow: hidden;

    margin-top: 16px;

    border-radius: 999px;
    background: var(--white);
}

.newsletter input {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    outline: none;
}

.newsletter button {
    padding: 0 18px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.footer-designed a {
    color: var(--primary-light);
    font-weight: 600;
}

.footer-designed a:hover {
    color: var(--white);
}


/* =========================================================
   FORMS
========================================================= */

.form-control,
.form-select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--white);
    color: var(--heading);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(101, 168, 50, 0.12);
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--heading);
    font-weight: 600;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 20px;
}

.col-md-4 {
    grid-column: span 4;
}

.col-md-6 {
    grid-column: span 6;
}


/* =========================================================
   CART
========================================================= */

.cart-nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;
    padding: 0 6px;

    border-radius: 999px;

    background: var(--primary);
    color: var(--white);

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.cart-nav-link:hover .cart-count {
    background: var(--primary-dark);
}

.cart-section {
    min-height: 70vh;
    padding-top: 140px;
    background: var(--background);
}

.cart-section .section-header {
    margin-bottom: 35px;
}

.cart-section .section-header h1 {
    margin-bottom: 8px;

    color: var(--heading);

    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cart-section .section-header p {
    margin: 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns:
        100px
        minmax(0, 1fr)
        150px
        110px
        100px;

    gap: 18px;
    align-items: center;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: 0 8px 25px rgba(47, 100, 40, 0.06);
}

.cart-product-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #edf6e5;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-info h3 {
    margin-bottom: 6px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
}

.cart-product-info h3 a:hover {
    color: var(--primary);
}

.cart-product-info p {
    margin-bottom: 7px;
    font-size: 0.9rem;
}

.cart-product-info strong,
.cart-item-total strong {
    color: var(--primary-dark);
}

.cart-quantity form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-quantity .form-control {
    width: 70px;
    min-height: 44px;
}

.cart-quantity .btn,
.cart-remove .btn {
    min-height: 42px;
    padding-inline: 14px;
    border-radius: var(--radius-sm);
}

.cart-summary {
    position: sticky;
    top: 110px;

    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: 0 8px 25px rgba(47, 100, 40, 0.06);
}

.cart-summary h3 {
    margin-bottom: 18px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}

.cart-summary-total {
    margin-bottom: 20px;
    border-bottom: 0;
    color: var(--heading);
    font-size: 1.2rem;
}

.empty-cart {
    padding: 65px 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);
    text-align: center;
}

.empty-cart h3 {
    margin-bottom: 8px;
    color: var(--heading);
}


/* =========================================================
   CHECKOUT
========================================================= */

.checkout-section {
    min-height: 70vh;
    padding-top: 140px;
    background: var(--background);
}

.checkout-section .section-header {
    margin-bottom: 35px;
}

.checkout-section .section-header h1 {
    margin-bottom: 8px;

    color: var(--heading);

    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.checkout-form-card,
.checkout-summary {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: 0 8px 25px rgba(47, 100, 40, 0.06);
}

.checkout-form-card h3,
.checkout-summary h3 {
    margin-bottom: 24px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
}

.checkout-product {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.checkout-product strong {
    color: var(--heading);
}

.checkout-product small {
    display: block;
    margin-top: 4px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-top: 20px;

    color: var(--heading);
    font-size: 1.25rem;
}


/* =========================================================
   ORDER SUCCESS
========================================================= */

.order-success {
    max-width: 650px;
    margin: 0 auto;

    padding: 150px 30px 80px;

    text-align: center;
}

.order-success h1 {
    margin-bottom: 10px;
    color: var(--heading);
    font-family: "Poppins", sans-serif;
}

.order-success-icon {
    display: grid;

    width: 80px;
    height: 80px;
    margin: 0 auto 20px;

    place-items: center;

    border-radius: 50%;

    background: var(--primary-dark);
    color: var(--white);

    font-size: 2.6rem;
}

.order-number {
    margin: 25px 0;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--background);
}

.order-number strong {
    display: block;
    margin-top: 5px;
    color: var(--heading);
    font-size: 1.2rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */


/* ---------- 1100px ---------- */

@media (max-width: 1100px) {
    .nav-menu {
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ---------- 992px ---------- */

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}


/* ---------- 991px ---------- */

@media (max-width: 991px) {
    .products-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
    }

    .cart-item {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .cart-product-image {
        width: 90px;
        height: 90px;
    }

    .cart-quantity,
    .cart-item-total,
    .cart-remove {
        grid-column: 2;
    }
}


/* ---------- 900px ---------- */

@media (max-width: 900px) {
    .menu-button {
        display: grid;
    }

    .nav-actions .primary-btn {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        right: -100%;

        width: min(340px, 88%);
        height: calc(100vh - 84px);

        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        padding: 28px;

        background: var(--white);
        box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.08);

        transition: right 0.35s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li,
    .nav-menu a {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sustainability-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail-image {
        max-width: 650px;
        margin-inline: auto;
    }
}


/* ---------- 768px ---------- */

@media (max-width: 768px) {
    .hero,
    .hero-slides,
    .hero-slide {
        min-height: 500px;
    }

    .hero-slide {
        padding-top: 80px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(16, 48, 22, 0.35) 0%,
                rgba(16, 48, 22, 0.82) 100%
            );
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-slider-prev,
    .hero-slider-next {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .hero-slider-prev {
        left: 12px;
    }

    .hero-slider-next {
        right: 12px;
    }

    .hero-slider-dots {
        bottom: 18px;
    }

    .home-product-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .home-product-search input,
    .home-category-filter select,
    .home-product-length select {
        width: 100%;
        max-width: none;
    }

    .home-product-table-wrapper {
        margin-top: 25px;
        border-radius: 12px;
    }

    .home-product-table th,
    .home-product-table td {
        padding: 13px 14px;
    }

    .home-product-image,
    .home-product-placeholder {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .home-product-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-pagination {
        flex-wrap: wrap;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ---------- 767px ---------- */

@media (max-width: 767px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
    }

    .products-sidebar .filter-buttons {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .products-sidebar .filter-btn {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .cart-section,
    .checkout-section {
        padding-top: 110px;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .col-md-4,
    .col-md-6 {
        grid-column: 1;
    }
}


/* ---------- 720px ---------- */

@media (max-width: 720px) {
    .section {
        padding: 75px 0;
    }

    .hero {
        min-height: 500px;
        background-position: 64% center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
        padding: 38px 28px;
    }
}


/* ---------- 650px ---------- */

@media (max-width: 650px) {
    .page-banner {
        padding: 125px 20px 65px;
    }

    .categories-page {
        padding: 55px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .category-image {
        height: 210px;
    }

    .categories-cta {
        padding: 55px 0;
        text-align: center;
    }

    .categories-cta-content {
        flex-direction: column;
    }
}


/* ---------- 576px ---------- */

@media (max-width: 576px) {
    .product-actions-inline {
        gap: 10px;
    }

    .product-quantity-inline {
        width: 130px;
    }

    .product-actions-inline .btn {
        flex: 1;
    }
}


/* ---------- 575px ---------- */

@media (max-width: 575px) {
    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-product-image {
        width: 100%;
        height: 220px;
    }

    .cart-product-info,
    .cart-quantity,
    .cart-item-total,
    .cart-remove {
        grid-column: 1;
    }

    .cart-quantity form {
        align-items: stretch;
    }

    .cart-quantity .form-control {
        width: 90px;
    }

    .checkout-form-card,
    .checkout-summary,
    .cart-summary,
    .cart-item {
        padding: 18px;
    }
}


/* ---------- 560px ---------- */

@media (max-width: 560px) {
    .product-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .product-search-form .btn {
        width: 100%;
    }

    .clear-filter-link {
        text-align: center;
    }

    .product-detail-section {
        padding-top: 30px;
    }

    .product-detail-content h1 {
        font-size: 2.25rem;
    }

    .product-actions {
        flex-direction: column;
    }

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

    .product-description-card {
        margin-top: 40px;
        padding: 24px;
    }
}


/* ---------- 520px ---------- */

@media (max-width: 520px) {
    .navbar {
        min-height: 74px;
    }

    .nav-menu {
        top: 74px;
        height: calc(100vh - 74px);
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .hero {
        min-height: 680px;
        padding-top: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .categories-grid,
    .products-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: auto;
    }

    .about-images {
        min-height: 450px;
    }

    .about-main-image {
        width: 92%;
        height: 360px;
    }

    .about-small-image {
        height: 210px;
    }

    .experience-card {
        left: 10px;
        bottom: 8px;
    }

    .product-image {
        height: 260px;
    }
}


/* =========================================================
   ORDER STATUS PAGES & PAYMENT GATEWAY SCREEN
========================================================= */

.status-page-section {
    padding: 140px 0 90px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
}

.order-status-wrapper {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.order-status-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 50px 35px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 35px rgba(47, 100, 40, 0.08);
    text-align: center;
    position: relative;
}

/* Status Badges & Icons */
.status-icon-wrapper {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    border-radius: 50%;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.success-card .status-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(101, 168, 50, 0.3);
}

.failed-card .status-icon-wrapper {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.3);
}

.status-icon-wrapper svg {
    width: 42px;
    height: 42px;
    stroke-width: 2.5;
}

.status-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.success-card .status-eyebrow {
    color: var(--primary);
}

.failed-card .status-eyebrow {
    color: #dc2626;
}

.order-status-card h1 {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 12px;
    line-height: 1.25;
}

.order-status-card .status-desc {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 25px;
}

/* Order Details Box */
.order-info-chip {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    max-width: 480px;
}

.failed-card .order-info-chip {
    background: #fdf6f6;
    border-color: #f8e1e1;
}

.order-info-label {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}

.order-info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading);
    font-family: "Poppins", monospace, sans-serif;
}

.order-info-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.order-info-badge.success-badge {
    background: var(--accent);
    color: var(--primary-dark);
}

.order-info-badge.failed-badge {
    background: #fee2e2;
    color: #dc2626;
}

/* Action Buttons */
.status-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Payment Gateway Processing Loader */
.payment-processing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 50px 35px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(47, 100, 40, 0.08);
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.payment-spinner-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.payment-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--accent);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spinLoader 0.9s linear infinite;
}

.payment-spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-security-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.payment-processing-card h2 {
    font-family: "Poppins", sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 10px;
}

.payment-processing-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.payment-fallback-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.payment-retry-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
}

.payment-retry-link:hover {
    color: var(--primary-dark);
}

.payment-cancel-btn {
    color: var(--text);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.payment-cancel-btn:hover {
    color: #dc2626;
}

/* =========================================================
   Universal Button Spinner & Submit Loader
   ========================================================= */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    cursor: not-allowed !important;
}

.btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.15em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btnSpinner 0.75s linear infinite;
    margin-right: 0.5rem;
}

@keyframes btnSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Universal Email / Form Fullscreen Preloader
   ========================================================= */
.email-preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.email-preloader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-preloader-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px 32px 32px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-preloader-overlay.active .email-preloader-card {
    transform: scale(1);
}

.email-preloader-logo {
    margin-bottom: 20px;
}

.email-preloader-logo img {
    height: 48px;
    width: auto;
    display: inline-block;
}

.email-preloader-spinner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.email-preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3.5px solid #dcfce7;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: emailPreloadSpin 0.85s linear infinite;
}

@keyframes emailPreloadSpin {
    to {
        transform: rotate(360deg);
    }
}

.email-preloader-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-family: "Poppins", sans-serif;
}

.email-preloader-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}



