/* ========================================
   Footer - Modern Design (Deep Theme)
   All styles in CSS - no inline styles in blade
   ======================================== */

/* Container - shared by main footer & bottom bar */
.furniture-footer-modern .furniture-footer-container {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Main footer block */
.furniture-footer-modern {
    color: var(--footer-text-color);
    background-color: var(--footer-bg-color);
    background-image: var(--footer-bg-image);
    background-size: cover;
    background-position: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.furniture-footer-modern * {
    color: var(--footer-text-color);
}

/* Top decorative line with gradient */
.furniture-footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.06) 20%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0.06) 80%,
        transparent 100%);
}

.furniture-footer-modern.has-bg-image::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent);
}

/* Content grid */
.furniture-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 56px 64px;
    margin-bottom: 0;
    padding: 64px 0 48px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand column */
.furniture-footer-brand {
    grid-column: span 1;
}

.furniture-footer-logo {
    margin-bottom: 28px;
}

.furniture-footer-logo img {
    max-width: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.furniture-footer-logo img:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.furniture-footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
}

.furniture-footer-description {
    margin: 20px 0 28px;
    line-height: 1.7;
    font-size: 14px;
    opacity: 0.9;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

/* Contact items - card style */
.furniture-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.furniture-footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.furniture-footer-contact-item span {
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.furniture-footer-contact-item:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateX(6px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.furniture-footer-contact-item i {
    width: 22px;
    text-align: center;
    font-size: 16px;
    opacity: 0.85;
}

/* Social media section */
.furniture-footer-social {
    margin-top: 32px;
}

.furniture-footer-social-title {
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.85;
}

.furniture-footer-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.furniture-footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
}

.furniture-footer-social-link:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Menu section */
.furniture-footer-menu-section {
    width: 100%;
    grid-column: span 3;
}

.furniture-footer-menu-section .footer-menu-wrapper {
    width: 100%;
    overflow: visible;
}

.furniture-footer-menu-section .footer-menu-wrapper .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 56px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.furniture-footer-menu-section .footer-menu-column {
    margin-bottom: 0;
    padding: 0 8px;
    overflow: visible;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.furniture-footer-menu-title,
.furniture-footer-menu-section .footer-menu-title {
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 20px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    opacity: 0.95;
}

.furniture-footer-menu-list,
.furniture-footer-menu-sublist,
.furniture-footer-menu-section .footer-menu-list,
.furniture-footer-menu-section .footer-menu-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.furniture-footer-menu-item,
.furniture-footer-menu-section .footer-menu-item {
    margin-bottom: 12px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.furniture-footer-menu-link,
.furniture-footer-menu-section .footer-menu-link {
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    padding: 5px 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-right: 5px;
    opacity: 0.88;
}

.furniture-footer-menu-link:hover,
.furniture-footer-menu-section .footer-menu-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .furniture-footer-menu-section {
        grid-column: span 1;
    }

    .furniture-footer-menu-section .footer-menu-wrapper .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
        padding: 0;
    }

    .furniture-footer-menu-section .footer-menu-column {
        padding: 0 5px;
    }
}

@media (max-width: 767px) {
    .furniture-footer-menu-section .footer-menu-wrapper .row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .furniture-footer-menu-title,
    .furniture-footer-menu-section .footer-menu-title {
        font-size: 13px;
        margin-bottom: 16px;
        font-weight: 800 !important;
    }
}

/* Footer bottom bar */
.furniture-footer-bottom-wrap {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
    backdrop-filter: blur(8px);
}

.furniture-footer-bottom {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.furniture-footer-copyright {
    font-size: 13px;
    opacity: 0.82;
    line-height: 1.75;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.furniture-footer-copyright p {
    margin: 5px 0;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.furniture-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.furniture-footer-cookie-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.furniture-footer-cookie-link:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.furniture-footer-ssl-icon {
    height: 34px;
    width: auto;
    opacity: 0.85;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.06));
}

@media (max-width: 991px) {
    .furniture-footer-modern {
        margin-top: 60px;
    }

    .furniture-footer-modern .furniture-footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .furniture-footer-content {
        padding: 48px 0 40px;
        grid-template-columns: 1fr 1fr;
        gap: 44px;
    }

    .furniture-footer-brand {
        grid-column: 1 / -1;
    }

    .furniture-footer-contact-item {
        padding: 10px 14px;
    }
}

@media (max-width: 767px) {
    .furniture-footer-modern {
        margin-top: 48px;
    }

    .furniture-footer-modern .furniture-footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .furniture-footer-content {
        padding: 40px 0 32px;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .furniture-footer-logo img {
        max-width: 130px !important;
        max-height: 48px !important;
        width: auto !important;
        height: auto !important;
    }

    .furniture-footer-contact-item {
        padding: 11px 14px;
    }

    .furniture-footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .furniture-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px 0;
    }

    .furniture-footer-bottom-links {
        justify-content: center;
    }

    .furniture-footer-menu-title,
    .furniture-footer-menu-section .footer-menu-title {
        font-size: 13px;
        margin-bottom: 16px;
        font-weight: 800 !important;
    }
}

@media (max-width: 480px) {
    .furniture-footer-modern .furniture-footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .furniture-footer-logo img {
        max-width: 110px !important;
        max-height: 40px !important;
    }
}

.modern-footer-mobile {
    color: #333;
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

@media (max-width: 768px) {
    .modern-footer-mobile {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
    }
}

.modern-footer-mobile__link {
    color: #666;
    transition: color 0.2s ease;
}

.modern-footer-mobile__link:hover,
.modern-footer-mobile__link:focus {
    color: #000;
    text-decoration: none;
}

.modern-footer-mobile__link svg {
    color: currentColor;
}

.modern-footer-mobile__link--search {
    color: #666;
}

.modern-footer-mobile__link--search:hover,
.modern-footer-mobile__link--search:focus {
    color: #000;
}

.modern-footer-mobile__link .small {
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
}

.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
}

.mobile-search-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.mobile-search-modal__content {
    background: white;
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.mobile-search-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-search-modal__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.mobile-search-modal__close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-search-modal__close:hover {
    color: #000;
}

.mobile-search-modal__body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-search-modal__form {
    margin-bottom: 20px;
}

.mobile-search-modal__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.mobile-search-modal__input-wrapper:focus-within {
    border-color: #000;
    background: #fff;
}

.mobile-search-modal__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 12px 14px 0;
    font-size: 16px;
    outline: none;
    color: #000;
}

.mobile-search-modal__input::placeholder {
    color: #999;
}

.mobile-search-modal__submit {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-search-modal__submit:hover {
    color: #000;
}

.mobile-search-modal__results {
    margin-top: 20px;
}

.mobile-search-modal__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    justify-content: center;
    color: #666;
}

.mobile-search-modal__results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.mobile-search-modal__result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.2s;
    border: 1px solid #e5e5e5;
}

.mobile-search-modal__result-item:hover {
    background-color: #f5f5f5;
}

.mobile-search-modal__result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.mobile-search-modal__result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-search-modal__result-content {
    flex: 1;
    min-width: 0;
}

.mobile-search-modal__result-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-search-modal__result-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.mobile-search-modal__result-price {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.mobile-search-modal__no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.mobile-search-modal__suggestions {
    padding: 20px 0;
}

.mobile-search-modal__suggestions-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.mobile-search-modal__suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-search-modal__suggestion-item {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-search-modal__suggestion-item:hover {
    background: #e5e5e5;
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 767.98px) {
    .furniture-footer-modern {
        padding-bottom: 70px !important;
    }

    body {
        padding-bottom: 70px !important;
    }
}
