/* ===========================================
   Oplala Custom Header Styles - Type 15
   =========================================== */

/* Header row: logo left, everything else right */
.page-header.type15 .header-main .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo area: only take the space it needs */
.page-header.type15 .header-main .header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 15px;
}

/* Right side: nav, search, wishlist, cart */
.page-header.type15 .header-main .header-right {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 12px;
}

/* Navigation in header-right: inline menu items (desktop only) */
@media (min-width: 992px) {
    .page-header.type15 .header-right .nav-sections {
        display: flex !important;
        align-items: center;
        flex: 0 1 auto;
        position: relative;
        margin: 0;
        padding: 0;
        background: none;
    }

    .page-header.type15 .header-right .nav-sections .nav-sections-items {
        display: flex !important;
        align-items: center;
    }

    .page-header.type15 .header-right .nav-sections .section-item-content {
        display: block !important;
        padding: 0;
        margin: 0;
    }

    .page-header.type15 .header-right .navigation {
        display: flex;
        align-items: center;
    }

    .page-header.type15 .header-right .navigation > ul {
        display: flex;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    /* Top-level menu items */
    .page-header.type15 .header-right .navigation > ul > li > a.level-top {
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #2b3240;
        transition: color 0.2s ease;
    }

    .page-header.type15 .header-right .navigation > ul > li:hover > a.level-top,
    .page-header.type15 .header-right .navigation > ul > li.active > a.level-top {
        color: #c59b9c;
    }

    /* Subcategory dropdown */
    .page-header.type15 .header-right .navigation .level0 .submenu {
        background: #fff !important;
        border: none !important;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
        padding: 20px 24px !important;
        min-width: 220px;
        top: 100% !important;
        border-top: 2px solid #c59b9c !important;
    }

    .page-header.type15 .header-right .navigation .submenu .subchildmenu {
        background: #fff !important;
        padding: 0 !important;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .page-header.type15 .header-right .navigation .submenu .subchildmenu li {
        padding: 0;
        margin: 0;
    }

    .page-header.type15 .header-right .navigation .submenu .subchildmenu li a {
        display: block;
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 500;
        color: #2b3240;
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.2s ease;
        letter-spacing: 0.3px;
    }

    .page-header.type15 .header-right .navigation .submenu .subchildmenu li a:hover {
        background: rgba(197, 155, 156, 0.1);
        color: #c59b9c;
        padding-left: 18px;
    }

    /* Remove Porto default megamenu fullwidth stretch */
    .page-header.type15 .header-right .navigation .level0.fullwidth .submenu {
        width: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .page-header.type15 .header-right .navigation .submenu .container,
    .page-header.type15 .header-right .navigation .submenu .row {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-header.type15 .header-right .navigation .submenu .col-md-12 {
        padding: 0 !important;
        flex: none !important;
        max-width: none !important;
    }

    /* Megamenu subcategory columns full width */
    .sw-megamenu.navigation .subchildmenu.mega-columns.columns4 > li {
        width: 100% !important;
    }
}

/* Search input styling - #a4c4d7 blue tones */
.page-header.type15 .header-right .search-area {
    max-width: 320px;
    flex: 1 1 320px;
}

.page-header.type15 .header-right .search-area .block-search {
    width: 100%;
}

.page-header.type15 .header-right .search-area .block-search input#search {
    width: 100%;
    max-width: 100%;
    padding: 10px 42px 10px 18px;
    font-size: 14px;
    height: 42px;
    border: 2px solid rgba(164, 196, 215, 0.5) !important;
    border-radius: 25px !important;
    background: rgba(164, 196, 215, 0.08) !important;
    color: #2b3240;
    transition: all 0.25s ease;
    outline: none;
}

.page-header.type15 .header-right .search-area .block-search input#search:focus {
    border-color: #a4c4d7 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(164, 196, 215, 0.2);
}

.page-header.type15 .header-right .search-area .block-search input#search::placeholder {
    color: rgba(164, 196, 215, 0.7);
    font-style: normal;
}

.page-header.type15 .header-right .search-area .block-search .action.search {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4c4d7;
}

/* Hide the Mageplaza category dropdown filter */
.page-header.type15 .search-category {
    display: none !important;
}

/* My Account link styling */
.page-header.type15 .header-right .header-contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-header.type15 .header-right .header-contact .my-account {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2b3240;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.page-header.type15 .header-right .header-contact .my-account:hover {
    color: #a4c4d7;
}

.page-header.type15 .header-right .header-contact .my-account i {
    font-size: 22px;
}

.page-header.type15 .header-right .header-contact .customer-name-header {
    font-size: 12px;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search autocomplete - category results */
.mp-category-result {
    display: flex !important;
    align-items: center;
    padding: 8px 12px;
    background: rgba(164, 196, 215, 0.06);
    border-bottom: 1px solid rgba(164, 196, 215, 0.15);
}

.mp-category-result:hover {
    background: rgba(164, 196, 215, 0.12);
}

.mp-cat-icon {
    width: 36px !important;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-cat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a4c4d7;
    font-weight: 700;
    margin-right: 6px;
}

.mp-category-result .product-name {
    font-weight: 600;
    color: #2b3240;
}

/* Ensure the separator doesn't take too much space */
.page-header.type15 .header-left > .separator {
    display: none;
}

.page-header.type15 .header-right > .separator {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .page-header.type15 .header-main .header-right .search-area {
        max-width: 220px;
        flex: 1 1 220px;
    }
    .page-header.type15 .header-right .header-contact .customer-name-header {
        display: none;
    }
}

@media (max-width: 767px) {
    .page-header.type15 .header-main .header-row {
        flex-wrap: wrap;
    }
    .page-header.type15 .header-main .header-right .search-area {
        max-width: 160px;
        flex: 1 1 160px;
    }
}

/* ===========================================
   Oplala Footer - Maps Section
   =========================================== */

/* Porto footer-top wrapper - override Porto's container constraints */
.footer .footer-top {
    background: #2b3240;
    padding: 0;
    position: relative;
}

.footer .footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c59b9c 0%, #d4b5b6 50%, #c59b9c 100%);
    z-index: 1;
}

/* Override Porto container/row/col constraints for full-width footer */
.footer .footer-top > .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.footer .footer-top > .container > .row {
    margin: 0;
}

.footer .footer-top > .container > .row > .col-lg-12 {
    padding: 0;
}

.footer .footer-top .custom-block {
    margin: 0;
    padding: 0;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
}

.footer .footer-top .custom-block::before,
.footer .footer-top .custom-block::after {
    display: none !important;
}

/* Hide Porto footer-bottom since we handle it in our template */
.footer .footer-bottom {
    display: none;
}

/* ---- Footer Maps Component ---- */

.oplala-footer-maps {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f0e4e4;
    background: #2b3240;
    padding: 45px 20px 0;
    text-align: center;
}

.oplala-footer-maps *,
.oplala-footer-maps *::before,
.oplala-footer-maps *::after {
    box-sizing: border-box;
}

.ofm-section-title {
    text-align: center;
    padding: 0 20px 35px;
}

.ofm-section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.ofm-section-title p {
    font-size: 0.95rem;
    color: #c59b9c;
    margin: 0;
}

/* Locations Grid */
.ofm-locations-grid {
    display: grid;
    gap: 2px;
    border: 2px solid #2b3240;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    max-width: 1200px;
    margin: 0 auto;
}

.ofm-locations-grid.ofm-cols-1 { grid-template-columns: 1fr; }
.ofm-locations-grid.ofm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ofm-locations-grid.ofm-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Location Card */
.ofm-location-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.ofm-location-card:hover {
    transform: translateY(-2px);
}

.ofm-location-header {
    background: linear-gradient(135deg, #2b3240 0%, #364050 100%);
    color: #fff;
    padding: 22px 20px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ofm-location-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #c59b9c;
}

.ofm-location-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.ofm-location-header p {
    font-size: 0.83rem;
    color: #c59b9c;
    line-height: 1.4;
    margin: 0;
}

/* Map */
.ofm-map-container {
    height: 240px;
    overflow: hidden;
    flex-grow: 1;
}

.ofm-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: brightness(0.97) contrast(1.03) saturate(0.9);
    transition: filter 0.3s ease;
}

.ofm-map-iframe:hover {
    filter: brightness(1) contrast(1.08) saturate(1);
}

/* Action Buttons */
.ofm-action-buttons {
    padding: 14px 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    background: #faf6f6;
    border-top: 1px solid #ecdcdc;
}

.ofm-btn {
    padding: 9px 18px;
    border: 2px solid transparent;
    border-radius: 22px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.ofm-btn-primary {
    background: #2b3240;
    color: #fff;
    border-color: #2b3240;
}

.ofm-btn-primary:hover {
    background: #c59b9c;
    border-color: #c59b9c;
    color: #2b3240;
    transform: translateY(-1px);
}

.ofm-btn-secondary {
    background: #fff;
    color: #2b3240;
    border-color: #e0c8c9;
}

.ofm-btn-secondary:hover {
    background: #f3e5e5;
    border-color: #c59b9c;
    transform: translateY(-1px);
}

/* Contact Section */
.ofm-contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 0 0;
    text-align: center;
}

.ofm-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0 0 28px;
}

.ofm-contact-card {
    background: rgba(197, 155, 156, 0.08);
    border: 1px solid rgba(197, 155, 156, 0.2);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.ofm-contact-card:hover {
    background: rgba(197, 155, 156, 0.14);
    border-color: rgba(197, 155, 156, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ofm-contact-icon {
    color: #c59b9c;
    margin-bottom: 10px;
}

.ofm-contact-icon svg {
    width: 28px;
    height: 28px;
}

.ofm-contact-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(197, 155, 156, 0.7);
    font-weight: 700;
    margin-bottom: 8px;
}

.ofm-contact-value {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ofm-contact-value:hover {
    color: #c59b9c;
}

/* Social Links */
.ofm-social-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.ofm-social-icon {
    color: #fff;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(197, 155, 156, 0.12);
    border: 1px solid rgba(197, 155, 156, 0.2);
}

.ofm-social-icon:hover {
    color: #2b3240;
    background: #c59b9c;
    border-color: #c59b9c;
    transform: translateY(-2px);
}

/* Hours Section */
.ofm-hours-section {
    border-top: 1px solid rgba(197, 155, 156, 0.15);
    padding-top: 28px;
}

.ofm-hours-section h4 {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: 0.3px;
}

.ofm-hours-grid {
    display: grid;
    gap: 18px;
}

.ofm-hours-grid.ofm-cols-1 { grid-template-columns: 1fr; }
.ofm-hours-grid.ofm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ofm-hours-grid.ofm-cols-3 { grid-template-columns: repeat(3, 1fr); }

.ofm-hours-card {
    background: rgba(197, 155, 156, 0.06);
    border: 1px solid rgba(197, 155, 156, 0.12);
    border-radius: 12px;
    padding: 18px;
}

.ofm-hours-card h5 {
    font-size: 0.85rem;
    color: #c59b9c;
    font-weight: 600;
    margin: 0 0 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ofm-hours-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    padding: 3px 0;
    border-bottom: 1px solid rgba(197, 155, 156, 0.06);
}

.ofm-hours-line:last-child {
    border-bottom: none;
}

.ofm-hours-line.closed {
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

.ofm-hours-na {
    text-align: center;
    color: rgba(197, 155, 156, 0.5);
    font-style: italic;
    font-size: 0.85rem;
    padding: 10px 0;
}

/* Footer Bottom Bar */
.ofm-bottom-bar {
    margin-top: 35px;
    padding: 22px 20px;
    background: #232935;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(197, 155, 156, 0.1);
}

.ofm-footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.ofm-footer-logo:hover {
    opacity: 1;
}

.ofm-copyright {
    font-size: 0.82rem;
    color: rgba(197, 155, 156, 0.6);
    letter-spacing: 0.3px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .ofm-locations-grid {
        grid-template-columns: 1fr !important;
    }
    .ofm-contact-row {
        grid-template-columns: 1fr;
    }
    .ofm-hours-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .oplala-footer-maps {
        padding: 30px 0 0;
    }
    .ofm-section-title h2 {
        font-size: 1.25rem;
    }
    .ofm-location-header {
        min-height: auto;
        padding: 18px 15px;
    }
    .ofm-map-container {
        height: 200px;
    }
    .ofm-action-buttons {
        flex-direction: column;
        gap: 6px;
    }
    .ofm-btn {
        justify-content: center;
    }
    .ofm-contact-section {
        padding: 25px 15px 0;
    }
    .ofm-bottom-bar {
        flex-direction: column;
        gap: 10px;
        padding: 18px 15px;
    }
}
