/* =========================================================
   MASEK QUICK QUOTE
   PRODUCT CATALOGUE AND QUOTATION SHEET
   BLUE + BLACK + WHITE + ORANGE BRANDING
========================================================= */


/* =========================================================
   1. GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #111111;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   2. ANIMATIONS
========================================================= */

@keyframes quotePulse {
    0% {
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22),
                    0 0 0 0 rgba(255, 107, 0, 0.45);
    }

    50% {
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22),
                    0 0 0 7px rgba(255, 107, 0, 0.08);
    }

    100% {
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22),
                    0 0 0 0 rgba(255, 107, 0, 0);
    }
}

@keyframes addProductsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.35);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(21, 101, 192, 0.08);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(21, 101, 192, 0);
    }
}


/* =========================================================
   3. HEADER / NAVBAR
========================================================= */

.quick-quote-header {
    background: #1565C0;
    color: #ffffff;
    padding: 16px 5%;
    border-bottom: 4px solid #0D47A1;
}

.quick-quote-header-inner {
    max-width: 1400px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.quick-quote-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;

    background: #FF6B00;
    color: #ffffff;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
}

.quick-quote-brand h1 {
    font-size: 23px;
    letter-spacing: 1px;
}

.quick-quote-brand p {
    color: #dddddd;
    font-size: 13px;
}


/* =========================================================
   4. VIEW QUOTE BUTTON
========================================================= */

.view-quote-button {
    position: fixed !important;
    right: 28px;
    bottom: 25px;
    z-index: 99999;

    background: #FF6B00;
    color: #ffffff;

    border: none;
    border-radius: 30px;

    padding: 13px 20px;

    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    animation: quotePulse 2s infinite;

    transition: background 0.3s, transform 0.3s;

    pointer-events: auto !important;
}

.view-quote-button:hover {
    background: #e85f00;
    transform: translateY(-4px);
}

#quoteCount {
    background: #ffffff;
    color: #FF6B00;

    border-radius: 50%;

    min-width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: bold;
}

body:has(#quotationBasket:not([hidden])) .view-quote-button {
    display: none !important;
}


/* =========================================================
   5. MAIN CONTAINER
========================================================= */

.quick-quote-container {
    max-width: 1400px;
    width: 94%;
    margin: 25px auto;
}


/* =========================================================
   6. INTRODUCTION
========================================================= */

.quote-introduction {
    background: #ffffff;
    padding: 24px;
    border-radius: 9px;

    margin-bottom: 20px;

    border-left: 5px solid #FF6B00;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.quote-introduction h2 {
    font-size: 25px;
    margin-bottom: 7px;
}

.quote-introduction p {
    color: #666666;
    font-size: 14px;
}

.product-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 13px;

    color: #25D366;
    font-weight: bold;
    font-size: 13px;
}

body:has(#quotationBasket:not([hidden])) .quote-introduction {
    display: none !important;
}


/* =========================================================
   7. SEARCH AND CATEGORY FILTERS
========================================================= */

.catalogue-toolbar {
    display: grid;
    grid-template-columns: 1fr 260px;

    gap: 13px;
    margin-bottom: 17px;
}

.catalogue-search {
    display: flex;
    align-items: center;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 7px;

    padding: 0 14px;
}

.catalogue-search i {
    color: #888888;
}

.catalogue-search input {
    width: 100%;
    padding: 12px;

    border: none;
    outline: none;

    background: transparent;
    font-size: 14px;
}

.catalogue-toolbar select {
    padding: 12px;

    border: 1px solid #dddddd;
    border-radius: 7px;

    background: #ffffff;
    outline: none;
    font-size: 14px;
}


/* =========================================================
   8. CATEGORY BUTTONS
========================================================= */

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
    margin-bottom: 22px;
}

.category-filter {
    padding: 8px 14px;

    border: 1px solid #1565C0;
    border-radius: 25px;

    background: #1565C0;
    color: #ffffff;

    font-size: 13px;
    font-weight: bold;

    transition: 0.3s ease;
}

