:root {
  --primary-color: #fc3b1b;
  --header-bg: #000000;
  --nav-bg: #152238;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f5f5f5;
  --border-color: #e1e1e1;
  --yellow: #ffb129;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--primary-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Top Bar */
.top-bar {
    background-color: var(--header-bg);
    color: #ccc;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    height: 40px;
    align-items: center;
}
.top-bar-right {
    display: flex;
    gap: 20px;
}
.top-bar-item { cursor: pointer; }
.top-bar-item i { margin-left: 5px; font-size: 10px; }

/* Header */
.main-header {
    background-color: var(--header-bg);
    color: #fff;
    padding: 25px 0;
}
.header-container {
    display: flex;
    align-items: center;
    gap: 40px;
}
.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}
.logo h1 .dot {
    color: var(--primary-color);
}
.category-toggle {
    font-size: 20px;
    cursor: pointer;
}
.category-dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 12px;
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 14px;
    transition: 0.2s;
}
.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}
.dropdown-menu a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--primary-color);
}
.category-dropdown.show .dropdown-menu {
    display: block;
}
.search-bar {
    flex: 1;
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    height: 45px;
}
.search-select {
    padding: 0 20px;
    border: none;
    background: #f8f8f8;
    border-right: 1px solid #ddd;
    outline: none;
    font-family: inherit;
}
.search-bar input {
    flex: 1;
    padding: 0 20px;
    border: none;
    outline: none;
    font-family: inherit;
}
.search-bar button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    transition: background 0.3s;
}
.search-bar button:hover {
    background: #e02b12;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}
.action-item {
    position: relative;
    font-size: 26px;
    cursor: pointer;
}
.action-item .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.action-login {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.3;
}
.action-login i {
    font-size: 26px;
}
.action-login a:hover {
    color: var(--primary-color);
}

/* Nav */
.main-nav {
    background-color: var(--header-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.nav-links {
    display: flex;
    gap: 35px;
}
.nav-links li a {
    display: flex;
    align-items: center;
    padding: 18px 0;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}
.nav-links li a i {
    margin-right: 10px;
    font-size: 16px;
}

/* Main Content */
.main-content {
    background: #f5f5f5;
    padding: 30px 0;
}

/* Hero Section */
.hero-container {
    display: flex;
    gap: 20px;
}
.main-slider {
    flex: 2;
    background: #fff;
    padding: 50px 50px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.slider-item {
    display: flex;
    align-items: center;
    width: 100%;
}
.slider-content {
    flex: 1;
}
.brand {
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.slider-content h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.price-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}
.price-info strong {
    color: var(--text-dark);
}
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 3px;
}
.btn-primary:hover {
    background: #e02b12;
    color: #fff;
}
.slider-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.placeholder-img {
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.hero-side-banners {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.side-banner {
    background: #fff;
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.side-banner h4 {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}
.side-banner .light { font-weight: 300; }
.side-banner .highlight { color: var(--primary-color); }
.side-banner .price {
    font-size: 24px;
    font-weight: 700;
    color: #88c03d; /* Fluence price color */
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 40px;
}
.section-header h3 {
    font-size: 24px;
    font-weight: 600;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-card {
    background: #fff;
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: center;
}
.category-card .cat-img {
    width: 80px; height: 80px;
    display: block;
}
.cat-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
}
.cat-info ul li a {
    color: var(--text-light);
    font-size: 13px;
    line-height: 2;
}
.cat-info ul li a:hover {
    color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.product-card {
    background: #fff;
    padding: 20px;
    position: relative;
    border: 1px solid transparent;
    transition: 0.3s;
}
.product-card:hover {
    border-color: #e1e1e1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.product-card .badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
    z-index: 2;
}
.product-img {
    width: 200px;
    height: 250px;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
}
.product-img img {
    transition: opacity .3s ease;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    opacity: 0;
    transition: opacity .2s;
    z-index: 2;
    line-height: 1;
    padding: 0;
}
.product-card:hover .slider-btn { opacity: 1; }
.slider-prev { left: 5px; }
.slider-next { right: 5px; }
.slider-btn:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.product-img a { display: block; width: 100%; height: 100%; }
.product-actions-hover {
    position: absolute;
    top: auto;
    bottom: 120px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 10;
}
.product-card:hover .product-actions-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.product-actions-hover a {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
}
.product-actions-hover a:hover {
    background: #e02b27;
    color: #fff;
}

/* Tooltip styles */
.product-actions-hover a::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #222;
    color: #fff;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 20;
}
.product-actions-hover a::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    border-width: 4px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 20;
}
.product-actions-hover a:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}
.product-actions-hover a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.product-title {
    font-size: 14px;
    color: #0066cc;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}
.product-rating {
    color: var(--yellow);
    font-size: 12px;
    margin-bottom: 10px;
}
.product-rating span { color: var(--text-light); margin-left: 5px; }
.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}
.product-price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-left: 5px;
}

/* Footer Features */
.footer-features {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}
.features-container {
    display: flex;
    justify-content: space-between;
}
.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature i {
    font-size: 32px;
    color: var(--primary-color);
}
.feature h4 {
    font-size: 16px;
    margin-bottom: 5px;
}
.feature p {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer Widgets */
.footer-widgets {
    padding: 60px 0;
}
.widgets-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.widget h4 {
    font-size: 18px;
    margin-bottom: 25px;
}
.widget ul li {
    margin-bottom: 12px;
}
.widget ul li a {
    color: var(--text-light);
}
.newsletter-widget form {
    display: flex;
    margin-bottom: 20px;
}
.newsletter-widget input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    outline: none;
}
.newsletter-widget button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    color: var(--text-light);
    font-size: 16px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
}
.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}
.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}
.payment-methods span {
    margin-right: 10px;
}
.payment-methods i {
    font-size: 24px;
    color: var(--text-dark);
}

