/* ===============================
GLOBAL
=============================== */

.cqs-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    margin: 60px auto;
    align-items: start;
}

/* .uk-container {
    max-width: 1400px;

} */

/* ===============================
ADD TO CART
=============================== */

/* .cqs-add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
} */

/* .cqs-add-btn {
    background: #8a0f6c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
} */

/* ===============================
QUANTITY BUTTON
=============================== */

.cqs-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.cqs-qty-wrapper button {
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
}

/* .cqs-qty {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 14px;
} */

/* Remove number arrows */

.cqs-qty::-webkit-inner-spin-button,
.cqs-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cqs-qty {
    -moz-appearance: textfield;
}

/* ===============================
CART PRODUCT CARD
=============================== */
.cqs-cart-section h2,
.cqs-form-section h2 {
    font-size: 20px;
    ;
}

.cqs-cart-section h2 span {
    font-size: 14px;
    font-weight: 400;
}

.cqs-cart-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    gap: 15px;
}

.cqs-product-img img {
    width: 65px;
    height: auto;
}

.cqs-product-info {
    flex: 1;
}

.cqs-product-info p {
    margin: 0;
    font-size: 15px;
    color: #353432;
}

.cqs-cart-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.single-product-message {
    margin-top: 20px;
}

.single-product-message a {
    color: #353432d4;
    font-weight: 600;
    font-size: 16px;
}

.single-product-message a:hover {
    color: #a48161;
}

.cart-success-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e9f7ef;
    border-left: 5px solid #28a745;
    padding: 10px 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.cart-success-message .msg-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #155724;
}

.cart-success-message i {
    font-size: 18px;
    color: #28a745;
}

.uk-button-primary:disabled {
    background-color: #766543a6 !important;
    color: #fff !important;
    cursor: not-allowed;
}

/* ===============================
REMOVE ICON
=============================== */

.cqs-remove-btn a {
    color: #e63946;
    font-size: 18px;
    text-decoration: none;
}

.cqs-remove-btn a:hover {
    color: #b71c1c;
}

/* ===============================
CART BUTTONS
=============================== */

.cqs-cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* IMPORTANT */
}

.cqs-cart-actions button {
    flex: 1;
    min-width: 140px;
}

.cqs-btn-empty,
.cqs-btn-update {
    padding: 10px 18px !important;
    color: #fff;
    border: none;
    border-radius: 5px !important;
    cursor: pointer;
    line-height: normal !important;
}

.cqs-btn-empty:hover,
.cqs-btn-update:hover {
    background: #1e3f73;
}

/* ===============================
QUOTE FORM
=============================== */

.cqs-form-section {
    position: sticky;
    top: 120px;
}

