/* =================================================================
   LINERGY CATALOG - UNIFIED STYLES
   ================================================================= */
:root {
    --grigio_testi: #666666;
    --arancio: #F5A623;
    --orange: #F39100;
    --text: #3F424F;
    --medium-gray: #404040;
    --light-gray: #F8F8F8;
    --primary-orange: #F5A623;
    --dark-blue: #1A2332;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-gray: #E0E0E0;
    --transition: all 0.3s ease;
    --white: #FFFFFF;
}

/* =================================================================
   1. BASE STYLES
   ================================================================= */
body {
    /*padding-top: 20px;*/
}

body.homepage {
    padding-top: 0;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:"wdth" 100;
    color: var(--text);
    font-size: 16px;
}

body.homepage h1,
body.homepage h2,
body.homepage h3,
body.homepage h4,
body.homepage h5 {
    font-weight: 600;
}

h1, h2, h3 {
    color: var(--dark-blue);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

.badge {
    font-size: 0.875rem;
}

.card {
    margin-bottom: 1.5rem;
}

.card-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.container-fluid {
    max-width: 2000px;
}

.boxed-width {
    max-width: 1600px;
    margin: auto;
}

.mb1000 {
    margin-bottom: 1000vw;
}

/* =================================================================
   2. NAVBAR AND HEADER
   ================================================================= */
.navbar {
    padding: 0.75rem 0;
}

.navbar-toggler {
    font-size: 1.2rem;
    border: none;
    width: 196px;
}

.header-logo {
    width: 140px;
}

.tel {
    cursor: pointer;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--orange) !important;
}

/* =================================================================
   3. SEARCH OVERLAY
   ================================================================= */
.search-overlay {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: var(--orange);
    align-items: center;
    justify-content: center;
}

.search-overlay.hidden {
    display: none !important;
}

.s-close {
    width: 40px;
    height: 40px;
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
}

.searchbox {
    display: block;
    width: 90%;
}

.searchbox input{
    display: block;
    width: 100%;
    height: 60px;
    border: none;
    margin-left: 1rem;
    color: white;
    font-weight: 300;
    font-size: 40px;
    background-color: transparent;
    outline: none;
}

.searchbox input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input-c {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.searchbox-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.searchbox-presets span{
    font-size: 32px;
    color: white;
    font-weight: 300;
    margin-right: 2rem;
    margin-left: 10px;
}

i.s-separator {
    height: 45px;
    display: inline-block;
    width: 1px;
    background-color: black;
}

/* =================================================================
   4. SIDE NAVIGATION MENU
   ================================================================= */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white, #FFFFFF);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #E0E0E0;
    background: #F5F5F5;
}

.menu-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1A2332;
}

.menu-logo img {
    max-height: 40px;
}

.menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-close:hover {
    color: var(--arancio);
    transform: rotate(90deg);
}

.menu-panel {
    position: absolute;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100% - 73px - 100px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    scrollbar-width: thin;
    scrollbar-color: #adb5bd transparent;
}

.menu-panel::-webkit-scrollbar {
    width: 6px;
}

.menu-panel::-webkit-scrollbar-track {
    background: transparent;
}

.menu-panel::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

.menu-panel::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

.menu-panel.active {
    transform: translateX(0);
}

.menu-panel.submenu {
    transform: translateX(100%);
}

.menu-panel.submenu.active {
    transform: translateX(0);
}

.submenu-header {
    background: #F5F5F5;
    padding: 1rem;
    border-bottom: 2px solid var(--arancio);
    position: sticky;
    top: 0;
    z-index: 10;
}

.submenu-header h3 {
    font-size: 1.1rem;
    color: #1A2332;
    margin: 0;
    padding-left: 0.5rem;
}

