.absolute-center-hv {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    z-index: 2;
}

.sec-tit h2 {
    font-family: "Playfair", serif;
    color: black;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .5s;
    font-size: 50px;
    line-height: 40px;
}

.sec-tit p {
    font-family: 'Lato', sans-serif;
    color: black;
    text-transform: uppercase;
    font-size: 10px;
    display: block;
    width: 160px;
    padding: 7px;
    margin: auto !important;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Store Container */
.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.header-spacer,
.header-actions {
    flex: 1;
    display: flex;
}

.header-actions {
    justify-content: flex-end;
    gap: 15px;
}

.store-header .sec-tit {
    flex: 2;
    text-align: center;
    margin: 0;
}

.btn-profile-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.btn-profile-header:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-profile-header svg {
    flex-shrink: 0;
}

/* Category Navigation */
.category-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.category-nav-item {
    padding: 12px 24px;
    background: white;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 1px;
}

.category-nav-item:hover {
    background: #f8f8f8;
    color: #000;
    border-color: #000;
}

.category-nav-item.active {
    background: #333;
    color: white;
    border-color: #333;
}

.category-nav-item.active:hover {
    background: #555;
    border-color: #555;
}

/* Color Dots */
.color-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-left: 5px;
}

.color-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: help;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: #333;
}

/* Wishlist Toggle Button (Relocated to Actions List) */
.wishlist-toggle {
    background: transparent;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    height: 32px;
}

.wishlist-toggle:hover {
    border-color: #e91e63;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

.wishlist-toggle.in-wishlist {
    color: #e91e63;
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

.wishlist-toggle svg {
    transition: fill 0.3s ease;
}

/* Special handling for white color */
.color-dot[style*="#FFFFFF"],
.color-dot[style*="#ffffff"] {
    border-color: #999;
}

/* Filters Section */
.store-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.5px;
}

.search-input,
.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #333;
}

.btn-reset {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    letter-spacing: 0.5px;
}

.btn-reset:hover {
    background: #555;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.badge-opzionato {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
    letter-spacing: 0.5px;
}

.product-hover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    color: #333;
    pointer-events: none;
    /* Let clicks pass through to the link */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-hover-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 63.5%;
    /* Aspect ratio 1024x655 */
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Image Variant Toggle (Day/Night) */
.product-link-wrapper {
    position: relative;
    overflow: hidden;
}

.img-variant-toggle {
    position: absolute;
    bottom: 15px !important;
    right: 15px !important;
    top: auto !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.img-variant-toggle:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-icon {
    display: none;
    color: #666;
}

.moon-icon {
    display: block;
    color: #FFF;
}

.img-variant-toggle.is-day .sun-icon {
    display: block;
}

.img-variant-toggle.is-day .moon-icon {
    display: none;
}

.img-variant-toggle.is-day {
    background: #fffbe6;
    border-color: #666;
}


.product-info {
    padding: 20px;
}

.product-title {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.product-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.detail-separator {
    color: #ccc;
    font-size: 12px;
}

.detail-item {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Active Options in Account Page */
.active-options-list {
    margin-top: 1.5rem;
}

.active-option-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.active-option-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.option-timer .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    background-color: var(--primary-color, #007bff) !important;
}

.option-info strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 2px;
}

.detail-item strong {
    color: #333;
    font-weight: 600;
}

.product-actions-list {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-list-download,
.btn-list-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #000;
    color: #fff;
    border: none;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-list-download:hover,
.btn-list-action:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-add-to-quote {
    background: #333;
}

.btn-add-to-quote:hover {
    background: #000;
}

.btn-list-download svg,
.btn-list-action svg {
    stroke-width: 2.5px;
}

/* Messages */
.error-message,
.empty-message,
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 40px 0;
}

.error-message p,
.empty-message p,
.no-results p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .sec-tit h2 {
        font-size: 40px;
        line-height: 35px;
    }
}

@media (max-width: 768px) {
    .store-container {
        padding: 30px 15px;
    }

    .store-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .header-spacer {
        display: none;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .btn-profile-header {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        justify-content: center;
    }

    .category-navigation {
        gap: 10px;
        padding: 15px;
    }

    .category-nav-item {
        padding: 10px 16px;
        font-size: 12px;
    }

    .store-filters {
        padding: 15px;
    }

    .filter-group {
        min-width: 150px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sec-tit h2 {
        font-size: 32px;
        line-height: 30px;
    }

    .product-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .category-navigation {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }

    .category-nav-item {
        text-align: center;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .store-filters {
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
    }

    .sec-tit h2 {
        font-size: 28px;
    }
}

/* Confirmation Overlay */
.fum-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.fum-confirmation-content {
    background: white;
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
}

.fum-confirmation-icon {
    margin-bottom: 20px;
    color: #4caf50;
    display: flex;
    justify-content: center;
}

.fum-confirmation-message {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Slabs Section in Single Product */
.product-slabs-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    clear: both;
}

.slabs-title {
    font-family: 'Playfair', serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.slabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.slab-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.slab-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slab-thumb {
    position: relative;
    padding-top: 66%;
    background: #f9f9f9;
}

.slab-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slab-item:hover .slab-overlay {
    opacity: 1;
}

.slab-info-small {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.slab-info-small span {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-slab-view {
    width: 32px;
    height: 32px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-slab-view:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}

.slabs-contact-notice {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.slabs-contact-notice p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slabs-contact-notice a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #000;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.slabs-contact-notice a:hover {
    background: #000;
    color: #fff;
}

/* Welcome Page Feature List */
.welcome-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.welcome-feature-list li {
    display: flex;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 8px;
    opacity: 0.8;
}

.welcome-feature-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #000;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Welcome Page Row Heights */
.welcome-row-height {
    min-height: auto;
}

.welcome-row-height-large {
    min-height: auto;
}

@media (max-width: 991.98px) {
    .wrapper-tipologia_materiale a {
        height: 150px !important;
    }

    .welcome-row-height {
        min-height: auto !important;
        height: auto !important;
    }
}

@media (min-width: 992px) {
    .welcome-row-height {
        height: 35vh;
        overflow: hidden;
    }

    .welcome-row-height-large {
        height: 55vh;
        overflow: hidden;
    }
}

.btn-welcome-red {
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}

.btn-welcome-red:hover {
    background-color: #c82333 !important;
    color: #fff !important;
}

.welcome-nav-label {
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 50px;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 1px;
    padding: 5px 15px;
}

@media (max-width: 768px) {
    .slabs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Bundle Modal Styles */
.bundle-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.bundle-modal.is-active {
    display: flex;
}

.bundle-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.bundle-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.bundle-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfd;
}

.bundle-modal-header h2 {
    margin: 0;
    font-family: 'Playfair', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #000;
}

.bundle-modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-slabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.modal-slab-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.modal-slab-thumb {
    position: relative;
    padding-top: 66%;
    background: #f9f9f9;
}

.modal-slab-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-slab-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-modal-action {
    flex: 1;
    min-height: 34px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: #333;
    border-radius: 4px;
    transition: background 0.2s ease;
    text-align: center;
}

.btn-modal-action:first-child {
    background: #000;
}

.btn-modal-action:hover {
    background: #555;
    color: #fff;
}

.btn-modal-action:first-child:hover {
    background: #333;
}

@media (max-width: 768px) {
    .bundle-modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .bundle-modal-body {
        padding: 15px;
    }

    .modal-slabs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}