/* =========================================
   Variables & Theme Setup
========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-purple: #9b2cff;
    --accent-magenta: #ff2c9c;
    --border-color: #222222;
    --font-base: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* =========================================
   Reset & Base Styles (Fully Fluid & Responsive)
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { 
    font-family: var(--font-base); 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    width: 100%;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-speed); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Global Blob Background */
.global-blob-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 15% 25%, rgba(155, 44, 255, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(255, 44, 156, 0.08) 0%, transparent 40%);
    z-index: -2; pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fade-in-down { animation: fadeInDown 0.8s ease forwards; }
.slide-up { animation: fadeInUp 0.8s ease forwards; }
.fade-in { animation: fadeIn 1.2s ease forwards; opacity: 0; }
.hover-lift { transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(155, 44, 255, 0.15); }

/* =========================================
   Navigation / Header (Responsive Flex)
========================================= */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 15px 0; transition: all 0.3s ease; }
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.logo img { border-radius: 8px; width: 40px; height: 40px; object-fit: cover; }
.nav-links { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

/* Header Search on Scroll */
.header-search-container { display: none; opacity: 0; transition: opacity 0.3s ease; flex-grow: 1; justify-content: center; align-items: center; gap: 20px; }
.header-store-title { font-weight: 700; color: var(--text-main); font-size: 1.1rem; white-space: nowrap; letter-spacing: 0.5px; }
.header-search-form { width: 100%; max-width: 450px; margin: 0 20px; }
.search-input-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.search-icon { position: absolute; left: 15px; color: var(--text-muted); pointer-events: none; }
.header-search-input { width: 100%; padding: 10px 15px 10px 42px; border-radius: 30px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.05); color: var(--text-main); font-size: 0.95rem; transition: all 0.3s ease; }
.header-search-input:focus { outline: none; border-color: var(--accent-purple); background: rgba(0,0,0,0.6); box-shadow: 0 0 15px rgba(155, 44, 255, 0.2); }

.navbar.store-header.scrolled-down #navMenu, 
.navbar.store-header.scrolled-down #navCta { display: none; }
.navbar.store-header.scrolled-down .header-search-container { display: flex; opacity: 1; }

/* Admin Header Profile Dropdown */
.header-actions { display: flex; align-items: center; }
.admin-profile-menu { position: relative; }
.admin-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-purple); cursor: pointer; transition: transform 0.2s; }
.admin-avatar:hover { transform: scale(1.05); }
.admin-dropdown { display: none; position: absolute; right: 0; top: 55px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); min-width: 150px; z-index: 1001; }
.admin-dropdown.show { display: block; animation: fadeInDown 0.2s ease forwards; }
.admin-dropdown a { display: block; padding: 12px 20px; color: var(--text-main); font-size: 0.9rem; font-weight: 600; text-align: left; }
.admin-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--accent-magenta); }

/* =========================================
   Buttons & Visual Loader Spinner
========================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all var(--transition-speed); text-align: center; border: none; }
.btn-light { background-color: var(--text-main); color: var(--bg-dark); }
.btn-light:hover { background-color: #e0e0e0; transform: scale(1.02); }
.btn-primary { background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta)); color: var(--text-main); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(155, 44, 255, 0.5); transform: scale(1.02); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--text-muted); }
.btn-outline:hover { border-color: var(--text-main); background: rgba(255, 255, 255, 0.05); }
.btn-danger { background-color: #dc3545; color: #fff; }
.btn-danger:hover { background-color: #c82333; }

.btn-spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* =========================================
   UNIFIED RESPONSIVE PRODUCT CARD (Store, Home, Suggestions)
   Applies identically across all pages.
========================================= */
.pro-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    text-align: left;
    position: relative;
    height: 100%;
}

.pro-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.pro-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(155, 44, 255, 0.15);
    flex-shrink: 0;
}