.back-button {
    background: none;
    border: none;
    color: var(--arancio);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-button span {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.back-button:hover {
    color: #1A2332;
}

.back-button:hover span {
    transform: translateX(-3px);
}

.menu-items {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #adb5bd transparent;
}

.menu-items::-webkit-scrollbar {
    width: 4px;
}

.menu-items::-webkit-scrollbar-track {
    background: transparent;
}

.menu-items::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

.menu-items::-webkit-scrollbar-thumb:hover {
    background: var(--arancio);
}

.menu-items li {
    margin: 0;
}

.menu-items a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border-left: 3px solid transparent;
    position: relative;
}

.menu-items a:hover,
.menu-items a.active {
    background: #F5F5F5;
    color: var(--arancio);
    border-left-color: var(--arancio);
}

.has-submenu {
    padding-right: 1rem;
}

.menu-arrow {
    font-size: 1.2rem;
    color: #666666;
    transition: transform 0.2s ease;
}

.has-submenu:hover .menu-arrow {
    transform: translateX(3px);
    color: var(--arancio);
}

.menu-divider {
    height: 1px;
    background: #E0E0E0;
    margin: 1rem 0;
}

.menu-footer {
    padding: 1.5rem;
    border-top: 1px solid #E0E0E0;
    background: #F5F5F5;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.menu-contact {
    font-size: 0.9rem;
    color: #666666;
}

.menu-contact p {
    margin: 0.5rem 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.overlay.active {
    display: block;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1A2332;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle:hover span {
    background: var(--arancio);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutToLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutToRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

.menu-panel.slide-in-right {
    animation: slideInFromRight 0.3s ease forwards;
}

.menu-panel.slide-out-left {
    animation: slideOutToLeft 0.3s ease forwards;
}

.menu-panel.slide-in-left {
    animation: slideInFromLeft 0.3s ease forwards;
}

.menu-panel.slide-out-right {
    animation: slideOutToRight 0.3s ease forwards;
}

/* =================================================================
   5. DROPDOWN MENU
   ================================================================= */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.bg-dark {
    background-color: #212529 !important;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item.text-white:hover {
    color: var(--orange) !important;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 250px;
    margin-left: 0.125rem;
}

.dropdown-submenu:hover > .submenu {
    display: block;
}

.dropdown-item .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

.dropdown-divider.bg-secondary {
    opacity: 0.3;
}

.dropdown-submenu > a::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.1em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

.dropdown-submenu:hover > a::after {
    color: var(--orange);
}

.btn-group .btn {
    min-width: 45px;
}

.btn-outline-light:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
}

.btn-outline-light.active {
    background-color: var(--orange);
    border-color: var(--orange);
}

/* =================================================================
   6. BREADCRUMB
   ================================================================= */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.breadcrumb {
    padding: 1.5rem 0;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.breadcrumb li::after {
    content: '>';
    margin-left: 1rem;
    color: var(--text-secondary);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-orange);
}

.breadcrumb .current {
    color: var(--primary-orange);
    font-weight: 600;
}

nav.breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    margin: 0;
    font-size: 0.9rem;
}

nav.breadcrumb ul li {
    display: flex;
    align-items: center;
}

nav.breadcrumb ul li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #6c757d;
    font-weight: bold;
}

nav.breadcrumb ul li a {
    color: var(--arancio);
    text-decoration: none;
    transition: color 0.2s;
}

nav.breadcrumb ul li a:hover {
    color: #c82333;
    text-decoration: underline;
}

nav.breadcrumb ul li.current {
    color: #6c757d;
}

/* =================================================================
   7. HERO SECTIONS
   ================================================================= */
body.homepage .hero-section {
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

body.homepage .video-container {
    position: relative;
    height: 100%;
}

body.homepage .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.homepage .hero-text-section {
    display: flex;
    align-items: center;
    position: absolute;
    margin-top: 4%;
    z-index: 10;
}

body.homepage .hero-text-section h1{
    font-size: 64px;
}

body.homepage .hero-text-section a.btn-cta{
    color: white;
    border-color: white;
}

body.homepage .hero-content {
    padding-left: 15%;
}

.hero-section.category-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.hero-section.category-hero.hero-default {
    background: linear-gradient(135deg, var(--arancio) 0%, #a02030 100%);
}

.hero-section.category-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section.category-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-section.category-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-section.category-hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* =================================================================
   8. BUTTONS AND LINKS
   ================================================================= */
body.homepage a.link-orange {
    color: var(--orange);
    text-decoration: none;
    font-size: 20px;
}

body.homepage a.link-orange > img {
    display: block;
    margin: auto;
    padding-top: 1rem;
}

body.homepage a.btn-cta {
    color: var(--medium-gray);
    text-decoration: none;
    border: 1px solid;
    border-color: #B9B9B9;
    padding: 1rem 2rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

body.homepage a.btn-cta > img {
    width: 16px;
    height: 16px;
    margin-left: 10px;
}

body.homepage a.btn-orange {
    color: white;
    background-color: var(--arancio);
    padding: 1rem 2rem;
    text-decoration: none;
}

body.homepage .btn-arrow {
    display: inline-flex;
    width: 30px;
    height: 30px;
    background-image: url('/static/homepage/freccia.png');
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 50%;
}

.btn-orange {
    background-color: var(--arancio);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--arancio);
}

.btn-orange:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-view-line {
    background: var(--arancio);
    border-color: var(--arancio);
    color: white;
    width: 100%;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-view-line:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.btn-view-product {
    background: var(--arancio);
    border-color: var(--arancio);
    color: white;
    width: 100%;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-view-product:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.download-button {
    background-color: var(--arancio);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.products-grid .product-card .btn-cta {
    background: transparent;
    border: 1px solid #B9B9B9;
    color: #404040;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 60%;
}

.products-grid .product-card .btn-cta i{
    color: var(--arancio);
}

.products-grid .product-card .btn-cta:hover {
    background: transparent;
    color: var(--arancio);
    border-color: var(--arancio);
}

/* =================================================================
   9. CATALOG LAYOUT STYLES
   ================================================================= */
.products-container {
    min-height: 80vh;
}

.catalog-header {
    background: linear-gradient(135deg, var(--arancio), #c82333);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 10px;
}

.catalog-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.catalog-controls input[type="search"] {
    flex: 1;
    max-width: 300px;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
}

.catalog-controls select {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    background: white;
}

.catalog-stats {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--arancio);
}

.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* =================================================================
   10. PRODUCT LINE CARDS
   ================================================================= */
.product-lines-grid {
    min-height: 600px;
}

.product-line-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.product-line-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.15);
    border-color: var(--arancio);
}

.product-line-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
}

.product-line-image img {
    max-width: 90%;
    max-height: 180px;
    object-fit: contain;
}

.no-image-placeholder {
    color: #ccc;
    font-size: 3rem;
    text-align: center;
}

.articles-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--arancio);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-line-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-line-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: center;
}

.product-line-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.product-line-characteristics {
    margin-top: auto;
    margin-bottom: 1rem;
}

.characteristic-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.product-line-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* =================================================================
   11. PRODUCT CARDS
   ================================================================= */
.products-grid {
    min-height: 600px;
}

.product-card {
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.product-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.product-image img {
    max-width: 90%;
    max-height: 180px;
    object-fit: contain;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-code {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-family: monospace;
}

.product-characteristics {
    margin-top: auto;
}

.product-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

body.homepage .main-product-card {
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.homepage .main-product-card > .row{
    height: 100%;
    display: flex;
    align-items: center;
}

body.homepage .product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.homepage .product-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

body.homepage .product-card {
    background: white;
    padding: 25px;
    border-radius: 0;
    min-height: 360px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

body.homepage .product-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

body.homepage .product-card .card-subtitle {
    font-size: 18px;
    line-height: 1.4;
}

body.homepage .card-icon-placeholder {
    width: 70%;
    height: auto;
    margin: auto;
}

body.homepage .card-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 30px;
    height: 30px;
    background-image: url('/static/homepage/freccia.png');
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-grid .product-card {
    border: none;
    transition: all 0.3s ease;
}

.products-grid .product-card:hover {
    transform: translateY(-5px);
}

.products-grid .product-card .product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.products-grid .product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.products-grid .product-card .new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F5A623;
    color: white;
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 0;
}

.products-grid .product-card .product-info {
    padding: 1.5rem 0;
    text-align: left;
}

.products-grid .product-card .product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A2332;
    margin-bottom: 0.5rem;
}

.products-grid .product-card .product-description {
    color: #666666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 75px;
    font-weight: 300;
}

.products-grid .product-card a {
    text-decoration: none;
    color: inherit;
}

.products-grid .product-card a:hover {
    text-decoration: none;
}

/* =================================================================
   12. FILTERS SIDEBAR
   ================================================================= */
.filters-sidebar {
    padding: 1.5rem;
    border-radius: 0;
    top: 100px;
    height: fit-content;
}

.filters-sidebar h5 {
    color: black;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.filters-sidebar h5 i{
    color: var(--arancio);
}

.filters-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

.filter-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h6 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-label {
    flex: 1;
    margin-right: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-checkbox:hover {
    background-color: rgba(0,0,0,0.05);
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0;
    accent-color: var(--primary-orange);
}

.filter-checkbox label {
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
}

.filter-count {
    color: #6c757d;
    font-size: 0.8rem;
}

.filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--arancio);
    border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

.filter-actions button,
.filter-actions a {
    transition: all 0.2s;
}

.filter-stats {
    border-left: 3px solid var(--arancio);
}

.filtro-badge {
    margin: 0 1rem;
}

.filtro-badge .filtro-elimina {
    color: black;
}

.filtri-reset-btn {
    color: var(--arancio);
    margin-left: auto;
    float: right;
}

/* =================================================================
   13. PRODUCT LINE DETAIL
   ================================================================= */
.product-line-header {
    background: linear-gradient(135deg, var(--arancio) 0%, #a02030 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.product-line-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-count-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 1rem;
}

.product-line-image-section {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.product-line-image-section img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.custom-template-content {
    min-height: 200px;
    margin-top: 3rem;
    padding-top: 3rem;
    padding: 2rem 0;
}

.products-section {
    padding: 2rem 0;
}

.products-list {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-code-item {
    display: inline-block;
    margin-right: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-code-link {
    color: #212529;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
}

.product-code-link:hover {
    background: var(--arancio);
    color: white;
    border-color: var(--arancio);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.products-count {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

.grouped-section {
    margin-bottom: 3rem;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--arancio);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--arancio);
}

/* Apply group-title styles to item titles */
.item-titles,
.titolo-accessori h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #404040;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;;
}

/* Certification icons styling */
.certifications-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.certifications-icons img {
    max-height: 27px;
    max-width: 30px;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    margin-right: 10px;
}

.certifications-icons img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.caratteristiche-list {
    font-weight: 300;
    color: #404040;
}

/* =================================================================
   14. PRODUCT DETAIL PAGE
   ================================================================= */
.page-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.product-header {
    margin: 2rem 4rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.product-code {
    color: var(--arancio);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-image-container {
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    /*border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}

.product-main-image:hover {
  /*  transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);*/
}

.section-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.section-header {
    background-color: var(--arancio);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
}

.tech-data-table {
    margin: 0;
}

.tech-data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
}

.tech-data-table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.tech-data-table tr:hover {
    background-color: #f8f9fa;
}

.variant-selector {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.variant-button {
    background-color: white;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.variant-button:hover {
    background-color: var(--arancio);
    border-color: var(--arancio);
    color: white;
}

.variant-button.active {
    background-color: var(--arancio);
    border-color: var(--arancio);
    color: white;
}

.accessory-item {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    background-color: white;
}

/*.accessory-item:hover {
    border-color: var(--arancio);
    background-color: #f8f9fa;
}*/

.accessory-code {
    color: var(--text-primary);
    font-weight: 600;
}

.info-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.badge-available {
    background-color: #28a745;
    color: white;
}

.badge-unavailable {
    background-color: var(--arancio);
    color: white;
}

.badge-limited {
    background-color: #ffc107;
    color: #212529;
}

.download-section {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.nav-tabs {
    border-bottom: 2px solid var(--arancio);
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--arancio);
}

.nav-tabs .nav-link.active {
    color: var(--arancio);
    background-color: transparent;
    border-color: var(--arancio);
}

.component-list {
    list-style: none;
    padding: 0;
}

.component-list li {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.component-list li:last-child {
    border-bottom: none;
}

.component-list a {
    color: var(--arancio);
    font-weight: 600;
    text-decoration: none;
}

.component-list a:hover {
    text-decoration: underline;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.component-item {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.component-item:hover {
    border-left-color: #dc3545;
    background-color: #f8f9fa;
}

.component-code {
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.accessory-group-header {
    position: relative;
    overflow: hidden;
}

.accessory-group-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}

.accessory-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 0.5rem;
}

.accessory-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.accessory-card p {
    font-size: 0.8rem;
    line-height: 1;
    color: var(--text-secondary);
    font-weight: 300;
}

.accessory-card:hover {
    /*border-left-color: var(--arancio);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
}

.accessory-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

.group-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin: 0.125rem;
    display: inline-block;
}

.availability-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.availability-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.availability-indicator.available::before {
    background-color: #28a745;
}

.availability-indicator.unavailable::before {
    background-color: var(--arancio);
}

.availability-indicator.limited::before {
    background-color: #ffc107;
}

.certification-badge {
    transition: all 0.3s ease;
    cursor: pointer;
}

.certification-badge:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.specification-text {
    max-height: 200px;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

.technical-doc-item {
    transition: background-color 0.2s ease;
}

.technical-doc-item:hover {
    background-color: #f8f9fa;
}

.installation-table th {
    background-color: var(--arancio);
    color: white;
    font-weight: 600;
}

.cad-download-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 0.5rem;
    padding: 1rem;
}

.cad-download-section .btn {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.technical-image-placeholder {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.technical-image-placeholder:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.conformity-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 0.5rem;
}

.conformity-section .btn-outline-success {
    border-color: white;
    color: white;
}

.conformity-section .btn-outline-success:hover {
    background-color: white;
    color: #28a745;
}

.conformity-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-left: 10%;
}

.conformity-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease;
}

.conformity-icon:hover {
    transform: scale(1.1);
}

.conformity-icon img {
    max-width: 30px;
    object-fit: contain;
    display: block;
}

.conformity-icon .icon-title {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/*.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}*/

.clickable-card:active {
    transform: translateY(-2px);
}

.modal-body img.img-fluid {
    transition: transform 0.3s ease;
}

.modal-body img.img-fluid:hover {
    transform: scale(1.05);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dc3545;
}

.accessory-thumbnail,
.component-thumbnail {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    transition: transform 0.2s ease;
}

.clickable-card:hover .accessory-thumbnail,
.clickable-card:hover .component-thumbnail {
    transform: scale(1.05);
}

/* =================================================================
   15. PRODUCT GALLERY
   ================================================================= */
.product-gallery {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-orange);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image {
    flex: 1;
}

.main-image img {
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

/* =================================================================
   16. RESULTS SECTIONS (COLLAPSIBLE)
   ================================================================= */
.results-sections {
    margin-top: 2rem;
}

.results-section {
    background: white;
    margin-bottom: 1rem;
    overflow: hidden;
}

.results-header {
    padding: 1rem 1.5rem;
    display: flex;
    border-bottom: 1px solid var(--border-gray);
    border-top: 1px solid var(--border-gray);
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.results-header:hover {
    background: #e8e8e8;
}

.results-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.results-header .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.results-header .toggle-icon.rotated {
    transform: rotate(180deg);
}

.results-content {
    padding: 1.5rem;
    display: none;
}

.results-content.active {
    display: block;
}

.product-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem 3rem;
    margin-top: 1rem;
}

.product-code {
    font-weight: 400;
    color: var(--text-primary);
}

.product-code a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.product-code a:hover {
    color: var(--primary-orange);
}

/* =================================================================
   17. PRODUCT FUNCTIONS PAGE
   ================================================================= */
.table-hover tbody tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.card-header h3 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .sticky-sidebar {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

.sticky-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sticky-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.list-group-item.active {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

/* =================================================================
   18. HOMEPAGE SECTIONS
   ================================================================= */
body.homepage .security-section {
    border-bottom: 1px solid #e0e0e0;
}

body.homepage .small {
    font-size: 18px;
}

body.homepage footer .small {
    font-size: .875em;
}

body.homepage .carousel {
    margin-bottom: 2rem;
}

body.homepage .carousel-item img {
    width: 100%;
    height: auto;
}

body.homepage .products-section {
    background-color: #fff;
}

body.homepage .gateway-world {
    background-color: #fff;
}

body.homepage .g-text {
    padding: 2rem;
}

body.homepage .g-text h4 {
    margin-bottom: 1rem;
}

.cta-section {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.cta-section h3 {
    color: #212529;
    font-weight: 600;
}

body.homepage .cta-section {
    background-color: #fafafa;
}

body.homepage .cta-section h3 {
    font-weight: 400;
    line-height: 1.3;
    color: #333;
}

/* =================================================================
   19. FOOTER
   ================================================================= */
.footer {
    background-color: #333 !important;
    font-size: 0.9rem;
    padding-top: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    width: 229px;
    margin: 3rem;
}

.footer h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.footer ul li {
    font-size: 0.85rem;
}

.social-links a {
    display: inline-flex;
    width: 31px;
    height: 31px;
    background: rgba(255, 255, 255, 1);
    border-radius: 10%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 7px;
}

.social-links .fab {
    color: var(--medium-gray);
}

.social-links a:hover {
    background: var(--orange);
}

.social-links a:hover .fab {
    color: white;
}

.footer-bottom {
    background-color: #000 !important;
    border-top: 1px solid #444;
}

/* =================================================================
   7. ADMIN STYLES (from admin templates)
   ================================================================= */

/* Admin Header - Unified style with Linergy Orange */
.admin-header {
    background: linear-gradient(135deg, #F5A623 0%, #e09615 100%);
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.admin-header .btn {
    margin-left: 1rem;
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Logout Button */
.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Admin Tables */
.admin-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table table {
    margin: 0;
}

.admin-table th {
    background: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

/* Admin Action Buttons */
.btn-edit {
    background: #ffc107;
    color: #212529;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.btn-edit:hover {
    background: #ffca2c;
    color: #212529;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-preview {
    background: #0d6efd;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.btn-preview:hover {
    background: #0b5ed7;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Visibility Toggle Icon */
.visibility-toggle {
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.visibility-toggle.visible {
    color: #28a745;
}

.visibility-toggle.visible:hover {
    transform: scale(1.2);
}

.visibility-toggle.hidden {
    color: #6c757d;
}

.visibility-toggle.hidden:hover {
    transform: scale(1.2);
    color: #dc3545;
}

/* Filter Toggle */
.filter-toggle {
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.filter-toggle.enabled {
    color: #28a745;
}

.filter-toggle.disabled {
    color: #6c757d;
}

.filter-toggle:hover {
    transform: scale(1.2);
}

/* Admin Badges */
.product-count {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.order-badge {
    background: #17a2b8;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.published {
    background: #d4edda;
    color: #155724;
}

.status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

.filter-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-status.enabled {
    background: #d4edda;
    color: #155724;
}

.filter-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.custom-template-indicator {
    color: #ffc107;
    margin-left: 0.5rem;
}

/* Admin Info Cards */
.info-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #F5A623;
}

.stats-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    font-size: 1.5rem;
    color: #6c757d;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Alert Styles */
.alert-info {
    border-radius: 10px;
    border: none;
}

/* Category Link */
.category-link {
    transition: all 0.2s ease;
}

.category-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* =================================================================
   8. ADMIN LOGIN PAGE STYLES (from admin/login.html)
   ================================================================= */

.login-header {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.login-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 0 15px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.login-card .form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--arancio) 0%, #a02030 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.login-card .form-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-card h2 {
    text-align: center;
    color: #343a40;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--arancio);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.input-group .form-control {
    padding-left: 3rem;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--arancio) 0%, #a02030 100%);
    border: none;
    border-radius: 8px;
    color: white;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.login-footer {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--arancio);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--arancio);
    border-color: var(--arancio);
}

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

/* =================================================================
   9. ADMIN EDIT PAGE STYLES (from admin/product_line_edit.html)
   ================================================================= */

.edit-header {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.edit-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.edit-form-container {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.grapesjs-container {
    height: 700px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

#gjs {
    border: none;
    height: 100%;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.btn-toolbar {
    gap: 0.5rem;
}

/* GrapesJS custom styles */
.gjs-one-bg {
    background-color: #343a40;
}

.gjs-two-color {
    color: #ffffff;
}

.gjs-three-bg {
    background-color: #495057;
}

.gjs-four-color {
    color: #ffffff;
}

.gjs-pn-panel {
    background-color: #343a40;
}

.gjs-block {
    min-height: 60px;
    padding: 10px;
}

.gjs-block-label {
    font-size: 0.75rem;
}

.gjs-pn-commands {
    min-height: 40px;
}

.gjs-pn-options {
    right: 0;
}

.gjs-pn-views {
    right: 200px;
    width: 200px;
}

.gjs-pn-views-container {
    height: calc(100% - 40px);
    overflow-y: auto;
}

#blocks {
    min-width: 200px;
}

.gjs-block-category .gjs-title {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    padding: 8px;
}

.gjs-cv-canvas {
    background-color: #f5f5f5;
}

.gjs-frame {
    border: 1px solid #dee2e6;
}

.panel__top {
    display: flex;
    justify-content: space-between;
    background: #343a40;
    border-bottom: 1px solid #495057;
    padding: 5px 10px;
    height: 40px;
    align-items: center;
}

.panel__basic-actions,
.panel__devices {
    display: flex;
    gap: 5px;
}

.gjs-pn-btn {
    background: #495057 !important;
    border: 1px solid #6c757d !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    cursor: pointer;
    transition: all 0.2s;
}

.gjs-pn-btn:hover {
    background: #6c757d !important;
}

.gjs-pn-btn.gjs-pn-active {
    background: #007bff !important;
    border-color: #0056b3 !important;
}

.gjs-block-categories {
    padding: 10px;
}

.gjs-block-category {
    margin-bottom: 10px;
}

#styles-container,
#traits-container,
#layers-container {
    color: white;
}

.gjs-sm-sector,
.gjs-trt-trait,
.gjs-layer {
    background: transparent;
    color: white;
}

.gjs-field input,
.gjs-field select,
.gjs-field textarea {
    background: #495057;
    border: 1px solid #6c757d;
    color: white;
}

/* Sample products list in editor */
.sample-products-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.5rem;
}

.sample-product-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.sample-product-item:last-child {
    border-bottom: none;
}

.sample-product-item:hover {
    background-color: #f8f9fa;
}

.sample-products-list::-webkit-scrollbar {
    width: 8px;
}

.sample-products-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sample-products-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.sample-products-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   ADMIN MENU MANAGEMENT STYLES
   ======================================== */

/* Menu-specific styles */
.menu-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
}

/* Indentation for hierarchy */
.menu-item[data-level="1"] .menu-item-content { padding-left: 40px; }
.menu-item[data-level="2"] .menu-item-content { padding-left: 60px; }
.menu-item[data-level="3"] .menu-item-content { padding-left: 80px; }

.menu-item-icon {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #495057;
    flex-shrink: 0;
}

.menu-item-details {
    flex: 1;
    min-width: 0;
}

.menu-item-title {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item-url {
    font-size: 0.8rem;
    color: #6c757d;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-item-meta {
    font-size: 0.75rem;
    color: #999;
}

.menu-item-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-item-type.static {
    background: #e3f2fd;
    color: #1976d2;
}

.menu-item-type.category {
    background: #e8f5e9;
    color: #388e3c;
}

.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: #e9ecef;
}

.btn-parent {
    color: #6c757d;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Drag handle styles */
.drag-handle {
    cursor: grab;
    cursor: -webkit-grab;
    color: #adb5bd;
    transition: color 0.2s ease;
    margin-right: 5px;
}

.drag-handle:hover {
    color: #495057;
}

.drag-handle:active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Sortable ghost class */
.sortable-ghost {
    opacity: 0.4;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.sortable-ghost .menu-item-content {
    background: transparent;
}

/* =================================================================
   20. CUSTOM PRODUCT DETAIL SECTIONS (Italo's CSS)
   ================================================================= */
.product-detail-section{
    margin-bottom:3rem;
    padding-top:0px;
    padding-right:1.5rem;
    padding-left:1.5rem;
}

.product-detail-section:not(:last-child){
    border-bottom-width:1px;
    border-bottom-style:solid;
    border-bottom-color:rgb(222, 226, 230);
    padding-bottom:1rem;
    margin-bottom:1.5rem;
}

.color-swatches{
    display:flex;
    row-gap:1rem;
    column-gap:1rem;
    flex-wrap:wrap;
    margin-top:1.5rem;
}

.color-swatch{
    width:80px;
    height:80px;
    border-radius:8px;
    cursor:pointer;
    transition:all 0.3s ease;
    position:relative;
}

.color-swatch:hover{
    transform:scale(1.05);
}

.color-swatch.white{
    background-color:rgb(255, 255, 255);
}

.color-swatch.black{
    background-color:rgb(0, 0, 0);
}

.color-swatch.blue{
    background-color:rgb(0, 102, 204);
}

.color-swatch.cyan{
    background-color:rgb(0, 204, 204);
}

.color-swatch.green{
    background-color:rgb(0, 204, 102);
}

.color-swatch.yellow{
    background-color:rgb(255, 204, 0);
}

.color-swatch.red{
    background-color:rgb(204, 0, 0);
}

.test-card{
    border-radius:8px;
    padding:1.5rem;
    height:100%;
    transition:all 0.3s ease;
}

.test-card:hover{
    transform:translateY(-5px);
    box-shadow:rgba(0, 0, 0, 0.1) 0px 5px 15px;
}

.test-card-icon{
    width:100%;
    height:180px;
    background-color:rgb(255, 255, 255);
    border-radius:8px;
    margin-bottom:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
}

.test-card-icon img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.test-card h4{
    font-size:1.1rem;
    margin-bottom:0.75rem;
    color:var(--dark-blue);
}

.test-card p{
    font-size:0.95rem;
    color:var(--text-secondary);
    margin-bottom:0px;
}

.battery-chart{
    border-radius:8px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.tech-specs-list{
    list-style-type:none;
    padding-left:0px;
}

.tech-specs-list li{
    padding-top:0.2rem;
    padding-bottom:0.2rem;
    padding-right:0px;
    padding-left:1.5rem;
    position:relative;
    color:var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 300;
}

.tech-specs-list li::before{
    content:"•";
    color:var(--primary-orange);
    font-weight:bold;
    position:absolute;
    left:0px;
}

.installation-img{
    border-radius:8px;
    padding-top:2rem;
    padding-right:2rem;
    padding-bottom:0;
    padding-left:2rem;
    height:250px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.installation-img img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.note-text{
    font-size:0.9rem;
    font-style:italic;
    color:var(--text-secondary);
    margin-top:1rem;
}

#i0k9l{
    width:100%;
}

#igpow {
    max-height: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
}

.grid-consumi{
    flex-grow: 9;
    grid-template-columns: 2fr 1fr;
    display: grid;
    max-width: 400px;
}

.valore{
    font-weight: bold;
}

.prestazioni {
    display: grid;
    margin-top: 2em;
}

.installazione-singola {
    grid-template-columns: 1fr 1fr;
}

.prestazioni > div {
    border-bottom: 1px solid rgb(222, 226, 230);
    padding: 0.2em;
}

.prestazioni.installazione-multipla {
    grid-template-columns: 1fr 1fr 1fr;
}

.installazione-singola >div:nth-last-child(-n+2),
.prestazioni.installazione-multipla >div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.img-centr{
    display: block;
    margin: auto;
}

.consumi{
    display: flex;
    gap: 1em;
    align-items: center;
    margin-top: 1em;
}

.consumi .grid-consumi > div{
    padding: 0.5em 0.2em;
}

.consumi .grid-consumi > div:not(:nth-last-child(-n+2)){
    border-bottom: 1px solid rgb(222, 226, 230);
}

.legenda {
    text-decoration: underline;
    display: block;
    text-decoration-thickness: 0.2em;
}

.legenda.bus {
    text-decoration-color: red;
}

.legenda.loop {
    text-decoration-color: #9d9d9c;
}

.grid-specifiche{
    grid-template-columns: 3fr 2fr;
    gap: 0 1em;
    display: grid;
    width: 600px;
}

.grid-specifiche>div:nth-child(4n),
.grid-specifiche>div:nth-child(4n+1){
    background-color: rgba(var(--bs-light-rgb),var(--bs-bg-opacity));
}

.causa-effetto-row {
    margin: 2em 0;
    justify-content: center;
}

.causa-effetto-row > div {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.causa-effetto-row > div img {
    height: 3em;
}

.causa-effetto-row > div img.ico-sec {
    margin-bottom: 0.5em;
}

.causa-effetto-row b{
    font-weight: 600;
}

.colore-blu * {
    color: #49a3cc;
}

.accordion {
    margin: 2em 0;
}

.alt-color {
    color: var(--arancio);
    margin-right: 0.5em;
}

.accordion-button:not(.collapsed) {
    color: var(--arancio);
    background-color: #fdedd3;
}

.accordion-button:focus {
    border-color: #fdedd3;
    box-shadow: 0 0 0 0.25rem #fdedd3 !important;
}
#btn-back-to-top {
    background-color: var(--arancio);
    border-color: var(--arancio);
}


.products-grid .product-card {
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    padding-right: 40px;
}

.btn-orange:hover {
    background-color: var(--arancio);
    border-color: var(--arancio);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid;
    border-color: var(--arancio);
}


/*.accessory-item:hover {
    border: none;
    background-color: #fff;
}*/

@media (max-width: 768px) {
    body.homepage .hero-text-section {
         padding: 0; 
    }
    
    body.homepage .hero-text-section px-5 {
         padding-right: 1rem !important;
        padding-left: 1rem !important;
    }
    
    body.homepage .hero-text-section py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

body.homepage .product-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px 25px;
}


body.homepage .card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.section-card:hover {
    box-shadow: none;
}

.accessori .section-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.accessory-item:hover {
    border-color: none;
    background-color: #fff;
}


@media (max-width: 768px) {
    .accessory-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
/* =================================================================
   21. RESPONSIVE STYLES
   ================================================================= */
@media (max-width: 991px) {
    body.homepage .hero-content {
        padding-left: 10%;
    }

    body.homepage .hero-section {
        min-height: auto;
    }

    body.homepage .hero-text-section {
        margin-top: 0;
    }

    body.homepage .g-text {
        margin-top: 2rem;
    }

    .footer-logo img {
        width: 170px;
        margin: 0rem;
    }

    .searchbox input{
        height: 30px;
        font-size: 20px;
    }

    .search-input-c {
        margin-bottom: 2rem;
        padding-bottom: 0.5rem;
    }

    .searchbox-presets span{
        font-size: 16px;
        margin-right: 1rem;
        margin-left: 5px;
    }

    i.s-separator {
        height: 23px;
        width: 1px;
    }

    .dropdown-submenu .submenu {
        position: static;
        display: none;
        padding-left: 1rem;
        box-shadow: none;
    }

    .dropdown-submenu.open > .submenu {
        display: block;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .consumi{
        max-width: 900px;
    }

    .causa-effetto-row > div.col-arr img {
        transform: rotateZ(90deg);
        margin: 1.5em 0 2em;
    }
}

@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu:hover > .submenu {
        display: block;
    }

    .prod-wall-plus{
        aspect-ratio: 25/8;
        height:160px;
        object-fit: contain;
    }

    .w-lg-50{
        width:50%;
    }

    .hero-section.category-hero {
        min-height: 300px;
    }

    .hero-section.category-hero h1 {
        font-size: 2.5rem;
    }

    .hero-section.category-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 1rem;
        max-height: none;
    }

    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-controls input[type="search"] {
        max-width: none;
    }

    .sticky-sidebar {
        margin-bottom: 2rem;
    }

    .navbar-toggler {
        width: auto;
    }

    .header-logo {
        width: 100px;
        margin-top: 10px;
    }

    body.homepage .hero-text-section {
        text-align: center;
        padding: 40px 20px;
        background-color: var(--medium-gray);
        display: flex;
        align-items: center;
        position: relative;
        margin-top: 0;
    }

    body.homepage .hero-text-section h1{
        font-size: 2rem;
    }

    body.homepage .hero-content {
        padding-left: 0;
        margin: 0 auto;
    }

    body.homepage .product-info {
        padding: 0 3rem;
        padding-bottom: 2rem;
    }

    body.homepage .btn-arrow {
        margin-left: auto;
    }

    .product-gallery {
        flex-direction: column-reverse;
    }

    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
    }

    .thumbnail {
        min-width: 80px;
    }

    .product-header {
        margin: 1rem 1rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-codes {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid .product-card .product-image {
        height: 150px;
    }

    .products-grid .product-card .product-info {
        padding: 1rem;
    }

    .products-grid .product-card .product-title {
        font-size: 1rem;
    }

    .products-grid .product-card .product-description {
        font-size: 0.85rem;
        min-height: auto;
    }

    .conformity-icons {
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
    }

    .conformity-icon img {
        max-height: 40px;
        max-width: 60px;
    }

    .conformity-icon .icon-title {
        font-size: 0.7rem;
    }

    .hero-section.category-hero {
        min-height: 250px;
    }

    .hero-section.category-hero h1 {
        font-size: 2rem;
    }

    .hero-section.category-hero p {
        font-size: 1rem;
    }

    .hero-section.category-hero .hero-content {
        padding: 30px 20px !important;
    }

    .cta-section .row {
        text-align: center;
    }

    .cta-section .col-xxl-2 {
        text-align: center !important;
        margin-top: 20px;
    }

    .product-image-container {
        margin: 1.5rem auto;
        max-width: 100%;
    }

    h2{
        font-size:1.5rem;
    }

    .test-card-icon{
        height:150px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }

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