.category-filter[data-category="all"] {
    background: #FF6B00;
    border-color: #FF6B00;
    color: #ffffff;
}

.category-filter[data-category="all"]:hover,
.category-filter[data-category="all"].active {
    background: #e85f00;
    border-color: #e85f00;
    transform: translateY(-2px);
}

.category-filter:not([data-category="all"]):hover {
    background: #0D47A1;
    border-color: #0D47A1;
}

.category-filter:not([data-category="all"]).active {
    background: #FF6B00;
    border-color: #FF6B00;

    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.22);
    transform: translateY(-2px);
}


/* =========================================================
   9. CATEGORY HEADINGS
========================================================= */

.product-category-section {
    margin-bottom: 30px;
}

.category-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 2px solid #1565C0;

    padding-bottom: 8px;
    margin-bottom: 14px;
}

.category-heading h3 {
    font-size: 19px;
}

.category-heading span {
    color: #777777;
    font-size: 12px;
}


/* =========================================================
   10. PRODUCT GRID
========================================================= */

.quick-quote-product-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 13px;
}


/* =========================================================
   11. PRODUCT CARDS
========================================================= */

.quick-quote-product-card {
    width: 100%;
    min-width: 0;

    background: #ffffff;

    border: 1px solid #e9e9e9;
    border-radius: 7px;

    overflow: hidden;

    transition: 0.25s ease;

    display: flex;
    flex-direction: column;
}

.quick-quote-product-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);

    border-color: #dddddd;
}


/* =========================================================
   12. PRODUCT IMAGES
========================================================= */

.product-image-container {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    padding: 0;
    margin: 0;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;
}

.product-image-container img {
    position: absolute;

    inset: 0;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    display: block;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center;

    background: #ffffff;

    transition: transform 0.35s ease;
}

.quick-quote-product-card:hover .product-image-container img {
    transform: scale(1.035);
}


/* =========================================================
   13. PRODUCT DETAILS
========================================================= */

.product-card-content {
    padding: 11px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.product-brand {
    color: #1565C0;

    font-size: 11px;
    font-weight: bold;

    text-transform: uppercase;

    margin-bottom: 3px;
}

.product-card-content h4 {
    font-size: 14px;
    line-height: 1.35;

    margin-bottom: 5px;

    overflow-wrap: anywhere;
}

/* PRODUCT DESCRIPTIONS ARE NOT DISPLAYED */

.product-description {
    display: none !important;
}


/* =========================================================
   14. SIZE AND QUANTITY
========================================================= */

.field-label {
    display: block;

    font-size: 11px;
    font-weight: bold;

    margin: 6px 0 4px;
}

.product-size,
.product-quantity,
.custom-quantity {
    width: 100%;

    padding: 8px;

    border: 1px solid #dddddd;
    border-radius: 5px;

    background: #ffffff;

    outline: none;
    font-size: 12px;
}

.product-size:focus,
.product-quantity:focus,
.custom-quantity:focus {
    border-color: #1565C0;
}


/* =========================================================
   15. ADD TO QUOTE BUTTON
========================================================= */

.add-to-quote-button {
    width: 100%;

    margin-top: auto;
    padding: 10px 7px;

    background: #FF6B00;
    color: #ffffff;

    border: none;
    border-radius: 5px;

    font-size: 12px;
    font-weight: bold;

    transition: 0.3s ease;
}

.add-to-quote-button:hover {
    background: #e85f00;
    transform: translateY(-1px);
}

.add-to-quote-button.added {
    background: #25D366;
}


/* =========================================================
   16. EMPTY RESULTS
========================================================= */

.no-products,
.no-search-results,
.empty-quote-message {
    background: #ffffff;

    padding: 35px 18px;

    text-align: center;

    border-radius: 8px;

    color: #666666;
}

.no-products i,
.no-search-results i,
.empty-quote-message i {
    font-size: 34px;
    color: #FF6B00;

    margin-bottom: 12px;
}

.no-search-results h3,
.empty-quote-message h3 {
    color: #111111;
    margin-bottom: 7px;
}


/* =========================================================
   17. QUOTATION SHEET
========================================================= */

#quotationBasket {
    background: #FFFFFF;

    width: 100%;

    padding: 30px;

    border: 1px solid #DFE9F3;
    border-radius: 20px;

    box-shadow: 0 12px 35px rgba(23, 65, 105, 0.10);

    overflow: hidden;
}


