/* Zana Optik - Premium Eyewear Catalog | Biyomedit Dijital Çözüm Merkezi */

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

:root {
    --primary: #c8a44e;
    --primary-light: #e8cc7a;
    --primary-dark: #a07c2e;
    --secondary: #1a1a2e;
    --bg: #0a0a14;
    --bg-card: rgba(255, 255, 255, 0.02);
    --text: #e8e8f0;
    --text-muted: #7a7a8e;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(200, 164, 78, 0.4);
    --shadow-primary: rgba(200, 164, 78, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --gradient-gold: linear-gradient(135deg, #c8a44e 0%, #e8cc7a 50%, #c8a44e 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a14 0%, #12121e 100%);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.2s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}

/* ==================== AMBIENT BACKGROUNDS ==================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.12) 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation-duration: 25s;
}

.ambient-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 56, 120, 0.15) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.ambient-orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* Grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* ==================== NAVIGATION ==================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.8rem 5%;
    background: rgba(10, 10, 20, 0.9);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #000;
    font-weight: 800;
}

.logo span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(200, 164, 78, 0.1);
    border: 1px solid rgba(200, 164, 78, 0.25);
    font-size: 0.8rem;
    color: var(--primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #fff 0%, #c8a44e 40%, #e8cc7a 60%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.8;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Decorative lines */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 5%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 5%;
    width: 80px;
    height: 1px;
    background: linear-gradient(270deg, var(--primary), transparent);
    opacity: 0.3;
}

/* ==================== CATALOG CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5% 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 1rem auto 0;
    border-radius: 10px;
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.8rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(200, 164, 78, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.filter-btn.active {
    background: var(--gradient-gold);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 20px var(--shadow-primary);
}

.filter-btn.active::before {
    opacity: 1;
}

/* ==================== PRODUCT GRID ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(200, 164, 78, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
    background: var(--glass-hover);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 20, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(20px);
}

.product-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:hover {
    background: var(--primary);
    color: #000;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 4px 14px;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.product-card:hover .product-info h3 {
    color: var(--primary-light);
}

.product-info .description {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.product-meta .category-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== STOCK BADGES ==================== */
.stock-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stock-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stock-in {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}
.stock-in::before { background: #4ade80; animation: pulse 2s ease-in-out infinite; }

.stock-low {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.stock-low::before { background: #fbbf24; animation: pulse 1.5s ease-in-out infinite; }

.stock-out {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
}
.stock-out::before { background: #f87171; }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 6rem 2rem;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ==================== FOOTER ==================== */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-logo span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer .powered-by {
    font-size: 0.75rem;
    margin-top: 0.8rem;
    opacity: 0.5;
    color: var(--text-muted);
}

footer .powered-by a {
    color: var(--primary);
    text-decoration: none;
}

/* ==================== ADMIN LOGIN ==================== */
.admin-login {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.login-card h2 {
    font-family: 'Playfair Display', serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    color: #fff;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.1);
    background: rgba(255,255,255,0.06);
}

input::placeholder {
    color: rgba(255,255,255,0.2);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237a7a8e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

select option {
    background: #1a1a2e;
    color: #fff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* ==================== ADMIN PANEL ==================== */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    font-family: 'Playfair Display', serif;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

th {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

tr {
    transition: var(--transition-fast);
}

tr:hover td {
    background: rgba(255,255,255,0.02);
}

.action-btn {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    margin-right: 5px;
    transition: var(--transition-fast);
    display: inline-block;
}

.btn-edit {
    background: rgba(200, 164, 78, 0.1);
    color: var(--primary);
    border: 1px solid rgba(200, 164, 78, 0.3);
}
.btn-edit:hover { background: rgba(200, 164, 78, 0.2); }

.btn-delete {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.btn-delete:hover { background: rgba(248, 113, 113, 0.2); }

.btn-add {
    background: var(--gradient-gold);
    color: #000;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.form-container h2 {
    font-family: 'Playfair Display', serif;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Admin message notifications */
.success-msg {
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-msg {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid rgba(248, 113, 113, 0.2);
    font-size: 0.9rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.card-animate {
    animation: cardReveal 0.6s ease-out forwards;
    opacity: 0;
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== QR CODE PAGE ==================== */
.qr-page {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
}

.qr-page h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.qr-page .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.qr-canvas-wrapper {
    display: inline-block;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.qr-url-display {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    color: var(--primary-light);
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 1.5rem;
    font-family: monospace;
}

.qr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-actions .btn-primary {
    width: auto;
    padding: 0.8rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qr-actions .btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qr-actions .btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(200, 164, 78, 0.1);
}

/* ==================== RESPONSIVE - TABLET (max-width: 1024px) ==================== */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 4%;
    }

    .hero {
        padding: 3rem 4%;
        min-height: 55vh;
    }

    .container {
        padding: 2rem 4% 4rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .admin-container {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    .form-container {
        margin: 1.5rem;
        padding: 2rem;
    }
}

/* ==================== RESPONSIVE - MOBILE (max-width: 768px) ==================== */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 4%;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero {
        min-height: auto;
        padding: 3rem 5% 2rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero::before, .hero::after {
        display: none;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .filter-bar {
        gap: 0.5rem;
        padding: 0 2%;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-info {
        padding: 1.2rem;
    }

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

    /* Admin Panel Mobile */
    .admin-container {
        margin: 1rem 0.5rem;
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Responsive Table → Card Layout */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead { display: none; }

    tr {
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
        padding: 1rem;
    }

    td {
        text-align: right;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        position: relative;
        padding-left: 45%;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    td:last-child {
        border-bottom: none;
        padding-top: 0.8rem;
        text-align: center;
        padding-left: 0;
    }

    td:last-child::before {
        display: none;
    }

    .thumb {
        width: 60px;
        height: 60px;
        border-radius: var(--radius-sm);
    }

    .action-btn {
        margin-bottom: 5px;
    }

    /* Login Mobile */
    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-width: none;
    }

    /* Form Mobile */
    .form-container {
        margin: 1rem 0.5rem;
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    /* QR Mobile */
    .qr-page {
        margin: 1rem 0.5rem;
        padding: 1.5rem;
    }

    .qr-canvas-wrapper {
        padding: 1.5rem;
    }

    .qr-actions {
        flex-direction: column;
    }

    .qr-actions .btn-primary,
    .qr-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    footer {
        padding: 2.5rem 5%;
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE (max-width: 480px) ==================== */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .nav-links a {
        font-size: 0.65rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.68rem;
    }

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

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 78, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 164, 78, 0.5);
}

/* ==================== SELECTION ==================== */
::selection {
    background: rgba(200, 164, 78, 0.3);
    color: #fff;
}
