* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #FBF7F0; color: #1A1A1A; line-height: 1.6; }
a { color: #C49A6C; text-decoration: none; }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; }

.header { background: #FFF; border-bottom: 1px solid #E8E0D6; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 72px; gap: 32px; }
.header-logo { display: flex; align-items: center; }
.header-logo svg { height: 32px; }
.header-nav { display: flex; gap: 24px; align-items: center; flex: 1; margin-left: 8px; }
.header-nav a, .dropdown > a { color: #1A1A1A; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; padding: 8px 0; white-space: nowrap; display: flex; align-items: center; }
.header-nav a:hover { color: #C49A6C; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-actions a { color: #1A1A1A; font-size: 14px; white-space: nowrap; }
.cart-link { position: relative; }
.cart-count { background: #C49A6C; color: #FFF; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; position: absolute; top: -8px; right: -12px; }

.dropdown { position: relative; display: flex; align-items: stretch; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: #FFF; border: 1px solid #E8E0D6; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); min-width: 200px; padding: 8px; display: none; z-index: 50; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 12px; font-size: 13px; text-transform: none; letter-spacing: 0; border-radius: 4px; color: #1A1A1A; }
.dropdown-menu a:hover { background: #FBF7F0; }

.hero { background: #FFF; border-radius: 16px; margin: 24px auto; max-width: 1280px; overflow: hidden; display: flex; min-height: 520px; position: relative; border: 1px solid #F0EBE4; }
.hero-bg { flex: 0 0 50%; background: linear-gradient(135deg, #F5E6D0 0%, #E8D5C0 100%); display: flex; align-items: center; justify-content: center; }
.hero-bg-placeholder { font-size: 120px; opacity: .3; }
.hero-content { flex: 1; padding: 64px 48px; display: flex; align-items: center; }
.hero-text { max-width: 440px; }
.hero-text h1 { font-size: 38px; font-weight: 300; color: #1A1A1A; letter-spacing: 3px; line-height: 1.2; margin-bottom: 16px; }
.hero-text p { font-size: 15px; color: #666; margin-bottom: 28px; line-height: 1.8; }
.hero-text .btn { display: inline-block; padding: 14px 40px; background: #C49A6C; color: #FFF; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: background .3s; }
.hero-text .btn:hover { background: #B8895A; opacity: 1; }

.container { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.section-title { font-size: 28px; font-weight: 300; text-align: center; letter-spacing: 1px; margin-bottom: 40px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: #FFF; border-radius: 12px; overflow: hidden; transition: box-shadow .3s, transform .3s; border: 1px solid #F0EBE4; position: relative; }
.product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.06); transform: translateY(-2px); }
.product-card-image { height: 260px; background: #F5F0EA; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-body { padding: 16px; }
.product-card-brand { font-size: 11px; color: #C49A6C; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.product-card-title a { color: #1A1A1A; }
.product-card-price { font-size: 18px; font-weight: 700; color: #1A1A1A; }
.product-card-old-price { font-size: 13px; color: #999; text-decoration: line-through; margin-left: 8px; }
.product-card-meta { font-size: 11px; color: #999; margin-bottom: 6px; }
.btn-cart { width: 100%; margin-top: 12px; padding: 12px; background: #3A3A3A; color: #FFF; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .3s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-cart:hover { background: #C49A6C; }
.btn-cart svg { width: 18px; height: 18px; }
.badge-new { position: absolute; top: 12px; left: 12px; background: #2B5E4B; color: #FFF; padding: 4px 10px; border-radius: 4px; font-size: 11px; text-transform: uppercase; z-index: 2; }
.badge-sale { position: absolute; top: 12px; right: 12px; background: #C49A6C; color: #FFF; padding: 4px 10px; border-radius: 4px; font-size: 11px; text-transform: uppercase; z-index: 2; }

.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.filters { background: #FFF; border-radius: 12px; padding: 24px; border: 1px solid #F0EBE4; height: fit-content; position: sticky; top: 100px; }
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; color: #C49A6C; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 13px; margin-bottom: 4px; color: #666; }
.filter-group select, .filter-group input[type="text"] { width: 100%; padding: 8px 12px; border: 1px solid #E0D8CE; border-radius: 6px; font-size: 13px; background: #FBF7F0; }
.filter-group button { width: 100%; padding: 10px; background: #3A3A3A; color: #FFF; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }
.filter-group button:hover { background: #C49A6C; }
.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.catalog-header h1 { font-size: 24px; font-weight: 300; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-image-main { background: #F5F0EA; border-radius: 16px; overflow: hidden; height: 500px; display: flex; align-items: center; justify-content: center; }
.product-image-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.product-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; background: #F5F0EA; }
.product-thumb.active, .product-thumb:hover { border-color: #C49A6C; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 32px; font-weight: 300; margin-bottom: 8px; }
.product-info .brand { color: #C49A6C; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.product-info .price { font-size: 28px; font-weight: 700; color: #1A1A1A; margin-bottom: 24px; }
.product-info .old-price { font-size: 18px; color: #999; text-decoration: line-through; margin-left: 12px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.spec { background: #FBF7F0; padding: 6px 14px; border-radius: 20px; font-size: 12px; color: #666; border: 1px solid #F0EBE4; }
.spec strong { color: #1A1A1A; }
.product-desc { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 24px; }
.btn-graphite { padding: 14px 32px; background: #3A3A3A; color: #FFF; border: none; border-radius: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .3s; }
.btn-graphite:hover { background: #C49A6C; }
.btn-graphite.btn-lg { padding: 16px 48px; font-size: 15px; }
.btn-disabled { padding: 14px 32px; background: #ccc; color: #fff; border: none; border-radius: 8px; font-size: 14px; text-transform: uppercase; cursor: not-allowed; }

.cart-layout { display: flex; gap: 32px; align-items: flex-start; }
.cart-items { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 16px; background: #FFF; border-radius: 12px; padding: 16px; border: 1px solid #F0EBE4; align-items: center; position: relative; }
.cart-item-img { width: 100px; height: 100px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #FBF7F0; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 600; color: #1A1A1A; margin-bottom: 12px; line-height: 1.3; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid #E0D8CE; border-radius: 8px; overflow: hidden; }
.cart-qty-btn { width: 36px; height: 36px; border: none; background: #FBF7F0; cursor: pointer; font-size: 16px; color: #1A1A1A; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.cart-qty-btn:hover { background: #F0EBE4; }
.cart-qty-num { width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-left: 1px solid #E0D8CE; border-right: 1px solid #E0D8CE; }
.cart-item-price { text-align: right; flex-shrink: 0; min-width: 100px; }
.cart-price-current { font-size: 18px; font-weight: 700; color: #1A1A1A; }
.cart-item-remove { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; color: #ccc; padding: 4px; font-size: 16px; transition: color .2s; }
.cart-item-remove:hover { color: #e74c3c; }
.cart-summary { width: 320px; flex-shrink: 0; background: #FFF; border-radius: 12px; padding: 24px; border: 1px solid #F0EBE4; position: sticky; top: 90px; }
.cart-summary-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: #1A1A1A; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #555; margin-bottom: 12px; }
.cart-summary-divider { height: 1px; background: #F0EBE4; margin: 12px 0; }
.cart-summary-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; }
.order-form { margin-top: 20px; }
.order-form input, .order-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #E0D8CE; border-radius: 6px; font-size: 14px; background: #FBF7F0; margin-bottom: 12px; font-family: inherit; }
.order-form textarea { min-height: 80px; resize: vertical; }
.order-success { text-align: center; padding: 48px 24px; }
.order-success h2 { font-size: 24px; font-weight: 300; margin-bottom: 16px; }
.empty-cart { text-align: center; padding: 60px 24px; }
.empty-cart p { font-size: 16px; color: #999; margin-bottom: 20px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.feature { background: #FFF; border-radius: 12px; padding: 28px 20px; text-align: center; border: 1px solid #F0EBE4; }
.feature-icon { font-size: 28px; margin-bottom: 8px; }
.feature h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: 12px; color: #999; }

/* Admin */
.admin-layout { display: flex; gap: 0; min-height: calc(100vh - 200px); }
.admin-layout > div:last-child { flex: 1; min-width: 0; padding-left: 24px; }
.admin-sidebar { width: 220px; min-width: 220px; background: #1A1A1A; border-radius: 12px; padding: 12px 0; position: sticky; top: 88px; height: fit-content; max-height: calc(100vh - 104px); overflow: hidden; display: flex; flex-direction: column; }
.sidebar-toggle { background: none; border: none; color: #666; cursor: pointer; padding: 8px 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; transition: color .2s; width: 100%; }
.sidebar-toggle:hover { color: #FFF; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 0 8px; }
.sidebar-scroll::-webkit-scrollbar { width: 3px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #888; font-size: 13px; border-radius: 8px; text-decoration: none; transition: all .15s; cursor: pointer; white-space: nowrap; }
.sidebar-item:hover { color: #FFF; background: rgba(255,255,255,.06); }
.sidebar-item.active { color: #FFF; background: rgba(196,154,108,.15); color: #C49A6C; }
.sidebar-icon { flex-shrink: 0; width: 20px; display: flex; align-items: center; justify-content: center; }
.sidebar-sep { height: 1px; background: #333; margin: 6px 12px; }

.admin-card { background: #FFF; border-radius: 12px; padding: 24px; border: 1px solid #F0EBE4; margin-bottom: 20px; }
.admin-card .stat { font-size: 36px; font-weight: 700; color: #C49A6C; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 12px; background: #FBF7F0; border-bottom: 1px solid #E8E0D6; font-size: 12px; text-transform: uppercase; color: #666; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #F0EBE4; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 4px; border: none; cursor: pointer; display: inline-block; text-decoration: none; }
.btn-gold { background: #C49A6C; color: #FFF; }
.btn-dark { background: #3A3A3A; color: #FFF; }
.btn-danger { background: #D32F2F; color: #FFF; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 10px; border: 1px solid #E0D8CE; border-radius: 6px; margin-bottom: 12px; font-size: 14px; background: #FBF7F0; font-family: inherit; }
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 4px; }
.form-actions { display: flex; gap: 12px; margin-top: 16px; }

/* Kanban */
.kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.kanban::-webkit-scrollbar { height: 6px; }
.kanban::-webkit-scrollbar-thumb { background: #D0C8BE; border-radius: 3px; }
.kanban-col { min-width: 260px; max-width: 300px; flex-shrink: 0; }
.kanban-col-header { background: #1A1A1A; color: #FFF; padding: 12px 16px; border-radius: 10px 10px 0 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.kanban-col-count { background: rgba(255,255,255,.15); padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.kanban-body { background: #FFF; border: 1px solid #E8E0D6; border-top: none; border-radius: 0 0 10px 10px; padding: 12px; min-height: 200px; max-height: 600px; overflow-y: auto; }
.kanban-card { background: #FBF7F0; border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: grab; border: 1px solid #E8E0D6; transition: box-shadow .2s; }
.kanban-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* Footer */
.footer { background: #1A1A1A; color: #CCC; padding: 60px 24px 40px; margin-top: 80px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer h4 { color: #FFF; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer a { display: block; color: #999; font-size: 13px; margin-bottom: 8px; }
.footer a:hover { color: #C49A6C; }
.footer-bottom { max-width: 1280px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #333; text-align: center; font-size: 12px; color: #666; }
.social-icons { display: flex; gap: 12px; margin-top: 12px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #444; border-radius: 50%; color: #999; transition: all .3s; }
.social-icons a:hover { border-color: #C49A6C; color: #C49A6C; background: rgba(196,154,108,.1); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1A1A1A; color: #FFF; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 200; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 300; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: #FFF; border-radius: 16px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 24px; }
.modal h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }

/* Image preview */
.img-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.img-preview-item { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid #E0D8CE; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-remove { position: absolute; top: 2px; right: 2px; background: #D32F2F; color: #FFF; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Login */
.login-form { max-width: 400px; margin: 80px auto; background: #FFF; padding: 40px; border-radius: 16px; border: 1px solid #F0EBE4; }
.login-form h1 { font-size: 24px; font-weight: 300; text-align: center; margin-bottom: 24px; }
.login-form input { width: 100%; padding: 12px; border: 1px solid #E0D8CE; border-radius: 6px; margin-bottom: 16px; font-size: 14px; background: #FBF7F0; }
.login-form .btn { width: 100%; }
.login-form .error { color: #D32F2F; font-size: 13px; margin-bottom: 16px; text-align: center; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hero { flex-direction: column; }
  .hero-bg { flex: none; height: 200px; }
  .hero-content { padding: 32px 24px; }
  .hero-text h1 { font-size: 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { flex-direction: column; }
  .cart-summary { width: 100%; position: static; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-price { min-width: auto; }
  .admin-layout { flex-direction: column; }
  .admin-layout > div:last-child { padding-left: 0; margin-top: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
