/* Savannah Kultured Global Styles */

:root {
    --primary: #4B2E2B;
    --accent: #C06014;
    --background: #F5E6D3;
    --secondary: #6B705C;
    --text: #2E2E2E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 3px; /* prevents text touching edges */
}
.btn {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    transition: 0.3s ease;
}

.btn:hover {
    background: var(--primary);
}
/* Navbar */
.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    color: var(--primary);
}

nav a {
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}
.hero .container {
    position: relative; /* positions text above slides */
    z-index: 2;   
    /* higher than overlay and slides */
    margin: -5px;
    
}
/* ================================
   HERO SECTION
================================ */

.hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: white;
    overflow: hidden;
}
@media (max-width: 768px) {

    .hero {
        min-height: 45vh; /* smaller height on mobile */
    }

}

/* HERO TEXT */

.hero-text {
    max-width: 600px;
}

.hero-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: 25px;
}

.hero-text .btn {
    padding: 10px 20px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* ================================
   HERO SLIDER
================================ */

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* DARK OVERLAY */

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

/* HERO CONTENT CONTAINER */

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    min-width: 320px;
    width: 90%;
    text-align: center;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {

    .hero {
        padding: 50px 15px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .image-wrapper {
        width: 55px;
        height: 55px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
        font-size: 12px;
    }

    .btn-delete {
        padding: 5px 8px;
        font-size: 11px;
    }

}
/* ================================
   ADMIN TABLE STYLING
================================ */

.section-title {
    margin: 30px 0 15px;
    color: var(--primary);
}
.btn-delete {
    background: #B22222; /* rich red */
    color: white;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-delete:hover {
    background: #8B0000; /* darker red on hover */
}/* ================================
   ADMIN PRODUCT IMAGE STYLING
================================ */

.image-cell {
    width: 90px;
}
/* ================================
   FLOATING BACK BUTTON
================================ */

.floating-back-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #6B705C; /* earthy green */
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: 0.3s ease;
    z-index: 999;
}

.floating-back-btn:hover {
    background: #4B2E2B; /* darker earth tone */
    transform: translateY(-3px);
}
.image-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* prevents stretching */
    display: block;
    transition: transform 0.3s ease;
}

/* Hover zoom effect */
.image-wrapper:hover img {
    transform: scale(1.1);
}


/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Product Image */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Product Title */
.product-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    min-height: 40px; /* forces alignment */
}

/* Price */
.product-card p {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Button always at bottom */
.product-card .btn {
    margin-top: auto;
}
/* Product Page Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.product-image img {
    width: 100%;
    border-radius: 6px;
}

.product-details h2 {
    margin-bottom: 15px;
}

.price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.description {
    margin-bottom: 20px;
}

.stock {
    margin-bottom: 20px;
    font-weight: 500;
}

.product-details input[type="number"] {
    width: 80px;
    padding: 5px;
    margin: 10px 0 20px;
}
/* Shop Page */
.shop-page {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.category-filter {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s ease;
}

.filter-btn:hover {
    background: var(--accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h3 {
    margin: 10px 0;
}

.product-card .category {
    font-size: 14px;
    color: gray;
    margin-bottom: 5px;
}

.search-bar {
    text-align: center;
    margin-bottom: 20px;
}

.search-bar input {
    padding: 7px;
   
    width: 250px;
}
input {
padding: 10px;
border-radius: 5px;
    }
.pagination {
    text-align: center;
    margin-top: 30px;
}

.page-btn {
    display: inline-block;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    margin: 3px;
    border-radius: 5px;
}
/* ========================= */
/* ADMIN DASHBOARD BUTTONS */
/* ========================= */

.admin-nav {
    margin-bottom: 25px;
}

.admin-nav .btn {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

/* Orders Button */
.btn-orders {
    background-color: #8B4513; /* earth brown */
    color: #fff;
}

.btn-orders:hover {
    background-color: #A0522D;
}

/* Manage Products Button */
.btn-products {
    background-color: #D2691E; /* Ankara earthy orange */
    color: #fff;
}

.btn-products:hover {
    background-color: #B85C1C;
}

/* Logout Button */
.btn-logout {
    background-color: #333;
    color: #fff;
}

.btn-logout:hover {
    background-color: #000;
}

/* Update Button */
.btn-update {
    background-color: #2E8B57;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.main-container .btn,
.main-container .remove-btn {
    padding: 5px 10px;
    font-size: 13px;
}
.btn-update:hover {
    background-color: #256f45;
}
/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #5c4033;
    display: flex;
    justify-content: space-between; /* space between logo and hamburger */
    align-items: center;
    padding: 0 20px;
    color: white;
    z-index: 1000;
}

/* Brand logo + text container */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* Logo image */
.brand .logo {
    height: 40px;        /* adjust size as needed */
    width: 40px;         /* make width same as height for perfect circle */
    margin-right: 10px;  /* space between logo and text */
    border-radius: 50%;  /* makes the logo round */
    object-fit: cover;   /* ensures the image fills the circle without distortion */
}
/* Hamburger menu */
.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}

/* Optional: smaller logo on mobile */
@media (max-width: 768px) {
    .brand .logo {
        height: 32px;
    }
}
/* Sidebar Hidden by Default */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0; /* RIGHT SIDE */
    background: linear-gradient(180deg, #5c4033, #3b2a20);
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    z-index: 1000;
}

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 35px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
}

/* When Active */
.sidebar.active {
    width: 260px;
}

/* Main content */
.main-content {
    margin-top: 60px;
    padding: 40px;
}
.remove-btn {
    background-color: #dc3545; /* strong red */
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s ease;
    display: inline-block;
}

.remove-btn:hover {
    background-color: #b02a37; /* darker red on hover */
    transform: scale(1.05);
}
/* ================================= */
/* GLOBAL LAYOUT FIX (Sticky Footer) */
/* ================================= */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}


/* =============================== */
/* PREMIUM FULL-WIDTH FOOTER      */
/* =============================== */

.minimal-footer {
    width: 100%;
    z-index: 999;
    background: linear-gradient(145deg, #1a120e, #2c1f18);
    color: #ffffff;
    margin-top: 20px;
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Elegant Top Accent Line */
.minimal-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--accent);
    border-radius: 5px;
}

/* Brand Name */
.footer-brand h3 {
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 35px;
}

/* Icons Wrapper */
.footer-icons {
    margin-bottom: 35px;
}

/* Circular Icon Design */
.footer-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin: 0 12px;
    border-radius: 50%;
    font-size: 20px;
    background: rgba(255,255,255,0.05);
    color: var(--accent);
    transition: all 0.3s ease;
}

/* Hover Animation */
.footer-icons a:hover {
    background: var(--accent);
    color: #1a120e;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Copyright */
.footer-copy {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.6;
}


/* =============================== */
/* MOBILE OPTIMIZATION            */
/* =============================== */

@media (max-width: 768px) {

    .minimal-footer {
        padding: 60px 15px 30px;
    }

    .footer-icons a {
        width: 48px;
        height: 48px;
        margin: 8px;
        font-size: 18px;
    }

    .footer-brand h3 {
        font-size: 16px;
        letter-spacing: 3px;
    }

}