/* ==========================
   CSS VARIABLES (THEME)
========================== */
:root {
    --lr-green: #0f3d2e;
    --lr-green-light: #1f5e45;
    --lr-black: #0b0b0b;
    --lr-grey: #f2f3f4;
    --lr-border: #d6d6d6;
    --lr-accent: #c8aa6e;
}


/* ==========================
   RESET & BASE
========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--lr-grey);
    color: #222;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}


/* ==========================
   LAYOUT
========================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}


/* ==========================
   HEADER / NAV BAR
========================== */
header {
    background: var(--lr-green);
    color: #fff;
    position: relative;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    text-decoration: none;
}


/* ==========================
   NAV MENU
========================== */
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-menu a,
.nav-menu span {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.nav-menu a:hover,
.nav-menu span:hover {
    text-decoration: underline;
}


/* ==========================
   DROPDOWN LEVEL 1
========================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important; /* FORCE HIDDEN */
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--lr-green);
    min-width: 220px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    white-space: nowrap;
}

.dropdown-menu a:focus {
    background: var(--lr-green-light);
}


/* ==========================
   DROPDOWN LEVEL 2 (FLYOUT)
========================== */
.dropdown-sub {
    position: relative;
}

.dropdown-sub > a {
    display: block;
    padding: 0.65rem 1rem;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.dropdown-sub-menu {
    display: none !important; /* FORCE HIDDEN */
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--lr-green);
    min-width: 220px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: -1px;
}

.dropdown-sub-menu a {
    display: block;
    padding: 0.65rem 1rem;
}


/* ==========================
   NAV TOGGLE (MOBILE BUTTON)
========================== */
#nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}


/* ==========================
   DESKTOP NAV BEHAVIOUR
========================== */
@media (min-width: 801px) {

    /* Open main dropdown */
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu{
        display: block !important;
    }

    /* Keep dropdown open when hovering menu */
    .dropdown-menu:hover {
        display: block !important;
    }

    /* Open submenu */
    .dropdown-sub:hover > .dropdown-sub-menu,
    .dropdown-sub:focus-within > .dropdown-sub-menu{
        display: block !important;
    }

    /* Keep submenu open when hovering submenu */
    .dropdown-sub-menu:hover {
        display: block !important;
    }

    .dropdown-sub-menu a:hover {
	    background: var(--lr-green-light);
    }

    .dropdown-menu a:hover {
	    background: var(--lr-green-light);
    }
}



/* ==========================
   MOBILE NAV
========================== */
@media (max-width: 800px) {

    .nav-toggle-label {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--lr-green);
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    #nav-toggle:checked + .nav-toggle-label + .nav-menu {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.75rem;
    }

    .dropdown-menu,
    .dropdown-sub-menu {
        position: static;
        border: none;
        margin-left: 0;
        display: none !important;
    }

    .dropdown:focus-within > .dropdown-menu {
        display: block !important;
    }

    .dropdown-sub:focus-within > .dropdown-sub-menu {
        display: block !important;
    }
}


/* ==========================
   BUTTONS
========================== */
button,
.btn {
    background: var(--lr-green);
    color: #fff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

button:hover,
.btn:hover {
    background: var(--lr-green-light);
}


/* ==========================
   FORMS
========================== */
form {
    max-width: 520px;
    margin: 1.5rem auto;
    background: #fff;
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--lr-border);
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 0.55rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--lr-border);
    border-radius: 4px;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--lr-green);
}


/* ==========================
   PRODUCT GRID
========================== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid var(--lr-border);
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    margin: 0.5rem 0;
}

.product-card .price {
    font-weight: bold;
    margin-top: auto;
    color: var(--lr-green);
}

.product-image {
    max-width: 320px;
}
.product-image-container {
    height: 224px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ==========================
   CART / CARDS
========================== */
.card {
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid var(--lr-border);
}

.basket-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.basket-total {
    font-weight: bold;
    text-align: right;
}


/* ==========================
   FOOTER
========================== */
footer {
    margin-top: auto;
    background: var(--lr-black);
    color: #aaa;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================
   RESPONSIVE GRID
========================== */
@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* ==========================
   ADMIN BADGE
========================== */
.admin-badge {
    background: var(--lr-accent);
    color: #000;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.3rem;
}

/* ==========================
   ADMIN CATEGORY MANAGER
========================== */

.tree {
    margin-top: 1rem;
}

.tree ul {
    list-style: none;
    margin-left: 1.25rem;
    padding-left: 1rem;
    border-left: 2px solid var(--lr-border);
}

.tree li {
    margin: 0.7rem 0;
    padding: 0.5rem 0;
}

/* Parent category title */
.tree > ul > li > strong {
    font-size: 1.05rem;
    color: var(--lr-green);
}

/* Inline edit form */
.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
}