/* =========================================================
   18. QUOTATION HEADING
========================================================= */

.basket-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 18px;

    flex-wrap: wrap;

    padding-bottom: 21px;
    margin-bottom: 22px;

    border-bottom: 2px solid #EAF0F6;
}

.basket-heading h2 {
    color: #172B4D;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.35;
}

.basket-heading p {
    color: #687789;

    font-size: 14px;

    margin-top: 6px;
}


/* =========================================================
   19. AUTOMATIC QUOTATION DATE
========================================================= */

.quote-date {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    background: #EAF3FB;

    border: 1px solid #D6E6F5;
    border-radius: 12px;

    padding: 14px 17px;

    margin-bottom: 24px;

    color: #172B4D;

    font-size: 14px;
}

.quote-date i {
    color: #1769AA;
    font-size: 18px;
}

.quote-date strong {
    color: #0D47A1;
    font-weight: 700;
}


/* =========================================================
   20. RETURN TO PRODUCTS BUTTON
========================================================= */

.return-to-products-button {
    background: #172B4D;
    color: #FFFFFF;

    border: none;
    border-radius: 30px;

    padding: 13px 21px;

    font-size: 12px;
    font-weight: bold;

    box-shadow: 0 5px 14px rgba(23, 43, 77, 0.16);

    transition: all 0.3s ease;

    animation: none;
}

.return-to-products-button:hover {
    background: #1769AA;

    color: #FFFFFF;

    transform: translateY(-3px);

    box-shadow: 0 8px 18px rgba(23, 105, 170, 0.22);
}


/* =========================================================
   21. EMPTY QUOTATION
========================================================= */

.empty-quote-message {
    background: #F8FBFE;

    border: 1px dashed #C8D9E9;

    border-radius: 15px;

    padding: 45px 20px;
}

.empty-quote-message i {
    color: #1769AA;
}

.empty-quote-message h3 {
    color: #172B4D;
    font-size: 19px;
}


/* =========================================================
   22. SELECTED PRODUCTS GRID
========================================================= */

#selectedProductsList {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   23. SELECTED PRODUCT CARDS
========================================================= */

.selected-quote-item {
    display: grid;

    grid-template-columns: 105px minmax(0, 1fr) auto;

    align-items: center;

    gap: 15px;

    padding: 14px;

    border: 1px solid #E3EAF1;

    border-radius: 15px;

    background: #FFFFFF;

    box-shadow: 0 4px 14px rgba(23, 43, 77, 0.05);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.selected-quote-item:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(23, 43, 77, 0.09);
}


/* =========================================================
   24. SELECTED PRODUCT IMAGES
========================================================= */

.selected-quote-item img {
    width: 105px;
    height: 105px;

    object-fit: cover;
    object-position: center;

    display: block;

    border: 1px solid #E8EDF2;

    border-radius: 11px;

    background: #FFFFFF;
}


/* =========================================================
   25. SELECTED PRODUCT INFORMATION
========================================================= */

.selected-item-details {
    min-width: 0;
}

.selected-item-details h4 {
    color: #17212B;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;

    margin-bottom: 7px;

    overflow-wrap: anywhere;
}

.selected-item-details p {
    color: #657487;

    font-size: 12px;

    line-height: 1.5;
}