/* Breadcrumbs */
.breadcrumbs-container { background: #f5f5f5; padding: 15px 0; border-bottom: 1px solid #e1e1e1; font-size: 13px; color: #666; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: #ccc; }
.breadcrumbs li:last-child { color: var(--text-dark); }
.breadcrumbs a:hover { color: var(--primary-color); }

/* Product Page */
.product-page { background: #fff; padding-top: 40px; padding-left: 5px; padding-right: 5px; }
.product-top { display: flex; gap: 40px; margin-bottom: 60px; }
.product-gallery { flex: 1; display: flex; gap: 15px; }
.gallery-thumbnails { display: flex; flex-direction: column; gap: 10px; width: 80px; }
.gallery-thumbnails .thumb { border: 1px solid #ddd; padding: 5px; cursor: pointer; height: 80px; display: flex; align-items: center; justify-content: center; }
.gallery-thumbnails .thumb.active { border-color: var(--primary-color); }
.gallery-thumbnails .placeholder-img { width: 100%; height: 100%; font-size: 10px; display: flex; align-items: center; justify-content: center; background: #eaeaea; color: #999; }
.gallery-main { flex: 1; border: 1px solid #eee; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; }
.gallery-main .placeholder-img.large { width: 100%; height: 350px; font-size: 24px; display: flex; align-items: center; justify-content: center; background: #eaeaea; color: #999; }
.zoom-hint { text-align: center; font-size: 13px; color: #999; margin-top: 15px; }

.product-details { flex: 1.2; }
.product-header-mobile { display: none; }
.title-social { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.product-title-main { font-size: 28px; font-weight: 500; color: #333; line-height: 1.3; }
.social-share { display: flex; gap: 5px; }
.social-share a { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 2px; font-size: 14px; }
.bg-facebook { background: #3b5998; } .bg-twitter { background: #00aced; } .bg-google { background: #dd4b39; } .bg-linkedin { background: #007bb6; } .bg-vk { background: #4a76a8; } .bg-pinterest { background: #cb2027; }

.product-meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: #666; margin-bottom: 25px; }
.product-meta .rating { color: var(--yellow); font-size: 13px; }
.review-count { color: #666; margin-left: 5px; }
.product-meta a { color: #0066cc; }

.product-price-box { margin-bottom: 25px; }
.product-price-box .price { font-size: 32px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.product-price-box .status { font-size: 14px; color: #666; }
.product-price-box .in-stock { color: #88c03d; font-weight: 500; }

.product-short-desc { color: #666; font-size: 14px; line-height: 1.8; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.product-short-desc ul { list-style: disc; padding-left: 15px; }
.product-short-desc ul li { margin-bottom: 8px; }

.product-actions { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.quantity-selector { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.quantity-selector .label { font-size: 13px; color: #666; }
.qty-control { display: flex; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; width: 140px; height: 45px; }
.qty-control button { width: 40px; flex-shrink: 0; background: #f5f5f5; border: none; font-size: 18px; cursor: pointer; color: #666; }
.qty-control input { flex: 1; min-width: 0; border: none; text-align: center; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-weight: 600; outline: none; }
.btn-add-cart { background: var(--primary-color); color: #fff; border: none; height: 45px; padding: 0 40px; font-size: 16px; font-weight: 600; border-radius: 3px; cursor: pointer; transition: 0.3s; }
.btn-add-cart:hover { background: #e02b12; }
.action-icons { display: flex; gap: 10px; }
.action-icons a { width: 45px; height: 45px; border: 1px solid #ddd; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #666; font-size: 18px; }
.action-icons a:hover { color: var(--primary-color); border-color: var(--primary-color); }

.product-bottom-meta { font-size: 14px; color: #666; line-height: 1.8; }
.product-bottom-meta a { color: #0066cc; }

/* Product Tabs */
.product-tabs { margin-bottom: 60px; }
.tab-links { display: flex; justify-content: center; gap: 40px; border-bottom: 1px solid #eee; margin-bottom: 40px; }
.tab-links li a { display: block; padding-bottom: 15px; font-size: 20px; font-weight: 500; color: #999; border-bottom: 2px solid transparent; position: relative; top: 1px; }
.tab-links li.active a, .tab-links li a:hover { color: var(--text-dark); border-bottom-color: var(--text-dark); }
.tab-content { color: #666; line-height: 1.8; font-size: 15px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h4 { font-size: 18px; color: var(--text-dark); margin: 30px 0 15px; }
.tab-pane ul { list-style: disc; padding-left: 20px; margin: 15px 0; }
.tab-pane ul li { margin-bottom: 10px; }

/* Sections */
.section-title-center { text-align: center; font-size: 24px; font-weight: 600; margin-bottom: 30px; }
.instagram-section { margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid #eee; }
.related-products { margin-bottom: 60px; }
.section-header.center { display: flex; justify-content: center; position: relative; }
.section-header.center::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #eee; z-index: 0; }
.section-header.center h3 { position: relative; z-index: 1; margin: 0; }

/* ========================================= */
/* Responsive Design / Mobile & Tablets      */
/* ========================================= */

@media (max-width: 992px) {
    .header-container { flex-wrap: wrap; gap: 20px; }
    .search-bar { order: 3; width: 100%; flex: none; margin-top: 10px; }
    .main-nav { display: none; }
    
    .hero-container { flex-direction: column; }
    .hero-side-banners { flex-direction: row; }
    
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    
    .widgets-container { grid-template-columns: repeat(2, 1fr); }
    .features-container { flex-wrap: wrap; gap: 20px; }
    .feature { width: 48%; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .header-container { justify-content: space-between; }
    .logo h1 { font-size: 24px; }
    .action-login div { display: none; }
    .header-actions { gap: 15px; }
    .action-item { font-size: 22px; }
    .action-login i { font-size: 22px; }
    
    .main-slider { padding: 30px; }
    .slider-item { flex-direction: column-reverse; gap: 20px; text-align: center; }
    .slider-image { justify-content: center; width: 100%; }
    .slider-content h2 { font-size: 28px; }
    .hero-side-banners { flex-direction: column; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-header h3 { font-size: 18px; line-height: 1.4; display: flex; flex-direction: column; gap: 10px; }
    .section-header h3 span { margin-left: 0 !important; align-self: flex-start; font-size: 14px !important; }
    
    .feature { width: 100%; }
    .bottom-container { flex-direction: column; gap: 15px; text-align: center; }
    .payment-methods { justify-content: center; flex-wrap: wrap; }
    
    /* Product Page Responsive */
    .product-top { flex-direction: column; gap: 20px; }
    .product-gallery { flex-direction: column-reverse; }
    .gallery-thumbnails { flex-direction: row; width: 100%; justify-content: center; }
    .title-social { display: none; }
    .product-header-mobile { display: block; margin-bottom: 20px; }
    .product-header-mobile .product-title-main { font-size: 24px; }
    .tab-links { gap: 20px; }
    .tab-links li a { font-size: 16px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .widgets-container { grid-template-columns: 1fr; }
    
    .slider-content h2 { font-size: 24px; }
    .search-select { display: none; }
    .search-bar input { padding: 0 15px; }
    .search-bar button { padding: 0 15px; font-size: 14px; }
    .side-banner h4 { font-size: 18px; }
}

.action-wishlist.active { color: #e02b27 !important; }
.action-wishlist.active i { color: #e02b27; }
.action-wishlist.active:hover { background: #e02b27 !important; }
.action-wishlist.active:hover i { color: #fff; }