.inline-form input {
    width: 160px;
    padding: 0.35rem 0.45rem;
    font-size: 0.9rem;
}

/* Delete link */
.tree a {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: #b00020;
    text-decoration: none;
}

.tree a:hover {
    text-decoration: underline;
}

/* Section spacing */
.container h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Add category form spacing */
.container form {
    margin-top: 0.5rem;
}

/* Better HR spacing */
.container hr {
    margin: 1.5rem 0;
}

/* -----------------------------
   Admin form checkbox groups
------------------------------*/

fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
}

fieldset legend {
    font-weight: 600;
    padding: 0 8px;
}

/* Tag checkbox layout */
fieldset label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* Prevent squashed checkbox */
fieldset input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Optional: multi-column layout for lots of tags */
fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 16px;
}

/* ==========================
   ADMIN PRODUCT TABLE SPACING
========================== */

.admin-table td .btn,
.admin-table td .btn.secondary {
    margin-top: 6px;
    display: inline-block;
}

/* Add padding to Actions column */
.admin-table td:last-child {
    padding-top: 10px;
}

/* Optional — cleaner table spacing overall */
.admin-table td,
.admin-table th {
    padding: 10px 12px;
    vertical-align: middle;
}

.legal-page {
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.7;
}

.legal-page h3 {
    margin-top: 30px;
}

.legal-page {
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.7;
}

.legal-page h3 {
    margin-top: 30px;
}

/* ===============================
   POLICY / LEGAL PAGES
================================= */

.policy-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* Main title */
.policy-page h1 {
    margin-bottom: 30px;
    font-size: 32px;
}

/* Section headings */
.policy-page h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 22px;
}

/* Paragraph spacing */
.policy-page p {
    margin-bottom: 18px;
}

/* Lists */
.policy-page ul,
.policy-page ol {
    margin: 15px 0 20px 25px;
}

.policy-page li {
    margin-bottom: 8px;
}

/* Optional subtle divider */
.policy-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 40px 0;
}

/* ===============================
   AUTH / LOGIN / PASSWORD RESET
================================= */

.auth-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Card */
.auth-card {
    background: #fff;
    padding: 35px 40px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Title */
.auth-card h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* Labels */
.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Inputs */
.auth-card input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Button */
.auth-card button {
    width: 100%;
    padding: 12px;
    background: #1c1c1c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-card button:hover {
    background: #333;
}

/* Links under form */
.auth-links {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.auth-links a {
    color: #0066cc;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links p {
    margin: 6px 0;
}

.auth-links a {
    color: #0066cc;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.admin-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.admin-table th,
.admin-table td{
padding:12px;
border-bottom:1px solid #ddd;
text-align:left;
}

.admin-table th{
background:#f5f5f5;
}

.admin-table tr:hover{
background:#fafafa;
}

.order-pipeline {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.order-pipeline .step {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #eee;
    border-radius: 6px;
    font-size: 14px;
}

.order-pipeline .step.active {
    background: #0f3d2e;
    color: white;
    font-weight: bold;
}

/* Wrapper */
.search-wrapper {
    position: relative;
}

/* Form base */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

/* Input hidden by default */
.search-form input {
    width: 0;
    opacity: 0;
    padding: 6px 0;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: white;
}

/* Button always visible */
.search-form button {
    padding: 6px 10px;
    background: #0f3d2e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* EXPAND on hover */
.search-wrapper:hover .search-form input,
.search-form input:focus {
    width: 180px;
    opacity: 1;
    padding: 3px 5px;
    margin-right: 5px;
    border: 1px solid #ccc;
}

.search-form {
    padding: 0;
    background: unset;
    border: unset;
}

@media (max-width: 768px) {
    .search-form input {
        width: 140px;
        opacity: 1;
        padding: 6px 10px;
        border: 1px solid #ccc;
    }
}

.invoice-container {
    background: #fff;
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    border: 1px solid #ddd;
    font-family: "Segoe UI", Arial, sans-serif;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.invoice-brand h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.invoice-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.invoice-meta h2 {
    margin: 0;
    font-size: 24px;
    text-align: right;
}

.invoice-meta p {
    margin: 2px 0;
    text-align: right;
}

.divider {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #ccc;
}

.invoice-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top
}

.product-image-container {
  min-width: 320px;
}