:root {
    --primary-color: #0d1b2a;
    /* Deep Navy from logo */
    --secondary-color: #f27121;
    /* Vibrant Orange from logo */
    --text-color: #0d1b2a;
    --light-text: #4a5568;
    --bg-light: #ffffff;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 4px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.section-padding { padding: 5rem 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg-light); }
.bg-transparent { background: transparent; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-inherit { color: inherit; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-secondary { color: var(--secondary-color); }
.text-uppercase { text-transform: uppercase; }
.text-sm { font-size: 0.8rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 2.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 1.2rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.mt-3 { margin-top: 3rem; }

.d-ib { display: inline-block; }
.d-b { display: block; }
.d-flex { display: flex; }
.gap-1 { gap: 1rem; }
.w-100 { width: 100%; }

.img-fluid {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.p-2 { padding: 2rem; }
.vh-100 { height: 100vh; }
.bg-primary { background: var(--primary-color); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.text-inherit { color: inherit; }

/* Admin Form Styles */
.form-card { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: var(--border-radius); 
    margin-bottom: 2rem; 
    box-shadow: var(--shadow); 
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--secondary-color); }
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.btn-danger { background: #d9534f; color: white !important; }
.btn-danger:hover { background: #c9302c; }

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Header */
header {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active {
    font-weight: 700;
}

/* Hero */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('../images/hero.png');
    /* Updated to match new navy theme */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #e0600d;
    /* Slightly darker orange */
}

/* Categories & Products */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        padding-left: 0;
    }
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Admin Specific */
.admin-sidebar {
    width: 250px;
    background: var(--primary-color);
    color: var(--white);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.admin-main {
    margin-left: 250px;
    padding: 3rem;
    transition: margin-left 0.3s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    background: transparent;
    box-shadow: none;
    position: static;
    padding: 0;
}

.admin-header h1 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-sidebar-logo {
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.admin-sidebar-logo img {
    width: 154px;
    filter: brightness(0) invert(1);
}

.admin-panel-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.admin-nav {
    margin-top: 2rem;
}

.admin-nav li {
    margin-bottom: 1rem;
}

.admin-nav a {
    color: var(--white);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.admin-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    margin-right: 1rem;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

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

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 2rem 1rem;
    }

    .admin-toggle {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .admin-main header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-main header h1 {
        display: flex;
        align-items: center;
        width: 100%;
    }
}

/* Mobile Nav Styles */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
}

/* Hero Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.6);
}

/* Slider Manual Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
}

.slider-arrow:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.slider-bullets {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.bullet:hover,
.bullet.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

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

.slide-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Heading Overlay styles */
.page-header {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: var(--white);
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.7);
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 1;
    color: var(--white);
}

/* Icon Styles */
.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Category Filter Bar */
.category-filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-chip {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
}

.category-chip:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.category-chip.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}