.pro-card-btn {
    padding: 6px 14px;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pro-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pro-card-title {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.pro-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover Select Effect */
.pro-card:hover {
    border-color: var(--accent-purple);
    background: rgba(155, 44, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 15px rgba(155, 44, 255, 0.15);
    transform: translateY(-3px);
}

.pro-card:hover .pro-card-btn {
    background: var(--accent-purple);
    color: #fff;
}

/* Uniform Grid Container for Cards */
.unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

/* =========================================
   Footer (Responsive Grid)
========================================= */
.footer { background-color: var(--bg-card); padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 250px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a, .footer-contact p, .footer-contact a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links ul li a:hover, .footer-contact a:hover { color: var(--accent-purple); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   Admin Dashboard Main UI & Modals
========================================= */
.admin-login-wrapper { max-width: 450px; margin: 40px auto; text-align: center; background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(20px); padding: 50px 40px; border-radius: 24px; border: 1px solid rgba(155, 44, 255, 0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.5); width: 100%; }
.admin-login-wrapper h2 { font-size: 2.2rem; margin-bottom: 15px; color: #fff; }
.admin-login-wrapper p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.05rem; }
.google-btn-wrapper { display: flex; justify-content: center; width: 100%; overflow-x: auto; }

.admin-panel { display: flex; flex-direction: column; width: 100%; }
.admin-toggle-wrapper { display: flex; justify-content: center; margin-bottom: 40px; width: 100%; }
.admin-toggle { display: inline-flex; background: rgba(255,255,255,0.05); border-radius: 30px; padding: 5px; border: 1px solid var(--border-color); flex-wrap: wrap; justify-content: center; }
.admin-toggle-btn { padding: 10px 30px; border-radius: 25px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1rem; }
.admin-toggle-btn.active { background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta)); color: #fff; box-shadow: 0 4px 15px rgba(155,44,255,0.3); }
.admin-content { display: none; animation: fadeIn 0.4s ease forwards; width: 100%; }
.admin-content.active { display: block; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); background-color: #1a1a1a; color: var(--text-main); font-family: var(--font-base); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent-purple); }

.admin-controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.admin-controls-left { display: flex; gap: 15px; flex-wrap: wrap; }
.admin-select { background: #1a1a1a; color: #fff; border: 1px solid var(--border-color); padding: 12px 20px; border-radius: 8px; outline: none; font-weight: 600; cursor: pointer; }

.summary-cards { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.summary-card { flex: 1; min-width: 240px; background: linear-gradient(145deg, #161616, #0a0a0a); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-top: 2px solid var(--accent-purple); }
.summary-card h3 { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.summary-card p { font-size: 3rem; font-weight: 800; color: #fff; margin: 0; line-height: 1; }

.admin-table-wrapper { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 20px; width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th, .admin-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
.admin-table th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.admin-table tr:hover { background: rgba(255,255,255,0.03); }

.action-buttons-inline { display: flex; gap: 10px; align-items: center; justify-content: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }
.icon-btn.edit-btn:hover { color: #3498db; border-color: #3498db; }
.icon-btn.delete-btn:hover { color: #e74c3c; border-color: #e74c3c; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.page-btn { padding: 8px 15px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 6px; cursor: pointer; font-weight: 600; }
.page-btn.active, .page-btn:hover { background: var(--accent-purple); border-color: var(--accent-purple); color: white; }

.admin-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.admin-search { width: 100%; max-width: 300px; padding: 12px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: #1a1a1a; color: #fff; }

/* Modal Styles */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px); 
    z-index: 2000; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 40px 15px; 
    overflow-y: auto; 
}
.modal-overlay.show, .modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-content, .checkout-modal { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    width: 100%; 
    max-width: 950px; 
    padding: 30px; 
    position: relative; 
    margin: auto; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
}
.checkout-modal { max-width: 450px; padding: 40px; }

.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 20px; }
.modal-close, .close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 2rem; cursor: pointer; transition: color 0.3s; line-height: 1; z-index: 10; font-weight: bold; }
.modal-close:hover, .close-modal:hover { color: var(--accent-magenta); }
.modal-header-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 25px; align-items: flex-start; flex-wrap: wrap; }

.upload-box { position: relative; width: 100px; height: 100px; border: 2px dashed var(--border-color); border-radius: 12px; display: flex; justify-content: center; align-items: center; cursor: pointer; background: #1a1a1a; overflow: hidden; flex-shrink: 0; transition: border 0.3s; }
.upload-box:hover { border-color: var(--accent-purple); }
.upload-box input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-placeholder { color: var(--text-muted); text-align: center; font-size: 0.8rem; pointer-events: none; }
.upload-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 1; }
.upload-remove { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.8); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 14px; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 3; }

.multi-upload-container { display: flex; flex-direction: column; gap: 15px; }
.multi-upload-box { width: 100%; height: 80px; border: 2px dashed var(--border-color); border-radius: 12px; display: flex; justify-content: center; align-items: center; cursor: pointer; background: #1a1a1a; transition: border 0.3s; position: relative; }
.multi-upload-box:hover { border-color: var(--accent-purple); }
.multi-upload-box input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.multi-preview-area { display: flex; flex-wrap: wrap; gap: 10px; }
.multi-preview-item { position: relative; width: 80px; height: 50px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color); }
.multi-preview-img { width: 100%; height: 100%; object-fit: cover; }
.multi-preview-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.8); color: #fff; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 5; }

.toggle-section { margin-bottom: 25px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); }
.radio-group { display: flex; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.radio-group label { color: #fff; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }

/* Responsive Media Query Adjustments */
@media (max-width: 992px) { 
    .hero-title { font-size: 3rem; } 
    .modal-grid { grid-template-columns: 1fr; } 
}
@media (max-width: 768px) { 
    .nav-links { display: none; } 
    .hero-title { font-size: 2.3rem; } 
    .footer-container { grid-template-columns: 1fr; } 
    .admin-controls-row { flex-direction: column; align-items: flex-start; }
    .header-store-title { display: none; }
}/* =========================================
   Variables & Theme Setup
========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-purple: #9b2cff;
    --accent-magenta: #ff2c9c;
    --border-color: #222222;
    --font-base: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* =========================================
   Reset & Base Styles (Fully Fluid & Responsive)
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { 
    font-family: var(--font-base); 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    width: 100%;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-speed); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Global Blob Background */
.global-blob-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 15% 25%, rgba(155, 44, 255, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(255, 44, 156, 0.08) 0%, transparent 40%);
    z-index: -2; pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fade-in-down { animation: fadeInDown 0.8s ease forwards; }
.slide-up { animation: fadeInUp 0.8s ease forwards; }
.fade-in { animation: fadeIn 1.2s ease forwards; opacity: 0; }
.hover-lift { transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(155, 44, 255, 0.15); }

/* =========================================
   Navigation / Header (Responsive Flex)
========================================= */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 15px 0; transition: all 0.3s ease; }
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.logo img { border-radius: 8px; width: 40px; height: 40px; object-fit: cover; }
.nav-links { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

/* Header Search on Scroll */
.header-search-container { display: none; opacity: 0; transition: opacity 0.3s ease; flex-grow: 1; justify-content: center; align-items: center; gap: 20px; }
.header-store-title { font-weight: 700; color: var(--text-main); font-size: 1.1rem; white-space: nowrap; letter-spacing: 0.5px; }
.header-search-form { width: 100%; max-width: 450px; margin: 0 20px; }
.search-input-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.search-icon { position: absolute; left: 15px; color: var(--text-muted); pointer-events: none; }
.header-search-input { width: 100%; padding: 10px 15px 10px 42px; border-radius: 30px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.05); color: var(--text-main); font-size: 0.95rem; transition: all 0.3s ease; }
.header-search-input:focus { outline: none; border-color: var(--accent-purple); background: rgba(0,0,0,0.6); box-shadow: 0 0 15px rgba(155, 44, 255, 0.2); }

.navbar.store-header.scrolled-down #navMenu, 
.navbar.store-header.scrolled-down #navCta { display: none; }
.navbar.store-header.scrolled-down .header-search-container { display: flex; opacity: 1; }

/* Admin Header Profile Dropdown */
.header-actions { display: flex; align-items: center; }
.admin-profile-menu { position: relative; }
.admin-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-purple); cursor: pointer; transition: transform 0.2s; }
.admin-avatar:hover { transform: scale(1.05); }
.admin-dropdown { display: none; position: absolute; right: 0; top: 55px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); min-width: 150px; z-index: 1001; }
.admin-dropdown.show { display: block; animation: fadeInDown 0.2s ease forwards; }
.admin-dropdown a { display: block; padding: 12px 20px; color: var(--text-main); font-size: 0.9rem; font-weight: 600; text-align: left; }
.admin-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--accent-magenta); }

/* =========================================
   Buttons & Visual Loader Spinner
========================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all var(--transition-speed); text-align: center; border: none; }
.btn-light { background-color: var(--text-main); color: var(--bg-dark); }
.btn-light:hover { background-color: #e0e0e0; transform: scale(1.02); }
.btn-primary { background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta)); color: var(--text-main); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(155, 44, 255, 0.5); transform: scale(1.02); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--text-muted); }
.btn-outline:hover { border-color: var(--text-main); background: rgba(255, 255, 255, 0.05); }
.btn-danger { background-color: #dc3545; color: #fff; }
.btn-danger:hover { background-color: #c82333; }

.btn-spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* =========================================
   UNIFIED RESPONSIVE PRODUCT CARD (Store, Home, Suggestions)
   Applies identically across all pages.
========================================= */
.pro-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    text-align: left;
    position: relative;
    height: 100%;
}

.pro-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.pro-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(155, 44, 255, 0.15);
    flex-shrink: 0;
}

