:root {
    --primary: #4a90d9;
    --primary-hover: #6babf0;
    --primary-light: #e8f4fd;
    --primary-dark: #2e6db4;
    --accent: #00d2a0;
    --vibrant-pink: #ff6b9d;
    --vibrant-orange: #ff8a65;
    --vibrant-green: #00d2a0;
    --bg: #f8f9fa;
    --bg-section: #f1f3f5;
    --white: #fff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    --border: #e9ecef;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--bg); transition: background .4s; }
a { color: var(--text); text-decoration: none; transition: all .3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== THEMES ===== */
.theme-pink { --primary: #ff6b9d; --primary-hover: #ff8fab; --primary-light: #fff0f5; --primary-dark: #e84393; --accent: #00d2a0; }
.theme-polka { background-image: radial-gradient(#4a90d9 1.5px, transparent 1.5px); background-size: 20px 20px; }
.theme-polka .section-light { background: rgba(255,255,255,0.85); }
.theme-polka .admin-section, .theme-polka .stat-card, .theme-polka .sidebar-widget, .theme-polka .product-card, .theme-polka .category-card, .theme-polka .feature-card,
.theme-polka .cart-table, .theme-polka .cart-total-box, .theme-polka .newsletter-box { background: rgba(255,255,255,0.92); backdrop-filter: blur(2px); }
.theme-polka .admin-main, .theme-polka .admin-sidebar { background: transparent; }
.theme-stripes { background: repeating-linear-gradient(45deg, transparent, transparent 10px, #e8f4fd 10px, #e8f4fd 11px); }
.theme-stripes .section-light { background: rgba(255,255,255,0.85); }
.theme-stripes .admin-section, .theme-stripes .stat-card, .theme-stripes .sidebar-widget, .theme-stripes .product-card, .theme-stripes .category-card, .theme-stripes .feature-card,
.theme-stripes .cart-table, .theme-stripes .cart-total-box, .theme-stripes .newsletter-box { background: rgba(255,255,255,0.92); backdrop-filter: blur(2px); }
.theme-stripes .admin-main, .theme-stripes .admin-sidebar { background: transparent; }
.theme-clouds { background: linear-gradient(180deg, #e8f4fd 0%, #f0f8ff 50%, #e8f4fd 100%); }
.theme-clouds .section-light { background: rgba(255,255,255,0.7); }
.theme-clouds .admin-section, .theme-clouds .stat-card { background: rgba(255,255,255,0.9); }
.theme-clouds .admin-main, .theme-clouds .admin-sidebar { background: transparent; }
.theme-stars { background-image: radial-gradient(#ffd700 1px, transparent 1px); background-size: 25px 25px; background-color: #f8f9ff; }
.theme-stars .section-light { background: rgba(255,255,255,0.85); }
.theme-stars .admin-section, .theme-stars .stat-card, .theme-stars .product-card, .theme-stars .category-card, .theme-stars .feature-card,
.theme-stars .sidebar-widget { background: rgba(255,255,255,0.92); }
.theme-stars .admin-main, .theme-stars .admin-sidebar { background: transparent; }
.theme-clean { background: #fff; }
.theme-clean .section-light { background: #f5f7fa; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all .3s; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(74,144,217,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== SPLASH REMOVED - Hero welcome disinda splash yok ===== */

/* ===== HEADER ===== */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--text); }
.logo-icon { font-size: 30px; }
.logo-text { color: var(--text); }
.accent { color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 15px; }
.header-icon { font-size: 20px; color: var(--text-light); position: relative; transition: all .3s; background: none; border: none; cursor: pointer; padding: 0; }
.header-icon:hover { color: var(--primary); }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--primary); color: var(--white); font-size: 10px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* Navigation */
.nav { background: var(--white); border-top: 1px solid var(--border); }
.nav-list { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-link { display: block; padding: 12px 20px; color: var(--text-light); font-size: 13px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; transition: all .3s; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-overlay { display: none; }
.nav-sublist { display: none; }
.nav-cat-toggle { display: none; }
.nav-cat-count { float: right; color: var(--text-muted); font-size: 12px; margin-left: 8px; }

/* ===== FLOATING SOCIAL BUTTONS ===== */
.float-social { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; box-shadow: 0 4px 15px rgba(0,0,0,0.25); transition: all .3s; text-decoration: none; }
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-wa { background: #25d366; }
.float-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; min-height: 400px; height: auto; display: flex; align-items: flex-end; justify-content: center; background-size: cover !important; background-position: center !important; padding: 60px 0 40px; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,40,80,0.65) 0%, rgba(0,0,0,0.35) 100%); z-index: 1; }
.hero-content { max-width: 650px; position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.hero-title { font-size: 48px; line-height: 1.2; margin-bottom: 15px; color: var(--white); }
.hero-text { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 30px; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-light { background: var(--bg-section); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.section-title { font-size: 28px; font-weight: 700; position: relative; padding-left: 15px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--primary); border-radius: 2px; }
.section-link { color: var(--primary); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-link:hover { gap: 12px; }

/* ===== CATEGORY BANNERS ===== */
.category-grid { display: flex; flex-direction: column; gap: 16px; }
.category-rect { position: relative; width: 100%; height: 200px; border-radius: var(--radius-lg); overflow: hidden; background-size: cover; background-position: center; text-decoration: none; display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: var(--shadow); transition: transform .3s; }
.category-rect:hover { transform: scale(1.02); }
.category-rect::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 1; transition: background .3s; }
.category-rect:hover::before { background: rgba(0,0,0,0.45); }
.category-rect h3 { position: relative; z-index: 2; color: #fff; font-size: 28px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.4); margin: 0; }
.category-rect .category-count { position: relative; z-index: 2; color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 6px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ===== SUB-CATEGORY ===== */
.subcategory-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }
.subcategory-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-light); transition: all .3s; box-shadow: var(--shadow); }
.subcategory-link:hover, .subcategory-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.subcategory-link i { font-size: 11px; }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s; box-shadow: var(--shadow); }
.product-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-image { position: relative; display: block; background: var(--primary-light); overflow: hidden; height: 220px; display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 60px; color: var(--primary); }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--vibrant-pink); color: var(--white); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; z-index: 2; }
.badge-sale { background: var(--vibrant-orange); }
.badge-new { background: var(--vibrant-green); left: auto; right: 10px; }
.product-info { padding: 18px; }
.product-category { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.product-name { font-size: 15px; font-weight: 600; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-pricing { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-old-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.product-colors { display: flex; gap: 5px; margin: 10px 0; flex-wrap: wrap; }
.color-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 2px solid transparent; transition: transform .2s; }
.color-dot:hover { transform: scale(1.3); }
.product-card .btn { margin-top: 10px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.feature-card { text-align: center; padding: 30px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all .3s; box-shadow: var(--shadow); }
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.feature-card i { font-size: 40px; color: var(--primary); margin-bottom: 15px; }
.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-light); }

/* ===== NEWSLETTER ===== */
.newsletter-box { text-align: center; padding: 60px 30px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.newsletter-box h2 { font-size: 28px; margin-bottom: 10px; }
.newsletter-box p { color: var(--text-light); margin-bottom: 25px; }
.newsletter-form { display: flex; max-width: 500px; margin: 0 auto; gap: 10px; }
.newsletter-form input { flex: 1; padding: 14px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 15px; outline: none; }
.newsletter-form input:focus { border-color: var(--primary); }

/* ===== FOOTER ===== */
.footer { background: #2d3436; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--white); position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col p { font-size: 13px; color: #b2bec3; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #b2bec3; font-size: 13px; }
.footer-col ul li a:hover { color: var(--primary); }
.contact-info li { color: #b2bec3; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.contact-info li i { color: var(--primary); width: 16px; }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #b2bec3; font-size: 16px; transition: all .3s; }
.social-links a:hover { background: var(--primary); color: var(--white); }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 12px; color: #636e72; }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, var(--primary-light), #d4e9ff); padding: 50px 0; text-align: center; border-bottom: 1px solid var(--border); }
.page-banner h1 { font-size: 32px; }
.page-banner p { color: var(--text-light); margin-top: 5px; }

/* ===== SHOP ===== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.sidebar-widget h3 { font-size: 16px; margin-bottom: 15px; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { border-bottom: 1px solid var(--border); }
.sidebar-menu li:last-child { border-bottom: none; }
.sidebar-menu a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--text-light); font-size: 14px; cursor: pointer; }
.sidebar-menu a:hover, .sidebar-menu a.active { color: var(--primary); }
.sidebar-menu a span { color: var(--text-muted); font-size: 12px; }
.sidebar-subcat { padding-left: 20px !important; font-size: 13px !important; }
.sidebar-subcat a { font-size: 13px !important; }
.search-form { display: flex; gap: 0; }
.search-form input { flex: 1; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); color: var(--text); outline: none; }
.search-form button { padding: 10px 14px; background: var(--primary); border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; color: var(--white); }

/* ===== PRODUCT DETAIL ===== */
.breadcrumb { padding: 15px 0; font-size: 13px; color: var(--text-muted); background: var(--white); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.product-main-image { background: var(--primary-light); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; padding: 0; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 350px; }
.product-main-image img { width: 100%; height: 100%; object-fit: contain; max-height: 450px; }
.product-main-image .placeholder-icon { font-size: 120px; color: var(--primary); padding: 60px; }
.product-detail-title { font-size: 28px; margin: 10px 0 15px; }
.product-description { margin: 20px 0; }
.product-description h3 { font-size: 16px; margin-bottom: 10px; }
.product-description p { color: var(--text-light); line-height: 1.8; font-size: 14px; }
.product-option { margin: 20px 0; }
.product-option h3 { font-size: 14px; margin-bottom: 12px; }
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-opt { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 2px solid var(--border); transition: all .3s; }
.color-opt.selected { border-color: var(--primary); transform: scale(1.15); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary); }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { padding: 8px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 13px; transition: all .3s; }
.size-opt.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; background: var(--bg); border: none; color: var(--text); font-size: 18px; cursor: pointer; }
.qty-btn:hover { background: var(--primary); color: var(--white); }
.qty-control input { width: 50px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 16px; font-weight: 600; }
.product-actions { display: flex; gap: 10px; margin: 25px 0; flex-wrap: wrap; }
.product-meta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.product-meta p { font-size: 13px; color: var(--text-light); margin-bottom: 5px; }
.in-stock { color: var(--accent); font-weight: 600; }

/* ===== CART ===== */
.cart-table { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.cart-header { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; padding: 15px 20px; background: var(--bg-section); font-size: 13px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.cart-row { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; padding: 15px 20px; align-items: center; border-top: 1px solid var(--border); }
.cart-product { display: flex; align-items: center; gap: 15px; }
.cart-img { width: 60px; height: 60px; background: var(--primary-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--primary); overflow: hidden; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product h4 { font-size: 14px; }
.cart-price, .cart-total { font-size: 14px; color: var(--primary); font-weight: 600; }
.cart-qty { font-size: 14px; }
.btn-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.btn-remove:hover { color: #ff6b6b; }
.cart-summary { margin-top: 30px; display: flex; justify-content: flex-end; }
.cart-total-box { width: 100%; max-width: 400px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow); }
.cart-total-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cart-grand-total { font-weight: 700; font-size: 18px; border-bottom: none; }
.cart-grand-total span:last-child { color: var(--primary); }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { color: var(--text-muted); margin-bottom: 20px; font-size: 60px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { color: var(--text-light); margin-bottom: 25px; }

/* ===== ADMIN ===== */
.admin-body { background: var(--bg); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--white); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; box-shadow: 2px 0 10px rgba(0,0,0,0.04); }
.sidebar-brand { padding: 25px 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sidebar-brand a { font-size: 22px; font-weight: 800; }
.sidebar-sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.sidebar-nav { flex: 1; padding: 15px 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 22px; color: var(--text-light); font-size: 14px; transition: all .3s; border-left: 3px solid transparent; cursor: pointer; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
.sidebar-footer { padding: 15px 20px; border-top: 1px solid var(--border); }
.sidebar-footer a { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-light); }
.sidebar-footer a:hover { color: var(--primary); }
.admin-main { flex: 1; margin-left: 240px; padding: 30px; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; gap: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow); }
.stat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); }
.stat-info h3 { font-size: 28px; font-weight: 800; }
.stat-info p { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.admin-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 25px; margin-bottom: 25px; box-shadow: var(--shadow); }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-section-header h2 { font-size: 20px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: var(--bg-section); padding: 12px 15px; text-align: left; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; }
.admin-table td { padding: 12px 15px; border-top: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--primary-light); }
.action-cell { display: flex; gap: 8px; }
.btn-edit, .btn-delete { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; border: none; cursor: pointer; }
.btn-edit { background: #e8f4fd; color: #4a90d9; }
.btn-edit:hover { background: #4a90d9; color: #fff; }
.btn-delete { background: #ffe8e8; color: #ff6b6b; }
.btn-delete:hover { background: #ff6b6b; color: #fff; }

.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: var(--bg); }
.login-box { background: var(--white); padding: 50px 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo h1 { font-size: 28px; color: var(--text); }
.login-logo span { color: var(--primary); }
.login-logo p { color: var(--text-light); margin-top: 5px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-light); margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; outline: none; font-family: var(--font); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group small { display: block; margin-top: 4px; font-size: 11px; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e8faf0; border: 1px solid #a8e6c1; color: #00b894; }
.alert-error { background: #ffe8e8; border: 1px solid #ffd4d4; color: #ff6b6b; }

.hidden { display: none !important; }

/* Image Upload */
.image-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; min-height: 60px; }
.img-preview-item { position: relative; width: 90px; height: 90px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--bg-section); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-remove-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,0,0,0.8); color: #fff; border: none; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.img-preview-item:hover .img-remove-btn { opacity: 1; }
.img-placeholder { color: var(--text-muted); font-size: 12px; padding: 20px; text-align: center; width: 100%; }
.admin-thumb { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); }

/* ===== PRODUCT GALLERY ===== */
.product-gallery { position: static; top: 90px; align-self: start; }
.gallery-main { background: var(--primary-light); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 350px; padding: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; max-height: 450px; transition: opacity .3s; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; cursor: pointer; border: 2px solid var(--border); transition: all .2s; opacity: 0.6; }
.gallery-thumb:hover { opacity: 1; border-color: var(--primary); }
.gallery-thumb.active { opacity: 1; border-color: var(--primary); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes welcomeScale { from { transform:scale(0.6); opacity:0; } to { transform:scale(1); opacity:1; } }
.hero .hero-content { animation:fadeInUp 0.8s ease forwards; }
.hero .hero-title { animation:fadeInUp 0.6s ease 0.3s both; }
.hero .hero-text { animation:fadeInUp 0.6s ease 0.4s both; }
.hero .hero-content .btn { animation:fadeInUp 0.6s ease 0.5s both; }
.hero .welcome-title { animation:welcomeScale 1s ease 0.1s both; font-size:56px; }
.hero .welcome-sub { animation:fadeInUp 0.8s ease 0.6s both; font-size:28px; font-weight:300; letter-spacing:6px; }

.product-card { animation:cardEntrance 0.5s ease both; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes cardEntrance { from { opacity:0; transform:translateY(30px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
.product-card:hover { transform:translateY(-8px) scale(1.02); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.product-card:hover .product-image img { transform:scale(1.08); }
.product-card .product-image img { transition:transform 0.5s ease; }

.category-rect { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.category-rect:hover { transform:scale(1.03); }
.feature-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-card:hover { transform:translateY(-6px) scale(1.02); }
.btn { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-primary:hover { transform:translateY(-3px) scale(1.03); }
.section-title { animation:fadeInLeft 0.6s ease both; }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }

.mobile-cat-filter { display: none; margin-bottom:0; }
/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .hero { min-height: 350px; }
    .hero-title { font-size: 36px; }
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav { display: none; position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--white); z-index: 2000; overflow-y: auto; padding-top: 20px; box-shadow: -2px 0 20px rgba(0,0,0,0.1); }
    .nav.open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-link { padding: 14px 24px; border-bottom: 1px solid var(--border); }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 1999; }
    .nav-overlay.show { display: block; }
    .nav-cat-header { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
    .nav-cat-header .nav-link { flex: 1; border-bottom: none; }
    .nav-cat-header .nav-link.active { border-bottom: none; }
    .nav-cat-toggle { display: block; background: none; border: none; padding: 14px 16px; cursor: pointer; color: var(--text-light); font-size: 12px; transition: transform .3s; }
    .nav-cat-toggle:hover { color: var(--primary); }
    .nav-cat-item.expanded .nav-cat-toggle { transform: rotate(90deg); }
    .nav-sublist { background: var(--bg); }
    .nav-cat-item.expanded > .nav-sublist { display: block; }
    .nav-sublink { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px 10px 36px; color: var(--text-light); font-size: 13px; border-bottom: 1px solid var(--border); }
    .nav-sublink:hover { color: var(--primary); }
    .mobile-cat-filter { display: block; }
    .mobile-cat-filter select { width:100%; padding:12px 16px; border:2px solid var(--border); border-radius:8px; font-size:15px; background:var(--white); appearance:auto; margin-bottom:20px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .hero { min-height: 350px; background-position: center !important; padding-bottom: 30px; }
    .hero-title { font-size: 26px; margin-bottom: 8px; }
    .hero-text { font-size: 14px; margin-bottom: 18px; }
    .hero-content { padding: 0 15px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 22px; }
    .cart-header { display: none; }
    .cart-row { grid-template-columns: 1fr; gap: 10px; padding: 20px; position: relative; }
    .cart-price::before { content: 'Fiyat: '; color: var(--text-muted); font-weight: 400; }
    .cart-qty::before { content: 'Adet: '; color: var(--text-muted); font-weight: 400; }
    .cart-total::before { content: 'Toplam: '; color: var(--text-muted); font-weight: 400; }
    .cart-price, .cart-qty, .cart-total { display: flex; justify-content: space-between; }
    .cart-action { position: absolute; top: 10px; right: 10px; }
    .newsletter-form { flex-direction: column; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .category-grid { gap: 12px; }
    .category-rect { height: 160px; }
    .category-rect h3 { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .welcome-title { font-size: 36px !important; }
    .welcome-sub { font-size: 22px !important; letter-spacing: 4px !important; }
    .admin-sidebar { width: 60px; }
    .sidebar-brand a { font-size: 0; }
    .sidebar-brand a::before { content: '👕'; font-size: 22px; }
    .sidebar-sub { display: none; }
    .sidebar-nav a span { display: none; }
    .sidebar-nav a { justify-content: center; padding: 14px; }
    .sidebar-footer a span { display: none; }
    .sidebar-footer a { justify-content: center; }
    .admin-main { margin-left: 60px; padding: 15px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
/* ===== TOAST NOTIFICATION ===== */
#toastContainer { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.15); animation: toastIn 0.4s ease forwards; font-size: 14px; font-weight: 500; min-width: 280px; max-width: 420px; pointer-events: auto; border-left: 4px solid var(--primary); }
.toast.toast-out { animation: toastOut 0.4s ease forwards; }
.toast-success { border-left-color: #00b894; }
.toast-success i { color: #00b894; }
.toast-error { border-left-color: #ff6b6b; }
.toast-error i { color: #ff6b6b; }
.toast-warning { border-left-color: #ffa726; }
.toast-warning i { color: #ffa726; }
.toast-info { border-left-color: var(--primary); }
.toast-info i { color: var(--primary); }
.toast i { font-size: 20px; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ===== LOADING OVERLAY ===== */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.75); z-index: 99998; display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.loading-spinner { font-size: 48px; color: var(--primary); }
.loading-overlay .loading-close { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.1); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; }

/* ===== SEARCH BOX ===== */
.search-box { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; z-index: 1; }

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    #toastContainer { left: 10px; right: 10px; top: 10px; }
    .toast { min-width: auto; font-size: 13px; padding: 12px 16px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 13px; }
    .product-price { font-size: 15px; }
    .product-img-placeholder { padding: 30px; min-height: 130px; font-size: 40px; }
    .hero { min-height: 280px; padding-bottom: 25px; }
    .hero-title { font-size: 20px; }
    .hero-text { font-size: 13px; margin-bottom: 15px; }
    .hero-content { padding: 0 12px; }
    .section-title { font-size: 18px; }
    .page-banner h1 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .welcome-title { font-size: 28px !important; }
    .welcome-sub { font-size: 18px !important; letter-spacing: 3px !important; }
}
