/* =========================================
   1. CSS VARIABLES & GLOBAL RESET
   ========================================= */
   :root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --accent: #fd79a8;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    --dark: #2d3436;
    --light-bg: #f8f9fe;
    --warm-bg: #fdfbf7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding-bottom: 80px;
    color: var(--dark);
    min-height: 100vh;
}

.container {
    padding: 0 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.3rem;
    margin: 20px 0 15px;
    color: var(--dark);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }

/* =========================================
   2. TOP HEADER / NAVBAR
   ========================================= */
.top-bar {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.actions { display: flex; align-items: center; gap: 15px; }

.cart-icon {
    position: relative;
    color: var(--dark);
    font-size: 1.3rem;
    text-decoration: none;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(253, 121, 168, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-sm:hover { transform: translateY(-2px); }

.nav-link-text {
    color: var(--dark);
    font-weight: 600;
    margin-right: 15px;
    transition: 0.3s;
}
.nav-link-text:hover { color: var(--primary); }

/* =========================================
   3. HERO BANNER
   ========================================= */
.hero-banner {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
    margin-bottom: 10px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-banner h1 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-banner p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--primary);
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}
.btn-hero:hover { background: #f1f2f6; transform: scale(1.05); }

/* =========================================
   4. SEARCH BAR
   ========================================= */
.search-container {
    padding: 20px 15px;
    display: flex;
    justify-content: center;
}

.search-container form {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: 0.3s;
}

.search-container form:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 5px 25px rgba(108, 92, 231, 0.15);
}

.search-container input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-container button {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.search-container button:hover {
    background: linear-gradient(135deg, #5b4cc4, #8c7ae6);
}

/* =========================================
   5. PRODUCT GRID & CARDS
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15);
}

.img-container { position: relative; overflow: hidden; }

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover img { transform: scale(1.1); }

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--accent), #e84393);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(232, 67, 147, 0.3);
}

.p-info { padding: 15px; }

.p-info h3 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.price {
    color: var(--success);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.btn-add {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}

/* =========================================
   6. BOTTOM NAVIGATION
   ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #b2bec3;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: 0.3s;
}

.nav-item.active { color: var(--primary); }

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -12px;
    width: 30px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 0 0 10px 10px;
}

.nav-item.active svg {
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.4));
    transform: translateY(-2px);
}

/* =========================================
   7. LOGIN & SIGNUP PAGES
   ========================================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    padding: 20px;
    padding-bottom: 20px;
}

.login-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.signup-card { max-width: 500px; padding: 30px; }

.login-card h2 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card input,
.signup-card input,
.signup-card select {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #eee;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    background: white;
    color: #333;
    font-size: 1rem;
}

.login-card input:focus,
.signup-card input:focus,
.signup-card select:focus {
    border-color: var(--primary-light);
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    transition: 0.3s;
}

.login-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.login-card p { margin-top: 15px; font-size: 0.9rem; }
.login-card a { color: var(--primary); text-decoration: none; font-weight: bold; }

.form-row { display: flex; gap: 10px; }
.form-row select, .form-row input { flex: 1; }

.error {
    background: #ffebe6;
    color: #bf2600;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: 1px solid #ffbdad;
}

/* =========================================
   8. CART PAGE
   ========================================= */
.cart-body {
    background-color: var(--warm-bg);
    background-image: radial-gradient(#e6e6e6 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
}

.cart-item-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f2f6;
    transition: transform 0.2s;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.item-img-wrapper {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1f2f6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details { flex: 1; }

.item-details h3 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--dark);
    font-weight: 700;
}

.unit-price {
    color: #636e72;
    font-size: 0.9rem;
    margin: 0;
}

.qty-controls { margin-top: 10px; }

.qty-form {
    display: flex;
    align-items: center;
    background: #f1f2f6;
    border-radius: 20px;
    padding: 2px;
    width: fit-content;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.qty-btn:hover { background: var(--primary); color: white; }

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    color: var(--dark);
    outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.item-actions {
    text-align: right;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 70px;
}

.line-total {
    font-weight: 800;
    color: var(--dark);
    font-size: 1.1rem;
    margin: 0;
}

.remove-btn {
    color: #ff7675;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.2s;
    padding: 5px;
}

.remove-btn:hover {
    color: var(--danger);
    transform: scale(1.2);
}

.checkout-summary {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
    border: 1px solid #f1f2f6;
}

.checkout-summary h3 {
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #636e72;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    border-top: 2px dashed #dfe6e9;
    padding-top: 15px;
    margin-top: 10px;
}

.btn-zainpay {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-zainpay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 203, 110, 0.6);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 40px auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #b2bec3;
    font-size: 2rem;
}

.login-prompt {
    background: #f8f9fe;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
}

.login-prompt p { margin-bottom: 10px; color: #636e72; }

/* =========================================
   9. PROFILE PAGE
   ========================================= */
.profile-body {
    background-color: var(--warm-bg);
    background-image: radial-gradient(#e6e6e6 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    padding-bottom: 50px;
}

.profile-card {
    max-width: 650px;
    margin: 30px auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #f1f2f6;
}

.profile-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.avatar-circle {
    width: 90px;
    height: 90px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 4px solid rgba(255,255,255,0.3);
}

.profile-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-header .email {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.profile-header .badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.alert-msg {
    padding: 15px 20px;
    margin: 20px 30px 0;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.alert-msg.success { background: #e3fcef; color: #006644; border: 1px solid #abf5d1; }
.alert-msg.error { background: #ffebe6; color: #bf2600; border: 1px solid #ffbdad; }

.profile-form { padding: 30px; }

.form-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.form-subtitle {
    font-size: 0.85rem;
    color: #b2bec3;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 1.1rem;
    transition: color 0.3s;
    pointer-events: none;
}

.input-group textarea ~ i {
    top: 25px;
    transform: none;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 15px 16px 50px;
    border: 2px solid #f1f2f6;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--dark);
    background: var(--warm-bg);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.input-group input:focus ~ i,
.input-group textarea:focus ~ i {
    color: var(--primary);
}

.input-group input:disabled {
    background: #f8f9fa;
    color: #636e72;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.input-group input:disabled ~ i { color: #b2bec3; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .profile-form { padding: 20px; }
}

.btn-save {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.4);
}

.btn-save:active { transform: translateY(0); }

/* =========================================
   10. ABOUT PAGE
   ========================================= */
.about-container { max-width: 800px; padding-bottom: 100px; }

.about-section, .director-section, .social-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.about-section h2, .director-section h2, .social-section h2 {
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
}

.director-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
}

.director-info h3 { margin: 0 0 5px 0; color: var(--dark); }
.director-info .role { color: var(--primary); font-weight: bold; margin-bottom: 10px; }
.bio { font-style: italic; color: #636e72; margin-top: 10px; line-height: 1.6; }

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.social-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.facebook { background: #1877f2; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.twitter { background: #000000; }
.youtube { background: #ff0000; }
.whatsapp { background: #25d366; }
.maps { background: #34a853; }

/* =========================================
   11. ADMIN DASHBOARD
   ========================================= */
.admin-container { display: flex; min-height: 100vh; background: var(--light-bg); }

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2d3436 0%, #1e272e 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
}

.admin-sidebar .logo {
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.admin-sidebar ul { list-style: none; padding: 0 15px; }
.admin-sidebar li { margin-bottom: 5px; }

.admin-sidebar li a, .admin-sidebar li span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #b2bec3;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

.admin-sidebar li a:hover, .admin-sidebar li span:hover,
.admin-sidebar li a.active, .admin-sidebar li span.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.users { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.stat-icon.items { background: linear-gradient(135deg, #00b894, #55efc4); }
.stat-icon.monthly { background: linear-gradient(135deg, #fdcb6e, #ffeaa7); color: var(--dark); }
.stat-icon.total { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }

.stat-info h3 { font-size: 0.9rem; color: #636e72; margin-bottom: 5px; font-weight: 600; }
.stat-info p { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin: 0; }

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.admin-card h3 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.2rem;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
}

.admin-card input, .admin-card select, .admin-card textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-size: 0.95rem;
    font-family: inherit;
}

.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus {
    border-color: var(--primary-light);
}

.admin-card button {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.admin-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th {
    background: var(--light-bg);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #636e72;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f2f6;
    color: var(--dark);
    font-size: 0.95rem;
}

.admin-table tr:hover { background: var(--light-bg); }

.admin-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.badge.green { background: #e3fcef; color: #006644; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge.red { background: #ffebe6; color: #bf2600; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge.blue { background: #deebff; color: #0052cc; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge.yellow { background: #fff7e6; color: #ff8b00; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
    transition: 0.2s;
}

.action-btn:hover { opacity: 0.8; transform: translateY(-1px); }
.action-btn.edit { background: #0984e3; }
.action-btn.delete { background: var(--danger); }
.action-btn.toggle { background: var(--warning); color: var(--dark); }

/* =========================================
   12. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px;
    }
    .admin-sidebar .logo { display: none; }
    .admin-sidebar ul { display: flex; gap: 10px; padding: 0; margin: 0; }
    .admin-sidebar li { margin: 0; }
    .admin-sidebar li a, .admin-sidebar li span { white-space: nowrap; padding: 10px 15px; }
    .admin-main { margin-left: 0; padding: 15px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-info p { font-size: 1.4rem; }
    .hero-banner h1 { font-size: 1.5rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .actions { gap: 8px; }
    .btn-sm { padding: 6px 12px; font-size: 0.75rem; }
    .top-bar { padding: 12px 15px; }
    .logo { font-size: 1.2rem; }
}