@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Premium Theme Variables --- */
:root {
    --bg-primary: #030812;
    --bg-secondary: #081225;
    --bg-tertiary: #0e1e38;
    --accent-gold: #d4af37;
    --accent-gold-hover: #b8860b;
    --accent-gold-light: #f9e8a2;
    --gold-gradient: linear-gradient(135deg, #f9e8a2 0%, #d4af37 50%, #b8860b 100%);
    --dark-gradient: linear-gradient(185deg, #030812 0%, #081225 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(212, 175, 55, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --success: #48bb78;
    --danger: #f56565;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1500px;
    --nav-height: 85px;
    --logo-height: 72px;
    --logo-font-size: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: var(--dark-gradient);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
}

/* --- Firebase Unconfigured Alert Banner --- */
.fb-warning-banner {
    background: #742a2a;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 10001;
    border-bottom: 2px solid var(--danger);
    display: none;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #030812;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--gold-gradient);
    color: #030812;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.section-padding {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(3, 8, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    --nav-height: 60px;
    --logo-height: 48px;
    --logo-font-size: 1.6rem;
    height: var(--nav-height);
    background: rgba(3, 8, 18, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
}

/* Navbar Logo Container specific styling */
.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    font-size: var(--logo-font-size);
    white-space: nowrap;
    padding: 0;
}

.nav-logo-img {
    height: var(--logo-height);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    -webkit-text-fill-color: initial;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 18px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 13.5px;
    padding: 6px 0;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-item:hover>.nav-link {
    color: #fff;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Dropdown styling */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 180px;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(10px);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold-light);
    padding-left: 25px;
}

/* --- Premium Navigation Login Button --- */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 24px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #030812 !important; /* Force dark text for high contrast on gold background */
    background: var(--gold-gradient);
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transition: var(--transition);
    text-decoration: none;
}

.nav-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    filter: brightness(1.08);
    color: #030812 !important;
    text-shadow: none !important;
}

.nav-login-btn:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

.nav-login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 0 6px var(--accent-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 8, 18, 0.7) 0%, rgba(3, 8, 18, 0.95) 100%), linear-gradient(to right, rgba(3, 8, 18, 0.9) 0%, rgba(3, 8, 18, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: 3.1rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-weight: 300;
}

/* --- About Us Section --- */
.about-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.1rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4/3;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Category Promo Sections (Home Page) --- */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.promo-card {
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.promo-card-content {
    position: relative;
    z-index: 2;
}

.promo-card h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.promo-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.promo-examples {
    list-style: none;
    margin-bottom: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.promo-examples li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.promo-examples li::before {
    content: '✦';
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* --- Why Choose Us Section --- */
.why-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

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

.why-card {
    padding: 40px 30px;
    text-align: center;
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    transform: rotateY(180deg);
    background: var(--gold-gradient);
    color: #030812;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.98rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.testimonial-name {
    font-weight: 600;
    font-size: 1rem;
}

/* --- Footer --- */
footer {
    background: #02050b;
    border-top: 1px solid var(--glass-border);
    padding: 48px 0 20px;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    max-width: 350px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-icon:hover {
    background: var(--gold-gradient);
    color: #030812;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-gold-light);
    padding-left: 5px;
}

.footer-contact-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Products Page --- */
.page-header {
    padding: calc(var(--nav-height) + 35px) 0 35px;
    text-align: center;
    background: linear-gradient(180deg, rgba(8, 18, 37, 0.4) 0%, rgba(3, 8, 18, 0) 100%);
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.products-grid,
#category-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.06);
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 8px;
    height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price-original {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-offer {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

.product-card .btn {
    width: 100%;
    margin-top: auto;
}

.no-products-msg {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* --- Contact Us Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info-panel h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.contact-details-list {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    font-size: 1.05rem;
    color: var(--text-primary);
}



.contact-form-panel {
    padding: 40px;
}

.contact-form-panel h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.98rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Notification Popups */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--success);
}

.toast-danger {
    background: var(--danger);
}

/* --- Admin Panel Login --- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg-primary);
}

.login-card {
    max-width: 400px;
    width: 90%;
    padding: 50px 40px;
    text-align: center;
}

.login-card h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    background: #f1f1f1;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* --- Admin Dashboard Layout --- */
.admin-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 15px 30px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
}

.btn-signout {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 20px;
}

.admin-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 70px);
}

/* Dashboard Sidebar */
.admin-sidebar {
    background: rgba(8, 18, 37, 0.6);
    border-right: 1px solid var(--glass-border);
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-item.active .sidebar-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-item.active .sidebar-link {
    border-left-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    color: var(--accent-gold-light);
}

/* Dashboard Content */
.admin-main {
    padding: 40px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-header h2 {
    font-size: 1.8rem;
}

/* Admin Settings Form & Inputs Grid */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-form-full {
    grid-column: 1 / -1;
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    font-weight: 600;
    color: var(--accent-gold-light);
    background: rgba(255, 255, 255, 0.01);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.badge-inactive {
    background: rgba(245, 101, 101, 0.15);
    color: var(--danger);
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.actions-cell {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.btn-icon:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-edit:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.btn-delete:hover {
    border-color: var(--danger);
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
    transform: translateY(-50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

/* Messages specific UI in admin */
.msg-time {
    color: var(--text-muted);
    font-size: 12px;
}

.msg-body {
    white-space: pre-line;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 13px;
    margin-top: 5px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Layout Breakpoints --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 78px;
        --logo-height: 78px;
        --logo-font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Navigation drawer for mobile */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: 0.4s ease;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        margin-top: 10px;
        text-align: center;
        border: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .nav-item.dropdown-active .nav-dropdown {
        max-height: 200px;
        padding: 10px 0;
    }

    .nav-link {
        font-size: 18px;
    }

    /* Mobile overrides for login button */
    .nav-menu .nav-item:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }

    .nav-menu .nav-item:last-child .nav-login-btn {
        width: 80%;
        max-width: 280px;
        min-height: 48px;
        font-size: 14.5px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
        /* In production: add mobile sidebar toggle, or hide for simplicty */
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Image Upload Preview & Progress Styling --- */
.upload-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.upload-preview-box {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    transition: var(--transition);
}

.upload-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-box i {
    font-size: 2rem;
    color: var(--text-muted);
}

.upload-meta-info {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-progress-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.upload-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    transition: width 0.1s linear;
}

/* Category specific preview shapes */
.preview-category {
    width: 160px;
    height: 100px;
}

/* Testimonial specific preview shapes */
.preview-testimonial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* Hero specific preview shapes */
.preview-hero {
    width: 240px;
    height: 135px;
}

/* Logo specific preview shapes */
.preview-logo {
    width: 500px;
    height: 78px;
}

.preview-logo img {
    object-fit: contain;
}

.product-modal-wide {
    max-width: 850px !important;
}

@media (max-width: 576px) {
    :root {
        --nav-height: 70px;
        --logo-height: 78px;
        --logo-font-size: 1.4rem;
    }
}

/* Responsive grid overrides for e-commerce layouts */
@media (max-width: 1200px) {

    .products-grid,
    #category-cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 991px) {

    .products-grid,
    #category-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 767px) {

    .products-grid,
    #category-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 575px) {

    .products-grid,
    #category-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* --- How It Works Section --- */
.how-it-works-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.how-step-card {
    position: relative;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
}

.how-step-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #030812;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.how-step-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.08);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

.how-step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    font-family: var(--font-heading);
}

.how-step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Hover animations */
.how-step-card:hover {
    transform: translateY(-8px);
    background: var(--glass-bg-hover);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.how-step-card:hover .how-step-icon {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Scroll Fade-In transition */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive grid overrides */
@media (max-width: 1199px) {
    .how-it-works-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 767px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .how-step-card {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .how-it-works-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* =========================================================================
   FLOATING DEMO QR FEATURE STYLES
   ========================================================================= */
.floating-qr-container {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
    pointer-events: none;
}

.floating-qr-card {
    pointer-events: auto;
    background: rgba(8, 18, 37, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    width: 140px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-qr-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.25), 0 0 15px 2px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.floating-qr-card h4 {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--accent-gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.floating-qr-image-wrapper {
    width: 108px;
    height: 108px;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-qr-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.floating-qr-text {
    font-size: 9px;
    font-weight: 500;
    margin-top: 8px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes floatAnimation1 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatAnimation2 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        border-color: var(--glass-border);
    }
    50% {
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 12px 1px rgba(212, 175, 55, 0.15), inset 0 0 0 1px rgba(212, 175, 55, 0.1);
        border-color: rgba(212, 175, 55, 0.2);
    }
}

.floating-qr-card.card-1 {
    animation: floatAnimation1 5s ease-in-out infinite, pulseGlow 6s ease-in-out infinite;
}

.floating-qr-card.card-2 {
    animation: floatAnimation2 5s ease-in-out infinite;
    animation-delay: -2.5s;
}

.floating-qr-card.card-2-glow {
    animation: floatAnimation2 5s ease-in-out infinite, pulseGlow 6s ease-in-out infinite;
    animation-delay: -2.5s, -3s;
}

.floating-qr-card:hover {
    animation-play-state: paused !important;
}

/* Mobile Responsive adjustment */
@media (max-width: 768px) {
    .floating-qr-container {
        right: 12px;
        gap: 12px;
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .floating-qr-card {
        width: 100px;
        padding: 8px;
        border-radius: 8px;
    }

    .floating-qr-card h4 {
        font-size: 8px;
        margin-bottom: 5px;
    }

    .floating-qr-image-wrapper {
        width: 76px;
        height: 76px;
        padding: 4px;
        border-radius: 6px;
    }

    .floating-qr-text {
        font-size: 8px;
        margin-top: 5px;
    }
}