.cqs-quote-form {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.cqs-form-title {
    text-align: center;
    margin-bottom: 25px;
}

/* form rows */

.cqs-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.cqs-form-row label {
    font-weight: 500;
    margin-bottom: 5px;
    color: rgb(53, 52, 50);
}

.cqs-form-row label.error {
    color: #e63946;
}

.cqs-form-row input,
.cqs-form-row select,
.cqs-form-row textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.cqs-form-row textarea {
    min-height: 90px;
}

/* ===============================
NOTE TEXT
=============================== */

.cqs-note {
    text-align: left;
    margin: 10px 0;
    color: rgb(53, 52, 50);
    font-size: 14px;
    font-weight: 700;
}

.cqs-required {
    color: #e63946;
}

/* ===============================
FORM BUTTONS
=============================== */

.cqs-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cqs-btn-submit {
    background: rgb(53, 52, 50);
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.cqs-btn-cancel {
    background: #87826e;
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

/* ===============================
TOGGLE SWITCH
=============================== */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* .cqs-product-wrapper {
    max-width: 1296px;
    margin: auto;
} */

/* MAIN CONTAINER */
.cqs-product-container {
    margin: 0 -30px;
    display: flex;
    align-items: center;
}

.cqs-product-container>* {
    padding: 0 30px;
}

/* GALLERY */
.cqs-product-gallery {
    width: 40%;
}

.cqs-main-slider .swiper-slide {
    height: auto;
}

.cqs-main-slider .swiper-slide .product-slide-inner {
    height: calc(100% - 10px);
    margin: 5px;
    background-color: #fff;
    border: 1px solid rgb(135 130 110 / 30%);
    border-radius: 5px;
    /* box-shadow: 0 0 3px rgba(0,0,0,.2); */
}

.cqs-main-slider .swiper-slide img {
    padding: 15px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 480px;
    border-radius: 6px;
}

/* THUMBNAILS */
.cqs-thumb-slider {
    margin-top: 15px;
}

.cqs-thumb-slider .swiper-slide {
    width: auto;
}

.cqs-thumb-slider img {
    object-fit: contain;
    cursor: pointer;
    opacity: .6;
}

.cqs-thumb-slider .swiper-wrapper {
    justify-content: center;
}

.cqs-thumb-slider .swiper-slide {
    background-color: #fff;
    padding: 15px;
    border: 1px solid rgb(135 130 110 / 30%);
    margin: 5px;
    border-radius: 5px;
}

.cqs-thumb-slider .swiper-slide.swiper-slide-thumb-active {
    box-shadow: 0 0 5px rgb(135 130 110 / 30%);
}

.cqs-thumb-slider .swiper-slide-thumb-active img {
    opacity: 1;
}

.cqs-main-slider .swiper-slide .cqs-lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* PRODUCT INFO */
.cqs-product-summary {
    width: 60%;
    max-width: 100%;
}

.cqs-product-summary h1 {
    font-family: Lato;
    font-size: 35px;
    line-height: 40px;
    color: #a48161;
    margin-bottom: 15px;
}

.cqs-product-description {
    padding: 0 0 20px;
    color: #555;
    margin-bottom: 0;
}

.cqs-product-description p {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 15px 0;
    color: rgb(53, 52, 50, 0.5);
}

.ref-code p {
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
    color: #353432;
    margin: 0;
    opacity: 0.6;
}

/* .disc-title p {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 0 20px;
    color: #000;
    margin: 0;
} */

.product-summary-top {
    padding: 0 0 15px;
}

/* QUANTITY */
.cqs-add-to-cart {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cqs-qty {
    font-family: Lato;
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    box-shadow: none;
    border: none;
    border-left: 1px solid #E3D5C8;
    border-right: 1px solid #E3D5C8;
    background: transparent;
}

.cqs-add-btn,
.cqs-view-btn {
    width: auto;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: #87826E;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.5s;
}

.cqs-add-btn:hover,
.cqs-view-btn:hover {
    background: #A48161;
}

.cqs-main-slider img {
    cursor: zoom-in;
}

.cqs-qty-box {
    max-width: 150px;
    width: 100%;
    display: flex;
    border: 1px solid #E3D5C8;
    border-radius: 5px;
}

.cqs-qty-box .cqs-common-btn {
    font-size: 25px;
    line-height: 25px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
}

.cqs-qty-box .cqs-common-btn:hover {
    color: #a48161;
}

.cqs-qty-box input:focus-visible,
.cqs-qty-box button:focus-visible {
    outline: none !important;
}

/* .qty-text {
    padding: 0 0 20px;
}

.qty-text p {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
} */

.img-fluid {
    max-width: 100%;
    height: auto;
}

.related-product-wrp {
    padding: 70px 0 0;
}

.related-product-title h2 {
    font-family: Lato;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0.5px;
    margin: 0 0 30px;
}

.related-product-main {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.related-product-block {
    width: calc(25% - 32px);
    max-width: 100%;
    margin: 0 15px 30px;
    background-color: #fff;
    border: 1px solid rgb(135 130 110 / 30%);
    border-radius: 5px;
    overflow: hidden;
    flex: 0 0 auto;
}

.related-product-content {
    padding: 25px;
    text-align: center;
    border-top: 1px solid rgb(135 130 110 / 30%);
}

.related-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-height: 300px;
    height: 100%;
}

.related-product-img img {
    max-height: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.related-product-content .cqs-add-btn {
    display: block;
    max-width: max-content;
    margin: 0 auto;
}

.related-product-content h3 {
    font-family: Lato;
    font-size: 20px;
    line-height: 23px;
    color: #a48161;
    letter-spacing: 0.5px;
    margin: 0 0 20px;
}

.related-product-content p {
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    margin: 0 0 20px;
}

.breadcrumb-wrp {
    padding: 0 0 30px;
}

.breadcrumb-wrp ul {
    padding: 0 0 0 5px;
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-wrp ul li {
    list-style-type: none;
    font-size: 20px;
    line-height: 24px;
    padding: 0 20px;
    position: relative;
}

.breadcrumb-wrp ul li a:hover,
.breadcrumb-wrp ul li.active {
    color: #a48161;
}

.breadcrumb-wrp ul li::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 2px solid #a48161;
    border-right: 2px solid #a48161;
    transform: rotate(45deg);
    position: absolute;
    right: -2px;
    top: 8px;
}

.breadcrumb-wrp ul li:first-child {
    padding-left: 0;
}

.breadcrumb-wrp ul li:last-child::after {
    display: none;
}



/* ===============================
TAXONOMY / CATEGORY PAGE
=============================== */

.cqs-taxonomy-wrapper {
    padding: 40px 0 60px;
}

.cqs-taxonomy-header {
    margin-bottom: 40px;
}

.cqs-taxonomy-title {
    font-family: Lato;
    font-size: 36px;
    line-height: 42px;
    color: #353432;
    margin: 0 0 10px;
}

.cqs-taxonomy-description {
    font-size: 16px;
    color: rgba(53, 52, 50, 0.6);
    margin-top: 10px;
}

.cqs-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.cqs-product-card {
    background: #fff;
    border: 1px solid rgb(135 130 110 / 30%);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cqs-product-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.cqs-card-image-link {
    display: block;
}

.cqs-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
    background: #fafafa;
    padding: 15px;
}

.cqs-card-image img {
    max-height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cqs-product-card:hover .cqs-card-image img {
    transform: scale(1.04);
}

.cqs-card-no-image {
    font-size: 14px;
    color: rgba(53, 52, 50, 0.4);
}

.cqs-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid rgb(135 130 110 / 20%);
}

.cqs-card-ref {
    font-size: 13px;
    color: rgba(53, 52, 50, 0.5);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.cqs-card-title {
    font-family: Lato;
    font-size: 18px;
    line-height: 23px;
    color: #a48161;
    margin: 0 0 16px;
    flex: 1;
}

.cqs-card-title a {
    color: inherit;
    text-decoration: none;
}

.cqs-card-title a:hover {
    color: #87826E;
}

/* ── Category cards — no-image fallback ── */

.cqs-category-no-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8e0d5 0%, #d4c9b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cqs-category-no-image span {
    font-size: 72px;
    font-weight: 700;
    font-family: Lato;
    color: #a48161;
    text-transform: uppercase;
    opacity: 0.5;
}

.cqs-no-products {
    font-size: 16px;
    color: rgba(53, 52, 50, 0.6);
    text-align: center;
    padding: 60px 0;
}

.cqs-pagination {
    text-align: center;
    margin-top: 20px;
}

.cqs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 3px;
    border: 1px solid rgb(135 130 110 / 40%);
    border-radius: 5px;
    font-size: 14px;
    color: #353432;
    text-decoration: none;
    transition: 0.3s;
}

.cqs-pagination .page-numbers.current,
.cqs-pagination .page-numbers:hover {
    background: #87826E;
    color: #fff;
    border-color: #87826E;
}

/* ===============================
MOBILE
=============================== */

@media (min-width: 992px) and (max-width:1199px) {
    .cqs-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cqs-product-gallery {
        width: 50%;
    }

    .cqs-product-summary {
        width: 50%;
    }

    .cqs-product-container>* {
        padding: 0 20px;
    }

    .cqs-product-container {
        margin: 0 -20px;
    }

    .cqs-thumb-slider .swiper-slide {
        padding: 10px;
        width: 110px !important;
    }

    .related-product-block {
        width: calc(33.33% - 32px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .cqs-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-product-block {
        width: calc(50% - 32px);
    }
}

@media (max-width: 991px) {
    .cqs-product-gallery {
        width: auto;
    }

    .cqs-product-summary {
        width: auto;
        margin-top: 40px;
    }

    .cqs-product-container {
        display: block;
        margin: 0 -15px;
    }

    .cqs-product-container>* {
        padding: 0 15px;
    }

    .cqs-product-summary h1 {
        font-size: 30px;
        line-height: 34px;
    }
}

@media(max-width:900px) {

    .cqs-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cqs-form-section {
        position: static;
    }

    .cqs-cart-card {
        flex-wrap: wrap;
    }

}

@media (max-width: 767px) {
    .cqs-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cqs-taxonomy-title {
        font-size: 26px;
        line-height: 32px;
    }

    .related-product-wrp {
        padding: 60px 0 0;
    }

    .related-product-block {
        max-width: 100%;
        width: 100%;
        flex: unset;
    }

    .related-product-content h3 {
        font-size: 22px;
        line-height: 26px;
    }

    .related-product-content p {
        font-size: 18px;
        line-height: 24px;
    }

    .cqs-main-slider .swiper-slide img {
        max-height: 300px;
    }

    .cqs-thumb-slider .swiper-slide {
        padding: 10px;
        width: 75px !important;
    }

    .cqs-btn-empty,
    .cqs-btn-update {
        font-size: 14px !important;
        padding: 10px auto !important;
    }

}