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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  background: #f5f5f5;
}

a { color: #1a5c9e; text-decoration: none; transition: color .2s; }
a:hover { color: #e67e22; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-md-3, .col-md-9, .col-md-12 { padding: 0 10px; box-sizing: border-box; }
.col-md-12 { width: 100%; }
.col-md-9 { width: 75%; }
.col-md-3 { width: 25%; }

/* Top Bar */
.topbar { background: #1e2a3a; color: #aaa; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar-left a { color: #ddd; margin: 0 3px; }
.topbar-left a:hover { color: #e67e22; }
.topbar-left .sep { color: #888; }
.topbar-right { display: flex; gap: 12px; }
.topbar-right a { color: #ccc; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; }
.topbar-right a:hover { color: #e67e22; }

/* Header */
#header { background: #fff; border-bottom: 1px solid #e5e5e5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-bochka { font-size: 28px; font-weight: 900; color: #1e2a3a; letter-spacing: 3px; }
.logo-masla { font-size: 28px; font-weight: 900; color: #e67e22; letter-spacing: 3px; }
.logo-slogan { font-size: 11px; color: #999; margin-top: 3px; letter-spacing: 1px; }
.header-contacts { display: flex; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.contact-item a { color: #333; font-weight: 600; }
.contact-item a:hover { color: #e67e22; }
.contact-icon { font-size: 18px; }

.cart-btn { display: flex; align-items: center; gap: 8px; background: #1e2a3a; color: #fff; padding: 10px 20px; border-radius: 8px; transition: background .2s; }
.cart-btn:hover { background: #e67e22; color: #fff; }
.cart-icon { font-size: 20px; }
.cart-label { font-weight: 600; }
.cart-count { background: #e67e22; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.cart-btn .cart-total { font-size: 13px; font-weight: 700; background: #e67e22; color: #fff; padding: 2px 10px; border-radius: 4px; display: inline; border: none; margin: 0; text-align: left; }

/* Navigation */
#main-nav { background: #1e2a3a; position: sticky; top: 0; z-index: 1000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 18px; padding: 14px; cursor: pointer; }
.nav-menu { display: flex; list-style: none; }
.nav-menu > li > a { display: block; padding: 14px 18px; color: #ddd; font-weight: 500; font-size: 14px; transition: background .2s, color .2s; }
.nav-menu > li > a:hover, .nav-menu > li > a.active { background: #2a3a50; color: #fff; }
.has-mega { position: relative; }

.mega-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 20px; gap: 24px; z-index: 999; min-width: 700px; }
.has-mega:hover .mega-menu { display: flex; }
.mega-col { flex: 1; min-width: 160px; }
.mega-col h4 { font-size: 13px; font-weight: 700; color: #1e2a3a; margin-bottom: 8px; border-bottom: 2px solid #e67e22; padding-bottom: 4px; }
.mega-col h4 a { color: #1e2a3a; }
.mega-col ul { list-style: none; margin-bottom: 16px; }
.mega-col ul li a { display: block; padding: 4px 0; font-size: 13px; color: #555; }
.mega-col ul li a:hover { color: #e67e22; padding-left: 4px; }

.nav-search { padding: 8px 0; }
.search-input { padding: 8px 14px; border: none; border-radius: 20px; background: #2a3a50; color: #fff; width: 200px; font-size: 13px; outline: none; transition: width .3s; }
.search-input::placeholder { color: #889; }
.search-input:focus { width: 260px; background: #334560; }
.search-btn { background: none; border: none; color: #aaa; cursor: pointer; padding: 8px; font-size: 16px; margin-left: -36px; }

/* Slider */
.homeslider { background: #171717; }
.bannercontainer { position: relative; overflow: hidden; width: 100%; max-height: 400px; }
.slider-wrapper { position: relative; }
.slides { position: relative; overflow: hidden; }
.slide { position: relative; display: none; }
.slide.active { display: block; }
.slide-img { width: 100%; display: block; height: auto; min-height: 250px; object-fit: cover; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.4) 50%, transparent 100%); display: flex; align-items: center; }
.slide-content { max-width: 600px; }
.slide-title { font-size: 38px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.slide-desc { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 28px; line-height: 1.5; }
.slide-btn { display: inline-block; background: #e67e22; color: #fff; padding: 14px 36px; border-radius: 8px; font-weight: 700; font-size: 16px; transition: background .2s, transform .2s; text-decoration: none; }
.slide-btn:hover { background: #cf6d17; color: #fff; transform: translateY(-2px); }

/* Sidebar */
.sidebar { padding-top: 20px; }
.sidebar > * { margin-bottom: 20px; }
.sidebar-categories { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; }

/* Filter Block */
.filter-block { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; }
.filter-title_block { display: block; padding: 12px 16px; font-size: 14px; font-weight: 700; color: #1e2a3a; background: #fafafa; border-bottom: 1px solid #e5e5e5; text-transform: uppercase; letter-spacing: .5px; }
.filter-block_content { padding: 6px 0; }
.filter-group { padding: 8px 16px; border-bottom: 1px solid #f0f0f0; }
.filter-group:last-child { border-bottom: none; }
.filter-subtitle { font-size: 13px; font-weight: 700; color: #1e2a3a; margin-bottom: 6px; }
.filter-ul { list-style: none; }
.filter-item { padding: 3px 0; }
.filter-item label { font-size: 13px; color: #555; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.filter-item label:hover { color: #e67e22; }
.filter-item input[type="checkbox"] { accent-color: #e67e22; cursor: pointer; }
.filter-item.brand-filter-item label { gap: 8px; padding: 2px 0; }
.filter-brand-logo { flex-shrink: 0; width: 24px; height: 10px; object-fit: contain; }
.brand-name { flex: 1; }
.filter-ul.brands-filter-ul .cnt { font-size: 11px; color: #999; background: #f0f0f0; border-radius: 8px; padding: 1px 6px; line-height: 16px; }
.filter-ul.brands-filter-ul .filter-item label:hover .cnt { background: #e8e0d3; }
.filter-reset { display: block; padding: 8px 16px; font-size: 12px; color: #e74c3c; font-weight: 600; text-align: center; border-top: 1px solid #f0f0f0; }
.filter-reset:hover { background: #fef3e9; }
.cat-widget { border-bottom: 1px solid #e5e5e5; }
.cat-widget:last-child { border-bottom: none; }
.cat-widget-heading { padding: 12px 16px; font-size: 14px; font-weight: 700; color: #1e2a3a; background: #fafafa; border-bottom: 1px solid #e5e5e5; text-transform: uppercase; letter-spacing: .5px; }
.cat-widget-heading a { color: #1e2a3a; display: block; }
.cat-widget-heading a:hover { color: #e67e22; }
.cat-widget-list { list-style: none; padding: 6px 0; }
.cat-widget-list li a { display: block; padding: 7px 16px; font-size: 13px; color: #555; transition: all .15s; }
.cat-widget-list li a:hover { background: #fef3e9; color: #e67e22; padding-left: 20px; }
.cat-widget-list li a.active { background: #fef3e9; color: #e67e22; font-weight: 600; padding-left: 20px; }

.home-main { padding-bottom: 0; }

/* Static Banner */
.home-banner { padding: 20px 0; background: #fff; }
.home-banner-bottom { padding: 20px 0 40px; background: #f5f5f5; }
.staticontent-home { list-style: none; margin: 0; padding: 0; }

.staticontent-item { padding: 0; }
.staticontent-item .item-img { width: 100%; display: block; border-radius: 8px; }

/* Carousel */
.home-carousel { padding: 40px 0 60px; background: #fff; }
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 16px; transition: transform .3s ease; }
.carousel-item { flex: 0 0 210px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(30,42,58,.7); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 2; line-height: 36px; text-align: center; transition: background .2s; }
.carousel-btn:hover { background: #e67e22; }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Brands strip */
.brands { background: #fff; padding: 24px 0; border-bottom: 1px solid #eee; }
.brands-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 40px; }
.brand-item span { font-size: 18px; font-weight: 700; color: #888; opacity: .6; transition: opacity .2s; }
.brand-item:hover span { opacity: 1; color: #1e2a3a; }

/* Features */
.features { padding: 60px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { text-align: center; padding: 24px 16px; border: 1px solid #eee; border-radius: 12px; transition: box-shadow .2s; }
.feature-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.feature-icon { font-size: 40px; margin-bottom: 12px; }
.feature-item h3 { font-size: 16px; font-weight: 700; color: #1e2a3a; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: #888; }

/* Section Title */
.section-title { text-align: center; font-size: 30px; font-weight: 900; color: #1e2a3a; margin-bottom: 40px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: #e67e22; margin: 12px auto 0; border-radius: 2px; }
.page-title { font-size: 28px; font-weight: 900; color: #1e2a3a; margin: 24px 0; }
.page-heading { font-size: 26px; font-weight: 900; color: #1e2a3a; margin: 16px 0 4px; }
.heading-counter { font-size: 14px; color: #999; display: inline-block; margin-bottom: 16px; }
.clearfix { clear: both; }
.subcategories-block { margin: 12px 0 20px; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px 20px; }
.subcategories-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.subcategories-list li { }
.subcategory-name { font-size: 14px; font-weight: 600; color: #1a5c9e; padding: 4px 0; display: inline-block; }
.subcategory-name:hover { color: #e67e22; }

/* Categories */
.categories { padding: 60px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { display: block; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 24px; transition: transform .2s, box-shadow .2s; color: #444; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.08); color: #444; }
.card-icon { font-size: 36px; margin-bottom: 12px; }
.category-card h3 { font-size: 16px; font-weight: 700; color: #1e2a3a; margin-bottom: 8px; }
.category-card p { font-size: 13px; color: #888; margin-bottom: 12px; }
.card-link { font-size: 13px; font-weight: 600; color: #e67e22; }

/* Popular brands */
.popular-products { padding: 60px 0; background: #fff; }
.brand-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.brand-showcase-item { padding: 24px; border: 1px solid #eee; border-radius: 12px; transition: box-shadow .2s; }
.brand-showcase-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.brand-showcase-item h3 { font-size: 18px; font-weight: 900; color: #1e2a3a; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e67e22; }
.brand-showcase-item ul { list-style: none; margin-bottom: 16px; }
.brand-showcase-item ul li { padding: 5px 0; font-size: 14px; color: #666; }
.brand-showcase-item ul li::before { content: '• '; color: #e67e22; font-weight: 700; }
.brand-showcase-item ul li a { color: #666; }
.brand-showcase-item ul li a:hover { color: #e67e22; }
.brand-link { font-weight: 600; color: #e67e22; font-size: 14px; }

/* About */
.about { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { font-size: 28px; font-weight: 900; color: #1e2a3a; margin-bottom: 20px; }
.about-text p { margin-bottom: 12px; color: #555; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-item { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 24px; text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 900; color: #e67e22; }
.stat-label { font-size: 13px; color: #888; }

/* Delivery */
.delivery { padding: 60px 0; background: #fff; }
.delivery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.delivery-item { padding: 24px; border: 1px solid #eee; border-radius: 12px; }
.delivery-item h3 { font-size: 16px; font-weight: 700; color: #1e2a3a; margin-bottom: 10px; }
.delivery-item p { font-size: 13px; color: #777; }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumbs a { color: #1a5c9e; }
.breadcrumbs a:hover { color: #e67e22; }
.breadcrumbs span { color: #ccc; }

/* Catalog */
.catalog-page { padding: 24px 0 60px; }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.catalog-sidebar { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px; align-self: start; }
.catalog-sidebar h3 { font-size: 16px; font-weight: 700; color: #1e2a3a; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e67e22; }
.catalog-cats { list-style: none; }
.catalog-cats li { margin-bottom: 2px; }
.catalog-cats li a { display: block; padding: 8px 10px; font-size: 14px; color: #555; border-radius: 6px; transition: background .2s; }
.catalog-cats li a:hover,
.catalog-cats li a.active { background: #fef3e9; color: #e67e22; font-weight: 600; }

.catalog-main { min-height: 300px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 12px 16px; background: #fff; border: 1px solid #eee; border-radius: 8px; }
.catalog-count { color: #888; font-size: 14px; }
.sort-select { padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; cursor: pointer; }
.search-info { color: #888; margin-bottom: 16px; font-size: 14px; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 12px; position: relative; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.product-badge { position: absolute; top: 10px; left: 10px; background: #e74c3c; color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.product-card-img { display: block; width: 100%; height: 200px; overflow: hidden; background: #fafafa; border-radius: 12px 12px 0 0; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card-body { padding: 20px; }
.product-card-name { display: block; font-size: 14px; font-weight: 600; color: #1e2a3a; margin-bottom: 6px; line-height: 1.3; }
.product-card-name:hover { color: #e67e22; }
.product-card-volume { font-size: 12px; color: #999; display: block; margin-bottom: 10px; }
.product-card-prices { margin-bottom: 14px; }
.product-card-price { font-size: 20px; font-weight: 900; color: #e67e22; }
.old-price { font-size: 14px; color: #999; text-decoration: line-through; margin-right: 8px; }
.old-price.big { font-size: 18px; }

.btn-add-cart { width: 100%; padding: 10px; background: #1e2a3a; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-add-cart:hover { background: #e67e22; }
.btn-add-cart.big { padding: 14px; font-size: 16px; }

/* Product Detail */
.product-detail { padding: 24px 0 60px; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 30px; }
.product-detail-image { display: flex; align-items: center; justify-content: center; background: #fafafa; border-radius: 12px; min-height: 300px; }
.product-detail-image img { max-width: 100%; max-height: 400px; object-fit: contain; }
.product-brand { font-size: 14px; color: #888; margin-bottom: 8px; }
.product-title { font-size: 26px; font-weight: 900; color: #1e2a3a; margin-bottom: 6px; }
.product-short-desc { font-size: 14px; color: #888; margin-bottom: 10px; }
.donor-link { margin-top: -10px; margin-bottom: 16px; font-size: 12px; }
.donor-link a { color: #aaa; text-decoration: none; border-bottom: 1px dashed #ccc; }
.donor-link a:hover { color: #e67e22; border-bottom-color: #e67e22; }
.product-sku, .product-volume { font-size: 14px; color: #888; margin-bottom: 6px; }
.product-prices { margin: 16px 0; }
.product-price.big { font-size: 32px; font-weight: 900; color: #e67e22; }
.product-desc { color: #555; line-height: 1.7; margin-bottom: 20px; }
.product-add-form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control label { font-size: 14px; font-weight: 600; color: #555; }
.qty-input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 60px; text-align: center; outline: none; }
.qty-input:focus { border-color: #e67e22; }
.related-section { margin-top: 40px; }

/* Product Tabs */
.product-tabs { margin-top: 40px; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.tabs-nav { display: flex; gap: 0; background: #f5f5f5; border-bottom: 2px solid #e67e22; overflow-x: auto; }
.tab-btn { padding: 14px 24px; background: none; border: none; font-size: 14px; font-weight: 600; color: #888; cursor: pointer; white-space: nowrap; transition: all .2s; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn:hover { color: #1e2a3a; }
.tab-btn.active { color: #e67e22; border-bottom-color: #e67e22; background: #fff; }
.tabs-content { padding: 24px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane .rte { line-height: 1.8; color: #555; }
.tab-pane .rte h2 { font-size: 20px; color: #1e2a3a; margin: 20px 0 12px; }
.tab-pane .rte h2:first-child { margin-top: 0; }
.tab-pane .rte ul { padding-left: 20px; margin: 8px 0; }
.tab-pane .rte li { margin-bottom: 4px; }
.tab-pane .rte p { margin-bottom: 8px; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid #eee; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 10px 16px; font-size: 14px; vertical-align: top; }
.spec-name { width: 40%; color: #888; font-weight: 500; background: #fafafa; }
.spec-value { width: 60%; color: #333; font-weight: 600; }

/* Cart */
.cart-page { padding: 24px 0 60px; min-height: 400px; }
.cart-table { width: 100%; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.cart-table th { background: #1e2a3a; color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 700; text-align: left; }
.cart-table td { padding: 16px; border-top: 1px solid #eee; font-size: 14px; vertical-align: middle; }
.cart-table td a { color: #1e2a3a; font-weight: 600; }
.cart-table td a:hover { color: #e67e22; }
.cart-total { text-align: right; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 12px; margin-top: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.cart-total-label { font-size: 18px; color: #444; }
.cart-total-value { font-size: 28px; font-weight: 900; color: #e67e22; }
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-img { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; background: #f5f5f5; }
.cart-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 20px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty p { font-size: 20px; color: #999; margin-bottom: 24px; }

.btn { display: inline-block; padding: 10px 24px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; text-decoration: none; text-align: center; }
.btn-primary { background: #e67e22; color: #fff; }
.btn-primary:hover { background: #cf6d17; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #1e2a3a; color: #1e2a3a; }
.btn-outline:hover { background: #1e2a3a; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; background: #eee; border: 1px solid #ddd; cursor: pointer; }
.btn-sm:hover { background: #ddd; }
.btn-danger { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.btn-danger:hover { background: #c0392b; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 8px; color: #555; font-size: 14px; transition: background .2s, color .2s; }
.page-link:hover, .page-link.active { background: #e67e22; color: #fff; border-color: #e67e22; }

/* Checkout */
.checkout-page { padding: 24px 0 60px; }
.checkout-form { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 30px; }
.checkout-form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group .input { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: border-color .2s; }
.form-group .input:focus { border-color: #e67e22; }
.form-group textarea.input { resize: vertical; min-height: 80px; }

.checkout-summary { background: #f9f9f9; padding: 20px; border-radius: 12px; }
.checkout-summary h3 { font-size: 18px; font-weight: 700; color: #1e2a3a; margin-bottom: 16px; }
.checkout-table { width: 100%; }
.checkout-table th { text-align: left; font-size: 13px; color: #888; padding: 8px 0; border-bottom: 1px solid #eee; }
.checkout-table td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid #eee; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 2px solid #e67e22; }
.checkout-total-label { font-size: 18px; font-weight: 700; color: #1e2a3a; }
.checkout-total-value { font-size: 24px; font-weight: 900; color: #e67e22; }
.checkout-submit { width: 100%; margin-top: 20px; padding: 14px; background: #e67e22; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.checkout-submit:hover { background: #cf6d17; }

/* Order Success */
.order-success { text-align: center; padding: 80px 20px; }
.order-success h1 { font-size: 32px; color: #27ae60; margin-bottom: 16px; }
.order-success p { font-size: 18px; color: #666; margin-bottom: 8px; }
.order-success .order-num { font-size: 24px; font-weight: 900; color: #1e2a3a; }
.order-success .hero-btn { margin-top: 30px; }

/* Admin */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 16px; border-bottom: 2px solid #e67e22; }
.admin-header h1 { font-size: 24px; color: #1e2a3a; }
.admin-nav { display: flex; gap: 12px; }
.admin-nav a { padding: 8px 16px; background: #1e2a3a; color: #fff; border-radius: 6px; font-size: 13px; }
.admin-nav a:hover { background: #e67e22; color: #fff; }

.admin-table { width: 100%; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.admin-table th { background: #1e2a3a; color: #fff; padding: 10px 14px; font-size: 13px; text-align: left; }
.admin-table td { padding: 10px 14px; border-top: 1px solid #eee; font-size: 13px; }
.admin-table tr:hover td { background: #f9f9f9; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-new { background: #3498db; color: #fff; }
.badge-processing { background: #f39c12; color: #fff; }
.badge-shipped { background: #9b59b6; color: #fff; }
.badge-completed { background: #27ae60; color: #fff; }
.badge-cancelled { background: #e74c3c; color: #fff; }

.admin-form { display: inline; }
.admin-select { padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; }
.admin-btn { padding: 4px 12px; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.admin-btn-danger { background: #e74c3c; color: #fff; }
.admin-btn-danger:hover { background: #c0392b; }
.admin-btn-primary { background: #3498db; color: #fff; }
.admin-btn-primary:hover { background: #2980b9; }
.admin-btn-success { background: #27ae60; color: #fff; }
.admin-btn-success:hover { background: #219a52; }

.admin-add-form { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-top: 30px; }
.admin-add-form h3 { font-size: 18px; color: #1e2a3a; margin-bottom: 16px; }
.admin-add-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.admin-add-form .input { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; }
.admin-add-form .input:focus { border-color: #e67e22; }

/* Footer */
#footer { background: #1e2a3a; color: #bbb; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col p { font-size: 13px; margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { color: #bbb; font-size: 13px; }
.footer-col ul li a:hover { color: #e67e22; padding-left: 4px; }
.footer-col a { color: #bbb; }
.footer-col a:hover { color: #e67e22; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #777; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; overflow: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.modal-header h3 { font-size: 20px; color: #1e2a3a; }
.modal-close { background: none; border: none; font-size: 28px; color: #999; cursor: pointer; }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; }
.cart-empty-msg { text-align: center; color: #999; padding: 20px 0; font-size: 16px; }
.modal-total { font-size: 16px; color: #333; }
.modal-total strong { color: #e67e22; }

.cart-modal-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cart-modal-item:last-child { border-bottom: none; }
.cart-modal-img { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; background: #f9f9f9; }
.cart-modal-info { flex: 1; min-width: 0; }
.cart-modal-info a { font-size: 14px; color: #1e2a3a; font-weight: 600; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-modal-info a:hover { color: #e67e22; }
.cart-modal-price { font-size: 13px; color: #888; }
.cart-modal-qty, .cart-qty-controls { display: flex; align-items: center; gap: 4px; }
.qty-btn { width: 30px; height: 30px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #333; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.qty-btn:hover { background: #f5f5f5; }
.qty-input-modal { width: 44px; height: 30px; text-align: center; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }
.qty-input-modal:focus { border-color: #e67e22; }
.cart-modal-subtotal { font-size: 15px; font-weight: 700; color: #1e2a3a; min-width: 70px; text-align: right; }
.cart-modal-remove { background: none; border: none; color: #ccc; font-size: 16px; cursor: pointer; padding: 4px; transition: color .15s; }
.cart-modal-remove:hover { color: #e74c3c; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-showcase { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-contacts { display: none; }
  .mega-menu { min-width: auto; }
  .catalog-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 992px) {
  .col-md-3, .col-md-9 { width: 100%; }
  .sidebar { padding-top: 0; }
  .sidebar-categories { display: flex; flex-wrap: wrap; }
  .cat-widget { flex: 1 1 50%; border: none; border-bottom: 1px solid #e5e5e5; }
  .cat-widget:nth-child(odd) { border-right: 1px solid #e5e5e5; }
}

@media (max-width: 768px) {
  .topbar-right { display: none; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-contacts { display: none; }
  .nav-menu { display: none; flex-direction: column; width: 100%; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .has-mega { position: static; }
  .mega-menu { position: static; box-shadow: none; border: none; border-radius: 0; padding: 10px 20px; flex-direction: column; min-width: auto; }
  .nav-search { display: none; }
  .slide-title { font-size: 24px; }
  .slide-desc { font-size: 14px; }
  .slide-btn { padding: 10px 24px; font-size: 14px; }
  .bannercontainer { max-height: 250px; }
  .carousel-item { flex: 0 0 180px; }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-showcase { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .checkout-form-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.blog-card { border: 1px solid #eee; border-radius: 10px; overflow: hidden; transition: box-shadow .2s; background: #fff; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.blog-card-image { display: block; height: 200px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 16px; }
.blog-card-body h2 { margin: 0 0 8px; font-size: 18px; }
.blog-card-body h2 a { color: #1e2a3a; text-decoration: none; }
.blog-card-body h2 a:hover { color: #e67e22; }
.blog-card-date { font-size: 13px; color: #999; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.blog-read-more { color: #e67e22; text-decoration: none; font-weight: 600; font-size: 14px; }
.blog-read-more:hover { text-decoration: underline; }

.blog-post { max-width: 800px; margin: 0 auto; padding: 32px 0; }
.blog-post-image { margin-bottom: 24px; border-radius: 10px; overflow: hidden; }
.blog-post-image img { width: 100%; display: block; }
.blog-post-title { font-size: 32px; margin: 0 0 8px; color: #1e2a3a; }
.blog-post-date { font-size: 14px; color: #999; margin-bottom: 24px; }
.blog-post-content { font-size: 16px; line-height: 1.8; color: #333; }

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .topbar-left { font-size: 12px; }
  .product-grid { grid-template-columns: 1fr; }
}
