:root {
    --primary-color: #709d2d;
    --primary-hover: #5d8225;
    --secondary-color: #4a671e;
    --accent-color: #f7f9f2;
    --text-muted: #666e5a;
    --warning-color: #ffc107;
    --danger-color: #e74c3c;
    --light-bg: #fdfdfd;
    --dark-text: #2d3436;
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.98);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text);
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    padding: 0.8rem 0;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.mega-menu {
    position: static;
}

.mega-menu .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    border: none;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 3rem;
}

/* Cards */
.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.6s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.08);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    min-height: 2.6rem;
}

.product-card .product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark-text);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 12px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(112, 157, 45, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(112, 157, 45, 0.3);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem;
}

footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
}

/* Toast/Notifications */
.toast-container {
    z-index: 1060;
}

/* Offcanvas Cart */
#offcanvasCart {
    border-radius: 20px 0 0 20px;
}

/* Checkout Styles */
.custom-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #eee !important;
}

.custom-option:hover {
    border-color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.02);
}

.form-check-input:checked+.form-check-label .custom-option,
.custom-option.active {
    border-color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.10);
    border-color: var(--primary-color);
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

/* Sticky Summary adjustments */
@media (min-width: 992px) {
    .sticky-lg-top {
        top: 100px;
        z-index: 1020;
    }
}

/* Animations */
.animate-up {
    transition: transform 0.3s ease;
}

.animate-up:hover {
    transform: translateY(-5px);
}

/* Admin Dashboard & Invoice Layouts */
.admin-sidebar {
    min-width: 260px;
    max-width: 260px;
    z-index: 1030;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.nav-link.active {
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff !important;
}

.hover-white:hover {
    color: #fff !important;
}

/* Offcanvas Refinements */
.offcanvas {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.btn-close:focus {
    box-shadow: none !important;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Print Styles for Professional Invoices */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff !important;
        padding: 0 !important;
    }

    .container {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .invoice-box {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
        max-width: none !important;
    }
}