@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #070b14;
    --card-bg: #111827;
    --primary-neon: #10b981;
    --primary-blue: #3b82f6;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --amazon-orange: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-light); overflow-x: hidden; }

/* 4D Floating Cards */
.card-4d {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border-radius: 24px; padding: 30px;
    border-top: 1px solid var(--glass-border); border-left: 1px solid var(--glass-border);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.8), -5px -5px 20px rgba(255, 255, 255, 0.02);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d; backdrop-filter: blur(10px);
}
.card-4d:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 20px 20px 40px rgba(0,0,0,0.9), 0 0 15px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

/* 4D Tactile Buttons */
.btn-4d, .btn-primary, .btn-secondary {
    display: inline-block; width: 100%; padding: 14px 20px; border-radius: 12px;
    border: none; font-size: 1rem; font-weight: 700; cursor: pointer;
    color: #fff; text-align: center; text-transform: uppercase; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-neon), #047857);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease; text-decoration: none; margin-bottom: 10px;
}
.btn-4d:hover, .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4), inset 0 2px 0 rgba(255,255,255,0.3); }
.btn-4d:active, .btn-primary:active { transform: translateY(1px); box-shadow: 0 5px 10px rgba(16, 185, 129, 0.3); }

.btn-secondary { background: linear-gradient(135deg, #334155, #1e293b); box-shadow: 0 8px 15px rgba(0,0,0,0.4); color: var(--text-light); }
.btn-secondary:hover { background: linear-gradient(135deg, #475569, #334155); }
.btn-outline { background: transparent; border: 2px solid var(--primary-neon); color: var(--primary-neon); box-shadow: none; }
.btn-outline:hover { background: rgba(16, 185, 129, 0.1); }

/* Glass Inputs */
.input-4d, .form-input {
    width: 100%; padding: 14px 16px; border-radius: 10px; margin-bottom: 15px;
    background: rgba(15, 23, 42, 0.8); color: var(--text-light); font-size: 0.95rem;
    border: 1px solid var(--glass-border); outline: none; transition: 0.3s;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5);
}
.input-4d:focus, .form-input:focus { border-color: var(--primary-neon); box-shadow: inset 1px 1px 3px rgba(0,0,0,0.5), 0 0 10px rgba(16, 185, 129, 0.15); }

/* Gradient Text & Glows */
.text-gradient { background: linear-gradient(to right, #3b82f6, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bg-glow-1 { position: absolute; top: -10%; left: -10%; width: 400px; height: 400px; background: rgba(59, 130, 246, 0.1); border-radius: 50%; filter: blur(100px); z-index: -1; }
.bg-glow-2 { position: absolute; bottom: 10%; right: -5%; width: 400px; height: 400px; background: rgba(16, 185, 129, 0.1); border-radius: 50%; filter: blur(100px); z-index: -1; }

/* eCommerce Header & Navbar */
.ecom-header, .navbar {
    display: flex; flex-direction: column; padding: 10px 5%;
    background: rgba(7, 11, 20, 0.9); backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--glass-border);
}
.header-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }
.logo-img { height: 45px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); }
.search-container { flex-grow: 1; display: flex; align-items: center; background: #fff; border-radius: 6px; overflow: hidden; max-width: 600px; }
.search-input { flex-grow: 1; padding: 10px 15px; border: none; outline: none; font-size: 0.9rem; color: #000; }
.search-btn { padding: 10px 15px; background: var(--amazon-orange); border: none; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.action-item { display: flex; flex-direction: column; text-decoration: none; color: var(--text-light); }
.action-item span:first-child { font-size: 0.7rem; color: var(--text-muted); }
.action-item span:last-child { font-size: 0.9rem; font-weight: 700; }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary-neon); }

/* Layouts */
.container { max-width: 1250px; margin: 0 auto; padding: 40px 20px; position: relative; z-index: 2; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* WhatsApp & Footer */
.wa-float { position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: 0.3s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 0 25px rgba(37, 211, 102, 0.6); }
.wa-float img { width: 32px; filter: brightness(0) invert(1); }
.footer { background: #04070d; padding: 50px 5% 20px; border-top: 1px solid var(--glass-border); margin-top: 50px; }

/* Admin Table */
table { width: 100%; border-collapse: collapse; background: rgba(30, 41, 59, 0.4); border-radius: 10px; overflow: hidden; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--glass-border); color: var(--text-light); font-size: 0.9rem; }
th { background: rgba(15, 23, 42, 0.8); font-weight: 600; color: var(--primary-neon); text-transform: uppercase; }

/* ========================================= */
/* 📱 100% RESPONSIVE MOBILE & TABLET CODE  */
/* ========================================= */
@media screen and (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .store-layout { grid-template-columns: 1fr; }
    .sticky-checkout { position: relative; top: 0; order: -1; margin-bottom: 30px; }
    .hero-text h1 { font-size: 3rem !important; }
}

@media screen and (max-width: 768px) {
    .header-top { flex-wrap: wrap; justify-content: space-between; }
    .search-container { order: 3; width: 100%; margin-top: 10px; max-width: 100%; }
    .action-item span:first-child { display: none; } /* Hide small text on mobile */
    .header-actions { gap: 15px; }
    
    .hero-text h1 { font-size: 2.2rem !important; }
    .container { padding: 30px 15px; }
    .card-4d { padding: 20px; }
    
    /* Make tables scrollable smoothly on mobile */
    .table-responsive, table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    
    /* Orders List Mobile Stack */
    .order-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .order-item > div:last-child { width: 100%; }
    .order-item button { width: 100%; margin-top: 5px; }
    
    .wa-float { width: 50px; height: 50px; bottom: 20px; left: 20px; }
    .wa-float img { width: 28px; }
}