.selected-item-quantity {
    color: #0D47A1;

    font-size: 13px;
    font-weight: bold;

    margin-top: 6px;
}


/* =========================================================
   26. REMOVE PRODUCT BUTTON
========================================================= */

.remove-quote-item {
    background: #FCEEEE;
    color: #C62828;

    border: 1px solid #F5D4D4;

    padding: 9px 11px;

    border-radius: 9px;

    font-size: 11px;

    transition: all 0.3s ease;
}

.remove-quote-item:hover {
    background: #C62828;
    color: #FFFFFF;
}


/* =========================================================
   27. ADDITIONAL INFORMATION
========================================================= */

.additional-information-section {
    background: #F7FAFD;

    border: 1px solid #DCE8F3;

    border-radius: 16px;

    padding: 22px;

    margin-top: 27px;
}

.additional-information-section label {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #172B4D;

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 8px;
}

.additional-information-section label i {
    color: #1769AA;

    font-size: 19px;
}

.additional-information-section p {
    color: #6B7785;

    font-size: 13px;

    margin-bottom: 13px;
}

.additional-information-section textarea {
    width: 100%;

    min-height: 120px;

    resize: vertical;

    padding: 14px 16px;

    border: 1px solid #CEDBE8;

    border-radius: 11px;

    background: #FFFFFF;

    color: #17212B;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;
    line-height: 1.6;

    outline: none;

    transition: border-color 0.25s,
                box-shadow 0.25s;
}

.additional-information-section textarea:focus {
    border-color: #1769AA;

    box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.10);
}

.additional-information-section textarea::placeholder {
    color: #9AA8B6;
}


/* =========================================================
   28. BASKET ACTIONS
========================================================= */

.basket-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-top: 26px;

    flex-wrap: wrap;
}


/* =========================================================
   29. CLEAR QUOTE BUTTON
========================================================= */

.clear-quote-button {
    background: #EEF2F6;
    color: #435267;

    border: 1px solid #DCE3EA;

    padding: 13px 21px;

    border-radius: 30px;

    font-weight: bold;
    font-size: 12px;

    transition: all 0.3s ease;
}

.clear-quote-button:hover {
    background: #DCE3EA;

    transform: translateY(-2px);
}


/* =========================================================
   30. SEND QUOTATION BUTTON
   ORANGE WITH DARKER ORANGE HOVER EFFECT
========================================================= */

.send-quote-button {
    background: #FF6B00;
    color: #FFFFFF;

    border: 2px solid #FF6B00;
    border-radius: 35px;

    padding: 15px 28px;

    font-weight: 800;
    font-size: 14px;

    letter-spacing: 0.3px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.25);

    transition: all 0.3s ease;

    cursor: pointer;
}

.send-quote-button:hover {
    background: #E85F00;
    border-color: #E85F00;
    color: #FFFFFF;

    transform: translateY(-4px);

    box-shadow: 0 10px 23px rgba(255, 107, 0, 0.38);
}

.send-quote-button i {
    font-size: 17px;

    transition: transform 0.3s ease;
}

.send-quote-button:hover i {
    transform: translateX(3px);
}

.send-quote-button:active {
    transform: translateY(-1px);

    box-shadow: 0 3px 9px rgba(255, 107, 0, 0.25);
}

.send-quote-button:focus-visible {
    outline: 3px solid rgba(255, 107, 0, 0.35);
    outline-offset: 4px;
}

