/* =================================
   GLOBAL STYLES & VARIABLES
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* GOLDEN AURA BEAUTYS Theme (Pink/Red) */
    --primary-color: #e91e63;
    --secondary-color: #f8bbd0;
    --accent-color: #333;
    --light-color: #f9f9f9;
    --dark-color: #222;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --admin-color: #3f51b5;
    --border-color: #ddd;
    --text-muted: #777;
    --text-light: #bbb;
}

body {
    background-color: #fff;
    color: var(--accent-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =================================
   TYPOGRAPHY
   ================================= */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c2185b;
}

/* =================================
   BUTTONS & FORM ELEMENTS
   ================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-edit {
    background-color: var(--warning-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-edit:hover {
    background-color: #f57c00;
}

.btn-delete {
    background-color: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #d32f2f;
}

.btn-view {
    background-color: var(--admin-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-view:hover {
    background-color: #303f9f;
}

.btn-submit {
    background-color: var(--admin-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cancel {
    background-color: #777;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
}

/* =================================
   HEADER & NAVIGATION
   ================================= */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: var(--accent-color);
    font-size: 20px;
    position: relative;
}

.header-actions a:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    background-color: var(--light-color);
    border-top: 1px solid #eee;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: all 0.3s;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.dropdown a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--accent-color);
}

/* =================================
   HERO SECTION
   ================================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://picsum.photos/seed/beauty/1500/600.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

/* =================================
   SECTIONS
   ================================= */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.content-section {
    padding: 60px 0;
}

.content-section.white-bg {
    background-color: white;
}

.content-section.gray-bg {
    background-color: var(--light-color);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =================================
   CATEGORIES
   ================================= */
.categories {
    padding: 40px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.category-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
    background-color: white;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-name {
    padding: 15px;
    font-weight: bold;
}

.category-filter {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter a {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--accent-color);
}

.category-filter a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =================================
   PRODUCTS (UPDATED)
   ================================= */
.products {
    padding: 40px 0;
    background-color: var(--light-color);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    margin: 5px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active, .filter-tab:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* PRODUCT GRID (Consolidated and Enhanced) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px; /* Increased gap for better visual separation */
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

/* PRODUCT CARD (Enhanced with Surge + Gooey Effect) */
.product-card {
    background-color: white;
    border-radius: 15px; /* Slightly more rounded */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    z-index: 2;
}

.product-card:hover {
    /* SURGE: A more pronounced lift and scale */
    transform: translateY(-15px) scale(1.02); 
    /* GOOEY: A soft, multi-layered, colored glow */
    box-shadow: 0 25px 50px rgba(233, 30, 99, 0.2), /* Colored, soft glow */
                0 15px 20px rgba(0, 0, 0, 0.1);     /* Deeper base shadow */
}

/* PRODUCT IMAGE (Smoother zoom) */
.product-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1); /* Smoother zoom */
}

.product-card:hover .product-img img {
    transform: scale(1.08); /* Slightly more zoom */
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

/* PRODUCT ACTIONS (Enhanced slide-up effect) */
.product-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px); /* Start slightly lower */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0); /* Slide up to natural position */
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 10px;
    font-size: 14px;
}

