﻿/* ===== CSS Variables & Reset ===== */
:root {
    --primary: #d4a574;
    --primary-dark: #c4915e;
    --secondary: #2c2c2c;
    --accent: #f8f0e8;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --bg: #fafafa;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Header ===== */
.header-top {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-top i { margin-right: 6px; color: var(--primary); }

.main-nav {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary);
}
.logo i { color: var(--primary); font-size: 30px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero h1 span { color: var(--primary); }
.hero p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
    font-size: 15px;
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212,165,116,0.4);
}
.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    margin-left: 15px;
}
.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

/* ===== Section Styles ===== */
section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Featured Categories ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.category-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}
.category-card h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 8px; }
.category-card p { color: var(--text-light); font-size: 14px; }

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.product-image {
    height: 280px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image .placeholder-icon {
    font-size: 64px;
    color: var(--primary);
    opacity: 0.5;
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.product-info { padding: 20px; }
.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}
.product-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 8px;
}
.product-info h3 a {
    color: var(--secondary);
    text-decoration: none;
}
.product-info h3 a:hover { color: var(--primary); }
.product-price { margin-bottom: 15px; }
.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}
.sale-price {
    font-size: 18px;
    color: #e74c3c;
    font-weight: 600;
}
.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}
.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}
.btn-add-cart:hover { background: var(--primary); }

/* ===== About Page ===== */
.page-banner {
    background: linear-gradient(135deg, var(--secondary), #1a1a1a);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 10px;
}
.page-banner p { color: #ccc; font-size: 16px; }
.page-content { padding: 60px 0; }
.page-content-inner {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.page-content-inner h2 {
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 20px;
}
.page-content-inner p { margin-bottom: 15px; line-height: 1.8; color: var(--text-light); }

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-info-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-info-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 25px;
    color: var(--secondary);
}
.contact-info-box .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-info-box .info-item i {
    color: var(--primary);
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}
.form-group textarea { height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Footer ===== */
.site-footer {
    background: var(--secondary);
    color: #ccc;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}
.footer-col h4 i { color: var(--primary); margin-right: 8px; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li i { color: var(--primary); width: 20px; margin-right: 8px; }
.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ===== Product Filters ===== */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.filter-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-group label { font-weight: 600; font-size: 14px; }
.filter-group select {
    padding: 10px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}
.product-count { font-size: 14px; color: var(--text-light); }

/* ===== Page Content Edit (displayed pages) ===== */
.content-area h1,
.content-area h2,
.content-area h3 { font-family: var(--font-heading); color: var(--secondary); }
.content-area p { margin-bottom: 15px; line-height: 1.8; }

/* ===== No Products ===== */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.no-products i { font-size: 60px; color: #ddd; margin-bottom: 20px; }
.no-products h3 { font-family: var(--font-heading); margin-bottom: 10px; }

/* ===== Admin Styles ===== */
.admin-header {
    background: var(--secondary);
    color: var(--white);
    padding: 15px 0;
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header .logo { color: var(--white); font-size: 22px; }
.admin-header .admin-nav { display: flex; gap: 20px; list-style: none; }
.admin-header .admin-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 6px;
}
.admin-header .admin-nav a:hover,
.admin-header .admin-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}
.admin-content { padding: 40px 0; }
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.admin-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-card-header h2 { font-family: var(--font-heading); font-size: 22px; color: var(--secondary); }
.admin-card-body { padding: 25px; overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: var(--bg);
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid #eee;
}
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.admin-table tr:hover td { background: var(--accent); }
.status-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #f8d7da; color: #721c24; }
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-edit { background: var(--primary); color: var(--white); }
.btn-edit:hover { background: var(--primary-dark); }
.btn-delete { background: #e74c3c; color: var(--white); }
.btn-delete:hover { background: #c0392b; }
.btn-view { background: var(--secondary); color: var(--white); }
.btn-view:hover { background: #000; }

/* ===== Admin Login ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), #1a1a1a);
}
.login-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    text-align: center;
}
.login-box .logo-text {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 5px;
}
.login-box .logo-text i { color: var(--primary); }
.login-box p { color: var(--text-light); margin-bottom: 30px; }
.login-box .form-group { text-align: left; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 60px 0; }
    .hero .btn { display: block; margin: 10px 0; }
    .btn-outline { margin-left: 0; }
    .section-title { font-size: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-content-inner { padding: 30px 20px; }
    .header-top .container { flex-direction: column; gap: 5px; font-size: 12px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
}

/* ===== Logo Image ===== */
.logo-img {
    height: 45px;
    width: auto;
    display: block;
}
