/*!
 * Top Design Decor & Furniture Co. — Company Website
 * Copyright (c) 2026 Top Design Decor & Furniture Co. All rights reserved.
 *
 * Developed by: Munther Qadous <montherdirar4@gmail.com>
 *
 * PROPRIETARY & CONFIDENTIAL. This source code and the website it produces are
 * the property of Top Design Decor & Furniture Co. Unauthorized copying, modification, distribution,
 * reuse, or disclosure of any part of this code is strictly prohibited without
 * prior written permission from the owner.
 *
 * Built on third-party open-source components (Bootstrap and the libraries in
 * /lib), which remain under their respective licenses.
 */
/********** Template CSS **********/
:root {
    --primary: #AB7442;
    --light: #F5F5F5;
    --dark: #353535;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 300px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 220px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    display: inline-block;
    padding: 0 60px;
}

.section-title.text-start h1 {
    padding-left: 0;
}

/* Decorative heading accent bars removed site-wide.
   They were positioned absolutely on a non-positioned heading, so instead of
   sitting beside the title they escaped to the left/right edges of the page
   (the stray black lines). content:none stops them being generated at all. */
.section-title h1::before,
.section-title h1::after {
    content: none;
    display: none;
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-item .overflow-hidden {
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item .p-4 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .p-4 h4 {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .service-item .overflow-hidden {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .service-item .overflow-hidden {
        height: 180px;
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/*========================
    Start Clients CSS
==========================*/
.clients {
    background-size: cover;
    background-position: center;
    padding: 100px 0px;
    position: relative;
}

.clients .single-clients img {
    width: 100%;
    cursor: pointer;
    text-align: center;
    float: none;
    padding: 0 35px;
}

/*** Scroll Image ***/
.scroll-wrapper {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    padding: 20px 0;
    position: relative;
}

.scroll-container {
    display: flex;
    gap: 15px;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    /* Fixed size box — same for every image */
    width: 550px;
    height: 420px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fills the box, crops if needed — no stretching */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Navigation Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(171, 116, 66, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(171, 116, 66, 1);
}

.scroll-arrow.left {
    left: 10px;
}

.scroll-arrow.right {
    right: 10px;
}

.scroll-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-arrow:disabled:hover {
    background: rgba(171, 116, 66, 0.5);
}

/* Lightbox fullscreen styles */
.lb-loader,
.lb-close {
    background-color: rgba(0, 0, 0, 0.8);
}

.lb-image {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain;
}

.lb-outerContainer {
    background-color: rgba(0, 0, 0, 0.95);
}

.lb-container {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-nav a {
    outline: none;
}

/* Modal Gallery Styles - Fullscreen */
.modal-dialog {
    margin: 0;
    height: 100vh;
    max-width: 100%;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-content {
    height: 100vh;
    border: none;
    border-radius: 0;
    background-color: #f8f9fa;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

.modal-body {
    flex: 1;
    padding: 20px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-body .scroll-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body .scroll-container {
    max-height: calc(100vh - 150px);
    max-width: 100%;
    padding: 20px 60px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Modal gallery items — same fixed size, no overrides */
.modal-body .gallery-item {
    width: 550px;
    height: 420px;
    flex-shrink: 0;
}

.modal-body .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body .scroll-arrow {
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.modal-lg {
    max-width: 100%;
    width: 100%;
}

/* Tablet */
@media (max-width: 991.98px) {
    .gallery-item,
    .modal-body .gallery-item {
        width: 420px;
        height: 320px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .gallery-item,
    .modal-body .gallery-item {
        width: 300px;
        height: 220px;
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lb-image {
        max-height: 85vh !important;
    }

    .lb-container {
        padding: 20px;
    }
}

/*========================
    End Clients CSS
==========================*/


/*========================
    Products Main Gallery (vertical grid, 3 per row)
==========================*/
.product-gallery .pg-item {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-gallery .pg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.product-gallery .pg-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* show the WHOLE photo inside the box, never cropped */
    background: #f8f9fa;    /* neutral backdrop for any letterbox space */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-gallery .pg-item:hover img {
    transform: scale(1.05);
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 4 / 3) {
    .product-gallery .pg-item {
        height: 0;
        padding-top: 75%; /* 4:3 ratio */
    }
    .product-gallery .pg-item img {
        position: absolute;
        top: 0;
        left: 0;
    }
}


/* Product name caption under each grid photo */
.product-gallery .pg-caption {
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    color: #333;
}


/*========================
    Product Detail Modal (fullscreen — image top-left, info on the right)
==========================*/
/* Fullscreen, clean layout for this modal only */
#productDetailModal .modal-dialog {
    height: 100vh;
    margin: 0;
    max-width: 100%;
}

#productDetailModal .modal-content {
    height: 100vh;
    border-radius: 0;
    background-color: #fff;
}

#productDetailModal .modal-body {
    display: block;
    overflow-y: auto;
    align-items: initial;
    justify-content: initial;
    background-color: #fff;
    padding: 40px 5%;
}

.product-detail-img {
    display: block;
    width: 100%;
    max-width: 560px;         /* keep the preview modest so it doesn't dominate */
    max-height: 55vh;         /* smaller preview -> info fits beside it, no scrollbar */
    margin: 0 auto;
    border-radius: 6px;
    object-fit: contain;      /* show the whole product, no cropping */
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: zoom-in;          /* hints it opens full size (real size on click) */
}

.product-detail-info h3 {
    color: #333;
    font-weight: 700;
}

.product-detail-spec {
    margin-bottom: 1.4rem;
}

.product-detail-spec .spec-label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 14px;
    margin-bottom: 4px;
}

.product-detail-spec .spec-value {
    color: #555;
    font-size: 16px;
}

/* Material chips — button look, but not clickable and no hover effect */
.product-materials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.material-chip {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: default;
    user-select: none;
}

.product-colors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.product-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd, 0 1px 4px rgba(0, 0, 0, 0.25);
    display: inline-block;
    cursor: default;
}