.pro-card-btn {
    padding: 6px 14px;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pro-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pro-card-title {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.pro-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover Select Effect */
.pro-card:hover {
    border-color: var(--accent-purple);
    background: rgba(155, 44, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 15px rgba(155, 44, 255, 0.15);
    transform: translateY(-3px);
}

.pro-card:hover .pro-card-btn {
    background: var(--accent-purple);
    color: #fff;
}

/* Uniform Grid Container for Cards */
.unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

/* =========================================
   Footer (Responsive Grid)
========================================= */
.footer { background-color: var(--bg-card); padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 250px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a, .footer-contact p, .footer-contact a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links ul li a:hover, .footer-contact a:hover { color: var(--accent-purple); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   Admin Dashboard Main UI & Modals
========================================= */
.admin-login-wrapper { max-width: 450px; margin: 40px auto; text-align: center; background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(20px); padding: 50px 40px; border-radius: 24px; border: 1px solid rgba(155, 44, 255, 0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.5); width: 100%; }
.admin-login-wrapper h2 { font-size: 2.2rem; margin-bottom: 15px; color: #fff; }
.admin-login-wrapper p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.05rem; }
.google-btn-wrapper { display: flex; justify-content: center; width: 100%; overflow-x: auto; }

.admin-panel { display: flex; flex-direction: column; width: 100%; }
.admin-toggle-wrapper { display: flex; justify-content: center; margin-bottom: 40px; width: 100%; }
.admin-toggle { display: inline-flex; background: rgba(255,255,255,0.05); border-radius: 30px; padding: 5px; border: 1px solid var(--border-color); flex-wrap: wrap; justify-content: center; }
.admin-toggle-btn { padding: 10px 30px; border-radius: 25px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1rem; }
.admin-toggle-btn.active { background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta)); color: #fff; box-shadow: 0 4px 15px rgba(155,44,255,0.3); }
.admin-content { display: none; animation: fadeIn 0.4s ease forwards; width: 100%; }
.admin-content.active { display: block; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); background-color: #1a1a1a; color: var(--text-main); font-family: var(--font-base); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent-purple); }

.admin-controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.admin-controls-left { display: flex; gap: 15px; flex-wrap: wrap; }
.admin-select { background: #1a1a1a; color: #fff; border: 1px solid var(--border-color); padding: 12px 20px; border-radius: 8px; outline: none; font-weight: 600; cursor: pointer; }

.summary-cards { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.summary-card { flex: 1; min-width: 240px; background: linear-gradient(145deg, #161616, #0a0a0a); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-top: 2px solid var(--accent-purple); }
.summary-card h3 { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.summary-card p { font-size: 3rem; font-weight: 800; color: #fff; margin: 0; line-height: 1; }

.admin-table-wrapper { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 20px; width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th, .admin-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
.admin-table th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.admin-table tr:hover { background: rgba(255,255,255,0.03); }

.action-buttons-inline { display: flex; gap: 10px; align-items: center; justify-content: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }
.icon-btn.edit-btn:hover { color: #3498db; border-color: #3498db; }
.icon-btn.delete-btn:hover { color: #e74c3c; border-color: #e74c3c; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.page-btn { padding: 8px 15px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 6px; cursor: pointer; font-weight: 600; }
.page-btn.active, .page-btn:hover { background: var(--accent-purple); border-color: var(--accent-purple); color: white; }

.admin-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.admin-search { width: 100%; max-width: 300px; padding: 12px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: #1a1a1a; color: #fff; }

/* Modal Styles */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px); 
    z-index: 2000; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 40px 15px; 
    overflow-y: auto; 
}
.modal-overlay.show, .modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-content, .checkout-modal { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    width: 100%; 
    max-width: 950px; 
    padding: 30px; 
    position: relative; 
    margin: auto; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
}
.checkout-modal { max-width: 450px; padding: 40px; }

.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 20px; }
.modal-close, .close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 2rem; cursor: pointer; transition: color 0.3s; line-height: 1; z-index: 10; font-weight: bold; }
.modal-close:hover, .close-modal:hover { color: var(--accent-magenta); }
.modal-header-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 25px; align-items: flex-start; flex-wrap: wrap; }

.upload-box { position: relative; width: 100px; height: 100px; border: 2px dashed var(--border-color); border-radius: 12px; display: flex; justify-content: center; align-items: center; cursor: pointer; background: #1a1a1a; overflow: hidden; flex-shrink: 0; transition: border 0.3s; }
.upload-box:hover { border-color: var(--accent-purple); }
.upload-box input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-placeholder { color: var(--text-muted); text-align: center; font-size: 0.8rem; pointer-events: none; }
.upload-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 1; }
.upload-remove { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.8); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 14px; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 3; }

.multi-upload-container { display: flex; flex-direction: column; gap: 15px; }
.multi-upload-box { width: 100%; height: 80px; border: 2px dashed var(--border-color); border-radius: 12px; display: flex; justify-content: center; align-items: center; cursor: pointer; background: #1a1a1a; transition: border 0.3s; position: relative; }
.multi-upload-box:hover { border-color: var(--accent-purple); }
.multi-upload-box input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.multi-preview-area { display: flex; flex-wrap: wrap; gap: 10px; }
.multi-preview-item { position: relative; width: 80px; height: 50px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color); }
.multi-preview-img { width: 100%; height: 100%; object-fit: cover; }
.multi-preview-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.8); color: #fff; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 5; }

.toggle-section { margin-bottom: 25px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); }
.radio-group { display: flex; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.radio-group label { color: #fff; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }

/* Responsive Media Query Adjustments */
@media (max-width: 992px) { 
    .hero-title { font-size: 3rem; } 
    .modal-grid { grid-template-columns: 1fr; } 
}
@media (max-width: 768px) { 
    .nav-links { display: none; } 
    .hero-title { font-size: 2.3rem; } 
    .footer-container { grid-template-columns: 1fr; } 
    .admin-controls-row { flex-direction: column; align-items: flex-start; }
    .header-store-title { display: none; }
}