/* SPLASH EFFECT FOR ADD TO CART BUTTON */
@keyframes splash {
    to {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.splash-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    animation: splash 0.8s ease-out forwards;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.product-detail-container {
    display: flex;
    gap: 30px;
}

.product-detail-img {
    flex: 0 0 40%;
}

.product-detail-img img {
    width: 100%;
    border-radius: 8px;
}

.product-detail-info {
    flex: 1;
}

.product-detail-name {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-detail-category {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-detail-price {
    margin-bottom: 20px;
}

.product-detail-description {
    margin: 20px 0;
    line-height: 1.6;
}

.product-detail-stock {
    margin-bottom: 20px;
}

.in-stock {
    color: var(--success-color);
}

.out-stock {
    color: var(--danger-color);
}

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
}

.product-details-meta {
    margin-top: 20px;
}

.meta-item {
    display: flex;
    margin-bottom: 10px;
}

.meta-label {
    font-weight: bold;
    width: 100px;
}

/* =================================
   NEWSLETTER
   ================================= */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter-form button {
    padding: 15px 25px;
    background-color: var(--dark-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #000;
}

/* =================================
   FOOTER
   ================================= */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 14px;
}

/* =================================
   CART
   ================================= */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    margin-left: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.cart-checkout {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-checkout:hover {
    background-color: #c2185b;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ddd;
}

/* =================================
   DELIVERY OPTIONS
   ================================= */
.delivery-options {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.delivery-options h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.delivery-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.delivery-option input {
    margin-right: 10px;
}

.delivery-option label {
    flex-grow: 1;
}

.delivery-price {
    font-weight: bold;
    color: var(--primary-color);
}

/* =================================
   OVERLAY & MODALS
   ================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 20px;
    background-color: var(--admin-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0 0;
}

.modal-header h3 {
    margin: 0;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ddd;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
}

/* =================================
   NOTIFICATIONS
   ================================= */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =================================
   ADMIN SECTION
   ================================= */
.admin-login {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.admin-login.active {
    display: flex;
}

.login-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--admin-color);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--admin-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #303f9f;
}

.close-login {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.admin-dashboard {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    z-index: 2000;
}

.admin-dashboard.active {
    display: flex;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    height: 100%;
    overflow-y: auto;
}

.admin-header {
    padding: 20px;
    background-color: var(--admin-color);
    text-align: center;
}

.admin-header h2 {
    margin: 0;
    font-size: 24px;
}

.admin-nav {
    list-style: none;
    padding: 0;
}

.admin-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
    background-color: var(--admin-color);
    color: white;
}

.admin-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.admin-topbar {
    background-color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-topbar h3 {
    margin: 0;
    color: var(--primary-color);
}

.logout-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

.admin-section {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card i {
    font-size: 30px;
    margin-bottom: 10px;
}

.stat-card h4 {
    margin: 0 0 5px;
    font-size: 24px;
}

.stat-card p {
    margin: 0;
    color: var(--text-muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--light-color);
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.chart-container {
    height: 300px;
    margin: 20px 0;
    position: relative;
}

.chart-placeholder {
    height: 100%;
    background-color: var(--light-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* =================================
   PRODUCT MANAGEMENT
   ================================= */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.btn-link:hover {
    text-decoration: underline;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.list-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 250px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

#categoryFilter {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.no-image {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #999;
}

.product-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.stock-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.low-stock {
    background-color: #fff3cd;
    color: #856404;
}

.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.no-badge {
    color: #999;
    font-style: italic;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.actions {
    white-space: nowrap;
}

.actions button {
    margin: 0 2px;
}

.required {
    color: var(--danger-color);
}

.current-image {
    margin-top: 10px;
}

.current-image img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.product-detail-view {
    display: flex;
    gap: 20px;
}

.product-detail-image {
    flex: 0 0 40%;
}

.product-detail-image img {
    width: 100%;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.no-image-large {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #999;
    font-size: 48px;
}

.product-detail-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-detail-info p {
    margin-bottom: 10px;
}

/* =================================
   ICON SELECTOR
   ================================= */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-top: 5px;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-option:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.icon-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.icon-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: var(--light-color);
    border-radius: 5px;
    margin-bottom: 10px;
}

/* =================================
   EMPTY STATES
   ================================= */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    display: none;
}

.category-grid:empty + .empty-state,
.product-grid:empty + .empty-state {
    display: block;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding-top: 50px;
        transition: left 0.3s;
        z-index: 1001;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
    }

    .nav-menu li.active .dropdown {
        display: block;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-outline {
        display: none;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 30px;
    }

    .admin-sidebar {
        width: 200px;
    }

    .form-row {
        flex-direction: column;
    }
    
    .list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    #categoryFilter {
        width: 100%;
    }
    
    .product-detail-view {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 576px) {
    .header-top {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .admin-dashboard {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Adjust header layout for logo */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        max-width: 150px;
    }
}

/* =================================
   AUTH SECTION (Login/Register)
   ================================= */
.auth-section {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background-color: var(--light-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.auth-form {
    padding: 30px;
    display: none; /* Hide all by default */
}

.auth-form:first-of-type {
    display: block; /* Show the first one by default */
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Splash effect for add to cart button */
.splash-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: splash 0.8s ease-out forwards;
    z-index: 100;
}

@keyframes splash {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
        opacity: 0;
    }
}

.action-btn {
    position: relative;
    overflow: hidden;
}

/* =================================
   ACCOUNT PAGE
   ================================= */
.account-section {
    padding: 40px 0;
    min-height: 60vh;
}

.account-header h1 {
    margin-bottom: 5px;
}

.account-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.account-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.account-sidebar ul {
    list-style: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
}

.account-sidebar li a {
    display: block;
    padding: 15px 20px;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.account-sidebar li a:hover, .account-sidebar li a.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.logout-link {
    color: var(--danger-color) !important;
    font-weight: bold;
}

.account-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}

.account-tab-content h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header strong {
    color: var(--accent-color);
}

.status.processing { color: var(--warning-color); }
.status.shipped { color: var(--admin-color); }
.status.delivered { color: var(--success-color); }
.status.cancelled { color: var(--danger-color); }

/* =================================
   HOMEPAGE CONTENT STYLES (NEW)
   ================================= */
.homepage-main-content {
    padding: 40px 0 80px 0;
    background-color: #fff;
}

.homepage-category-section {
    margin-bottom: 60px;
}

.homepage-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.homepage-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
}

.homepage-category-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.btn-view-more {
    padding: 8px 20px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- THIS IS THE KEY SECTION FOR HORIZONTAL SCROLLING --- */
.homepage-product-row {
    display: flex; /* This creates the horizontal layout */
    gap: 20px; /* Space between cards */
    overflow-x: auto; /* This enables horizontal scrolling */
    padding: 10px 0 25px 0; /* Padding on the left and right of the scrollable area */
    scroll-behavior: smooth; /* Smooth scrolling */
    -webkit-overflow-scrolling: touch; /* Enables momentum scrolling on iOS devices */
}

/* Style the scrollbar for a cleaner look (optional but recommended) */
.homepage-product-row::-webkit-scrollbar {
    height: 8px; /* Height of the scrollbar track */
}

.homepage-product-row::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the track */
    border-radius: 10px;
}

.homepage-product-row::-webkit-scrollbar-thumb {
    background: #ccc; /* Color of the scrollbar thumb */
    border-radius: 10px;
}

.homepage-product-row::-webkit-scrollbar-thumb:hover {
    background: #bbb; /* Thumb color on hover */
}

/* --- PRODUCT CARD STYLES --- */
.homepage-card {
    /* 
     IMPORTANT: This prevents the card from shrinking 
     when the container is too small.
    */
    min-width: 280px; 
    flex-shrink: 0; 
    
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.homepage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.homepage-cta-section {
    background-color: var(--light-color);
    padding: 60px 40px;
    text-align: center;
    border-radius: 15px;
    margin-top: 40px;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .homepage-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .homepage-product-row {
        gap: 15px; /* Reduce gap on smaller screens */
    }
    
    .homepage-card {
        min-width: 250px; /* Reduce minimum card size on mobile */
    }
}