.send-quote-button:disabled {
    background: #F3A36F;
    border-color: #F3A36F;

    color: #FFFFFF;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   31. FOOTER - BLUE BOTTOM BAR
========================================================= */

.quick-quote-footer {
    background: #0D47A1;
    color: #FFFFFF;

    text-align: center;

    padding: 23px 15px;

    margin-top: 40px;

    border-top: 4px solid #1769AA;
}

.quick-quote-footer p {
    color: #FFFFFF;
    font-size: 12px;
}


/* =========================================================
   32. LARGE TABLETS
========================================================= */

@media (max-width: 1100px) {

    .quick-quote-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}


/* =========================================================
   33. TABLETS
========================================================= */

@media (max-width: 800px) {

    .quick-quote-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .catalogue-toolbar {
        grid-template-columns: 1fr;
    }

    .quick-quote-container {
        width: 95%;
    }

    #selectedProductsList {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   34. MOBILE
========================================================= */

@media (max-width: 650px) {

    .quick-quote-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-quote-brand h1 {
        font-size: 19px;
    }

    .view-quote-button {
        position: fixed !important;

        right: 15px;
        bottom: 16px;

        width: auto;
        min-width: 145px;

        padding: 12px 16px;

        justify-content: center;

        z-index: 99999;
    }

    .quick-quote-container {
        width: 95%;
        margin: 20px auto;
    }

    .quote-introduction {
        padding: 19px;
    }

    .quote-introduction h2 {
        font-size: 21px;
    }

    .quick-quote-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .product-image-container {
        aspect-ratio: 1 / 1;
    }

    .product-card-content {
        padding: 9px;
    }

    .product-card-content h4 {
        font-size: 13px;
    }

    .add-to-quote-button {
        padding: 9px 5px;
        font-size: 11px;
    }

    .category-heading h3 {
        font-size: 17px;
    }

    .category-filter {
        font-size: 11px;
        padding: 7px 11px;
    }

    /* QUOTATION SHEET MOBILE */

    #quotationBasket {
        padding: 17px;
        border-radius: 16px;
    }

    .basket-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .basket-heading h2 {
        font-size: 21px;
    }

    .return-to-products-button {
        width: 100%;
    }

    .selected-quote-item {
        grid-template-columns: 85px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 11px;
    }

    .selected-quote-item img {
        width: 85px;
        height: 85px;
    }

    .selected-item-details h4 {
        font-size: 13px;
    }

    .additional-information-section {
        padding: 16px;
    }

    .basket-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .clear-quote-button,
    .send-quote-button {
        width: 100%;
    }
}


/* =========================================================
   35. VERY SMALL SCREENS
========================================================= */

@media (max-width: 400px) {

    .quick-quote-brand h1 {
        font-size: 17px;
    }

    .quick-quote-container {
        width: 96%;
    }

    .quote-introduction {
        padding: 15px;
    }

    #quotationBasket {
        padding: 13px;
    }

    .quick-quote-product-grid {
        gap: 7px;
    }

    .product-card-content {
        padding: 8px;
    }

    .product-card-content h4 {
        font-size: 12px;
    }

    .selected-quote-item {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 9px;
    }

    .selected-quote-item img {
        width: 70px;
        height: 70px;
    }

    .selected-item-details h4 {
        font-size: 12px;
    }

    .selected-item-details p {
        font-size: 10px;
    }

    .remove-quote-item {
        grid-column: 2;
        justify-self: start;
        padding: 6px;
        font-size: 10px;
    }

    .view-quote-button {
        position: fixed !important;

        right: 12px;
        bottom: 12px;

        min-width: 135px;

        font-size: 13px;

        z-index: 99999;
    }

    .quote-date {
        font-size: 12px;
    }
}


/* =========================================================
   36. INTERACTIVE ELEMENTS
========================================================= */

.view-quote-button {
    position: fixed !important;
    pointer-events: auto !important;
}

.add-to-quote-button,
.category-filter,
.return-to-products-button,
.clear-quote-button,
.send-quote-button,
.remove-quote-item,
.catalogue-toolbar input,
.catalogue-toolbar select,
.product-size,
.product-quantity,
.custom-quantity,
.additional-information-section textarea {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

.quick-quote-header-inner,
.catalogue-toolbar,
.category-filter-buttons,
.product-card-content,
.basket-heading,
.basket-actions {
    pointer-events: auto;
}


/* =========================================================
   37. ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}