/* ==========================================================================
   FILICORPORATION PRESTASHOP 8 - PREMIUM MODERN THEME OVERHAUL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --fc-primary: #0066ff;
    --fc-primary-gradient: linear-gradient(135deg, #0066ff 0%, #6600ff 100%);
    --fc-accent: #ff3366;
    --fc-dark: #0f172a;
    --fc-gray-bg: #f8fafc;
    --fc-card-border: rgba(226, 232, 240, 0.8);
    --fc-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --fc-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --fc-shadow-hover: 0 16px 36px rgba(0, 102, 255, 0.14);
    --fc-radius: 14px;
}

/* Global Styles & Typography */
body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--fc-dark);
}

a {
    color: var(--fc-primary);
    transition: all 0.2s ease;
}
a:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* Header & Announcement Bar */
#header {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#header .header-nav {
    background: var(--fc-dark) !important;
    color: #f8fafc;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    border-image: var(--fc-primary-gradient) 1;
}

#header .header-nav a {
    color: #cbd5e1 !important;
}
#header .header-nav a:hover {
    color: #ffffff !important;
}

#header .logo {
    max-height: 75px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}
#header .logo:hover {
    transform: scale(1.02);
}

/* Main Menu Navigation */
.menu, #top-menu {
    font-weight: 600;
    font-size: 15px;
}

.menu > ul > li > a, #top-menu > li > a {
    color: #334155 !important;
    padding: 12px 18px !important;
    position: relative;
    transition: color 0.2s ease;
}

.menu > ul > li:hover > a, #top-menu > li:hover > a {
    color: var(--fc-primary) !important;
}

/* Search Bar & User Cart */
#search_widget form input[type=text] {
    border-radius: 30px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 20px !important;
    background: #f1f5f9;
    transition: all 0.3s ease;
}
#search_widget form input[type=text]:focus {
    background: #ffffff;
    border-color: var(--fc-primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15) !important;
}

.header-cart, #_desktop_cart .blockcart {
    background: var(--fc-primary-gradient) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}
.header-cart:hover, #_desktop_cart .blockcart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}
#_desktop_cart a {
    color: #ffffff !important;
    font-weight: 600;
}

/* Homepage Hero Carousel */
#carousel {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: var(--fc-shadow-md) !important;
    margin-top: 15px;
    margin-bottom: 30px;
    background: #ffffff;
}

#carousel .carousel-item figure img {
    border-radius: 20px;
}

#carousel .carousel-control-prev, #carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
#carousel .carousel-control-prev:hover, #carousel .carousel-control-next:hover {
    background: #ffffff !important;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Section Headings */
.products-section-title, .h2.products-section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 26px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.products-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--fc-primary-gradient);
    border-radius: 4px;
}

/* Product Cards & Grid */
.products {
    margin-top: 20px;
}

.product-miniature {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid var(--fc-card-border) !important;
    padding: 16px !important;
    margin-bottom: 25px !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: var(--fc-shadow-sm) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-miniature:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--fc-shadow-hover) !important;
    border-color: rgba(0, 102, 255, 0.3) !important;
}

.product-thumbnail {
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: block;
    margin-bottom: 12px;
}

.product-thumbnail img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    object-fit: contain;
    width: 100%;
}

.product-miniature:hover .product-thumbnail img {
    transform: scale(1.07);
}

.product-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 8px 0 !important;
}
.product-title a {
    color: #1e293b !important;
}
.product-title a:hover {
    color: var(--fc-primary) !important;
}

.product-price-and-shipping {
    margin-top: auto;
    padding-top: 10px;
}

.price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--fc-dark) !important;
}

.discount-percentage, .has-discount .discount-percentage {
    background: linear-gradient(135deg, #ff3366, #ff6600) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    display: inline-block;
    margin-left: 6px;
}

/* Custom Text & Legal Notice Block */
#custom-text {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: var(--fc-shadow-sm) !important;
    padding: 30px !important;
    margin: 40px 0 !important;
}

#custom-text h3 {
    color: var(--fc-primary) !important;
    font-size: 22px !important;
    margin-bottom: 14px !important;
}

#custom-text p {
    color: #475569 !important;
    line-height: 1.6 !important;
    font-size: 14px !important;
}

/* Footer Styling */
#footer {
    background: var(--fc-dark) !important;
    color: #94a3b8 !important;
    padding-top: 50px !important;
    border-top: 4px solid transparent;
    border-image: var(--fc-primary-gradient) 1;
    margin-top: 50px;
}

#footer h4, #footer .h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

#footer a {
    color: #cbd5e1 !important;
}
#footer a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

#footer .footer-container {
    padding-bottom: 30px;
}

.footer-bottom, #footer .text-sm-center {
    border-top: 1px solid #334155;
    padding: 20px 0;
    color: #64748b;
    font-size: 13px;
}


/* ==========================================================================
   CENTERED PRODUCT TABS & DETAILS (Descrizione & Dettagli Prodotto)
   ========================================================================== */

.product-tabs, .tabs, .product-container .tabs {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

/* Center Tab Headers */
.product-tabs .nav-tabs, .tabs .nav-tabs, .nav-tabs.js-product-tabs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin-bottom: 25px !important;
    padding-bottom: 5px !important;
}

.product-tabs .nav-tabs .nav-item, .tabs .nav-tabs .nav-item {
    float: none !important;
    display: inline-block !important;
    margin: 0 10px !important;
}

.product-tabs .nav-link, .tabs .nav-link, .nav-tabs .nav-link {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    padding: 12px 24px !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 8px 8px 0 0 !important;
}

.product-tabs .nav-link:hover, .tabs .nav-link:hover {
    color: var(--fc-primary) !important;
    background: rgba(0, 102, 255, 0.04) !important;
}

.product-tabs .nav-link.active, .tabs .nav-link.active, .nav-tabs .nav-link.active {
    color: var(--fc-primary) !important;
    border-bottom: 3px solid var(--fc-primary) !important;
    background: transparent !important;
}

/* Center Tab Content Container & Text */
.tab-content, .product-tabs .tab-content, #tab-content {
    text-align: center !important;
    max-width: 960px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
}

.product-description, #description, #product-details, .product-features {
    text-align: center !important;
    margin: 0 auto !important;
}

.product-features, .product-features dl {
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.product-features dl dt, .product-features dl dd {
    display: inline-block !important;
    margin: 5px 10px !important;
    text-align: center !important;
}
